
/* --- REDESIGNED ALERT MODAL (Uniform Style) --- */
.sf-alert-modal-overlay {
    background: rgba(37, 9, 29, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    padding: 24px !important;
    align-items: center !important;
    justify-content: center !important;
    display: none; /* Default hidden, toggled via JS */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

/* Important: Override display: flex from original styles if needed when active */
.sf-alert-modal-overlay[style*="display: flex"], 
.sf-alert-modal-overlay.show {
    display: flex !important;
}

.sf-alert-modal-content {
    background: #ffffff !important;
    padding: 32px 24px 24px 24px !important;
    border-radius: 24px !important;
    text-align: center !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
    animation: mobilePopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    min-width: auto !important;
    max-width: 340px !important;
    width: 100% !important;
    zoom: 1 !important;
    margin: 0 auto !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
}

.sf-alert-modal-content p {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.sf-alert-modal-content::before {
    content: '!';
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto -8px auto;
    background: #fdf2f8;
    color: #4a174b;
    font-size: 24px;
    font-weight: 800;
    line-height: 48px;
    border-radius: 50%;
}

#custom-alert-close {
    width: 100% !important;
    height: 48px !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: #25091d !important;
    color: #ffc107 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(37, 9, 29, 0.2) !important;
    transition: transform 0.1s !important;
    cursor: pointer;
    border: none;
}

#custom-alert-close:active {
    transform: scale(0.96) !important;
}

@keyframes mobilePopIn {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.mobile-uploads-bar {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-left: 0px;
    margin-right: 0;
    width: calc(100% + 48px);
    padding: 10px 0 15px 0;
    background: transparent;
    border: none;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    margin-bottom: 0;
    padding-bottom: 9px;
    padding-top: 19px;}

.mobile-uploads-bar.has-uploads {
    justify-start: flex-start;
}

.share-button { display:none; }

.mobile-uploads-bar::-webkit-scrollbar { display: none; }

@media (min-width: 1200px) {
     .page-wrapper[data-real-login-status="false"] {

            margin-top: -2px !important;
    }
    .mobile-uploads-bar { display: none; }
}

.mobile-uploads-bar .story-item, 
.mobile-uploads-bar .story-item-non-clickable {
    flex-shrink: 0;
    width: 56px;
    text-align: center;
    gap: 0;
    margin-right: 10px;
}

.mobile-uploads-bar .story-item:first-child {
    margin-left: 8px;
}
.mobile-uploads-bar .story-item:last-child {
    padding-right: 0;
    margin-right: 3px;
}

.mobile-uploads-bar .story-circle {
    width: 66px;
    height: 66px;
    border-width: 2px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
        border: 2px;
}

.mobile-uploads-bar .upload-button-circle {
    width: 66px;
    height: 66px;
}

.mobile-uploads-bar .story-item-title,
.mobile-uploads-bar .story-item-status {
    display: none !important;
}

.mobile-uploads-bar .upload-icon-wrapper svg {
    width: 30px;
    height: 30px;
}

.empty-collection-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
    margin-top: 20px;
}
.empty-collection-state .empty-icon {
    margin-bottom: 20px;
}
.empty-collection-state h3 {
    font-size: 148px;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding-top: 0;
    maergin:0;
}
.empty-collection-state p {
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 24px auto;
    line-height: 1.6;
}
.empty-collection-state .browse-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background-color: var(--brand-purple);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}
.empty-collection-state .browse-all-btn:hover {
    background-color: var(--brand-purple-dark);
}

.mobile-no-uploads-text {
    align-self: center;
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-left: 4px; 
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .product-media-region {
        position: relative;
    }

    /* Vertical Indicators on Right Side */
    .product-media-region .slider-indicators.pc-dots {
        display: flex !important;
        flex-direction: column !important; /* Make vertical */
        position: absolute !important;
        top: 50% !important; /* Center vertically */
        right: 10px !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateY(-50%) !important; /* Perfect centering */
        z-index: 50 !important;
        background-color: rgba(0, 0, 0, 0.25); /* Slightly darker for visibility */
        padding: 6px 4px; /* Adjust padding for vertical pill shape */
        border-radius: 12px;
        gap: 8px;
        width: auto !important;
        margin: 0 !important;
        pointer-events: none; /* Let touches pass through to image */
    }

    .product-media-region .indicator-dot.pc-dot {
        display: block !important;
        width: 6px !important;
        height: 6px !important;
        background-color: rgba(255, 255, 255, 0.5) !important;
        border-radius: 50%;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        flex-shrink: 0;
        transition: all 0.2s ease;
    }

    .product-media-region .indicator-dot.pc-dot.active {
        background-color: #ffffff !important;
        transform: scale(1.4); /* Make active dot clearly larger */
        box-shadow: 0 0 4px rgba(0,0,0,0.3);
    }
}

.product-feed-price {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 15px;
    margin-right: 4px; /* Tighter spacing */
    white-space: nowrap;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
}

.product-actions .left-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-actions .right-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.loader-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}

/* User Avatar Bubble on Mobile Image */
.mobile-owner-avatar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-owner-avatar {
        display: block;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 2px solid #fff;
        overflow: hidden;
        z-index: 50;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        background: #fff;
    }
    
    .mobile-owner-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-actions {
        align-items: flex-end;
    }

    .add-to-quote-btn {
        background: #fff !important; /* Circle background */
        color: #25091d !important;
        border: none !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important; /* Social shadow */
        padding: 0 !important;
        width: 48px !important; /* Larger touch target */
        height: 48px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 20;
        
        /* Positioning: Bottom Left */
        position: absolute !important;
        left: 9px !important; /* Move to Left */
        right: auto !important; /* Reset right */
        bottom: 70px !important; /* Position above overlay */
    }
    
    .add-to-quote-btn:active {
        transform: scale(0.9);
    }
    
    .add-to-quote-btn span { 
        display: none !important; 
    }
    
    .add-to-quote-btn svg {
        width: 28px !important; /* Thinner/Standard icon size inside circle */
        height: 28px !important;
        stroke-width: 2 !important; 
        color: #25091d;
    }
    
    /* Animation state for "Added" */
    .add-to-quote-btn.added {
        background: #25091d !important; /* Dark purple bg */
    }
    
    .add-to-quote-btn.added svg {
        color: #ffc107 !important; /* Gold checkmark */
        transform: scale(1.1);
    }

    .product-actions .right-actions {
        flex-direction: column-reverse !important; 
        align-items: flex-end;
        justify-content: center;
        gap: 4px;
        padding-right: 2px;
    }

    .product-feed-price {
           margin-right: 0;
        margin-bottom: 0;
        font-size: 15px !important;
        color: #3d0649 !important;
        font-weight: 800 !important;
        text-align: right;
        margin-bottom: 6px;
    }

    /* --- New Mobile Layout Adjustments --- */
    .product-post {
        display: flex;
        flex-direction: column;
        padding-bottom: 30px; /* Increased height spacing */
        margin-bottom: 24px; /* Separation between posts */
        position: relative; /* Ensure title can be positioned absolutely relative to post */
    }

    /* Reorder: Card (Image + Actions) First, then Title, then Description */
    .product-post .product-card {
        order: 1;
        margin-bottom: 8px;
    }

    .product-post-title {
        /* Position Title BELOW the Image (Static flow) */
        position: static !important; 
        order: 2; /* After card (1), before description (3) */
        
        width: 100%;
        padding: 0 12px; /* Match description padding */
        margin-top: 10px !important;
        margin-bottom: 4px !important;
        
        /* Visuals */
        text-shadow: none !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        color: var(--text-primary) !important;
        pointer-events: auto !important;
    }

    .product-post-title a {
        text-shadow: inherit !important;
        color: inherit !important;
        text-decoration: none;
    }

    /* Style the new description element */
    .product-description-feed {
        order: 3;
        padding: 0 12px;
        font-size: 13px; /* Reduced size */
        color: var(--text-primary);
        line-height: 1.45;
        margin-bottom: 10px;
        margin-top: 0 !important;
    }
    
    .product-description-feed .more-link {
        color: var(--text-secondary);
        font-weight: 500;
        text-decoration: none;
        cursor: pointer;
    }
}

