/* AMX Popup Banner — namespaced under .amx-popup-banner-* */

.amx-popup-banner-noscroll {
    overflow: hidden;
}

.amx-popup-banner-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity ease-in-out 300ms, visibility ease-in-out 300ms;
}

.amx-popup-banner-backdrop.hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.amx-popup-banner-modal {
    position: relative;
    border-radius: 16px;
    background-color: #fff;
    width: min(90vw, 600px);
    aspect-ratio: 1 / 1;
    max-width: 600px;
    max-height: 600px;
    transition: all ease-in-out 300ms;
}

.amx-popup-banner-backdrop.hidden .amx-popup-banner-modal {
    opacity: 0;
    transform: scale(0.8);
}

.amx-popup-banner-modal .close {
    appearance: none;
    border: 0;
    padding: 0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #d9e9ea;
    cursor: pointer;
    position: absolute;
    top: -24px;
    right: -24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all ease-out 150ms;
    z-index: 2;
}

.amx-popup-banner-modal .close svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: #0a607b;
    transition: all ease-out 150ms;
}

.amx-popup-banner-modal .close:hover,
.amx-popup-banner-modal .close:focus-visible {
    background-color: #0a607b;
    outline: none;
}

.amx-popup-banner-modal .close:hover svg,
.amx-popup-banner-modal .close:focus-visible svg {
    fill: #fff;
}

.amx-popup-banner-link {
    display: block;
    width: 100%;
    height: 100%;
    line-height: 0;
}

.amx-popup-banner-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

@media (max-width: 480px) {
    .amx-popup-banner-modal .close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
    .amx-popup-banner-modal .close svg {
        width: 20px;
        height: 20px;
    }
}
