/* =========================================
   PREVIEW.CSS - Preview Section, Canvas, Carousel
   V22.1 - Restored from v5.1.2 + Protected Icon Containers
   ========================================= */

/* Preview Section */
.preview-section {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 0.7rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.preview-title {
    font-family: var(--nhe-font-body);
    font-size: 1rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.header-buttons {
    display: flex;
    gap: 0.35rem;
}

.reset-btn,
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    background: var(--light);
    border: 1px solid var(--border);
    padding: 0.36rem 0.6rem;
    border-radius: 16px;
    font-size: 0.62rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--primary);
    font-family: var(--font-body);
}

.reset-btn:hover {
    background: #FDF2F2;
    border-color: #E6B8B8;
    color: #9A3434;
}

.download-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #FFFFFF !important;
    border: none;
}

.download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(74, 59, 50, 0.28);
    color: #FFFFFF !important;
}

/* 3D Mode & 2D Mode Switcher Bar */
.builder-mode-switcher-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.builder-view-toggle {
    display: inline-flex;
    align-items: center;
    background: #EFEAE4;
    padding: 3px;
    border-radius: 999px;
    border: 1px solid rgba(74, 59, 50, 0.12);
    gap: 3px;
}

.b-view-btn {
    border: none;
    background: transparent;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--nhe-text-muted, #7A6B5D);
    cursor: pointer;
    transition: all 0.22s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
}

.b-view-btn.active {
    background: #4A3B32;
    color: #FAF8F5 !important;
    box-shadow: 0 2px 8px rgba(74, 59, 50, 0.25);
}

.b-view-btn .b-view-icon {
    color: var(--nhe-gold, var(--nhe-accent));
    font-size: 0.75rem;
}

.builder-lag-hint {
    font-size: 0.68rem;
    color: #8C7B6D;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(122, 84, 64, 0.08);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px dashed rgba(122, 84, 64, 0.35);
}

.builder-lag-hint .hint-icon {
    font-size: 0.8rem;
}

/* 3D Model Viewer Container */
.builder-3d-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    max-height: min(350px, 40vh);
    min-height: 240px;
    background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #F5F1EB 70%, #EBE5DC 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(74, 59, 50, 0.05);
    border: 1px solid rgba(74, 59, 50, 0.1);
    display: flex;
    flex-direction: column;
}

/* Bed Studio 3D stage (Three.js canvas is appended inside by bed-studio-engine.js) */
.builder-3d-stage {
    position: relative;
    width: 100%;
    height: 100%;
    flex: 1 1 auto;
    min-height: 0;
    outline: none;
}

.builder-3d-stage > canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

.builder-3d-stage.is-ready .builder-3d-poster {
    display: none;
}

.builder-3d-progress {
    font-variant-numeric: tabular-nums;
    font-size: 0.68rem;
    opacity: 0.75;
    min-height: 1em;
}

.builder-3d-set-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
}

/* Fullscreen (native) + iPhone pseudo-fullscreen */
.builder-3d-container:fullscreen,
.builder-3d-container.is-pseudo-fullscreen {
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 0 !important;
    border: 0 !important;
    background: radial-gradient(120% 90% at 50% 38%, #FBF9F6 0%, #F1ECE5 62%, #E6DED3 100%);
}

.builder-3d-container.is-pseudo-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 100000 !important;
}

.builder-3d-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7A6B5D;
    font-size: 0.75rem;
    font-weight: 600;
}

.builder-3d-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(122, 84, 64, 0.45);
    color: #4A3B32;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    pointer-events: none;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(74, 59, 50, 0.12);
    z-index: 10;
    white-space: nowrap;
    opacity: 0.96;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.builder-3d-hint.is-hidden {
    opacity: 0 !important;
    transform: translate(-50%, 6px) !important;
    pointer-events: none !important;
}

.builder-3d-container:hover .builder-3d-hint:not(.is-hidden) {
    opacity: 1;
}

/* Nút phóng to 3D toàn màn hình */
.builder-3d-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(74, 59, 50, 0.15);
    color: var(--primary, #4A3B32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.builder-3d-expand-btn:hover {
    background: #FFFFFF;
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.hidden {
    display: none !important;
}

/* Preview Content Wrapper - Responsive Stacked Layout on Mobile/Tablet, Sticky Block on Desktop */
.preview-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    align-items: stretch;
    width: 100%;
    box-sizing: border-box;
}

