.popup-wrapper {
    display: none;
    position: relative;
    width: auto;
    max-width: 960px;
    margin: 0 auto;
}

.popup-wrapper.popup-fixed-right {
    position: fixed;
    top: 42%;
    right: 24px;
    transform: translateY(-50%);
    width: min(calc(100vw - 32px), 420px);
    max-width: 420px;
    margin: 0;
    z-index: 10000000010;
    pointer-events: auto;
}

.popup-wrapper.popup-fixed-right.popup-type-5 {
    width: min(calc(100vw - 32px), 460px);
    max-width: 460px;
}

.popup-wrapper.popup-fixed-right .popup-three,
.popup-wrapper.popup-fixed-right .popup-four,
.popup-wrapper.popup-fixed-right .popup-five {
    max-width: 100%;
}

.mfp-content .popup-wrapper {
    display: block !important;
}

.mfp-bg,
.mfp-wrap,
.mfp-container {
    z-index: 10000000020 !important;
}

.popup-wrapper .form_control {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    line-height: 1.4;
}

.popup-inner {
    position: relative;
}

.popup-one,
.popup-two,
.popup-six {
    position: relative;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.popup-one,
.popup-two {
    max-width: 760px;
    padding: 96px 48px;
}

.popup-one .popup_main-content,
.popup-two .popup_main-content {
    position: relative;
    text-align: center;
    border-radius: 12px;
    padding: 56px 40px;
}

.popup-one .popup_main-content {
    background-color: rgba(69, 29, 83, 0.82);
}

.popup-two .popup_main-content {
    background-color: rgba(255, 40, 101, 0.72);
}

.popup-one .popup_main-content h1,
.popup-two .popup_main-content h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 18px;
    color: #fff;
}

.popup-one .popup_main-content p,
.popup-two .popup_main-content p {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.popup-one .popup_main-content .popup-main-btn,
.popup-two .popup_main-content .popup-main-btn,
.popup-six .popup_main-content .right-content .popup-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 12px 28px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    border: none;
}

.popup-two .popup_main-content .subscribe-form {
    max-width: 420px;
    margin: 0 auto;
}

.popup-two .popup_main-content .subscribe-form .form_control {
    border: none;
    border-radius: 10px;
    font-size: 18px;
    margin-bottom: 16px;
    text-align: center;
    background: #fff;
    color: #1f2937;
}

.popup-two .popup_main-content .subscribe-form .popup-main-btn {
    width: 100%;
    border-radius: 10px;
}

.popup-six {
    max-width: 960px;
    background: #fff;
}

.popup-six .popup_main-content {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background-color: #fff;
}

.popup-six .popup_main-content .left-bg {
    width: 50%;
    min-height: 560px;
}

.popup-six .popup_main-content .right-content {
    width: 50%;
    margin-left: 50%;
    padding: 88px 28px;
    text-align: center;
}

.popup-six .popup_main-content .right-content h1 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 22px;
    color: #fff;
}

