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

.vm-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    transition:
            opacity 0.25s ease,
            visibility 0.25s ease;
}

.vm-popup p {
    font-family: "Montserrat", sans-serif !important;
}

.vm-popup.is-open {
    visibility: visible;
    opacity: 1;
}

.vm-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(5px);
}

.vm-popup__dialog {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    max-height: calc(100vh - 48px);
    margin: 0;
    background: #fff !important;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(255, 192, 1, .25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 192, 1, .08);
    transform: translateY(18px) scale(0.985);
    transition: transform 0.28s ease;
}

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

.vm-popup__layout {
    display: grid;
    grid-template-columns: minmax(0, 70%) minmax(360px, 30%);
    height: min(480px, calc(100vh - 48px));
}

.vm-popup__media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    background: #fff;
    padding-left: 10px;
}

.vm-popup__iframe-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #fff;
}

.vm-popup__iframe-wrap iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.vm-popup__content {
    position: relative;
    padding: 25px 45px 30px 30px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background:
            radial-gradient(circle at top right, rgba(189, 148, 64, 0.14), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.vm-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent !important;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    transition: transform .25s ease;
}

.vm-popup__close svg {
    width: 30px;
    height: 30px;
    transition: .25s;
}

.vm-popup__close:hover {
    transform: rotate(90deg);
    box-shadow: unset !important;
}

.vm-popup__title,
.vm-popup__language,
.vm-popup__description {
    flex: 0 0 auto;
}

.vm-popup__title {
    margin: 0 0 14px;
    color: #5A5A5A;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.28;
}

.vm-popup__language {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 3px 15px;
    color: #5a5a5a;
    font-size: 13px;
    width: fit-content;
    background: #FFF9E8;
    border: 1px solid rgba(255, 192, 1, .35);
    border-radius: 999px;
}

.vm-popup__language:not(:empty) {
    display: inline-flex;
}

.vm-popup__description {
    flex: 1 1 auto;
    color: #676767;
    font-size: 14px;
    margin-top: 30px;
    min-height: 0;
    overflow-y: auto;
    line-height: 1.5;
}

.vm-popup__description p {
    margin: 10px 0 0;
}

.vm-popup__description ul,
.vm-popup__description ol {
    margin: 16px 0 0;
    padding-left: 20px;
}

.vm-popup__description li {
    margin-bottom: 5px;
}

.vm-popup__description a {
    color: #ffc001;
}

.vm-popup__description a:hover {
    text-decoration: underline;
}

.vm-popup__description hr {
    width: 50%;
    border-color: #ececec;
    margin: 20px 0;
    border-width: 1px;
    border-bottom: none;
}

.vm-popup__description .disclaimer {
    font-size: 12px;
}

.vm-popup__description > :first-child {
    margin-top: 0;
}

.vm-popup__description > :last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .vm-popup__layout {
        grid-template-columns: 1fr;
        height: auto;
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .vm-popup__media {
        padding-left: 0;
        align-self: stretch;
        width: 100%;
    }

    .vm-popup__content {
        height: auto !important;
        max-height: none !important;
        overflow: visible;
        padding: 34px 24px 28px;
    }
}

@media (max-width: 480px) {
    .vm-popup__layout {
        max-height: calc(100vh - 100px);
    }

    .vm-popup__content {
        padding: 28px 20px;
    }

    .vm-popup-title {
        font-size: 16px;
    }
}