.lup-popup-open {
    overflow: hidden;
}

.lup-popup-overlay {
    align-items: center;
    background: rgba(8, 12, 18, 0.68);
    box-sizing: border-box;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 999999;
}

.lup-popup-overlay[hidden] {
    display: none;
}

.lup-popup,
.lup-popup * {
    box-sizing: border-box;
}

.lup-popup {
    background: #24262b;
    border-radius: 8px;
    box-shadow: 0 18px 58px rgba(0, 0, 0, 0.34);
    color: #f3f6fb;
    max-height: min(620px, calc(100vh - 48px));
    max-width: 414px;
    overflow: hidden;
    position: relative;
    width: min(414px, 100%);
}

.lup-theme-light .lup-popup {
    background: #fff;
    color: #263241;
}

.lup-theme-dark .lup-popup {
    background: #24262b;
    color: #f3f6fb;
}

.lup-popup-close {
    align-items: center;
    appearance: none;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    display: flex;
    font-size: 26px;
    font-weight: 300;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 10px;
    top: 10px;
    transition: color 0.18s ease, transform 0.18s ease;
    width: 34px;
    z-index: 2;
}

.lup-popup-close:hover,
.lup-popup-close:focus {
    color: #fff;
    transform: scale(1.05);
}

.lup-popup-head {
    min-height: 124px;
    overflow: hidden;
    padding: 30px 42px 24px;
    position: relative;
    text-align: center;
}

.lup-popup-head::before,
.lup-popup-head::after {
    border-radius: 999px;
    content: "";
    pointer-events: none;
    position: absolute;
}

.lup-popup-head::before {
    background: rgba(255, 255, 255, 0.12);
    height: 230px;
    left: -50px;
    top: -165px;
    width: 290px;
}

.lup-popup-head::after {
    background: rgba(255, 255, 255, 0.1);
    height: 220px;
    right: -90px;
    top: -100px;
    width: 270px;
}

.lup-head-pink {
    background: linear-gradient(135deg, #ff5c83 0%, #ff668c 45%, #ff896d 100%);
}

.lup-head-blue {
    background: linear-gradient(135deg, #2871ff 0%, #7b5cff 55%, #d452ff 100%);
}

.lup-head-green {
    background: linear-gradient(135deg, #00b894 0%, #13c3a3 45%, #75d66a 100%);
}

.lup-head-dark {
    background: linear-gradient(135deg, #17212f 0%, #354052 52%, #111827 100%);
}

.lup-popup-icon {
    height: 32px;
    margin: 0 auto 14px;
    position: relative;
    width: 40px;
    z-index: 1;
}

.lup-icon-heart::before,
.lup-icon-heart::after {
    background: #fff;
    border-radius: 18px 18px 0 0;
    content: "";
    height: 29px;
    left: 20px;
    position: absolute;
    top: 0;
    transform: rotate(-45deg);
    transform-origin: 0 100%;
    width: 20px;
}

.lup-icon-heart::after {
    left: 0;
    transform: rotate(45deg);
    transform-origin: 100% 100%;
}

.lup-icon-star::before {
    color: #fff;
    content: "★";
    display: block;
    font-size: 36px;
    line-height: 1;
}

.lup-icon-gift::before {
    color: #fff;
    content: "🎁";
    display: block;
    font-size: 32px;
    line-height: 1;
}

.lup-popup h2 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 0;
    position: relative;
    z-index: 1;
}

.lup-popup-body {
    max-height: calc(100vh - 172px);
    overflow-y: auto;
    padding: 16px 18px 18px;
}

.lup-theme-light .lup-popup-body {
    background: #fff;
}

.lup-theme-dark .lup-popup-body {
    background: #24262b;
}

.lup-popup-body p {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.5;
    margin: 0 0 10px;
    overflow-wrap: anywhere;
}

.lup-popup-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 18px;
}

.lup-popup-button {
    align-items: center;
    appearance: none;
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1.25;
    min-height: 34px;
    min-width: 82px;
    padding: 8px 14px;
    text-align: center;
    text-decoration: none !important;
    transition: filter 0.18s ease, transform 0.18s ease;
}

.lup-popup-button:hover,
.lup-popup-button:focus {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.lup-btn-orange {
    background: #ff6d12;
    color: #fff !important;
}

.lup-btn-green {
    background: #214229;
    color: #1bd244 !important;
}

.lup-btn-purple {
    background: #46375e;
    color: #974dff !important;
}

.lup-btn-blue {
    background: #1557d6;
    color: #fff !important;
}

.lup-btn-red {
    background: #d62839;
    color: #fff !important;
}

.lup-btn-dark {
    background: #111827;
    color: #fff !important;
}

.lup-btn-light {
    background: #f6f7fb;
    color: #1f2937 !important;
}

.lup-btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.48);
    color: #fff !important;
}

.lup-theme-light .lup-btn-outline {
    border-color: rgba(31, 41, 55, 0.26);
    color: #1f2937 !important;
}

@media (max-width: 640px) {
    .lup-popup-overlay {
        align-items: flex-start;
        padding: 16px;
    }

    .lup-popup {
        max-height: calc(100vh - 32px);
        width: min(414px, 100%);
    }

    .lup-popup-head {
        min-height: 118px;
        padding: 28px 38px 22px;
    }

    .lup-popup-icon {
        margin-bottom: 12px;
    }

    .lup-popup-body {
        max-height: calc(100vh - 150px);
        padding: 16px 16px 18px;
    }

    .lup-popup-body p {
        font-size: 14px;
    }

    .lup-popup-actions {
        justify-content: stretch;
    }

    .lup-popup-button {
        flex: 1 1 100%;
        font-size: 14px;
        min-width: 0;
    }
}
