.popup-banner[hidden] { display: none; }
.popup-banner {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    padding: 18px;
    pointer-events: none;
}
.popup-banner[data-position="center"] { place-items: center; }
.popup-banner[data-position="bottom-right"] { align-items: end; justify-items: end; }
.popup-banner[data-position="bottom-left"] { align-items: end; justify-items: start; }
.popup-banner__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 24, .58);
    opacity: 0;
    transition: opacity .24s ease;
    pointer-events: auto;
}
.popup-banner__card {
    position: relative;
    width: min(620px, calc(100vw - 32px));
    max-height: calc(100vh - 42px);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
    transform: scale(.94) translateY(14px);
    opacity: 0;
    transition: transform .28s ease, opacity .28s ease;
    pointer-events: auto;
}
.popup-banner.is-visible .popup-banner__backdrop { opacity: 1; }
.popup-banner.is-visible .popup-banner__card { opacity: 1; transform: scale(1) translateY(0); }
.popup-banner.is-closing .popup-banner__backdrop { opacity: 0; }
.popup-banner.is-closing .popup-banner__card { opacity: 0; transform: scale(.96) translateY(12px); }
.popup-banner__image-link { display: block; color: inherit; }
.popup-banner__image {
    width: 100%;
    max-height: min(72vh, 620px);
    object-fit: contain;
    background: #f7f2e8;
}
.popup-banner__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #173b3f;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}
.popup-banner__button {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #0f7c8c;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(15, 124, 140, .28);
}
@media (max-width: 640px) {
    .popup-banner { padding: 12px; }
    .popup-banner[data-position="bottom-right"],
    .popup-banner[data-position="bottom-left"] { align-items: end; justify-items: center; }
    .popup-banner__card { width: calc(100vw - 24px); border-radius: 14px; }
    .popup-banner__button { width: calc(100% - 32px); bottom: 14px; }
}