/* --------------------------------------------------------------------------------------- */
/* UPDATES: Fixed Product Card Height (400px), Overlay Actions, Display Desktop Description */
/* --------------------------------------------------------------------------------------- */

/* 1. DESKTOP: Make Description Visible, Restore Auto Height & Flow */

@media (min-width: 769px) {
    .product-description-feed {
        display: none !important;
        padding: 0 12px 12px 12px;
        font-size: 14px;
        color: var(--text-secondary);
    }
    
    /* Ensure desktop behaves normally (auto height, no overlays) */
    .product-card {
        height: auto !important;
        overflow: visible;
    }
    .product-actions {
        position: static;
        background: transparent;
        backdrop-filter: none;
        border-top: none;
    }
}

/* 2. MOBILE ONLY: Fix Product Card Height to 492px & Overlay Actions */
@media (max-width: 768px) {
    .product-card {
        height: 541px !important;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        border-radius: var(--card-border-radius);
        background-color: var(--card-background-color);
    }

    /* Ensure the media region fills the card completely while preserving vertical feed scroll. */
    .product-media-region, 
    .product-media-region-link {
        height: 100% !important;
        width: 100% !important;
        flex-grow: 1;
        display: block;
        position: relative;
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    .product-card,
    .pc-card,
    .feed-card,
    .product-media,
    .pc-media,
    .product-media-region,
    .product-media-region-link,
    .product-image-single {
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    .pc-carousel,
    .pc-carousel-track,
    .pc-slide,
    .image-slider-container,
    .product-media-slider,
    .image-slide {
        touch-action: pan-x pan-y !important;
        overscroll-behavior: auto !important;
    }

    /*
       Mobile split-scroll zone restored from the old product feed behavior:
       the left 65% is a transparent page-scroll shield, while the exposed
       right 35% remains the carousel/native horizontal slide surface.
    */
    .product-media-region::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        bottom: 0;
        width: 65%;
        z-index: 5;
        background: transparent;
        pointer-events: auto !important;
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    /* Ensure images cover the area (400px height) */
    .product-media-region img,
    .product-media-region video,
    .product-image-single,
    .product-image-single video,
    .image-slider-container,
    .image-slider-container video,
    .image-slide,
    .image-slide video {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        margin: 0;
        padding: 0;
        display: block;
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    .product-card video.vsl-enhanced-video,
    .product-card .vsl-card-stream-preview-shell,
    .product-card .vsl-card-stream-preview-shell iframe,
    .product-media-region iframe[data-vsl-cf-card-iframe="1"],
    .pc-carousel iframe[data-vsl-cf-card-iframe="1"] {
        pointer-events: none !important;
    }

    /* Overlay actions at the bottom of the card */
    .product-actions {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.72) !important;
        background-image: none !important;
        -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
        backdrop-filter: blur(24px) saturate(180%) !important;
        z-index: 10;
        border-top: 1px solid rgba(255, 255, 255, 0.55) !important;
        box-shadow:
            0 -4px 18px rgba(255,255,255,0.25),
            0 -8px 30px rgba(0,0,0,0.06),
            inset 0 1px 0 rgba(255,255,255,0.85) !important;
        padding: 12px; /* Maintain original padding */
    }

    /* Ensure actions inside overlay are properly spaced */
    .product-actions .left-actions,
    .product-actions .right-actions {
        z-index: 11;
    }
}

/* Add hover and select effect for the SVG icon inside add to quote button */
.add-to-quote-btn:hover svg path,
.add-to-quote-btn:active svg path,
.add-to-quote-btn:focus svg path {
    fill: none !important; /* Ensure fill stays none for stroked icon */
    stroke: #fbc848 !important; /* Only animate stroke color if needed */
    transition: all 0.2s ease;
}

/* ========================================================================   
   MODAL REDESIGN STYLES (Matched from u.php)
   ======================================================================== */

/* Enhanced Fullscreen Modal */
#fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(251 200 72 / 10%);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}
.modal-content-wrapper{
    position: relative;
    width: 100%;
    max-width: 1097px;
    height: 79vh;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    display: flex;
    flex-direction: row;
    margin-left: -69px;
    margin-top: 61px;
    opacity: 0;
    transform: translateY(100px);
    animation: modalEntrance 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalEntrance {
    0% { opacity: 0; transform: translateY(60px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-img-container {
    flex: 1.25;
    background: transparent;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-blur-bg {
    display: none;
}

.modal-main-img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    width: auto;
    height: auto;
    position: absolute;
}

.modal-image-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10004;
    pointer-events: none;
}
.modal-image-spinner .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
}

.modal-details-sidebar {
    width: 360px;
    background: #fff;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* --- SECTION 1: INFO --- */
.modal-section-info {
    padding: 30px 24px 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
    background: #fff;
    z-index: 20;
}

/* ✅ NEW: quiet "meta chip" for views */
.modal-meta-chip{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(15, 23, 42, 0.03);
    color: rgba(15, 23, 42, 0.55);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    width: fit-content;
    margin: 2px 0 10px 0;
}
.modal-meta-chip i{
    font-size: 13px;
    opacity: 0.75;
}
.modal-meta-chip .count-val{
    color: rgba(15, 23, 42, 0.72);
    font-variant-numeric: tabular-nums;
}
.modal-meta-chip .chip-label{
    opacity: 0.6;
}

/* --- SECTION 2: COMMENTS (Flexible) --- */
.modal-section-comments-wrapper {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
}

.universal-comments-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.universal-comments-wrapper .comments-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
.universal-comments-wrapper .comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
}

/* --- SECTION 3: FOOTER INPUT (Fixed) --- */
.universal-comments-wrapper .comment-input-wrapper.main-comment-form {
    flex-shrink: 0;
    margin: 0 !important;
    border-radius: 0 !important;
    border-top: 1px solid #f1f5f9 !important;
    padding: 12px 16px !important;
    background: #fff !important;
    position: relative;
    z-index: 30;
}

.modal-inner-close-btn {
    position: absolute;
    top: 9px;
    right: 8px;
    background: #fbc84863;
    border: none;
    color: #25091da3;
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 5;
}
.modal-inner-close-btn:hover {
    background: #f1f5f9;
}
.modal-inner-close-btn svg {
    width: 14px;
    height: 14px;
}

/* =========================================================
   ✅ FINAL OVERRIDE: unique class that will always win
   Move close button RIGHT by 3px
   ========================================================= */
#fullscreen-overlay .modal-details-sidebar .modal-section-info .modal-inner-close-btn.modal-inner-close-btn--shift-right {
    right: 7px !important;
}

.modal-product-title-row {
    display: block;
    margin-bottom: 4px;
}
.modal-product-title {
    font-size: 22px;
    font-weight: 900;
    color: #1f1b16;
    line-height: 1.2;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.modal-product-price {
    font-size: 18px;
    font-weight: 800;
    color: #f4c430;
    margin-bottom: 8px;
}
.modal-product-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    white-space: pre-wrap;
    padding-top: 0;
    margin-bottom: 12px;
}
.modal-company-name {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
}

.modal-company-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}
.btn-modal-quote-pill {
    background: #fff;
    border: 1.5px solid #25091d;
    color: #25091d;
    border-radius: 30px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    line-height: 1;
}
.btn-modal-quote-pill:hover {
    background: #25091d;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(37,9,29,0.15);
}

/* ✅ NEW: Mobile-only sized quote pill element. */
@media (max-width: 991px) {
    .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        background: #25091d !important;
        color: #f4c430 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0 !important;
        line-height: 0 !important;
        box-shadow: 0 4px 12px rgba(37, 9, 29, 0.15) !important;
        transition: transform 0.2s ease !important;
        margin-right: 1px;
        flex: 0 0 36px !important;
    }

    .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile i,
    .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile svg {
        font-size: 22px !important;
        display: block !important;
        margin: 0 !important;
        -webkit-text-stroke: 0.5px currentColor !important;
        line-height: 1 !important;
    }
}

.modal-actions {
    flex-shrink: 0;
    padding: 12px 24px;
    background: #fff;
    border-top: 1px solid #eee;
    margin: 0;
    width: 100%;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-footer-back-btn {
    width: auto;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f1f5f9;
    color: #64748b;
    padding: 0 16px;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
}

.btn-modal-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    height: 48px;
    padding: 0 14px;
    border-radius: 8px;
    border: none;
    background: #25091d;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-modal-primary:hover { background: #3b0f2e; }

.btn-modal-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-modal-secondary:hover {
    background: #fff;
    border-color: #cbd5e1;
    color: #1e293b;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.modal-close-btn {
    position: absolute; top: 20px; right: 20px;
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 50%; font-size: 28px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 10005;
}
.modal-close-btn:hover { background: rgba(255,255,255,0.3); }

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(24 4 4 / 14%);
    color: #fff;
    border: none;
    width: 44px; height: 44px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.2s;
}

.modal-prev { left: 34px; }
.modal-next { right: 16px; }

/* =========================================================
   MOBILE RESPONSIVE RULES FOR MODAL
   ========================================================= */

@media (max-width: 991px) {
    /* Modal Mobile Fixes */
    #fullscreen-overlay { align-items: stretch; }
    .modal-nav-btn { display: none !important; }

    .modal-content-wrapper {
        position: relative;
        flex-direction: column;
        height: 100%;
        width: 100%;
        max-width: 100vw !important;
        margin-left: 0;
        margin-top: 0;
        border-radius: 0;
        background: transparent;
        overflow: hidden;
        padding-top: 55px;
        box-sizing: border-box !important;
    }

    .modal-img-container {
        height: 44vh !important;
        flex: none !important;
        padding: 0;
        background: #f1f5f9;
        overflow: hidden;
        max-width: 100% !important;
    }
    .modal-blur-bg {
        opacity: .35;
        filter: blur(18px) brightness(1.2);
        background-size: cover;
        background-position: center;
    }
    .modal-main-img {
        position: relative;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

    .modal-media-slider .slider-nav { display: none !important; }

    /* ✅ FIX ONLY: show full image on mobile modal (matches other page behavior) */
    .modal-media-slider img {
        object-fit: cover !important;          /* fill all space */
        object-position: center center !important;
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        background: transparent !important;
    }

    /* Keep mobile image slides flush with the full media pane.
       This removes the unused dark band above an image preview without
       changing video sizing or the bottom-sheet geometry. */
    #fullscreen-overlay .modal-img-container {
        position: relative !important;
    }
    #fullscreen-overlay .modal-img-container > .modal-media-slider,
    #fullscreen-overlay #modal-media-slider {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #fullscreen-overlay #modal-slider-track {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }
    #fullscreen-overlay #modal-slider-track > .slider-slide[data-vsl-media-type="image"] {
        height: 100% !important;
        min-height: 100% !important;
        max-height: 100% !important;
    }
    #fullscreen-overlay #modal-slider-track > .slider-slide[data-vsl-media-type="image"] > img {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-width: 100% !important;
        min-height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .mobile-swipe-hint {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.15));
        opacity: 0.6;
        z-index: 6;
        display: flex;
        align-items: flex-end;
        justify-content: flex-start;
        padding-bottom: 45px;
        padding-left: 8px;
    }
    .product-media-slider .mobile-swipe-hint { display: none !important; }

    .mobile-swipe-hint::after {
        content: "Swipe";
        font-size: 11px;
        letter-spacing: 0.5px;
        color: #fff;
        background: rgba(0,0,0,0.4);
        padding: 4px 12px;
        border-radius: 999px;
        font-weight: 600;
        backdrop-filter: blur(4px);
    }
    
    /* ================================================================
       ✅ FIX: MODAL DETAILS SIDEBAR — MOBILE SHEET
       touch-action: none on the sheet so JS controls vertical drag.
       Comments area restores pan-y below.
       ================================================================ */
    .modal-details-sidebar {
        width: 100%;
        max-width: 100vw !important;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 52vh;
        min-height: 52vh;
        max-height: calc(100vh - 180px) !important;
        padding: 0;
        overflow: visible !important;
        gap: 0;
        background: var(--mobile-modal-sheet-bg);
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15) !important;
        z-index: 30;
        touch-action: none !important;
        transition: height .12s ease-out;
        box-sizing: border-box !important;
    }

    /* ================================================================
       ✅ FIX: DRAG INDICATOR — MOBILE SHEET HANDLE
       ================================================================ */
    .modal-drag-indicator {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 100 !important;
        cursor: grab !important;
        touch-action: none !important;
        -webkit-touch-callout: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        background: transparent;
    }

    .modal-drag-indicator:active {
        cursor: grabbing !important;
    }

    .modal-drag-indicator .drag-bar {
        width: 42px;
        height: 5px;
        background-color: #cbd5e1;
        border-radius: 4px;
        pointer-events: none;
    }

    /* ================================================================
       ✅ FIX: RESTORE SCROLL in comments/input areas.
       ================================================================ */
    .modal-section-comments-wrapper {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
    }

    .modal-section-comments-wrapper .comments-list,
    .modal-section-comments-wrapper .comments-list-thread {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
    }

    .universal-comments-wrapper .comment-input-wrapper {
        touch-action: auto !important;
    }

    /* ================================================================
       ✅ FIX: INFO SECTION participates in drag (except buttons).
       ================================================================ */
    .modal-section-info {
        touch-action: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-rows: auto auto auto auto !important;
        gap: 2px 14px !important;
        position: relative !important;
        padding: 1px !important;
        background: #fff !important;
        border-bottom: 1px dashed #e2e8f0 !important;
        min-height: auto !important;
        align-items: center !important;
        padding-left: 8px !important;
    }

    /* Buttons inside info must remain tappable */
    .modal-section-info button,
    .modal-section-info a,
    .modal-section-info .btn-modal-quote-pill,
    .modal-section-info .modal-inner-close-btn {
        touch-action: auto !important;
        -webkit-user-select: auto !important;
        user-select: auto !important;
    }

    .modal-section-info #modal-title-row,
    .modal-section-info .modal-product-title-row {
        display: block !important;
        grid-column: 1 / 3 !important;
        grid-row: 3 / 4 !important;
        margin: 4px 0 0 0 !important;
    }
    
    .modal-section-info .modal-product-title {
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #64748b !important;
        line-height: 1.3 !important;
        display: block !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: initial !important;
        overflow: visible !important;
    }

    .modal-section-info #modal-price,
    .modal-section-info .modal-product-price {
        display: block !important;
        grid-column: 1 / 2 !important;
        grid-row: 2 / 3 !important;
        margin: 0 !important;
        font-size: 24px !important;
        font-weight: 800 !important;
        color: #25091d !important;
        letter-spacing: -0.5px !important;
        line-height: 1 !important;
    }

    .modal-section-info .modal-meta-chip{
        grid-column: 2 / 3 !important;
        grid-row: 2 / 3 !important;
        justify-self: end !important;
        align-self: center !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        display: flex !important;
        justify-content: flex-end !important;
        gap: 4px !important;
        font-size: 11px !important;
    }

    .modal-section-info .modal-company-row {
        display: contents !important; 
    }

    .modal-section-info .modal-company-row .modal-company-name {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        justify-self: start !important;
        align-self: end !important;
        margin-bottom: 2px !important;
        display: inline-flex !important;
    }

    .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile {
        grid-column: 2 / 3 !important;
        grid-row: 1 / 2 !important;
        align-self: center !important;
        justify-self: end !important;
        margin: 0 !important;
    }

    .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile:active { transform: scale(0.9); }

    .modal-section-info .modal-inner-close-btn {
        display: flex !important;
        position: absolute !important;
        top: -60px !important;
        right: 7px !important;
        left: auto !important;
        transform: none !important;
        width: 36px !important;
        height: 36px !important;
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        color: #fff !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 100 !important;
        cursor: pointer !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    }
    .modal-section-info .modal-inner-close-btn svg {
        width: 16px !important;
        height: 16px !important;
        color: #fff !important;
    }

    .modal-product-desc{ display: none; }

    .modal-section-comments-wrapper{
        flex: 1 1 auto;
        overflow: hidden;
        background: transparent;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .comments-list-thread.comments-list{
        padding-left: 17px !important;
        position: relative;
        background-color: transparent;
        background-image:
            radial-gradient(circle at 18px 16px, rgba(37,9,29,0.030) 1px, transparent 2px),
            radial-gradient(circle at 66px 44px, rgba(37,9,29,0.020) 1px, transparent 2px),
            radial-gradient(circle at 118px 22px, rgba(37,9,29,0.024) 1px, transparent 2px),
            radial-gradient(circle at 170px 60px, rgba(37,9,29,0.018) 1px, transparent 2px),
            radial-gradient(circle at 40px 90px, rgba(37,9,29,0.016) 1px, transparent 2px);
        background-size: 210px 160px;
        background-repeat: repeat;
        background-position: 0 0;
    }
    .comments-list-thread.comments-list > *{
        position: relative;
        z-index: 1;
    }

    .universal-comments-wrapper .comment-input-wrapper.main-comment-form{
        position: sticky !important;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 12px !important;
        background: rgba(255,255,255,0.96) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.08) !important;
    }

    .modal-close-btn{
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(10px);
    }
    .modal-actions { display: none; }

    /* ✅ MISSING FLEX FIX FOR MOBILE COMMENTS CONTAINER */
    #fullscreen-overlay .universal-comments-wrapper {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    #fullscreen-overlay .universal-comments-wrapper .comments-section {
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }
    #fullscreen-overlay .universal-comments-wrapper .comments-list {
        flex: 1 1 auto !important;
        overflow-y: auto !important;
        padding: 12px 16px 18px 16px !important;
        background: transparent !important;
    }
}

