/* S-Class .cdlg is the fixed frame and .dsc is the animated interior scroller. */
body[data-drev-v8~="quickview"] #popup_iframe_wrapper > .fast_view_frame.jqmWindow[data-drev8-quick] {
    --drev8-qv-radius:20px;
    --drev8-qv-gallery-height:min(46dvh,520px);
    --drev8-qv-height:min(92dvh,calc(100dvh - 32px));
    position:fixed!important;
    inset:50% auto auto 50%!important;
    width:min(calc(100vw - 32px),var(--drev8-qv-width,1120px))!important;
    min-width:0!important;
    max-width:none!important;
    max-height:var(--drev8-qv-height)!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
    transform:translate(-50%,-50%)!important;
    border:0;
    border-radius:var(--drev8-qv-radius);
    background:transparent;
    box-shadow:none;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper > .fast_view_frame.jqmWindow[data-drev8-quick] .drev8-quick-scroll {
    position:relative;
    width:100%;
    min-width:0;
    height:auto;
    max-height:var(--drev8-qv-height);
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
    scrollbar-width:thin;
    scrollbar-color:#696d60 #efeee8;
    background:#fffdf7;
    border:1px solid #eff2e76e;
    border-radius:var(--drev8-qv-radius);
    box-shadow:0 24px 80px #10150fb3,0 0 0 1px #f6f6ec2b;
    animation:drev8-quick-in .4s cubic-bezier(.16,1,.3,1) both;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper > .fast_view_frame.jqmWindow[data-drev8-quick][data-drev8-quick-closing] .drev8-quick-scroll {
    animation:none;
}

@keyframes drev8-quick-in {
    from {opacity:0;transform:translateY(20px) scale(.96)}
    to {opacity:1;transform:none}
}

body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick] .drev8-quick-scroll::-webkit-scrollbar {width:6px}
body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick] .drev8-quick-scroll::-webkit-scrollbar-track {background:#efeee8;margin:12px 0}
body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick] .drev8-quick-scroll::-webkit-scrollbar-thumb {background:#696d60;border-radius:3px}
body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick] .drev8-quick-scroll::-webkit-scrollbar-thumb:hover {background:#484b40}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) .jqmOverlay:not(.mobp) {
    background:#141b18;
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
}

body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick-overflow]:not(.wait_css_loading)::after {
    position:absolute;
    content:'';
    inset:auto 6px 0 0;
    height:22px;
    pointer-events:none;
    border-radius:0 0 var(--drev8-qv-radius) var(--drev8-qv-radius);
    background:linear-gradient(transparent,#fffdf7);
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] :is(.fastview-product__info,.fastview-product__image) {
    height:auto;
    max-height:none;
    min-width:0;
    overflow:visible;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] .fastview-product__image > .product-detail-gallery {
    max-height:none;
    height:auto;
    min-height:0;
}

/* Aspro's no-thumbnails variant needs a measurable slide width before Swiper initializes. */
body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick]
 .detail-gallery-big--no-thumbs > .product-detail-gallery__container {
    display:block!important;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick]
 .detail-gallery-big--no-thumbs .detail-gallery-big-slider-main {
    box-sizing:border-box;
    width:100%!important;
    min-width:100%!important;
    max-width:100%!important;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] .fastview-product__image
 :is(.detail-gallery-big-slider-main__inner,.detail-gallery-big-slider-main__ratio-wrap,.detail-gallery-big-slider-main__ratio-inner,.detail-gallery-big-slider) {
    width:100%;
    min-height:0;
    height:var(--drev8-qv-gallery-height);
    max-height:var(--drev8-qv-gallery-height);
    aspect-ratio:auto;
    padding-block:0;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick]
 .detail-gallery-big--no-thumbs :is(.detail-gallery-big-slider-main__inner,.detail-gallery-big-slider-main__ratio-wrap,.detail-gallery-big-slider-main__ratio-inner,.detail-gallery-big-slider) {
    height:var(--drev8-qv-gallery-height)!important;
    max-height:var(--drev8-qv-gallery-height)!important;
    min-height:0!important;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick]
 .detail-gallery-big__link {width:100%;height:var(--drev8-qv-gallery-height)}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] .detail-gallery-big__picture {
    max-width:100%;
    max-height:100%;
    height:100%;
    object-fit:contain;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper > .fast_view_frame.jqmWindow[data-drev8-quick]:focus {
    outline:0;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] .drev8-quick-scroll > .jqmClose {
    position:sticky;
    z-index:12;
    top:10px;
    right:10px;
    float:right;
    width:44px;
    height:44px;
    margin:10px 10px -54px 0;
    isolation:isolate;
    border-radius:50%;
    background-color:#fffdf7;
    box-shadow:0 3px 12px #212b192e;
}

body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick] :is(.jqmClose,a,button,[tabindex]):focus-visible {outline:2px solid #415045;outline-offset:2px}
body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick] .drev8-quick-error {position:relative;z-index:12;margin:50px 20px 20px;padding:16px;background:#fffdf7;color:#292e25}

/* The neighbouring product arrows are native and remain in the jqModal frame's shadow. */
body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) {
    --drev8-qv-width:1120px;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) .navigation-wrapper-fast-view {
    position:fixed;
    z-index:5;
    inset:50% auto auto 50%;
    transform:translate(-50%,-50%);
    width:min(calc(100vw - 12px),calc(var(--drev8-qv-width) + 116px));
    max-width:none;
    display:flex;
    justify-content:space-between;
    pointer-events:none;
}

