/*
 * Phase 11 — native-layout and usability refinements.
 * Presentation only; no commerce or marketplace rules are duplicated here.
 */

:root{
    --bupiz-p11-viewer-bg:#0b1220;
    --bupiz-p11-viewer-panel:#111c2e;
    --bupiz-p11-viewer-line:rgba(255,255,255,.15);
    --bupiz-p11-viewer-muted:#b9c3d3;
    --bupiz-p11-accent:#ff8400;
}

/* ================================================================
   PRODUCT: explicit full-image viewer and cleaner responsive layout
   ================================================================ */
body.bupiz-p11-product-refined .woocommerce-product-gallery{
    isolation:isolate;
}

.bupiz-p11-zoom-trigger{
    position:absolute;
    right:14px;
    bottom:14px;
    z-index:45;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    min-height:40px;
    padding:0 13px;
    border:1px solid rgba(20,32,56,.16);
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#1d2939;
    box-shadow:0 10px 28px rgba(15,23,42,.15);
    backdrop-filter:blur(10px);
    font:800 11px/1.1 inherit;
    cursor:pointer;
    transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.bupiz-p11-zoom-trigger::before{
    content:"";
    width:15px;
    height:15px;
    flex:none;
    border:2px solid currentColor;
    border-radius:50%;
    box-shadow:7px 7px 0 -5px currentColor;
}
.bupiz-p11-zoom-trigger:hover{
    transform:translateY(-1px);
    border-color:#ffb471;
    box-shadow:0 14px 32px rgba(15,23,42,.2);
}
.bupiz-p11-gallery-counter{
    position:absolute;
    left:14px;
    bottom:14px;
    z-index:44;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:46px;
    min-height:30px;
    padding:0 10px;
    border-radius:999px;
    background:rgba(20,32,56,.82);
    color:#fff;
    font-size:10px;
    font-weight:850;
    letter-spacing:.04em;
    backdrop-filter:blur(9px);
    pointer-events:none;
}

.bupiz-p11-viewer{
    position:fixed;
    z-index:100500;
    inset:0;
    display:none;
    background:rgba(5,10,18,.92);
    color:#fff;
    opacity:0;
    transition:opacity .18s ease;
}
.bupiz-p11-viewer.is-open{display:grid;opacity:1;}
.bupiz-p11-viewer__backdrop{position:absolute;inset:0;border:0;background:transparent;cursor:zoom-out;}
.bupiz-p11-viewer__dialog{
    position:relative;
    z-index:2;
    display:grid;
    grid-template-columns:96px minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);
    width:min(1500px,calc(100% - 40px));
    height:min(900px,calc(100% - 40px));
    margin:auto;
    overflow:hidden;
    border:1px solid var(--bupiz-p11-viewer-line);
    border-radius:22px;
    background:var(--bupiz-p11-viewer-bg);
    box-shadow:0 30px 90px rgba(0,0,0,.48);
}
.bupiz-p11-viewer__toolbar{
    grid-column:1 / -1;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:62px;
    padding:10px 12px 10px 18px;
    border-bottom:1px solid var(--bupiz-p11-viewer-line);
    background:var(--bupiz-p11-viewer-panel);
}
.bupiz-p11-viewer__identity{min-width:0;display:flex;align-items:baseline;gap:10px;}
.bupiz-p11-viewer__identity strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.bupiz-p11-viewer__identity span{color:var(--bupiz-p11-viewer-muted);font-size:10px;white-space:nowrap;}
.bupiz-p11-viewer__actions{display:flex;align-items:center;gap:7px;}
.bupiz-p11-viewer__actions button,
.bupiz-p11-viewer__nav{
    display:grid;
    place-items:center;
    min-width:38px;
    height:38px;
    padding:0 10px;
    border:1px solid var(--bupiz-p11-viewer-line);
    border-radius:11px;
    background:rgba(255,255,255,.07);
    color:#fff;
    font:800 15px/1 inherit;
    cursor:pointer;
}
.bupiz-p11-viewer__actions button:hover,
.bupiz-p11-viewer__nav:hover{background:rgba(255,255,255,.14);}
.bupiz-p11-viewer__actions button:disabled{opacity:.38;cursor:not-allowed;}
.bupiz-p11-viewer__zoom-level{min-width:48px;text-align:center;color:var(--bupiz-p11-viewer-muted);font-size:10px;font-weight:800;}
.bupiz-p11-viewer__close{font-size:23px!important;}
.bupiz-p11-viewer__thumbs{
    grid-column:1;
    grid-row:2;
    display:flex;
    flex-direction:column;
    gap:9px;
    padding:12px;
    overflow:auto;
    border-right:1px solid var(--bupiz-p11-viewer-line);
    background:var(--bupiz-p11-viewer-panel);
    scrollbar-width:thin;
}
.bupiz-p11-viewer__thumb{
    position:relative;
    flex:0 0 78px;
    width:70px;
    height:78px;
    padding:0;
    overflow:hidden;
    border:2px solid transparent;
    border-radius:11px;
    background:#fff;
    cursor:pointer;
}
.bupiz-p11-viewer__thumb img{width:100%;height:100%;display:block;object-fit:cover;}
.bupiz-p11-viewer__thumb.is-active{border-color:var(--bupiz-p11-accent);box-shadow:0 0 0 2px rgba(255,132,0,.22);}
.bupiz-p11-viewer__stage{
    position:relative;
    grid-column:2;
    grid-row:2;
    min-width:0;
    min-height:0;
    display:grid;
    place-items:center;
    overflow:hidden;
    background:
        radial-gradient(circle at center,rgba(255,255,255,.06),transparent 58%),
        #080e19;
    touch-action:none;
}
.bupiz-p11-viewer__image{
    display:block;
    max-width:92%;
    max-height:92%;
    width:auto;
    height:auto;
    object-fit:contain;
    transform:translate3d(0,0,0) scale(1);
    transform-origin:center;
    transition:transform .12s ease;
    user-select:none;
    -webkit-user-drag:none;
    cursor:zoom-in;
}
.bupiz-p11-viewer__stage.is-zoomed .bupiz-p11-viewer__image{cursor:grab;}
.bupiz-p11-viewer__stage.is-dragging .bupiz-p11-viewer__image{cursor:grabbing;transition:none;}
.bupiz-p11-viewer__nav{
    position:absolute;
    z-index:4;
    top:50%;
    width:46px;
    height:52px;
    transform:translateY(-50%);
    border-radius:15px;
    background:rgba(17,28,46,.84);
    font-size:28px;
}
.bupiz-p11-viewer__nav--prev{left:18px;}
.bupiz-p11-viewer__nav--next{right:18px;}
.bupiz-p11-viewer__hint{
    position:absolute;
    left:50%;
    bottom:16px;
    transform:translateX(-50%);
    padding:7px 11px;
    border-radius:999px;
    background:rgba(17,28,46,.78);
    color:var(--bupiz-p11-viewer-muted);
    font-size:9px;
    pointer-events:none;
}
html.bupiz-p11-viewer-open,
body.bupiz-p11-viewer-open{overflow:hidden!important;}