#fullscreen-overlay .modal-details-sidebar .modal-section-info,
#fullscreen-overlay .modal-details-sidebar .vsl-modal-section-info {
    padding-left: 12px !important;
    padding-right: 12px !important;
            padding-top: 30px !important;
}

@media (max-width: 991px) {
    #fullscreen-overlay .modal-details-sidebar .modal-section-info,
    #fullscreen-overlay .modal-details-sidebar .vsl-modal-section-info {
        padding-left: 9px !important;
        padding-right: 6px !important;
    }
}

/* Mobile only: force true pixel-centering using CSS grid */
@media (max-width: 991px) {
  .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile{
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    line-height: 0 !important;
    font-size: 0 !important;
    vertical-align: middle !important;
  }

  .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile > i.bi.bi-plus-lg{
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1 !important;
    width: 22px !important;
    height: 22px !important;
    transform: none !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
  }

  .modal-section-info .btn-modal-quote-pill.btn-modal-quote-pill--mobile > i.bi.bi-plus-lg::before{
    display: block !important;
    line-height: 1 !important;
    width: 1em !important;
    height: 1em !important;
  }
}

/* ✅ u.php mobile comments parity overrides for /dev/products modal */
@media (max-width: 991px) {
    #fullscreen-overlay .modal-section-comments-wrapper {
        flex: 1 1 auto;
        overflow: hidden;
        background: transparent;
        min-height: 0;
        display: flex;
        flex-direction: column;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
    }
    #fullscreen-overlay .modal-section-comments-wrapper .comments-list,
    #fullscreen-overlay .modal-section-comments-wrapper .comments-list-thread {
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        overflow-y: auto !important;
    }
    #fullscreen-overlay .comments-list-thread.comments-list {
        padding-left: 17px !important;
        position: relative;
        background-color: transparent;
        background-image:
            radial-gradient(circle at 18px 16px, rgba(37,9,29,0.030) 1px, transparent 2px),
            radial-gradient(circle at 66px 44px, rgba(37,9,29,0.020) 1px, transparent 2px),
            radial-gradient(circle at 118px 22px, rgba(37,9,29,0.024) 1px, transparent 2px),
            radial-gradient(circle at 170px 60px, rgba(37,9,29,0.018) 1px, transparent 2px),
            radial-gradient(circle at 40px 90px, rgba(37,9,29,0.016) 1px, transparent 2px);
        background-size: 210px 160px;
        background-repeat: repeat;
        background-position: 0 0;
    }
    #fullscreen-overlay .comments-list-thread.comments-list > * {
        position: relative;
        z-index: 1;
    }
    #fullscreen-overlay .universal-comments-wrapper .comment-input-wrapper.main-comment-form {
        position: sticky !important;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 8px !important;
        background: rgba(255,255,255,0.96) !important;
        backdrop-filter: blur(10px);
        border-top: 1px solid rgba(0,0,0,0.08) !important;
    }
    #fullscreen-overlay .modal-section-info .modal-drag-indicator {
           position: absolute !important;
        top: 1px !important;
        left: auto !important;
        right: 1px !important;
        width: 42px !important;
        height: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        z-index: 110 !important;
        transform: none !important;
    }
    #fullscreen-overlay .modal-section-info .modal-drag-indicator .drag-bar {
        width: 34px !important;
        height: 4px !important;
        border-radius: 999px !important;
        background: #cbd5e1 !important;
        margin: 0 !important;
    }
}