.canvas-side {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.price-side {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.canvas-side .canvas-container {
    flex: 1;
    aspect-ratio: 16 / 11;
    max-height: min(350px, 40vh);
    padding-bottom: 0;
}

.price-side .price-display {
    flex: 1;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Quick-View Canvas Set Switcher Bar (R1.6) */
.canvas-set-switcher-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    margin: 0 0 0.35rem 0;
    background: rgba(247, 245, 242, 0.95);
    border: 1px solid rgba(74, 59, 50, 0.1);
    border-radius: 20px;
    z-index: 10;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.canvas-set-switcher-bar.hidden {
    display: none !important;
}

.canvas-set-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.65rem;
    border-radius: 14px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--primary, #4A3B32);
    background: #FFFFFF;
    border: 1px solid rgba(74, 59, 50, 0.15);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 1px 3px rgba(74, 59, 50, 0.05);
    white-space: nowrap;
}

.canvas-set-pill:hover {
    background: #FAF8F5;
    border-color: rgba(74, 59, 50, 0.3);
    transform: translateY(-1px);
}

.canvas-set-pill.active {
    background: var(--primary, #4A3B32);
    color: #FFFFFF !important;
    border-color: var(--primary, #4A3B32);
    box-shadow: 0 2px 6px rgba(74, 59, 50, 0.25);
}

.preview-section.is-compressed .bed-canvas {
    transform: scale(0.92);
    transform-origin: center top;
}

/* Canvas Container */
.canvas-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 11;
    max-height: min(350px, 40vh);
    padding-bottom: 0;
    background: linear-gradient(145deg, #F8F6F3 0%, #F0EBE5 100%);
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
}

.canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bed-canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.35s cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: transform, opacity;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    transition: opacity 0.3s;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Carousel Navigation - Protected Icon Containers */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(74, 59, 50, 0.14);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 5;
    transition: all 0.2s;
}

.carousel-nav:hover {
    background: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.carousel-nav.prev {
    left: 6px;
}

.carousel-nav.next {
    right: 6px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 0.45rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-label {
    text-align: center;
    font-size: 0.6rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

/* Canvas Expand Button - Protected Icon Container (R8 Touch-Friendly) */
.canvas-expand-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    background: #FFFFFF;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(74, 59, 50, 0.22);
    border-radius: 8px;
    cursor: pointer;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
    z-index: 25;
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.canvas-expand-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
}

.canvas-expand-btn:hover {
    background: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.canvas-expand-btn:active {
    transform: scale(0.92);
}

/* Price Display */
.price-display {
    background: linear-gradient(135deg, #FAF8F5 0%, #F4EFE9 100%);
    border-radius: 10px;
    padding: 0.7rem 0.8rem;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.price-main {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem 0.65rem;
    width: 100%;
}

.price-label-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.14rem;
    min-width: 115px;
    flex: 1 1 auto;
}

.price-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--secondary);
    line-height: 1.3;
}

.price-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-heading);
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem 0.45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
    line-height: 1.2;
}

.price-original-strike {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-light, #9E8E81);
    text-decoration: line-through;
    opacity: 0.85;
    white-space: nowrap;
}

.price-final-highlight {
    font-size: 1.28rem;
    font-weight: 700;
    color: #9E382B;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.price-value-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.22rem;
    margin-left: auto;
    max-width: 100%;
}

.price-discount-badge {
    display: none;
    background: linear-gradient(135deg, var(--success) 0%, #23573D 100%);
    color: #FFFFFF;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    white-space: nowrap;
}

.price-discount-badge.active {
    display: inline-flex;
    align-items: center;
}

.price-note {
    font-size: 0.62rem;
    color: var(--text-light);
    margin-top: 0;
    line-height: 1.35;
}

.price-promo-note {
    font-size: 0.66rem;
    color: #9E382B;
    background: rgba(158, 56, 43, 0.06);
    border: 1px solid rgba(158, 56, 43, 0.14);
    border-radius: 6px;
    padding: 0.28rem 0.55rem;
    margin: 0.38rem 0 0.35rem;
    text-align: left;
    font-style: normal;
    line-height: 1.4;
}

/* Price Breakdown */
.price-breakdown {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--border);
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
}

.price-breakdown:not(.active) {
    display: none;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.66rem;
    color: var(--text-light);
    margin-bottom: 0.22rem;
    gap: 0.5rem;
    line-height: 1.38;
}

.breakdown-item > span:first-child {
    min-width: 0;
    flex: 1 1 auto;
    word-break: break-word;
}

.breakdown-item > span:last-child {
    flex-shrink: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.breakdown-item.subtotal-before-promo {
    border-top: 1px dashed var(--border);
    padding-top: 0.3rem;
    margin-top: 0.28rem;
    font-weight: 600;
    color: var(--text);
}

.breakdown-item.promo-discount-line {
    color: #B23B2A;
    font-weight: 700;
    background: rgba(178, 59, 42, 0.06);
    padding: 0.18rem 0.35rem;
    border-radius: 4px;
}

.breakdown-item.total-highlight-wrap,
.total-highlight-wrap {
    font-weight: 700;
    color: #9E382B;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.35rem;
}

.total-undiscounted-del {
    font-size: 0.64rem;
    color: var(--text-light, #9E8E81);
    font-weight: 500;
}

.total-discounted-final {
    font-size: 0.78rem;
    color: #9E382B;
    font-weight: 700;
}

.breakdown-item.total {
    font-weight: 700;
    color: var(--primary);
    border-top: 1px solid var(--border);
    padding-top: 0.32rem;
    margin-top: 0.28rem;
    font-size: 0.72rem;
}

.breakdown-item.discount {
    color: var(--success);
    font-weight: 600;
}

.breakdown-item.size-adjust {
    background: rgba(122, 84, 64, 0.12);
    border-radius: 4px;
    padding: 0.12rem 0.28rem;
    margin-top: 0.12rem;
}

.breakdown-hint {
    background: rgba(122, 84, 64, 0.1);
    border-radius: 4px;
    padding: 0.22rem 0.38rem !important;
    margin-top: 0.18rem;
}

.breakdown-hint span {
    color: var(--secondary) !important;
    font-size: 0.56rem !important;
    font-style: italic;
    font-weight: 500;
}

/* Sticky Action Buttons */
.sticky-action-buttons {
    display: none;
    gap: 0.35rem;
    margin-top: 0.3rem;
    justify-content: center;
}

/* Tablet */
@media (min-width: 600px) {
    .carousel-nav { width: 34px; height: 34px; font-size: 1rem; }
}

/* Desktop */
@media (min-width: 900px) {
    .preview-section {
        grid-column: 1;
        grid-row: 1 / span 10;
        position: sticky;
        top: calc(var(--nhe-header-h-scrolled, 64px) + 12px);
        height: fit-content;
        padding: 0.75rem;
        margin: 0;
        z-index: 10;
        border-radius: 12px;
    }

    .preview-section.is-sticky {
        position: sticky;
        top: calc(var(--nhe-header-h-scrolled, 64px) + 12px);
        margin: 0;
        padding: 0.75rem;
        z-index: 10;
        border-radius: 12px;
        box-shadow: 0 4px 20px var(--shadow);
    }

    .preview-section.is-sticky .canvas-container {
        max-width: 100%;
        margin: 0;
    }

    .preview-title { font-size: 0.98rem; }

    .canvas-container {
        aspect-ratio: 16 / 11;
        max-height: min(350px, 40vh);
        padding-bottom: 0;
        height: auto;
    }

    .carousel-nav { width: 32px; height: 32px; font-size: 0.95rem; }
    .carousel-dots { margin-top: 0.4rem; gap: 6px; }
    .carousel-dot { width: 8px; height: 8px; }
    .carousel-label { font-size: 0.62rem; }

    .price-display { padding: 0.7rem 0.75rem; margin-top: 0.5rem; }
    .price-label { font-size: 0.68rem; }
    .price-value { font-size: 1.2rem; }
    .price-note { font-size: 0.6rem; }
    .breakdown-item { font-size: 0.63rem; }

    .preview-content-wrapper {
        display: block;
    }

    .canvas-side {
        max-width: 100%;
    }

    .price-side {
        margin-top: 0.5rem;
    }
}

/* Mobile & Small Tablet responsive */
@media (max-width: 768px) {
    .builder-3d-container {
        aspect-ratio: 16 / 11;
        max-height: 260px;
        min-height: 205px;
    }

    .builder-3d-hint {
        top: auto !important;
        bottom: 8px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        font-size: 0.62rem !important;
        font-weight: 600 !important;
        padding: 2.5px 9px !important;
        background: rgba(255, 255, 255, 0.92) !important;
        border: 1px solid rgba(122, 84, 64, 0.4) !important;
        color: #4A3B32 !important;
        z-index: 10 !important;
    }

    .builder-3d-hint.is-hidden {
        opacity: 0 !important;
        transform: translate(-50%, 6px) !important;
        pointer-events: none !important;
    }

    /* R12: Thu nhỏ nút Liên hệ và nâng lên vị trí bottom: 84px !important; right: 16px !important; */
    .page-template-page-builder .nhe-mob-floating-contact,
    body.builder-page .nhe-mob-floating-contact,
    .builder-container ~ .nhe-mob-floating-contact,
    .nhe-mob-floating-contact {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        bottom: 84px !important;
        right: 16px !important;
        background: rgba(74, 59, 50, 0.45) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15) !important;
        justify-content: center !important;
        z-index: 9998 !important;
        transition: bottom 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease !important;
    }
    .nhe-mob-floating-contact .nhe-mob-fc-text {
        display: none !important;
    }
    .nhe-mob-floating-contact .nhe-mob-fc-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .canvas-side .canvas-container {
        aspect-ratio: auto;
        max-height: 100%;
        min-height: 0;
        flex: 1 1 0;
        height: 100%;
    }

    .carousel-dots {
        margin-top: 0.35rem;
        gap: 6px;
    }
    .carousel-dot {
        width: 7px;
        height: 7px;
    }
    .carousel-label {
        font-size: 0.64rem;
        margin-top: 0.18rem;
    }
    .carousel-nav {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    .carousel-nav.prev { left: 6px; }
    .carousel-nav.next { right: 6px; }

    .price-display {
        padding: 0.65rem 0.75rem;
        border-radius: 10px;
    }
    .price-label {
        font-size: 0.72rem;
    }
    .price-value {
        font-size: 1.12rem;
    }
    .price-original-strike {
        font-size: 0.8rem;
    }
    .price-final-highlight {
        font-size: 1.15rem;
    }
    .price-note {
        font-size: 0.62rem;
        margin-top: 0.08rem;
    }
    .price-promo-note {
        font-size: 0.64rem;
        margin: 0.32rem 0 0.32rem;
    }
    .price-breakdown {
        margin-top: 0.32rem;
        padding-top: 0.32rem;
        max-height: 165px;
        overflow-y: auto;
    }
    .breakdown-item {
        font-size: 0.66rem;
        margin-bottom: 0.2rem;
    }
    .price-discount-badge {
        font-size: 0.56rem;
        padding: 0.16rem 0.42rem;
    }
    .price-value-wrapper {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.18rem;
    }

    .preview-header {
        margin-bottom: 0.45rem;
        flex-wrap: nowrap;
        gap: 0.35rem;
    }
    .preview-title {
        font-size: 0.9rem;
    }
    .reset-btn, .download-btn {
        padding: 0.34rem 0.56rem;
        font-size: 0.62rem;
    }

    .breakdown-hint span {
        font-size: 0.56rem !important;
    }
}

@media (max-width: 380px) {
    .price-main {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }
    .price-value-wrapper {
        align-items: flex-start;
        margin-left: 0;
    }
    .price-value {
        justify-content: flex-start;
    }
    .price-discount-badge {
        font-size: 0.54rem;
        padding: 0.14rem 0.38rem;
    }
}

/* =========================================
   ON-CANVAS SECONDARY SPOTLIGHT & FOCUS (v7.11.0 R4: Safe permanent hide)
   ========================================= */
#nheSecondarySpotlight,
.canvas-secondary-spotlight,
#canvasFocusBadge,
.canvas-active-focus-badge {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