@media (min-width:992px){
    body.bupiz-p11-product-refined .woocommerce-product-gallery__image a,
    body.bupiz-p11-product-refined .bupiz-controlled-slide img,
    body.bupiz-p11-product-refined .flex-active-slide img{cursor:zoom-in;}
}

@media (max-width:991px){
    .bupiz-p11-viewer__dialog{
        grid-template-columns:1fr;
        grid-template-rows:auto minmax(0,1fr) 86px;
        width:100%;
        height:100%;
        border:0;
        border-radius:0;
    }
    .bupiz-p11-viewer__toolbar{grid-column:1;min-height:56px;padding:8px 9px 8px 13px;}
    .bupiz-p11-viewer__identity strong{max-width:150px;}
    .bupiz-p11-viewer__actions .bupiz-p11-desktop-only{display:none;}
    .bupiz-p11-viewer__stage{grid-column:1;grid-row:2;}
    .bupiz-p11-viewer__thumbs{
        grid-column:1;
        grid-row:3;
        flex-direction:row;
        padding:8px 10px;
        border-top:1px solid var(--bupiz-p11-viewer-line);
        border-right:0;
        overflow-x:auto;
        overflow-y:hidden;
    }
    .bupiz-p11-viewer__thumb{flex-basis:62px;width:62px;height:68px;}
    .bupiz-p11-viewer__nav{width:40px;height:46px;font-size:24px;}
    .bupiz-p11-viewer__nav--prev{left:8px}.bupiz-p11-viewer__nav--next{right:8px}
    .bupiz-p11-viewer__hint{bottom:10px;}
}