/* ============================================================
   ✅ FIX: Make /dev/products layout match invoices.php exactly
   - Ensure the fixed left columns behave exactly the same
   - Move menu 26px away from left edge
   ============================================================ */

.left-sidebars-wrapper {
    position: fixed !important;
    top: 72px !important; /* invoices.php: top: 0 */
    height: calc(100vh - 64px) !important; /* invoices.php */
    left: 26px !important; /* 👈 Moved 26px from the left edge! */
    display: none;
    flex-direction: row !important;
    gap: 0 !important;
    z-index: 10 !important;
    align-items: flex-start !important;
}

.left-sidebar { 
    height: 100% !important; 
    position: relative !important; 
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.main-sidebar { 
    width: 220px !important; 
    flex-shrink: 0 !important; 
}

.secondary-sidebar { 
    width: 151px !important; /* matches invoice.php exact width */
    flex-shrink: 0 !important;
    border-left: 1px solid var(--border-color) !important;
    padding: 0 0 0 16px !important;
    margin: 0 !important;
    font-size: 0.9rem;
    color: var(--text-secondary);
    height: 100% !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; 
    background: transparent !important;
    overflow: hidden !important;
    position: relative;
}

.secondary-sidebar h4 { 
    font-size: 0.8rem; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    color: #94a3b8; 
    padding-left: 4px; 
    flex-shrink: 0;
    margin-bottom: 24px;
    display: none;
}

/* Updated right-sidebar */
.right-sidebar { 
    position: fixed !important; 
    top: 64px !important; 
    height: calc(100vh - 64px) !important; 
    overflow-y: auto !important; 
    display: none; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
    right: 12px !important; 
    width: 280px !important; 
    border-left: none !important; 
    padding-left: 24px !important; 
    padding-right: 17px !important; 
}
.right-sidebar::-webkit-scrollbar { display: none; }

@media (max-width: 1024px) {
    .left-sidebars-wrapper,
    .left-sidebar,
    .main-sidebar,
    .secondary-sidebar,
    .right-sidebar {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        width: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
        overflow: hidden !important;
    }
}

/* Main content offsets */
@media (min-width: 1200px) { 
    .left-sidebars-wrapper { display: flex !important; }
    .right-sidebar { display: block !important; }
    .page-wrapper {
        justify-content: flex-start !important;
    }
    .page-wrapper main { 
        margin-left: 397px !important; /* 26px offset + 220px + 151px = 397px */
        margin-right: 320px !important; 
        margin-top: 13px !important; 
        width: calc(100% - 717px) !important;
        max-width: calc(100% - 717px) !important;
        min-width: 0 !important;
        flex: 0 0 calc(100% - 717px) !important;
        box-sizing: border-box !important;
    }
    
    .page-wrapper[data-is-logged-in="false"] main { 
        margin-left: 246px !important; /* 220px + 26px */
        width: calc(100% - 566px) !important;
        max-width: calc(100% - 566px) !important;
        flex-basis: calc(100% - 566px) !important;
    }
}

@media (min-width: 1500px) { 
    .main-sidebar { width: 300px !important; }
    .secondary-sidebar { width: 150px !important; }
    .right-sidebar { width: 400px !important; padding-right: 17px !important; height: 100vh !important; }
    
    .page-wrapper main { 
        margin-left: 512px !important; /* Invoices uses 512px here */
        margin-right: 472px !important; 
        width: calc(100% - 984px) !important;
        max-width: calc(100% - 984px) !important;
        flex-basis: calc(100% - 984px) !important;
    }
    .page-wrapper[data-is-logged-in="false"] main { 
        margin-left: 418px !important; /* 300px + 26px */
        margin-top: 21px !important;
        width: calc(100% - 890px) !important;
        max-width: calc(100% - 890px) !important;
        flex-basis: calc(100% - 890px) !important;
    }
}

/* --- Secondary Sidebar & Story Upload Alignment Fixes (Matched to invoices.php) --- */
.secondary-sidebar .sidebar-content {
    justify-content: flex-start !important;
    align-items: center !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.story-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* Force content to top */
    align-items: center;
    flex: 1;
    min-height: 92vh; 
    overflow: hidden;
    background: transparent;
    border-radius: 8px;
    padding: 0 !important;
    padding-top: 10px !important;
    margin: 0 !important;
    position: relative !important;
    width: 100%;
}

.product-stories-scrollable-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important; /* Anchor list items at the top */
    align-items: center; /* Center the circles horizontally */
    flex: 1;
    overflow-y: auto;
    gap: 20px;
    padding: 25px 12px 100px 12px !important;
    margin: 0 !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: static !important;
    width: 100%;
    height: 100%;
}

