.mfw-widget-bg {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: visible;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mfw-widget-bg.is-open {
    opacity: 1;
    visibility: visible;
}

body.mfw-wheel-open {
    overflow: hidden;
}

.mfw-widget-bg[hidden] {
    display: none !important;
}

.mfw-widget {
    position: relative;
    display: flex;
    width: min(100%, 900px);
    height: 680px;
    max-width: 95vw;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 80% 20%, #06402e 0%, #032b1f 60%, #011d14 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
}

.mfw-widget__close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.mfw-widget__close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.mfw-widget__bg {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.mfw-widget__bg--diamond-top {
    top: -30px;
    left: 260px;
    width: 170px;
    opacity: 0.35;
}

.mfw-widget__bg--diamond-bottom {
    bottom: -40px;
    left: 260px;
    width: 160px;
    opacity: 0.35;
}

.mfw-widget__bg--squares-top {
    top: -60px;
    right: -80px;
    width: 350px;
    opacity: 0.25;
}

.mfw-widget__bg--squares-bottom {
    right: -100px;
    bottom: -100px;
    width: 380px;
    opacity: 0.25;
}

.mfw-widget__layout {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.mfw-widget__wheel-col {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -420px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 887px;
    pointer-events: none;
}

.mfw-widget__wheel-col .mfw-wheel-wrap {
    pointer-events: auto;
}

.mfw-widget__content-col {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
    /* Правее видимой части колеса (~467px при left:-420 / width:887) */
    width: calc(48% - 40px);
    max-width: 390px;
    min-height: 100%;
    margin-left: 52%;
    margin-right: 40px;
    padding: 48px 36px 48px 20px;
}

.mfw-widget__step {
    width: 100%;
    text-align: left;
}

.mfw-widget__step[hidden] {
    display: none !important;
}

.mfw-widget__title {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.mfw-widget__subtitle {
    margin: 0 0 22px;
    max-width: 420px;
    color: #e1ede7;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.45;
}

.mfw-widget__input {
    width: 100%;
    max-width: 420px;
    height: 52px;
    margin: 0 0 18px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: #ffffff;
    color: #1a2923;
    font-size: 16px;
    box-sizing: border-box;
}

.mfw-widget__input::placeholder {
    color: rgba(26, 41, 35, 0.45);
    opacity: 1;
}

.mfw-widget__input.is-invalid {
    border-color: #e05a5a;
    box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.28);
    background: #fff7f7;
}

.mfw-widget__input.is-invalid:focus {
    outline: none;
    border-color: #d64545;
    box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.35);
}

.mfw-widget__consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0 0 30px;
    cursor: pointer;
    user-select: none;
}

.mfw-widget__consent-input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

.mfw-widget__consent-box {
    position: relative;
    flex-shrink: 0;
    display: grid;
    place-content: center;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    border-radius: 4px;
    background: #aab8b2;
    transition: background 0.2s;
}

.mfw-widget__consent-box::before {
    content: "";
    width: 12px;
    height: 8px;
    background-color: #032b1f;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transition: 0.1s transform ease-in-out;
}

.mfw-widget__consent-input:checked + .mfw-widget__consent-box {
    background: #dbe5e0;
}

.mfw-widget__consent-input:checked + .mfw-widget__consent-box::before {
    transform: scale(1);
}

.mfw-widget__consent-input:focus-visible + .mfw-widget__consent-box {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.mfw-widget__consent.is-invalid .mfw-widget__consent-box {
    box-shadow: 0 0 0 3px rgba(224, 90, 90, 0.35);
    background: #f3c4c4;
}

.mfw-widget__consent.is-invalid .mfw-widget__consent-text {
    color: #b42318;
}

.mfw-widget__consent-text {
    max-width: 380px;
    color: #a3c2b5;
    font-size: 11px;
    line-height: 1.4;
}

.mfw-widget__consent-text a {
    color: #ffffff;
    text-decoration: underline;
}

.mfw-widget__error {
    margin: 0 0 14px;
    color: #ffb4b4;
    font-size: 14px;
}

.mfw-widget__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
    margin: 0;
}

.mfw-widget__btn-spin-wrap {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    padding: 3px;
    border-radius: 10px;
    background: linear-gradient(120deg, #9bb5a8 0%, #5f7d70 35%, #d4af37 50%, #5f7d70 65%, #9bb5a8 100%);
    background-size: 220% 100%;
    animation: mfw-spin-border-flow 3.2s linear infinite;
}

.mfw-widget__btn-spin-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 35%,
        rgba(255, 255, 255, 0.65) 50%,
        rgba(255, 255, 255, 0.15) 65%,
        transparent 100%
    );
    transform: translateX(-140%) skewX(-18deg);
    animation: mfw-spin-shimmer 2.6s ease-in-out infinite;
    pointer-events: none;
}