.popup-six .popup_main-content .right-content h4 {
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.popup-six .syotimer__body {
    max-width: 360px;
    margin: 0 auto 28px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.popup-six .syotimer-cell {
    flex: 0 0 auto;
    min-width: 72px;
}

.popup-six .syotimer-cell__value {
    width: 72px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--popup-timer-box-bg, rgba(0, 0, 0, 0.28));
    border-radius: 10px;
    font-size: 26px;
    color: var(--popup-timer-color, #fff);
    margin-bottom: 8px;
}

.popup-six .syotimer-cell__unit {
    color: var(--popup-timer-color, #fff);
    text-transform: lowercase;
    font-size: 12px;
}

.popup-six .syotimer-cell_type_day {
    display: none !important;
}

.popup-three,
.popup-four,
.popup-five {
    position: relative;
    width: min(100%, 100vw);
    margin: 0 auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #302f2c;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.popup-three {
    max-width: 380px;
}

.popup-four {
    max-width: 520px;
}

.popup-five {
    max-width: 420px;
    background: linear-gradient(180deg, #302f2c 0%, #262522 100%);
}

.popup_main-content {
    text-align: center;
}

.popup-restock-card,
.popup-spin-card,
.popup-countdown-card {
    padding: 28px 24px 24px;
    text-align: center;
}

.popup-restock-card .popup-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #86d43f;
}

.popup-restock-card .popup-icon svg {
    width: 28px;
    height: 28px;
}

.popup-restock-card h1,
.popup-spin-card h1,
.popup-countdown-card h1 {
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.popup-restock-card p,
.popup-spin-card p,
.popup-countdown-card h4 {
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.55;
}

.popup-restock-card .form_control,
.popup-spin-card .form_control {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    text-align: center;
    padding: 14px 16px;
    margin-bottom: 12px;
}

.popup-restock-card .form_control::placeholder,
.popup-spin-card .form_control::placeholder {
    color: rgba(255, 255, 255, 0.62);
}

.popup-restock-card .popup-main-btn,
.popup-spin-card .popup-main-btn,
.popup-countdown-card .popup-main-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.popup-restock-card h1 *,
.popup-spin-card h1 *,
.popup-countdown-card h1 *,
.popup-one .popup_main-content h1 *,
.popup-two .popup_main-content h1 *,
.popup-six .popup_main-content .right-content h1 *,
.popup-countdown-card .popup-badge *,
.popup-restock-card p *,
.popup-spin-card p *,
.popup-countdown-card h4 *,
.popup-one .popup_main-content p *,
.popup-two .popup_main-content p *,
.popup-six .popup_main-content .right-content h4 *,
.cookie-banner-title *,
.cookie-banner-text *,
.popup-main-btn * {
    color: inherit !important;
}

.popup-restock-card h1 p,
.popup-spin-card h1 p,
.popup-countdown-card h1 p,
.popup-one .popup_main-content h1 p,
.popup-two .popup_main-content h1 p,
.popup-six .popup_main-content .right-content h1 p,
.popup-countdown-card .popup-badge p,
.popup-restock-card p p,
.popup-spin-card p p,
.popup-countdown-card h4 p,
.popup-one .popup_main-content p p,
.popup-two .popup_main-content p p,
.popup-six .popup_main-content .right-content h4 p,
.cookie-banner-title p,
.cookie-banner-text p,
.popup-main-btn p {
    margin-bottom: 0;
}

.popup-spin-card .spin-wheel-widget {
    margin-bottom: 18px;
}

.popup-spin-card .spin-wheel-shell {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto 14px;
}

.popup-spin-card .spin-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 40px rgba(0, 0, 0, 0.28);
    transition: transform 4.6s cubic-bezier(0.18, 0.89, 0.32, 1.08);
}

.popup-spin-card .spin-wheel::after {
    content: "";
    position: absolute;
    inset: 50%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1f2937;
    border: 4px solid rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    z-index: 3;
}

.popup-spin-card .spin-wheel-pointer {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 0;
    border-bottom: 28px solid #fff;
    transform: translateX(-50%);
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.25));
    z-index: 4;
}

.popup-spin-card .spin-wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 84px;
    text-align: center;
    transform: translate(-50%, -50%) rotate(var(--label-rotate)) translateY(-72px);
    transform-origin: center center;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-spin-card .spin-wheel-label span {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transform: rotate(90deg);
    transform-origin: center center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    word-break: break-word;
    max-width: 74px;
}

.popup-spin-card .spin-wheel-result {
    min-height: 20px;
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 600;
}

.popup-spin-card .spin-wheel-reward {
    min-height: 22px;
    margin-top: 12px;
}

.popup-spin-card .spin-wheel-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.popup-spin-card .spin-wheel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.popup-spin-card .spin-wheel-trigger[disabled] {
    opacity: 0.72;
    cursor: not-allowed;
}

.popup-countdown-card .popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 197, 61, 0.12);
    color: #ffc53d;
    font-size: 13px;
    font-weight: 700;
}

.popup-countdown-card .offer-timer {
    margin-bottom: 18px;
}

.popup-five .popup_main-content {
    padding: 28px 24px 24px;
}

.popup-five .popup_main-content h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 18px;
}

.popup-five .syotimer__body {
    max-width: 100%;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 18px;
    display: flex;
    flex-wrap: wrap;
}

.popup-five .syotimer-cell {
    flex: 0 0 auto;
    min-width: 68px;
    padding: 0;
}