.product-stories-scrollable-list::-webkit-scrollbar {
    display: none;
}

.story-upload-item {
    flex-shrink: 0;
    padding: 0;
    background: transparent !important;
    border-top: 0;
    padding-bottom: 20px !important; 
    padding-top: 10px !important;
    
    /* Fixed positioning at bottom of sidebar container */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* Allow clicks to pass through transparent areas */
}
/* --- Fix to move the secondary sidebar content (stories) to the top --- */
.secondary-sidebar,
.secondary-sidebar .sidebar-content,
.secondary-sidebar .story-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.secondary-sidebar .story-item:first-child,
.secondary-sidebar .story-item-non-clickable:first-child {
    margin-top: 0 !important;
}


/* =========================================================
   MOBILE ONLY: quote button same-SVG feedback.
   Keeps the existing plus/cart SVG visible and purple on click.
   Desktop is intentionally untouched.
   ========================================================= */
@media (max-width: 768px) {
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty:disabled,
    .action-btn.add-to-quote-btn.quote-social-btn,
    .action-btn.add-to-quote-btn.quote-social-btn:visited {
        opacity: 1 !important;
        color: #25091d !important;
        -webkit-text-fill-color: #25091d !important;
    }

    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty svg,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty svg path,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty svg polyline,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty svg line,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty svg circle,
    .action-btn.add-to-quote-btn.quote-social-btn svg,
    .action-btn.add-to-quote-btn.quote-social-btn svg path,
    .action-btn.add-to-quote-btn.quote-social-btn svg polyline,
    .action-btn.add-to-quote-btn.quote-social-btn svg line,
    .action-btn.add-to-quote-btn.quote-social-btn svg circle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #25091d !important;
        stroke: #25091d !important;
        fill: none !important;
        transform-origin: center center !important;
    }

    .action-btn.add-to-quote-btn.quote-social-btn svg g,
    .action-btn.add-to-quote-btn.quote-social-btn svg .plus {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform-origin: center center !important;
    }

    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty:active,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.text-updated:active,
    .action-btn.add-to-quote-btn.quote-social-btn:active,
    .action-btn.add-to-quote-btn.quote-social-btn.text-updated:active {
        transform: scale(0.94) !important;
        opacity: 0.94 !important;
    }

    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.quote-mobile-clicked svg,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.text-updated.quote-mobile-clicked svg,
    .action-btn.add-to-quote-btn.quote-social-btn.quote-mobile-clicked svg,
    .action-btn.add-to-quote-btn.quote-social-btn.text-updated.quote-mobile-clicked svg {
        animation: quoteSameSvgPop 0.42s cubic-bezier(.2,.9,.3,1.35) !important;
    }

    .action-btn.add-to-quote-btn.quote-social-btn.quote-mobile-clicked,
    .action-btn.add-to-quote-btn.quote-social-btn.text-updated.quote-mobile-clicked {
        background: #ffffff !important;
        box-shadow: 0 0 0 5px rgba(37, 9, 29, 0.10), 0 4px 12px rgba(0,0,0,0.15) !important;
    }

    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.quote-mobile-adding svg,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.text-updated.quote-mobile-adding svg {
        animation: quoteSameSvgPulse 0.42s ease-in-out infinite alternate !important;
    }

    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.quote-mobile-added svg,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.text-updated.quote-mobile-added svg {
        animation: quoteSameSvgPop 0.55s cubic-bezier(.2,.9,.3,1.35) !important;
    }

    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.quote-mobile-error svg {
        animation: quoteSameSvgShake 0.36s ease-in-out !important;
    }

    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.quote-mobile-adding,
    .action-btn.add-to-quote-btn.add-to-quote-btn-with-min-qty.quote-mobile-added {
        background: #ffffff !important;
        box-shadow: 0 0 0 5px rgba(37, 9, 29, 0.10), 0 4px 12px rgba(0,0,0,0.15) !important;
    }



    /* Modal quote button tap feedback: include #modal-add-to-quote-btn, which is not always .action-btn. */
    #modal-add-to-quote-btn,
    #modal-add-to-quote-btn:disabled {
        opacity: 1 !important;
        color: #25091d !important;
        -webkit-text-fill-color: #25091d !important;
    }

    #modal-add-to-quote-btn svg,
    #modal-add-to-quote-btn svg path,
    #modal-add-to-quote-btn svg polyline,
    #modal-add-to-quote-btn svg line,
    #modal-add-to-quote-btn svg circle {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #25091d !important;
        stroke: #25091d !important;
        fill: none !important;
        transform-origin: center center !important;
    }

    #modal-add-to-quote-btn.quote-mobile-clicked svg,
    #modal-add-to-quote-btn.quote-mobile-adding svg {
        animation: quoteSameSvgPop 0.42s cubic-bezier(.2,.9,.3,1.35) !important;
    }

    #modal-add-to-quote-btn.quote-mobile-clicked,
    #modal-add-to-quote-btn.quote-mobile-adding,
    #modal-add-to-quote-btn.quote-mobile-added {
        background: #ffffff !important;
        box-shadow: 0 0 0 5px rgba(37, 9, 29, 0.10), 0 4px 12px rgba(0,0,0,0.15) !important;
    }

    @keyframes quoteSameSvgPulse {
        0% { transform: scale(0.94) rotate(-4deg); }
        100% { transform: scale(1.12) rotate(4deg); }
    }

    @keyframes quoteSameSvgPop {
        0% { transform: scale(0.78); }
        55% { transform: scale(1.22); }
        100% { transform: scale(1); }
    }

    @keyframes quoteSameSvgShake {
        0%, 100% { transform: translateX(0); }
        25% { transform: translateX(-2px); }
        75% { transform: translateX(2px); }
    }
}

