/* HYPOXI Promo Popup Desktop v2.1.1 */

/* Keep the vertical scrollbar gutter reserved while the popup locks scrolling.
   This prevents the centered site/header from jumping horizontally on open/close. */
html {
    scrollbar-gutter: stable;
}

html.hypoxi-promo-open,
body.hypoxi-promo-open {
    overflow: hidden !important;
}

#hypoxi-promo-popup,
#hypoxi-promo-popup *,
#hypoxi-promo-popup *::before,
#hypoxi-promo-popup *::after {
    box-sizing: border-box;
}

#hypoxi-promo-popup {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999998 !important;

    width: 100% !important;
    height: 100% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 30px !important;

    background: rgba(5,18,24,0);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    overflow: hidden !important;
}

#hypoxi-promo-popup.is-visible {
    visibility: visible !important;
    pointer-events: auto !important;
}

#hypoxi-promo-popup .hypoxi-promo-dialog {
    position: relative !important;

    width: 1140px !important;
    height: 650px !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
    border: 0 !important;
    background: transparent !important;

    opacity: 0;
    transform: translate3d(0,100px,0);

    box-shadow:
        0 55px 150px rgba(0,0,0,.58),
        0 20px 55px rgba(0,0,0,.34) !important;

    will-change: transform, opacity;
    isolation: isolate;
}

/* WHITE X — same hover mechanics as consultation modal */
#hypoxi-promo-popup .hypoxi-promo-close {
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 100 !important;

    width: 48px !important;
    height: 48px !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    cursor: pointer !important;
    opacity: .8;

    transform: rotate(0deg);
    transition:
        transform .55s cubic-bezier(.16,1,.3,1),
        opacity .25s ease !important;

    appearance: none !important;
    -webkit-appearance: none !important;
}

#hypoxi-promo-popup .hypoxi-promo-close::before,
#hypoxi-promo-popup .hypoxi-promo-close::after {
    content: "" !important;

    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    width: 34px !important;
    height: 3px !important;

    background: #ffffff !important;
    border-radius: 999px !important;
    transform-origin: center !important;
}

#hypoxi-promo-popup .hypoxi-promo-close::before {
    transform: translate(-50%,-50%) rotate(45deg) !important;
}

#hypoxi-promo-popup .hypoxi-promo-close::after {
    transform: translate(-50%,-50%) rotate(-45deg) !important;
}

#hypoxi-promo-popup .hypoxi-promo-close:hover {
    opacity: 1;
    transform: rotate(180deg);
}

#hypoxi-promo-popup .hypoxi-promo-viewport,
#hypoxi-promo-popup .hypoxi-promo-track {
    position: relative !important;
    width: 1140px !important;
    height: 650px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#hypoxi-promo-popup .hypoxi-promo-slide {
    position: absolute !important;
    inset: 0 !important;

    width: 1140px !important;
    height: 650px !important;

    margin: 0 !important;
    padding: 0 !important;

    visibility: hidden;
    transform: translate3d(0,100%,0);
    will-change: transform;
}

#hypoxi-promo-popup .hypoxi-promo-slide.is-active {
    visibility: visible !important;
    transform: translate3d(0,0,0);
}

/* Exact Elementor banner copied from Promotions.
   Do NOT override its internal Elementor geometry; the source page CSS now
   travels with it and controls backgrounds, child positioning and sizing. */
#hypoxi-promo-popup .hypoxi-promo-slide > [id] {
    margin: 0 !important;
}

/* Keep only the popup canvas fixed at the agreed desktop artwork size. */
#hypoxi-promo-popup .hypoxi-promo-slide {
    overflow: hidden !important;
}


/* Mobile popup — 650×1000 source banners, scaled to fit the viewport. */
@media (max-width: 1024px) {
    #hypoxi-promo-popup {
        display: flex !important;
        padding: 14px !important;
    }

    #hypoxi-promo-popup .hypoxi-promo-dialog,
    #hypoxi-promo-popup .hypoxi-promo-viewport,
    #hypoxi-promo-popup .hypoxi-promo-track,
    #hypoxi-promo-popup .hypoxi-promo-slide {
        width: min(calc(100vw - 28px), calc((100vh - 28px) * .65)) !important;
        height: min(calc((100vw - 28px) / .65), calc(100vh - 28px)) !important;
        max-width: 650px !important;
        max-height: 1000px !important;
    }

    #hypoxi-promo-popup .hypoxi-promo-desktop { display: none !important; }
    #hypoxi-promo-popup .hypoxi-promo-mobile { display: block; }

    #hypoxi-promo-popup .hypoxi-promo-slide {
        transform: translate3d(-100%,0,0);
    }

    #hypoxi-promo-popup .hypoxi-promo-slide.is-active {
        transform: translate3d(0,0,0);
    }

    #hypoxi-promo-popup .hypoxi-promo-close {
        top: 10px !important;
        right: 10px !important;
        width: 42px !important;
        height: 42px !important;
    }
}

@media (min-width: 1025px) {
    #hypoxi-promo-popup .hypoxi-promo-mobile { display: none !important; }
}
