.rs-popup-locked {
    overflow: hidden !important;
}

.rs-popup-locked > body {
    overflow: hidden !important;
}

.rs-popup-overlay {
    align-items: center;
    animation: rsPopupFade .2s ease forwards;
    background: rgba(8, 6, 12, .58);
    backdrop-filter: blur(4px);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 99999;
}

.rs-popup-card {
    animation: rsPopupIn .28s ease forwards;
    color: #fff;
    max-height: calc(100vh - 40px);
    max-width: min(92vw, 760px);
    overflow: hidden;
    position: relative;
    width: 100%;
}

.rs-popup-card.is-image-popup {
    background: transparent;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .46);
}

.rs-popup-card.is-text-popup {
    background: #fffaf1;
    border: 1px solid rgba(196, 148, 79, .42);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    color: #3b1d22;
    max-width: min(92vw, 620px);
}

.rs-popup-visual {
    background: #130912;
    line-height: 0;
}

.rs-popup-image {
    display: block;
    max-height: calc(100vh - 40px);
    object-fit: contain;
    width: 100%;
}

.rs-popup-card.is-image-popup .rs-popup-body {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .78));
    bottom: 0;
    left: 0;
    padding: 72px clamp(18px, 4vw, 34px) clamp(16px, 3vw, 26px);
    position: absolute;
    right: 0;
    z-index: 2;
}

.rs-popup-card.is-image-popup.is-image-only .rs-popup-body {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .42));
    padding-top: 44px;
}

.rs-popup-card.is-text-popup .rs-popup-body {
    padding: clamp(22px, 4vw, 34px);
}

.rs-popup-icon {
    align-items: center;
    background: linear-gradient(135deg, #f9d36a, #9b651a);
    border-radius: 50%;
    color: #401018;
    display: inline-flex;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 900;
    height: 52px;
    justify-content: center;
    margin-bottom: 16px;
    width: 52px;
}

.rs-popup-progress {
    color: #f7cf6a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.rs-popup-card.is-image-only .rs-popup-progress {
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
}

.rs-popup-card.is-text-popup .rs-popup-progress {
    color: #9b1c31;
}

.rs-popup-title {
    color: #ffe897;
    font-family: "Noto Sans Devanagari", Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 12px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .44);
}

.rs-popup-title-hidden {
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.rs-popup-card.is-text-popup .rs-popup-title {
    color: #8b1830;
    text-shadow: none;
}

.rs-popup-content {
    color: rgba(255, 248, 222, .95);
    font-family: "Noto Sans Devanagari", "Work Sans", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    max-width: 620px;
}

.rs-popup-card.is-text-popup .rs-popup-content {
    color: #442930;
}

.rs-popup-content :first-child {
    margin-top: 0;
}

.rs-popup-content :last-child {
    margin-bottom: 0;
}

.rs-popup-content ul,
.rs-popup-content ol {
    padding-left: 22px;
}

.rs-popup-content li {
    margin: 7px 0;
}

.rs-popup-content a {
    color: #ffe897;
    font-weight: 800;
}

.rs-popup-card.is-text-popup .rs-popup-content a {
    color: #9b1c31;
}

.rs-popup-actions {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 20px;
}

.rs-popup-card.is-image-only .rs-popup-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.rs-popup-step-dots {
    display: flex;
    gap: 7px;
}

.rs-popup-step-dot {
    background: rgba(255, 232, 151, .32);
    border-radius: 999px;
    height: 7px;
    width: 22px;
}

.rs-popup-step-dot.is-active {
    background: #f4c957;
}

.rs-popup-button {
    align-items: center;
    background: linear-gradient(180deg, #ffe38b, #d19b32);
    border: 1px solid rgba(255, 244, 191, .84);
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
    color: #2c1211;
    cursor: pointer;
    display: inline-flex;
    font-family: "Noto Sans Devanagari", "Work Sans", Arial, sans-serif;
    font-weight: 800;
    gap: 12px;
    justify-content: center;
    min-height: 46px;
    min-width: 178px;
    padding: 0 20px;
}

.rs-popup-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.rs-popup-button:focus {
    outline: 3px solid rgba(255, 232, 151, .44);
    outline-offset: 3px;
}

@keyframes rsPopupFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes rsPopupIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-popup-card {
        animation: none;
    }
}

@media (max-width: 560px) {
    .rs-popup-overlay {
        padding: 10px;
    }

    .rs-popup-card {
        max-height: calc(100vh - 20px);
        max-width: calc(100vw - 20px);
    }

    .rs-popup-image {
        max-height: calc(100vh - 20px);
    }

    .rs-popup-card.is-image-popup .rs-popup-body {
        padding: 56px 14px 14px;
    }

    .rs-popup-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rs-popup-card.is-image-only .rs-popup-actions {
        align-items: flex-end;
    }

    .rs-popup-button {
        min-width: 0;
        width: 100%;
    }

    .rs-popup-card.is-image-only .rs-popup-button {
        width: auto;
    }
}