/* Mobile feed cleanup: hide title/description rows on the products feed only. */
@media (max-width: 768px) {
    #product-posts-container .product-post > h3,
    #product-posts-container .product-post > .product-post-title,
    #product-posts-container .product-post > .product-description-feed,
    #product-posts-container .product-post > h3 .product-title-link {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* =========================================================
   MOBILE PRODUCT FEED CARD SHAPE FIX
   - keeps the existing feed structure/height
   - matches the screenshot spacing: 10px left, 8px right
   - restores a white rounded product-card with a subtle border/shadow
   ========================================================= */
@media (max-width: 768px) {
    #product-posts-container {
        padding-left: 10px !important;
        padding-right: 8px !important;
        box-sizing: border-box !important;
    }

    #product-posts-container .product-post {
        position: relative !important;
        margin-bottom: 18px !important;
        padding-bottom: 18px !important;
    }

    #product-posts-container .product-post:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 8px;
        bottom: 0;
        height: 1px;
        background: rgba(61, 6, 73, 0.18);
        border: 0;
        pointer-events: none;
        z-index: 1;
    }

    #product-posts-container .product-card {
        /* preserve the original mobile card height from earlier rules */
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid rgba(37, 9, 29, 0.10) !important;
        box-shadow: 0 2px 10px rgba(37, 9, 29, 0.08) !important;
    }

    #product-posts-container .product-media-region,
    #product-posts-container .product-media-region-link,
    #product-posts-container .image-slider-container,
    #product-posts-container .image-slide,
    #product-posts-container .product-image-single {
        border-radius: inherit !important;
    }

    #product-posts-container .product-actions { 
        background: rgba(255, 255, 255, 0.94) !important;
        background-image: none !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        backdrop-filter: blur(20px) saturate(180%) !important;
        border-top: 1px solid rgba(37, 9, 29, 0.08) !important;
        border-bottom: 0 !important;
        border-radius: 0 0 12px 12px !important;
        box-shadow: 0 -4px 18px rgba(255, 255, 255, 0.25), 0 -8px 30px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
        padding-bottom: 10px !important;
        margin-bottom: 0 !important;
    }

    #product-posts-container .product-actions::before,
    #product-posts-container .product-actions::after,
    #product-posts-container .product-card::before,
    #product-posts-container .product-card::after,
    #product-posts-container .product-media-region::after {
        background-image: none !important;
    }
}



/* VSL mobile split-scroll and native video fullscreen guardrails. */
@media (max-width: 768px) {
    #product-posts-container .product-card,
    #product-posts-container .pc-card,
    #product-posts-container .feed-card,
    #product-posts-container .product-media-region,
    #product-posts-container .product-media-region-link,
    #product-posts-container .product-media,
    #product-posts-container .pc-media,
    #product-posts-container .product-image-single {
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .pc-carousel-track,
    #product-posts-container .pc-slide,
    #product-posts-container .image-slider-container,
    #product-posts-container .product-media-slider,
    #product-posts-container .image-slide {
        touch-action: pan-x pan-y !important;
        overscroll-behavior: auto !important;
        scroll-snap-align: start;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .pc-carousel-track,
    #product-posts-container .image-slider-container,
    #product-posts-container .product-media-slider {
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }

    #product-posts-container .product-media-region::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 65% !important;
        z-index: 5 !important;
        background: transparent !important;
        pointer-events: auto !important;
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    #product-posts-container .product-card video.vsl-enhanced-video,
    #product-posts-container .product-card video.vsl-cloudflare-video,
    #product-posts-container .product-card .vsl-card-stream-preview-shell,
    #product-posts-container .product-card .vsl-card-stream-preview-shell iframe,
    #product-posts-container .product-media-region iframe[data-vsl-cf-card-iframe="1"],
    #product-posts-container .pc-carousel iframe[data-vsl-cf-card-iframe="1"] {
        pointer-events: none !important;
    }
}

.vsl-isolated-stream-fullscreen[data-vsl-device-native-controls="1"] {
    top: var(--vsl-video-header-offset, var(--header-height, 64px)) !important;
    bottom: 0 !important;
    height: calc(100dvh - var(--vsl-video-header-offset, var(--header-height, 64px))) !important;
    min-height: calc(100dvh - var(--vsl-video-header-offset, var(--header-height, 64px))) !important;
    max-height: calc(100dvh - var(--vsl-video-header-offset, var(--header-height, 64px))) !important;
    z-index: 2147483000 !important;
}