.mfw-widget__btn-spin-wrap .mfw-widget__button {
    position: relative;
    z-index: 1;
    min-width: 180px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mfw-widget__btn-spin-wrap--login {
    width: 100%;
    max-width: 420px;
    display: flex;
}

.mfw-widget__btn-spin-wrap--login .mfw-widget__button {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 56px;
    padding: 16px 28px;
    flex-direction: column;
    gap: 2px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
}

.mfw-widget__btn-spin-wrap--login .mfw-widget__button-line {
    display: block;
}

.mfw-widget__btn-spin-wrap--login[hidden] {
    display: none !important;
}

.mfw-widget__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    min-width: 0;
    padding: 0 36px;
    border: 0;
    border-radius: 7px;
    background: linear-gradient(180deg, #e3eae7 0%, #b8c8c1 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    color: #1a2923;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.mfw-widget__button:hover {
    background: linear-gradient(180deg, #edf3f0 0%, #c5d4cd 100%);
    color: #1a2923;
    transform: translateY(-1px);
}

.mfw-widget__button:active {
    transform: translateY(1px);
}

@keyframes mfw-spin-shimmer {
    0%,
    18% {
        transform: translateX(-140%) skewX(-18deg);
    }
    55%,
    100% {
        transform: translateX(280%) skewX(-18deg);
    }
}

@keyframes mfw-spin-border-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

.mfw-widget__button--secondary {
    height: 52px;
    padding: 0 32px;
    border: 1px solid #525256;
    border-radius: 8px;
    background: #38383a;
    box-shadow: none;
    color: #fff;
}

.mfw-widget__button--secondary:hover {
    background: #454548;
    color: #fff;
    transform: none;
}

.mfw-widget__result {
    margin: 0 0 16px;
    max-width: 420px;
    color: #e1ede7;
    font-size: 18px;
    line-height: 1.5;
}

.mfw-widget__coupon {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.mfw-widget__actions--result {
    flex-direction: column;
    align-items: stretch;
}

.mfw-widget__actions--result .mfw-widget__button {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.mfw-widget__loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.mfw-widget__loader div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.mfw-widget__loader div:nth-child(1) {
    left: 8px;
    animation: mfw-loader1 0.6s infinite;
}

.mfw-widget__loader div:nth-child(2) {
    left: 8px;
    animation: mfw-loader2 0.6s infinite;
}

.mfw-widget__loader div:nth-child(3) {
    left: 32px;
    animation: mfw-loader2 0.6s infinite;
}

.mfw-widget__loader div:nth-child(4) {
    left: 56px;
    animation: mfw-loader3 0.6s infinite;
}

@keyframes mfw-loader1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes mfw-loader2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

@keyframes mfw-loader3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

.mfw-wheel-wrap {
    position: relative;
    width: 887px;
    height: 887px;
    flex-shrink: 0;
    margin-left: 0;
}

.mfw-wheel-arrow {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 10;
    width: 32px;
    height: 38px;
    margin-top: -19px;
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

.mfw-wheel-svg {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    will-change: transform;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.28));
}

.mfw-gold-rim-shine {
    animation: mfw-gold-shine-spin 2.6s linear infinite;
    pointer-events: none;
}

@keyframes mfw-gold-shine-spin {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: -1225;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mfw-gold-rim-shine {
        animation: none;
        opacity: 0;
    }

    .mfw-gold-rim stop animateTransform {
        display: none;
    }
}

.mfw-wheel-svg.is-empty {
    opacity: 0.45;
}

.mfw-wheel-svg text {
    font-family: inherit;
    font-weight: 700;
    pointer-events: none;
    user-select: none;
}

.mariola-account-dashboard__fortune-coupon {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f7f4ef;
}

.mariola-account-dashboard__fortune-coupon-code {
    appearance: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.mariola-account-dashboard__fortune-coupon-code:hover,
.mariola-account-dashboard__fortune-coupon-code:focus-visible {
    opacity: 0.75;
}

.mariola-account-dashboard__fortune-coupon-code.is-copied {
    text-decoration: none;
    opacity: 1;
    cursor: default;
}

@media (max-width: 768px) {
    .mfw-widget {
        flex-direction: column;
        height: auto;
        max-height: min(100dvh, 100vh);
        overflow: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .mfw-widget::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .mfw-widget__layout {
        display: flex;
        flex-direction: column;
        height: auto;
        max-height: inherit;
        overflow: hidden;
    }

    .mfw-widget__bg--diamond-top,
    .mfw-widget__bg--diamond-bottom {
        left: 50%;
        transform: translateX(-50%);
    }

    .mfw-widget__wheel-col {
        position: relative;
        top: auto;
        bottom: auto;
        left: 0;
        flex: 0 0 auto;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 220px;
        overflow: hidden;
        pointer-events: auto;
    }

    .mfw-widget__content-col {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        min-height: 0;
        margin-left: 0;
        margin-right: 0;
        padding: 30px 24px;
        overflow: hidden;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .mfw-widget__step {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        text-align: center;
    }

    .mfw-widget__title {
        margin: 0 0 10px;
        font-size: 26px;
        text-align: center;
    }

    .mfw-widget__subtitle {
        margin-bottom: 12px;
        max-width: 100%;
        font-size: 14px;
        line-height: 1.35;
        text-align: center;
    }

    .mfw-widget__input {
        height: 46px;
        margin-bottom: 12px;
        max-width: 100%;
    }

    .mfw-widget__consent {
        margin: 0 0 16px;
        gap: 10px;
        justify-content: center;
        text-align: left;
        max-width: 100%;
    }

    .mfw-widget__consent-text {
        font-size: 12px;
        line-height: 1.35;
    }

    .mfw-widget__error {
        text-align: center;
    }

    .mfw-widget__actions {
        margin-left: auto;
        margin-right: auto;
    }

    .mfw-widget__result {
        max-width: 100%;
        text-align: center;
    }

    /* 3× прежнего 300px; сдвиг так, чтобы сектор у стрелки (справа) был по центру экрана */
    .mfw-wheel-wrap {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 900px;
        height: 900px;
        margin: 0;
        transform: translate(-78%, -50%);
    }

    .mfw-wheel-arrow {
        right: 22px;
        width: 36px;
        height: 42px;
        margin-top: -21px;
    }
}

@media (max-width: 480px) {
    .mfw-widget-bg {
        padding: 12px;
        align-items: center;
        justify-content: center;
    }

    .mfw-widget {
        width: 100%;
        max-width: 100%;
        max-height: min(100dvh, 100vh);
        overflow: hidden;
        border-radius: 12px;
    }

    .mfw-widget__wheel-col {
        height: 200px;
    }

    .mfw-widget__content-col {
        padding: 30px 16px;
        justify-content: center;
    }

    .mfw-widget__title {
        margin-bottom: 8px;
        font-size: 24px;
    }

    .mfw-widget__subtitle {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .mfw-widget__consent {
        margin-bottom: 12px;
    }

    .mfw-widget__actions {
        width: 100%;
    }

    .mfw-widget__btn-spin-wrap {
        flex: 1 1 auto;
    }

    .mfw-widget__button {
        width: 100%;
    }

    .mfw-widget__button--secondary {
        flex: 1 1 auto;
    }
}

.mfw-bait {
    position: fixed;
    z-index: 40;
    bottom: 16px;
    left: 100px;
    padding: 0;
    border: 0;
    background: transparent;
    line-height: 0;
    transform: translateY(50%);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mfw-bait:hover,
.mfw-bait:focus-within {
    transform: translateY(0);
}

.mfw-bait.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.mfw-bait__close {
    position: absolute;
    top: -6px;
    right: -6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(3, 43, 31, 0.92);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.mfw-bait:hover .mfw-bait__close,
.mfw-bait:focus-within .mfw-bait__close {
    opacity: 1;
    pointer-events: auto;
}

.mfw-bait__close:hover {
    background: rgba(3, 43, 31, 1);
}

.mfw-bait__trigger {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    line-height: 0;
}

.mfw-bait__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 140px;
    max-height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.25));
    transition: filter 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.mfw-bait:hover .mfw-bait__image,
.mfw-bait:focus-within .mfw-bait__image {
    filter: drop-shadow(0 8px 20px #ffc101);
}

/* Совпадает с d-lg-none у .site-header__bottom-tabs */
@media (max-width: 991.98px) {
    .mfw-bait {
        top: auto;
        bottom: calc(var(--site-header-bottom-height, 3.5rem) + env(safe-area-inset-bottom, 0px) + 10px);
        left: 12px;
        transform: none;
    }

    .mfw-bait:hover,
    .mfw-bait:focus-within {
        transform: none;
    }

    .mfw-bait__close {
        opacity: 1;
        pointer-events: auto;
    }

    .mfw-bait__image {
        max-width: 100px;
        max-height: 100px;
    }
}