.popup-five .syotimer-cell__value {
    width: 68px;
    height: 56px;
    border-radius: 10px;
    background: var(--popup-timer-box-bg, rgba(0, 0, 0, 0.36));
    font-size: 22px;
    color: var(--popup-timer-color, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.popup-five .syotimer-cell__unit {
    font-size: 0;
    color: transparent;
}

.popup-five .syotimer-cell__unit::after {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--popup-timer-color, #fff);
}

.popup-five .syotimer-cell_type_hour .syotimer-cell__unit::after {
    content: "h";
}

.popup-five .syotimer-cell_type_minute .syotimer-cell__unit::after {
    content: "min";
}

.popup-five .syotimer-cell_type_second .syotimer-cell__unit::after {
    content: "seg";
}

.popup-five .syotimer-cell_type_day {
    display: none !important;
}

.popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
    padding: 0;
}

.popup-close:hover,
.popup-close:focus {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    outline: none;
}

.popup-close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.cookie-banner-wrapper {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 99999;
    max-width: 420px;
    width: 100%;
    padding: 16px;
}

.cookie-banner {
    border-radius: 12px;
    padding: 20px 24px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.cookie-banner-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.cookie-banner-text {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-accept-btn,
.cookie-decline-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.cookie-accept-btn:hover,
.cookie-decline-btn:hover {
    opacity: 0.85;
}

@media (max-width: 767px) {
    .popup-wrapper.popup-fixed-right {
        top: auto;
        bottom: 20px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
        transform: none;
    }

    .popup-close {
        right: 16px;
    }

    .mfp-container.mfp-popup-mobile-bottom .mfp-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        animation: popupSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .mfp-container.mfp-popup-mobile-bottom {
        background: rgba(0, 0, 0, 0.6);
    }

    .mfp-container.mfp-popup-mobile-bottom .popup-wrapper {
        border-radius: 16px 16px 0 0;
        overflow: hidden;
    }

    .cookie-banner-wrapper {
        max-width: 100%;
        padding: 12px 16px;
        left: 0;
        right: 0;
    }

    .cookie-banner {
        border-radius: 12px 12px 0 0;
    }

    .mfp-container.mfp-popup-mobile-bottom .popup-one,
    .mfp-container.mfp-popup-mobile-bottom .popup-two,
    .mfp-container.mfp-popup-mobile-bottom .popup-three,
    .mfp-container.mfp-popup-mobile-bottom .popup-five,
    .mfp-container.mfp-popup-mobile-bottom .popup-six {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
    }

    .mfp-container.mfp-popup-mobile-bottom .popup-four {
        max-width: 100%;
        min-height: 80vh;
        border-radius: 20px 20px 0 0;
    }

    .popup-restock-card,
    .popup-spin-card,
    .popup-countdown-card {
        padding: 30px 18px 22px;
    }

    .popup-spin-card {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80vh;
    }

    .popup-spin-card .spin-wheel-shell {
        width: 190px;
        height: 190px;
    }

    .popup-spin-card .spin-wheel-label {
        width: 70px;
        transform: translate(-50%, -50%) rotate(var(--label-rotate)) translateY(-60px);
    }

    .popup-spin-card .spin-wheel-label span {
        font-size: 11px;
        max-width: 62px;
    }

    .popup-one,
    .popup-two {
        padding: 28px 16px;
    }

    .popup-one .popup_main-content,
    .popup-two .popup_main-content {
        padding: 24px 16px;
    }

    .popup-one .popup_main-content h1,
    .popup-two .popup_main-content h1,
    .popup-six .popup_main-content .right-content h1 {
        font-size: 24px;
        line-height: 1.25;
    }

    .popup-two .popup_main-content .subscribe-form {
        max-width: 100%;
    }

    .popup-six .popup_main-content .left-bg {
        display: none;
    }

    .popup-six .popup_main-content .right-content {
        width: 100%;
        margin-left: 0;
        padding: 48px 18px 24px;
    }

    .popup-six .syotimer__body {
        gap: 8px;
        max-width: 100%;
    }

    .popup-six .syotimer-cell {
        min-width: 60px;
    }

    .popup-six .syotimer-cell__value {
        width: 60px;
        height: 52px;
        font-size: 20px;
    }

    .popup-restock-card h1,
    .popup-spin-card h1,
    .popup-countdown-card h1 {
        font-size: 22px;
    }

    .popup-five .syotimer__body {
        gap: 8px;
    }

    .popup-five .syotimer-cell {
        min-width: 60px;
    }

    .popup-five .syotimer-cell__value {
        width: 60px;
        height: 50px;
        font-size: 20px;
    }
}

@keyframes popupSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}