body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) .fast-view-nav {
    position:relative;
    inset:auto;
    transform:none;
    min-width:44px;
    min-height:44px;
    margin:0;
    pointer-events:auto;
}

@media (min-width:1920px) {
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) {--drev8-qv-width:1400px}
}
@media (min-width:2560px) {
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) {--drev8-qv-width:1600px}
}
@media (min-width:3440px) {
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) {--drev8-qv-width:1800px}
}

@media (max-width:767px) {
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper > .fast_view_frame.jqmWindow[data-drev8-quick] {
        --drev8-qv-height:calc(100dvh - max(16px,env(safe-area-inset-top) + env(safe-area-inset-bottom) + 12px));
        --drev8-qv-radius:16px;
        --drev8-qv-gallery-height:min(39dvh,370px);
        width:calc(100vw - 16px)!important;
    }
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper > .fast_view_frame.jqmWindow[data-drev8-quick].show[style*="display: block"] {display:block!important}
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] .fastview-product {display:block;width:100%;min-width:0}
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] :is(.fastview-product__info,.fastview-product__image) {width:100%;padding:12px 12px 16px}
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper .fast_view_frame[data-drev8-quick] .prices_item_block {width:100%;min-width:0;padding:0}
    body[data-drev-v8~="quickview"] .fast_view_frame[data-drev8-quick] .product-detail-gallery img {max-width:100%;max-height:36dvh;object-fit:contain}
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper:has(> .fast_view_frame[data-drev8-quick].show) .navigation-wrapper-fast-view {display:none}
}

@media (prefers-reduced-motion:reduce) {
    body[data-drev-v8~="quickview"] #popup_iframe_wrapper > .fast_view_frame.jqmWindow[data-drev8-quick] .drev8-quick-scroll {animation:none;scroll-behavior:auto}
}


:is(.wave1-quick-scroll, .drev8-quick-scroll) { scrollbar-width: none !important; scrollbar-gutter: auto !important; }
:is(.wave1-quick-scroll, .drev8-quick-scroll)::-webkit-scrollbar { display: none; }
.drev8-quick-scroll { border: 0 !important; }

.drev-quick-scroll-indicator {
    position: absolute;
    z-index: 20;
    inset: 10px 5px auto auto;
    width: 4px;
    border-radius: 999px;
    opacity: 0;
    background: rgb(40 37 31 / 70%);
    box-shadow: 0 0 0 1px rgb(255 252 246 / 44%);
    pointer-events: none;
    transition: opacity 160ms ease;
}
.drev-quick-scroll-indicator.is-scrolling { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .drev-quick-scroll-indicator { transition: none; }
}
