/* Shared IMPA detail — Toolkit modal + /store/:code standalone */

.impa-store-standalone {
    margin: 0;
    background: #0f172a;
    color: #f8fafc;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}

.impa-store-detail.wrap {
    max-width: 560px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

.impa-store-detail-card,
.impa-store-detail .impa-store-detail-card {
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.impa-store-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.impa-store-detail-head-main {
    min-width: 0;
    flex: 1;
}

.impa-store-detail-body {
    padding: 20px;
}

.impa-detail-unified-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.impa-detail-unified-title {
    margin: 10px 0 0;
    color: #f8fafc;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Enlarged plate preview */
.impa-plate-preview,
.impa-shipserv-photo.impa-plate-preview {
    position: relative;
    min-height: 260px;
    max-height: 380px;
    height: min(380px, 42vh);
    margin: 0 auto 16px;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.impa-plate-preview .impa-shipserv-photo-img,
.impa-plate-preview img.impa-store-plate-img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    max-height: none;
    cursor: zoom-in;
    display: block;
}

.impa-plate-zoom-hint {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.82);
    color: #e0f2fe;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    pointer-events: none;
}

.impa-shipserv-spec-table.spec-table th {
    color: #67e8f9;
}

.impa-shipserv-spec-table.spec-table td {
    color: #f1f5f9;
}

.impa-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.impa-detail-share-btn,
.impa-store-detail .btn-share-spec {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(30, 41, 59, 0.9);
    color: #e0f2fe;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}

.impa-detail-share-btn:hover,
.impa-store-detail .btn-share-spec:hover {
    background: #1e293b;
}

.impa-detail-toast {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    z-index: 100001;
    padding: 12px 18px;
    border-radius: 10px;
    background: #0ea5e9;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.impa-detail-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* TVC-SM banner (standalone + modal) */
.impa-detail-tvc-sm.tvc-sm-banner,
.tvc-sm-banner.impa-detail-tvc-sm {
    margin-top: 20px;
    padding: 20px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0b3d91 0%, #0e7490 100%);
    color: #f8fafc;
    box-shadow: 0 12px 32px rgba(11, 61, 145, 0.25);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.tvc-sm-badge {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #bae6fd;
}

.tvc-sm-title {
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    line-height: 1.25;
    color: #fff;
}

.tvc-sm-desc {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.55;
    color: #e2e8f0;
}

.tvc-sm-locks {
    margin: 0 0 16px;
    padding-left: 1.1rem;
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
}

.tvc-sm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tvc-sm-actions .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    background: #fbbf24;
    color: #0f172a;
}

.tvc-sm-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.35);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.impa-store-detail .related-items {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
}

.impa-store-detail .related-items h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: #f8fafc;
}

.impa-store-detail .related-list a {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
}

.impa-store-detail .related-list a:hover {
    text-decoration: underline;
}

.impa-store-detail .related-toolkit a {
    color: #94a3b8;
}

.impa-store-detail .footer-note {
    margin-top: 18px;
    color: #94a3b8;
    font-size: 13px;
}

.impa-store-detail .btn-toolkit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    background: #0284c7;
    color: #fff;
}

/* Fullscreen lightbox — unified */
.impa-plate-fullscreen.impa-plate-lightbox-unified .impa-plate-fullscreen-backdrop {
    background: rgba(0, 0, 0, 0.95);
}

.impa-plate-fullscreen.impa-plate-lightbox-unified .impa-plate-fullscreen-panel {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.impa-plate-fullscreen.impa-plate-lightbox-unified .impa-plate-fullscreen-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent);
}

.impa-plate-fullscreen.impa-plate-lightbox-unified .impa-plate-fullscreen-close {
    min-width: 48px;
    min-height: 48px;
    width: 48px;
    height: 48px;
}

.impa-plate-fullscreen.impa-plate-lightbox-unified .impa-plate-fullscreen-viewport {
    flex: 1;
    min-height: 0;
    height: 100%;
    background: transparent;
}

.impa-plate-fullscreen.impa-plate-lightbox-unified .impa-plate-fullscreen-img {
    pointer-events: auto;
    max-width: none;
    max-height: none;
    width: auto;
    height: auto;
    max-width: min(96vw, 100%);
    max-height: min(88vh, 100%);
}