@media (max-width:767px){
    body.bupiz-p11-product-refined .bupiz-p9b-product-page{padding-top:3px;}
    body.bupiz-p11-product-refined .bupiz-p9b-product-shell,
    body.bupiz-p11-product-refined.single-product div.product.bupiz-p9b-product-shell{
        width:min(100% - 12px,760px)!important;
    }
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-product-shell .bupiz-p9b-product-head{
        gap:7px!important;
        padding:6px!important;
        border-radius:15px!important;
        box-shadow:0 8px 24px rgba(15,23,42,.06)!important;
    }
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-product-head>.summary,
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary{
        padding:12px 10px 8px!important;
        border-radius:13px!important;
    }
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .product_title{
        margin-bottom:6px!important;
        font-size:20px!important;
        line-height:1.2!important;
    }
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary p.price,
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .price{margin-bottom:10px!important;}
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .price ins .woocommerce-Price-amount,
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .price>.woocommerce-Price-amount{font-size:24px!important;}
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary table.variations{margin-bottom:8px!important;}
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary table.variations tr{padding:8px 0!important;}
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .bupiz-mobile-color-thumbs,
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .bupiz-mobile-size-buttons{
        flex-wrap:nowrap!important;
        overflow-x:auto;
        padding-bottom:4px;
        scrollbar-width:none;
    }
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .bupiz-mobile-color-thumbs::-webkit-scrollbar,
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .bupiz-mobile-size-buttons::-webkit-scrollbar{display:none;}
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .bupiz-mobile-color-thumb,
    body.bupiz-p11-product-refined.single-product .bupiz-p9b-summary .bupiz-mobile-size-btn{flex:0 0 auto;}
    .bupiz-p11-zoom-trigger{right:9px;bottom:9px;min-height:36px;padding:0 11px;font-size:10px;}
    .bupiz-p11-gallery-counter{left:9px;bottom:9px;min-height:27px;font-size:9px;}
}

/* ================================================================
   CATALOGUE: reliable header-aware sticky desktop filter rail
   ================================================================ */
@media (min-width:769px){
    body.bupiz-p11-catalog-refined .bupiz-p9-products,
    body.bupiz-p11-catalog-refined .bupiz-p9-products>.bupiz-p9-container,
    body.bupiz-p11-catalog-refined .bupiz-p7d-catalog,
    body.bupiz-p11-catalog-refined .bupiz-p7d-results{
        overflow:visible!important;
        contain:none!important;
    }
    body.bupiz-p11-catalog-refined .bupiz-p7d-catalog{align-items:start!important;}
    body.bupiz-p11-catalog-refined .bupiz-p7d-filters{
        position:sticky!important;
        top:var(--bupiz-p7d-sticky-top,18px)!important;
        height:max-content!important;
        max-height:calc(100dvh - var(--bupiz-p7d-sticky-top,18px) - 14px)!important;
        align-self:start!important;
        transform:translateZ(0);
    }
    body.bupiz-p11-catalog-refined .bupiz-p7d-filters__sheet{
        max-height:inherit!important;
    }
    body.bupiz-p11-catalog-refined .bupiz-p7d-toolbar{
        top:var(--bupiz-p7d-toolbar-top,var(--bupiz-p7d-sticky-top,18px))!important;
    }
}

/* ================================================================
   MY ACCOUNT: compact spacing without changing endpoint behaviour
   ================================================================ */
