html.popup-open,
body.popup-open {
    overflow: hidden;
}

.site-popup {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 24px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 300ms ease-out, visibility 300ms ease-out;
    z-index: 2147483647 !important;
}

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

.site-popup.is-visible .site-popup__dialog {
    transform: translateY(0);
}

.site-popup__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background-color: rgba(20, 19, 87, 0.74);
}

.site-popup__dialog {
    width: 100%;
    max-width: 620px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
    background: linear-gradient(180deg, #142972 0%, #1c4f8d 100%);
    color: #ffffff;
    position: relative;
    z-index: 1;
    transform: translateY(24px);
    transition: transform 300ms ease-out;
}

.site-popup__header {
    width: 100%;
    min-height: 54px;
    padding: 14px 58px 14px 22px;
    display: flex;
    align-items: center;
    background-color: rgba(31, 135, 181, 0.21);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-popup__label {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #eef6fb;
    margin: 0;
}

.site-popup__close {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background-color: transparent;
    color: #ffffff;
    position: absolute;
    top: 9px;
    right: 11px;
    transition: background-color 200ms ease-out;
}

.site-popup__close::before,
.site-popup__close::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: 9px;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background-color: currentColor;
}

.site-popup__close::before {
    transform: rotate(45deg);
}

.site-popup__close::after {
    transform: rotate(-45deg);
}

.site-popup__close:hover,
.site-popup__close:focus,
.site-popup__close:focus-visible {
    background-color: rgba(255, 255, 255, 0.14);
}

.site-popup__body {
    width: 100%;
    max-height: calc(100vh - 130px);
    max-height: calc(100dvh - 130px);
    overflow-x: clip;
    overflow-y: auto;
    padding: 34px 20px 30px;
}

.site-popup__content {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 145%;
    letter-spacing: normal;
    color: #ffffff;
}

.site-popup__content p.wysiwyg-heading {
    font-family: "Montserrat", sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 54px;
    line-height: 110%;
    letter-spacing: normal;
    color: #ffffff;
    margin: 0 0 20px;
}

.site-popup__content > * {
    margin-bottom: 20px;
}

.site-popup__content > :last-child {
    margin-bottom: 0;
}

.site-popup__content p {
    color: #ffffff;
}

.site-popup__content a {
    color: #ffffff;
    text-decoration: underline;
}

.site-popup__content a:hover,
.site-popup__content a:focus,
.site-popup__content a:focus-visible {
    color: #e9f3f8;
}

.site-popup__content p.pullquote,
.site-popup__content blockquote.pullquote {
    width: 100%;
    margin: 26px 0;
    padding: 20px 18px;
    border: none;
    border-radius: 10px;
    background-color: #2a93c2;
    color: #ffffff;
    text-transform: uppercase;
}

.site-popup__content p.pullquote::before,
.site-popup__content blockquote.pullquote::before {
    display: none;
}

.site-popup__content p.pullquote > *,
.site-popup__content blockquote.pullquote > * {
    color: inherit;
    margin-bottom: 0;
}

.site-popup__content a.wysiwyg-button {
    width: 100%;
    min-height: 52px;
    margin-top: 22px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 7px;
    background-color: transparent;
    color: #ffffff;
    text-decoration: none;
}

.site-popup__content a.wysiwyg-button:hover,
.site-popup__content a.wysiwyg-button:focus,
.site-popup__content a.wysiwyg-button:focus-visible {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.9);
}

@media screen and (max-width: 1720px) {
    .site-popup__content p.wysiwyg-heading {
        font-size: 48px;
    }

    .site-popup__content {
        font-size: 21px;
    }
}

@media screen and (max-width: 1080px) {
    .site-popup {
        padding: 18px;
    }

    .site-popup__content p.wysiwyg-heading {
        font-size: 40px;
    }

    .site-popup__content {
        font-size: 20px;
    }
}

@media screen and (max-width: 700px) {
    .site-popup__header {
        min-height: 46px;
        padding: 12px 52px 12px 16px;
    }

    .site-popup__label {
        font-size: 14px;
        letter-spacing: 0.04em;
    }

    .site-popup__close {
        top: 5px;
        right: 7px;
    }

    .site-popup__body {
        max-height: calc(100vh - 114px);
        max-height: calc(100dvh - 114px);
        padding: 26px 16px 22px;
    }

    .site-popup__content p.wysiwyg-heading {
        font-size: 34px;
        margin-bottom: 16px;
    }

    .site-popup__content {
        font-size: 19px;
    }
}

@media screen and (max-width: 480px) {
    .site-popup {
        padding: 12px;
    }

    .site-popup__dialog {
        border-radius: 24px;
    }

    .site-popup__content p.wysiwyg-heading {
        font-size: 30px;
    }

    .site-popup__content {
        font-size: 18px;
    }
}