.vsl-isolated-stream-fullscreen[data-vsl-device-native-controls="1"] .vsl-isolated-stream-player-layer {
    pointer-events: auto !important;
}

.vsl-isolated-stream-fullscreen[data-vsl-device-native-controls="1"] video.vsl-native-stream-video,
.vsl-isolated-stream-fullscreen[data-vsl-device-native-controls="1"] video[data-vsl-fullscreen-video="1"] {
    pointer-events: auto !important;
    z-index: 2147483644 !important;
    touch-action: manipulation !important;
}

.vsl-isolated-stream-fullscreen[data-vsl-device-native-controls="1"] .vsl-modal-stream-poster,
.vsl-isolated-stream-fullscreen[data-vsl-device-native-controls="1"] .vsl-isolated-stream-loader,
.vsl-isolated-stream-fullscreen[data-vsl-device-native-controls="1"] .vsl-isolated-stream-blur-bg {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}


html.vsl-isolated-video-fullscreen-root header,
html.vsl-isolated-video-fullscreen-root .main-header,
html.vsl-isolated-video-fullscreen-root .site-header,
html.vsl-isolated-video-fullscreen-root .app-header,
html.vsl-isolated-video-fullscreen-root .top-header,
html.vsl-isolated-video-fullscreen-root .navbar,
html.vsl-isolated-video-fullscreen-root .mobile-bar,
html.vsl-isolated-video-fullscreen-root .mobile-header,
html.vsl-isolated-video-fullscreen-root .desktop-header,
html.vsl-isolated-video-fullscreen-root .header-fintech-wrapper {
    position: relative;
    z-index: 2147483100 !important;
}


/* VSL r14: Cloudflare Stream modal videos must keep cover-fit while playing, paused, and buffering. */
#fullscreen-overlay video.vsl-native-stream-video.vsl-enhanced-video.vsl-cloudflare-video,
#fullscreen-overlay .vsl-modal-stream-player-shell video.vsl-native-stream-video.vsl-enhanced-video.vsl-cloudflare-video,
#fullscreen-overlay .vsl-modal-stream-player-shell[data-vsl-player-kind="stream-native"] video.vsl-native-stream-video.vsl-enhanced-video.vsl-cloudflare-video {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

/* VSL mobile carousel + modal scroll responsiveness fix.
   Allows horizontal card carousel gestures to update native scroll/dots, while
   keeping the left split-scroll shield vertical-only. Also restores native fast
   momentum scrolling inside the mobile product modal sheet. */
@media (max-width: 768px) {
    #product-posts-container .product-card,
    #product-posts-container .pc-card,
    #product-posts-container .feed-card,
    #product-posts-container .product-media-region,
    #product-posts-container .product-media-region-link,
    #product-posts-container .pc-carousel,
    #product-posts-container .image-slider-container,
    #product-posts-container .pc-carousel .pc-slide,
    #product-posts-container .image-slider-container .image-slide,
    #product-posts-container .pc-carousel img,
    #product-posts-container .pc-carousel video {
        touch-action: pan-x pan-y !important;
        overscroll-behavior: auto !important;
    }

    #product-posts-container .product-media-region::before {
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .image-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: auto;
    }

    #product-posts-container .pc-slide,
    #product-posts-container .image-slide {
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
    }
}

@media (max-width: 991px) {
    #fullscreen-overlay .modal-details-sidebar {
        touch-action: pan-y !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
    }

    #fullscreen-overlay .modal-details-sidebar[data-vsl-sheet-dragging="1"] {
        touch-action: none !important;
    }

    #fullscreen-overlay .modal-drag-indicator,
    #fullscreen-overlay .modal-drag-indicator .drag-bar {
        touch-action: none !important;
    }

    #fullscreen-overlay .modal-section-comments-wrapper,
    #fullscreen-overlay .modal-section-comments-wrapper .comments-list,
    #fullscreen-overlay .modal-section-comments-wrapper .comments-list-thread,
    #fullscreen-overlay .universal-comments-wrapper {
        touch-action: pan-y !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: auto !important;
    }
}


/* VSL mobile product-card mixed-media carousel correction.
   Product-card indicators must be real dots only: no extra pseudo-dot/thumb. */
@media (max-width: 768px) {
    #product-posts-container .product-card,
    #product-posts-container .pc-card,
    #product-posts-container .feed-card,
    #product-posts-container .product-media-region,
    #product-posts-container .product-media-region-link {
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .image-slider-container,
    #product-posts-container .pc-carousel .pc-slide,
    #product-posts-container .image-slider-container .image-slide,
    #product-posts-container .pc-carousel img,
    #product-posts-container .pc-carousel video,
    #product-posts-container .pc-carousel iframe[data-vsl-cf-card-iframe="1"],
    #product-posts-container .vsl-card-stream-preview-shell,
    #product-posts-container .vsl-card-stream-preview-poster {
        touch-action: pan-x pan-y !important;
        overscroll-behavior: auto !important;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .image-slider-container {
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: auto !important;
        overscroll-behavior-inline: contain !important;
        scrollbar-width: none !important;
    }

    #product-posts-container .pc-carousel::-webkit-scrollbar,
    #product-posts-container .image-slider-container::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    #product-posts-container .pc-slide,
    #product-posts-container .image-slide {
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }

    #product-posts-container .product-media-region .slider-indicators.pc-dots {
        --vsl-active-dot-offset: 6px;
        position: absolute !important;
        overflow: visible !important;
        pointer-events: none !important;
        isolation: isolate !important;
    }

    #product-posts-container .product-media-region .indicator-dot.pc-dot {
        position: relative !important;
        z-index: 1 !important;
        background-color: rgba(255, 255, 255, 0.48) !important;
        transform: none !important;
    }

    #product-posts-container .product-media-region .indicator-dot.pc-dot.active {
        background-color: #ffffff !important;
        transform: scale(1.25) !important;
        box-shadow: 0 0 4px rgba(0,0,0,0.35) !important;
    }
}


/* VSL fix: restore the mobile right-side vertical product-card slide strip.
   The left split shield keeps page/feed vertical scrolling, while the right-side
   dot bar and carousel surface are handled by JS for vertical slide selection and
   horizontal left/right swipes. */
@media (max-width: 768px) {
    #product-posts-container .product-media-region .slider-indicators.pc-dots {
        pointer-events: auto !important;
        touch-action: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }

    #product-posts-container .product-media-region .indicator-dot.pc-dot {
        pointer-events: auto !important;
        touch-action: none !important;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .pc-carousel-track,
    #product-posts-container .pc-carousel .pc-slide,
    #product-posts-container .image-slider-container,
    #product-posts-container .image-slider-container .image-slide {
        touch-action: none !important;
    }

    #product-posts-container .product-media-region::before {
        pointer-events: auto !important;
        touch-action: pan-y !important;
    }
}



/* VSL final mobile product-card right-rail slide fix.
   Keep the carousel as a programmatic horizontal flex scroller, but prevent
   finger-driven horizontal movement so right-side swipe-up gestures always stay
   on the vertical slide controller. */