@media (min-width:992px){
    body.bupiz-p11-account-refined.bupiz-native-account .bupiz-p9d-container{
        width:min(1400px,calc(100% - 40px));
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-hero{padding:24px 0;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-avatar{
        flex-basis:58px;width:58px;height:58px;border-radius:17px;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-account-body{
        padding-top:20px;padding-bottom:48px;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-account-body>.woocommerce{
        grid-template-columns:252px minmax(0,1fr)!important;
        gap:20px!important;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .woocommerce-MyAccount-navigation{
        width:252px!important;min-width:252px!important;max-width:252px!important;
        padding:11px!important;border-radius:17px!important;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .woocommerce-MyAccount-navigation li a{
        min-height:42px!important;padding:6px 8px!important;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-dashboard,
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-dashboard-side{
        gap:14px;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-welcome-card{
        min-height:132px;padding:22px 24px;border-radius:18px;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-stats{gap:10px;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-stat-card{
        padding:14px;border-radius:15px;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-dashboard-grid{gap:14px;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-section-head{
        margin-bottom:14px;padding:18px 20px;border-radius:17px;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-order-list{gap:11px;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-order-card{border-radius:16px;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-order-card__body{
        grid-template-columns:minmax(0,1fr) minmax(260px,315px);gap:16px;padding:15px;
    }
}

@media (min-width:992px) and (max-width:1180px){
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-account-body>.woocommerce{
        grid-template-columns:226px minmax(0,1fr)!important;
        gap:15px!important;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .woocommerce-MyAccount-navigation{
        width:226px!important;min-width:226px!important;max-width:226px!important;
    }
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-dashboard-grid{grid-template-columns:1fr;}
}

@media (max-width:767px){
    body.bupiz-p11-account-refined.bupiz-native-account .bupiz-p9d-container{width:min(100% - 18px,1460px);}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-hero{padding:18px 0;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-account-body{padding-top:12px;padding-bottom:34px;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-welcome-card{padding:18px;border-radius:16px;}
    body.bupiz-p11-account-refined.bupiz-account-authenticated .bupiz-p9d-section-head{padding:15px;border-radius:15px;}
}

/* ================================================================
   HOMEPAGE: Customizer-driven sizing, colours and image positioning
   ================================================================ */
body.bupiz-phase8-home .bupiz-p8-home{
    --p8-hero-min:560px;
    --p8-overlay-strength:1;
    --p8-image-position:center top;
}
body.bupiz-phase8-home .bupiz-p8-hero__inner{min-height:var(--p8-hero-min)!important;}
body.bupiz-phase8-home .bupiz-p8-hero__inner::before{opacity:var(--p8-overlay-strength);}
body.bupiz-phase8-home .bupiz-p8-hero__media img{object-position:var(--p8-image-position);}
body.bupiz-phase8-home .bupiz-p8-hero__signature span:nth-child(1){font-size:var(--p8-signature-one,18px);}
body.bupiz-phase8-home .bupiz-p8-hero__signature span:nth-child(2){font-size:var(--p8-signature-two,25px);}
body.bupiz-phase8-home .bupiz-p8-hero__signature span:nth-child(3){font-size:var(--p8-signature-three,34px);}
body.bupiz-phase8-home .bupiz-p8-editorial-card__kicker{color:var(--p8-pink);}

@media (max-width:767px){
    body.bupiz-phase8-home .bupiz-p8-hero__inner{min-height:auto!important;}
}

@media (prefers-reduced-motion:reduce){
    .bupiz-p11-viewer,
    .bupiz-p11-viewer__image,
    .bupiz-p11-zoom-trigger{transition:none!important;}
}

/* ================================================================
   PHASE 11-R1 — MOBILE MEDIA INTERACTION
   Pinch/double-tap product zoom and screen-contained review photos.
   ================================================================ */
@media (max-width:991px){
    .bupiz-p11-viewer__toolbar{
        gap:6px;
        padding-left:max(10px,env(safe-area-inset-left));
        padding-right:max(8px,env(safe-area-inset-right));
    }
    .bupiz-p11-viewer__identity{gap:5px;max-width:92px;}
    .bupiz-p11-viewer__identity strong{
        max-width:58px;
        font-size:10px;
    }
    .bupiz-p11-viewer__identity span{font-size:9px;}
    .bupiz-p11-viewer__actions{gap:4px;}
    .bupiz-p11-viewer__actions button{
        display:grid!important;
        min-width:34px;
        width:34px;
        height:34px;
        padding:0;
        border-radius:10px;
        font-size:14px;
    }
    .bupiz-p11-viewer__actions [data-p11-zoom-reset]{
        width:39px;
        font-size:9px;
    }
    .bupiz-p11-viewer__zoom-level{
        display:block!important;
        min-width:38px;
        font-size:9px;
    }
    .bupiz-p11-viewer__close{font-size:21px!important;}
    .bupiz-p11-viewer__stage{
        touch-action:none!important;
        overscroll-behavior:none;
        -webkit-user-select:none;
        user-select:none;
    }
    .bupiz-p11-viewer__image{
        max-width:100%;
        max-height:100%;
        touch-action:none;
        will-change:transform;
    }
    .bupiz-p11-viewer__stage.is-pinching .bupiz-p11-viewer__image,
    .bupiz-p11-viewer__stage.is-dragging .bupiz-p11-viewer__image{
        transition:none!important;
    }
    .bupiz-p11-viewer__hint{
        width:max-content;
        max-width:calc(100% - 96px);
        text-align:center;
        white-space:normal;
        line-height:1.25;
    }
}

@media (max-width:420px){
    .bupiz-p11-viewer__identity strong{display:none;}
    .bupiz-p11-viewer__identity{max-width:46px;}
    .bupiz-p11-viewer__actions button{min-width:32px;width:32px;height:32px;}
    .bupiz-p11-viewer__zoom-level{min-width:34px;}
}

@media (max-width:767px){
    /* Product image opens the dedicated viewer from a direct tap. */
    body.bupiz-p11-product-refined .woocommerce-product-gallery__image img,
    body.bupiz-p11-product-refined .bupiz-controlled-slide img,
    body.bupiz-p11-product-refined .flex-active-slide img{cursor:zoom-in;}

    /* Review-photo rows stay within the viewport and swipe horizontally. */
    .bupiz-customer-photos{
        min-width:0;
        overflow:hidden;
    }
    .bupiz-customer-photos__rail{
        width:calc(100% + 12px);
        max-width:none;
        margin-right:-12px;
        padding:2px 12px 10px 1px;
        flex-wrap:nowrap!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        scroll-snap-type:x mandatory;
        scroll-padding-inline:1px 12px;
        touch-action:pan-x;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .bupiz-customer-photos__rail::-webkit-scrollbar{display:none;}
    .bupiz-customer-photo{
        flex:0 0 clamp(82px,24vw,104px)!important;
        width:clamp(82px,24vw,104px)!important;
        height:clamp(104px,31vw,132px)!important;
        scroll-snap-align:start;
        scroll-snap-stop:normal;
    }
    .bupiz-review-images{
        width:100%;
        max-width:100%;
        flex-wrap:nowrap!important;
        gap:8px!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        overscroll-behavior-inline:contain;
        scroll-snap-type:x proximity;
        touch-action:pan-x;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
        padding:2px 2px 8px!important;
    }
    .bupiz-review-images::-webkit-scrollbar{display:none;}
    .bupiz-review-image-button{
        flex:0 0 74px!important;
        width:74px!important;
        height:94px!important;
        scroll-snap-align:start;
    }

    /* Full-screen customer-photo viewer: one card per screen, horizontal swipe. */
    .bupiz-review-gallery-mobile,
    .bupiz-review-gallery-mobile-feed{
        min-width:0;
        max-width:100vw;
    }
    .bupiz-review-gallery-mobile-feed,
    .bupiz-review-gallery-mobile-feed.is-p11-horizontal{
        display:flex!important;
        flex-flow:row nowrap!important;
        width:100vw!important;
        height:100dvh!important;
        overflow-x:auto!important;
        overflow-y:hidden!important;
        overscroll-behavior-x:contain;
        overscroll-behavior-y:none;
        scroll-snap-type:x mandatory!important;
        scroll-behavior:smooth;
        touch-action:pan-x;
        -webkit-overflow-scrolling:touch;
        scrollbar-width:none;
    }
    .bupiz-review-gallery-mobile-slide{
        position:relative;
        flex:0 0 100vw!important;
        width:100vw!important;
        min-width:100vw!important;
        height:100dvh!important;
        min-height:100dvh!important;
        overflow:hidden;
        scroll-snap-align:start!important;
        scroll-snap-stop:always;
    }
    .bupiz-review-gallery-mobile-image{
        width:100vw!important;
        height:calc(100dvh - min(250px,34dvh))!important;
        min-height:0!important;
        padding:max(55px,calc(env(safe-area-inset-top) + 45px)) 0 8px!important;
    }
    .bupiz-review-gallery-mobile-image img{
        width:100%!important;
        height:100%!important;
        max-width:100vw!important;
        max-height:100%!important;
        object-fit:contain!important;
    }
    .bupiz-review-gallery-mobile-copy{
        position:absolute!important;
        left:0!important;
        right:0!important;
        bottom:0!important;
        height:min(250px,34dvh)!important;
        max-height:min(250px,34dvh)!important;
        overflow-y:auto!important;
        overscroll-behavior:contain;
        padding:20px 18px calc(18px + env(safe-area-inset-bottom))!important;
        background:linear-gradient(180deg,rgba(8,13,24,.88) 0%,#080d18 35%,#080d18 100%)!important;
        -webkit-overflow-scrolling:touch;
    }
    .bupiz-review-gallery-mobile-progress{
        position:sticky;
        top:0;
        z-index:2;
        margin:-5px 0 9px;
        padding:5px 0;
        background:#080d18;
    }
    .bupiz-review-gallery-close{
        z-index:20!important;
        top:max(10px,env(safe-area-inset-top))!important;
        right:max(10px,env(safe-area-inset-right))!important;
    }
}
