#site-popup-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    pointer-events: none;
}

:host {
    all: initial;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    color: #172033;
    font-family: "Google Sans", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    pointer-events: none;
}

.site-popup-overlay,
.site-popup-overlay *,
.site-popup-overlay *::before,
.site-popup-overlay *::after {
    box-sizing: border-box;
}

.site-popup-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.58);
    pointer-events: auto;
}

.site-popup-dialog {
    position: relative;
    width: min(100%, 560px);
    max-height: min(86vh, 760px);
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
    color: #172033;
    outline: none;
}

.site-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    color: #172033;
    cursor: pointer;
    font: inherit;
    font-size: 0;
}

.site-popup-close::before,
.site-popup-close::after {
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
}

.site-popup-close::before {
    transform: rotate(45deg);
}

.site-popup-close::after {
    transform: rotate(-45deg);
}

.site-popup-close:hover {
    background: rgba(15, 23, 42, 0.14);
}

.site-popup-close:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.42);
    outline-offset: 2px;
}

.site-popup-content {
    padding: 52px 30px 30px;
    overflow-wrap: anywhere;
}

.site-popup-title {
    margin: 0 44px 14px 0;
    color: inherit;
    font: inherit;
    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.25;
}

.site-popup-body {
    color: inherit;
}

.site-popup-body > :first-child {
    margin-top: 0;
}

.site-popup-body > :last-child {
    margin-bottom: 0;
}

.site-popup-body img,
.site-popup-body video,
.site-popup-body iframe {
    max-width: 100%;
}

@media (max-width: 540px) {
    .site-popup-overlay {
        padding: 12px;
    }

    .site-popup-dialog {
        max-height: 92vh;
        border-radius: 14px;
    }

    .site-popup-content {
        padding: 38px 20px 24px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .site-popup-overlay {
        animation: site-popup-fade-in 160ms ease-out;
    }

    .site-popup-dialog {
        animation: site-popup-enter 180ms ease-out;
    }

    @keyframes site-popup-fade-in {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes site-popup-enter {
        from { transform: translateY(10px) scale(0.985); }
        to { transform: translateY(0) scale(1); }
    }
}
