/* Home page popup banner (footer_api.popup_banner) */

body.home-popup-lock {
    overflow: hidden;
}

.home-popup {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.home-popup.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.home-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 33, 71, 0.65);
}

.home-popup__dialog {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--white);
    border-radius: var(--radius-small);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease;
}

.home-popup.is-open .home-popup__dialog {
    transform: translateY(0) scale(1);
}

.home-popup__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: var(--white);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.home-popup__media {
    display: block;
}

.home-popup__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-small);
}
