/* PREDWE Promo Popup */
.predwe-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.predwe-popup.is-visible {
    display: flex;
}

.predwe-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 2, 20, 0.78);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.predwe-popup__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    max-height: calc(100dvh - 24px);
    margin: 0;
}

.predwe-popup__link {
    display: block;
    width: 100%;
    max-height: calc(100dvh - 24px);
    line-height: 0;
    outline-offset: 4px;
    -webkit-tap-highlight-color: transparent;
}

.predwe-popup__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 24px);
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    border: 0;
}

/* Desktop */
@media (min-width: 768px) {
    .predwe-popup {
        padding: 24px;
    }

    .predwe-popup__dialog,
    .predwe-popup__link {
        max-height: calc(100dvh - 48px);
    }

    .predwe-popup__image {
        max-height: calc(100dvh - 48px);
    }
}

/* Small phones */
@media (max-width: 360px) {
    .predwe-popup {
        padding: 6px;
    }

    .predwe-popup__dialog,
    .predwe-popup__link,
    .predwe-popup__image {
        max-height: calc(100dvh - 12px);
    }
}

body.predwe-popup-open {
    overflow: hidden;
}
