.tpl-hero-v2 .vs-popup {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.tpl-hero-v2 .vs-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    background: rgba(38, 38, 38, 0.90);
}

.tpl-hero-v2 .vs-popup .vs-wrapper {
    display: flex;
    height: 100vh;
}

.tpl-hero-v2 .vs-popup__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 111;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    background-color: #EEEEEE;
    cursor: pointer;
}

.tpl-hero-v2 .vs-popup__close svg {
    width: 16px;
    height: 16px;
}

.tpl-hero-v2 .vs-popup__container {
    position: relative;
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 90vh;
    height: 90vh;
    margin-top: 12px;
    border-radius: 16px;
    z-index: 11;
    transform: scale(0.9);
    transition: all 0.3s ease;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 60%),
    var(--background-image-popup) center / cover no-repeat;
    overflow: hidden;
}

.tpl-hero-v2 .vs-popup__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: auto;
    padding: 24px;
    border-radius: 16px;
    background-color: var(--color-primary-white, #FFF);
}

.tpl-hero-v2 .vs-popup__content::-webkit-scrollbar {
    width: 6px;
}

.tpl-hero-v2 .vs-popup__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.tpl-hero-v2 .vs-popup__content::-webkit-scrollbar-track {
    background: transparent;
}

.tpl-hero-v2 .vs-popup.show .vs-popup__container {
    position: relative;
    opacity: 1;
    transform: scale(1);
}

.tpl-hero-v2 .vs-popup__content a {
    color: var(--color-link, #ED002F);
}


@media (min-width: 744px) {
    .tpl-hero-v2 .vs-popup .vs-wrapper {
        display: flex;
        justify-content: center;
        height: 100vh;
        margin-block: auto;
    }

    .tpl-hero-v2 .vs-popup__container {
        margin-block: auto;
        height: 75vh;
        border-radius: 32px;
    }

    .tpl-hero-v2 .vs-popup__close {
        top: 40px;
        right: 40px;
    }

    .tpl-hero-v2 .vs-popup__close svg {
        width: 32px;
        height: 32px;
    }

    .tpl-hero-v2 .vs-popup__content {
        padding: 40px;
        border-radius: 32px;
    }
}
