.vc-popup[hidden] {
    display: none !important;
}

body.vc-popup-open {
    overflow: hidden;
}

.vc-popup {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 18px;
    position: fixed;
    transition: opacity 180ms ease;
    z-index: 100000;
}

.vc-popup.is-open {
    opacity: 1;
}

.vc-popup__backdrop {
    background: rgba(5, 18, 36, 0.76);
    cursor: pointer;
    inset: 0;
    position: absolute;
}

.vc-popup__dialog {
    background: var(--vc-popup-bg, #f7d288);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(5, 18, 36, 0.38);
    color: var(--vc-popup-text, #052142);
    font-family: 'UbuntuMono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    max-height: calc(100dvh - 36px);
    max-width: 680px;
    opacity: 0;
    overflow: auto;
    position: relative;
    transform: translateY(22px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
    width: 100%;
}

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

.vc-popup__dialog--with-image {
    max-width: 920px;
}

.vc-popup__close {
    align-items: center;
    background: #ffffff;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 3px 14px rgba(5, 18, 36, 0.18);
    color: #052142;
    cursor: pointer;
    display: flex;
    font: 400 30px/1 Arial, sans-serif;
    height: 42px;
    justify-content: center;
    padding: 0 0 3px;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 42px;
    z-index: 2;
}

.vc-popup__close:hover {
    transform: scale(1.05);
}

.vc-popup__close:focus-visible,
.vc-popup__button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

.vc-popup__media {
    aspect-ratio: 16 / 8;
    background: #e5e9e3;
    margin: 0;
    overflow: hidden;
}

.vc-popup__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vc-popup__content {
    padding: 44px 28px 34px;
}

.vc-popup__eyebrow {
    color: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    margin: 0 52px 12px 0;
    text-transform: uppercase;
}

.vc-popup__title {
    color: inherit;
    font-family: 'FugazOne', 'Arial Black', sans-serif;
    font-size: clamp(1.8rem, 8vw, 3.1rem);
    font-weight: 400;
    line-height: 1.04;
    margin: 0 28px 18px 0;
    overflow-wrap: anywhere;
}

.vc-popup__body {
    font-size: 1rem;
    line-height: 1.55;
}

.vc-popup__body > :first-child {
    margin-top: 0;
}

.vc-popup__body > :last-child {
    margin-bottom: 0;
}

.vc-popup__body a {
    color: inherit;
    font-weight: 700;
    text-underline-offset: 3px;
}

.vc-popup__button {
    background: var(--vc-popup-accent, #ffb03d);
    border-radius: 999px;
    color: #052142;
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    margin-top: 26px;
    padding: 13px 24px;
    text-align: center;
    text-decoration: none;
}

.vc-popup__button:hover {
    transform: translateY(-2px);
}

@media (min-width: 700px) {
    .vc-popup {
        padding: 36px;
    }

    .vc-popup__dialog {
        max-height: calc(100dvh - 72px);
    }

    .vc-popup__dialog--with-image {
        display: grid;
        grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    }

    .vc-popup__dialog--with-image .vc-popup__media {
        aspect-ratio: auto;
        min-height: 440px;
    }

    .vc-popup__content {
        align-self: center;
        padding: 58px 46px 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-popup,
    .vc-popup__dialog {
        transition-duration: 0.01ms;
    }
}