@media (max-width: 991px) {
    #product-posts-container .product-media-region,
    #product-posts-container .product-media-region-view,
    #product-posts-container .product-media-region-link {
        touch-action: pan-y !important;
        overscroll-behavior: auto !important;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .image-slider-container,
    #product-posts-container .product-media-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: auto !important;
        scroll-snap-type: x mandatory !important;
        scroll-behavior: auto !important;
        scrollbar-width: none !important;
        overscroll-behavior-inline: contain !important;
        touch-action: pan-y !important;
    }

    #product-posts-container .pc-carousel::-webkit-scrollbar,
    #product-posts-container .image-slider-container::-webkit-scrollbar,
    #product-posts-container .product-media-slider::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    #product-posts-container .pc-carousel > .pc-slide,
    #product-posts-container .image-slider-container > .image-slide,
    #product-posts-container .product-media-slider > .image-slide,
    #product-posts-container .product-media-slider > .pc-slide {
        flex: 0 0 100% !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        scroll-snap-align: start !important;
        scroll-snap-stop: always !important;
        touch-action: pan-y !important;
    }

    #product-posts-container .product-media-region .slider-indicators.pc-dots,
    #product-posts-container .product-media-region .indicator-dot.pc-dot {
        pointer-events: auto !important;
        touch-action: none !important;
        -webkit-user-select: none !important;
        user-select: none !important;
    }


    #product-posts-container .product-media-region .slider-indicators.pc-dots::after {
        content: none !important;
        display: none !important;
    }

    #product-posts-container .pc-carousel.vsl-right-vertical-dragging,
    #product-posts-container .image-slider-container.vsl-right-vertical-dragging,
    #product-posts-container .product-media-slider.vsl-right-vertical-dragging {
        display: block !important;
        overflow: hidden !important;
        scroll-snap-type: none !important;
        touch-action: none !important;
    }
}



/* VSL mobile product-card horizontal gesture lock.
   Scope is deliberately limited to the /dev/products feed cards. The product
   modal/fullscreen sliders keep their existing gesture behavior. Card media can
   still be changed by the existing vertical right-rail controller, but a finger
   cannot pan/scroll the card horizontally. */
@media (max-width: 991px) {
    #product-posts-container .product-card,
    #product-posts-container .pc-card,
    #product-posts-container .feed-card,
    #product-posts-container .product-media-region,
    #product-posts-container .product-media-region-view,
    #product-posts-container .product-media-region-link {
        max-width: 100% !important;
        overflow-x: hidden !important;
        overscroll-behavior-x: none !important;
        touch-action: pan-y !important;
    }

    #product-posts-container .pc-carousel,
    #product-posts-container .pc-carousel-track,
    #product-posts-container .image-slider-container,
    #product-posts-container .product-media-slider,
    #product-posts-container .pc-carousel > .pc-slide,
    #product-posts-container .pc-carousel-track > .pc-slide,
    #product-posts-container .image-slider-container > .image-slide,
    #product-posts-container .product-media-slider > .image-slide,
    #product-posts-container .product-media-slider > .pc-slide {
        overflow-x: hidden !important;
        overscroll-behavior-x: none !important;
        touch-action: pan-y !important;
        scroll-snap-type: none !important;
        scroll-behavior: auto !important;
    }
}


/* ========================================================================
   VSL DESKTOP PRODUCT MODAL GUARD
   Match the approved u.php desktop product-modal reference exactly. The
   modal keeps its 1097 x 775 logical desktop geometry and the shared desktop
   scale is applied to the whole wrapper, so media, details, text and controls
   preserve the same 1920 x 1080 proportions instead of appearing zoomed in.
   ======================================================================== */
@media (hover: hover) and (pointer: fine) and (min-device-width: 992px) {
html.vsl-reference-desktop-active #fullscreen-overlay,
html.vsl-standard-desktop-boot #fullscreen-overlay,
html.vsl-standard-desktop-active #fullscreen-overlay,
body.vsl-adaptive-desktop-route #fullscreen-overlay {
    align-items: center !important;
}

html.vsl-reference-desktop-active #fullscreen-overlay .modal-content-wrapper,
html.vsl-standard-desktop-boot #fullscreen-overlay .modal-content-wrapper,
html.vsl-standard-desktop-active #fullscreen-overlay .modal-content-wrapper,
body.vsl-adaptive-desktop-route #fullscreen-overlay .modal-content-wrapper {
    position: relative !important;
    zoom: var(--vsl-desktop-scale, 1) !important;
    width: 100% !important;
    max-width: 1097px !important;
    height: 775px !important;
    max-height: 775px !important;
    flex-direction: row !important;
    padding-top: 0 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

html.vsl-reference-desktop-active #fullscreen-overlay .modal-img-container,
html.vsl-standard-desktop-boot #fullscreen-overlay .modal-img-container,
html.vsl-standard-desktop-active #fullscreen-overlay .modal-img-container,
body.vsl-adaptive-desktop-route #fullscreen-overlay .modal-img-container {
    height: auto !important;
    flex: 1.25 1 0% !important;
    max-width: none !important;
    overflow: hidden !important;
}

html.vsl-reference-desktop-active #fullscreen-overlay .modal-details-sidebar,
html.vsl-standard-desktop-boot #fullscreen-overlay .modal-details-sidebar,
html.vsl-standard-desktop-active #fullscreen-overlay .modal-details-sidebar,
body.vsl-adaptive-desktop-route #fullscreen-overlay .modal-details-sidebar {
    width: 360px !important;
    max-width: 360px !important;
    flex: 0 0 360px !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    touch-action: auto !important;
    transition: none !important;
}

html.vsl-reference-desktop-active #fullscreen-overlay .modal-drag-indicator,
html.vsl-standard-desktop-boot #fullscreen-overlay .modal-drag-indicator,
html.vsl-standard-desktop-active #fullscreen-overlay .modal-drag-indicator,
body.vsl-adaptive-desktop-route #fullscreen-overlay .modal-drag-indicator {
    display: none !important;
}

html.vsl-reference-desktop-active #fullscreen-overlay .modal-nav-btn,
html.vsl-standard-desktop-boot #fullscreen-overlay .modal-nav-btn,
html.vsl-standard-desktop-active #fullscreen-overlay .modal-nav-btn,
body.vsl-adaptive-desktop-route #fullscreen-overlay .modal-nav-btn {
    display: flex !important;
}

@media (min-width: 992px) {
    #fullscreen-overlay #modal-media-slider[data-total-slides="1"] #modal-slider-prev,
    #fullscreen-overlay #modal-media-slider[data-total-slides="1"] #modal-slider-next,
    #fullscreen-overlay #modal-slider-track[data-total-slides="1"] ~ #modal-slider-prev,
    #fullscreen-overlay #modal-slider-track[data-total-slides="1"] ~ #modal-slider-next {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

html.vsl-reference-desktop-active #fullscreen-overlay .modal-main-img,
html.vsl-standard-desktop-boot #fullscreen-overlay .modal-main-img,
html.vsl-standard-desktop-active #fullscreen-overlay .modal-main-img,
body.vsl-adaptive-desktop-route #fullscreen-overlay .modal-main-img {
    position: absolute !important;
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

html.vsl-reference-desktop-active #vsl-product-image-viewer,
html.vsl-standard-desktop-boot #vsl-product-image-viewer,
html.vsl-standard-desktop-active #vsl-product-image-viewer,
body.vsl-adaptive-desktop-route #vsl-product-image-viewer {
    display: none !important;
}
}
