.cw-trigger-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
    font: 700 0.95rem/1 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ff7a18, #ffd166);
    color: #111;
    box-shadow: 0 16px 32px rgba(255, 122, 24, 0.22);
    cursor: pointer;
}

.cw-inline-empty {
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(16, 22, 47, 0.08);
    color: #364152;
    font: 600 0.95rem/1.4 Georgia, 'Times New Roman', serif;
}

.cw-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 0;
    background: var(--cw-overlay, rgba(5, 7, 20, 0.7));
    backdrop-filter: blur(12px);
    overflow: hidden;
}

.cw-root {
    --cw-accent: #ff7a18;
    --cw-accent-secondary: #ffb347;
    --cw-surface: #10162f;
    --cw-surface-secondary: #192042;
    --cw-text: #f7f1e8;
    --cw-muted: #d7d2ca;
    --cw-button-text: #121212;
    --cw-popup-background-image: none;
    --cw-wheel-background-image: none;
    position: relative;
    isolation: isolate;
    color: var(--cw-text);
    overflow: hidden;
    background-image:
        var(--cw-popup-background-image),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(145deg, rgba(255, 208, 143, 0.22), transparent 38%),
        linear-gradient(135deg, var(--cw-surface), var(--cw-surface-secondary));
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover, auto, auto, auto;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.cw-root--popup {
    width: min(865px, 100vw);
    min-height: 100vh;
    height: 100vh;
    border-radius: 0;
}

.cw-root--inline {
    width: min(980px, 100%);
    min-height: 700px;
    border-radius: 30px;
}

.cw-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 42%) minmax(0, 58%);
    min-height: inherit;
    height: 100%;
}

.cw-wheel-panel {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    justify-items: start;
    overflow: hidden;
    padding: 32px 0;
    pointer-events: none;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover, auto, auto, auto;
}

.cw-wheel-frame,
.cw-wheel,
.cw-wheel__spinner,
.cw-wheel__disc,
.cw-wheel__labels,
.cw-wheel__pins,
.cw-wheel__peg,
.cw-wheel__label,
.cw-wheel__hub,
.cw-pointer,
.cw-pointer * {
    pointer-events: none;
}

.cw-wheel-frame {
    position: relative;
}

.cw-root--popup .cw-wheel-frame {
    width: 540px;
    aspect-ratio: 1;
    transform: translateX(-44%);
}

.cw-root--inline .cw-wheel-frame {
    width: min(100%, 500px);
    aspect-ratio: 1;
    transform: translateX(-18%);
}

.cw-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    min-width: 0;
    padding: 48px 54px 48px 20px;
    pointer-events: auto;
}

.cw-copy * {
    pointer-events: auto;
}

.cw-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cw-text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font: 700 0.72rem/1.1 Georgia, 'Times New Roman', serif;
}

.cw-title {
    margin: 0;
	font-weight: 700;
	font-size: clamp(2rem, 3.6vw, 2.5rem);
	line-height: 0.95;
    letter-spacing: -0.02em;
}

.cw-subtitle,
.cw-description,
.cw-disclaimer,
.cw-feedback,
.cw-result__message,
.cw-countdown {
    margin: 0;
    font: 500 1rem/1.6 Georgia, 'Times New Roman', serif;
    color: var(--cw-muted);
}

.cw-form-wrap {
    display: grid;
    gap: 14px;
    margin-top: 0;
}

.cw-form {
    display: grid;
    gap: 12px;
}

.cw-input-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cw-input-row > .cw-field:only-child {
    grid-column: 1 / -1;
}

.cw-field,
.cw-consent {
    display: grid;
    gap: 6px;
}

.cw-field input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 4px;
    padding: 0.9rem 1rem;
    background: #ffffff;
    color: #000000;
    font: 500 0.98rem/1.2 Georgia, 'Times New Roman', serif;
}

.cw-field input:focus {
    outline: none;
    border-color: rgba(255, 209, 102, 0.9);
    box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.18);
}

.cw-field input::placeholder {
    color: #000000;
}

.cw-consent {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px;
    padding: 0.6rem 0;
}

.cw-consent input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
}

.cw-submit-button {
    appearance: none;
    border: 0;
    border-radius: 5px;
    min-height: 56px;
    padding: 0.95rem 1.2rem;
    background: linear-gradient(145deg, #FFC107, #FFC107);
    color: var(--cw-button-text);
    font: 800 0.98rem/1 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.08em;
    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.22),
        inset 0 2px 0 rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.cw-submit-button[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.cw-pointer {
    position: absolute;
    left: 50%;
    top: -28px;
    width: 90px;
    height: 49px;
    transform: translateX(-50%) rotate(-90deg);
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.22));
    z-index: 4;
}

.cw-pointer__body {
    width: 100%;
    height: 100%;
}

.cw-pointer__svg {
    display: block;
    width: 100%;
    height: 100%;
    transform-origin: 72.94% 44.22%;
    transform-box: fill-box;
    will-change: transform;
}

.cw-pointer-shadow {
    opacity: 0.2;
}
.cw-wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #e3e3e3;
    box-shadow:
        inset 0 0 0 12px rgba(255, 255, 255, 0.18),
        inset 0 0 0 28px rgba(0, 0, 0, 0.1),
        0 24px 60px rgba(0, 0, 0, 0.28);
}

.cw-wheel__spinner {
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    transition: transform 4.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.cw-wheel__disc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.cw-wheel__labels {
    position: absolute;
    inset: 0;
}

.cw-wheel__pins {
    position: absolute;
    inset: 0;
}

.cw-wheel__peg {
    position: absolute;
    inset: 0;
    transform: rotate(var(--cw-rotate));
}

.cw-wheel__peg::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -12px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #000000;
}

.cw-wheel__label {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44%;
    transform-origin: 0 0;
    transform: rotate(var(--cw-rotate)) translateY(-50%);
    display: flex;
    justify-content: flex-end;
}

.cw-wheel__label span {
    width: 112px;
    display: inline-block;
    text-align: center;
    transform: translateX(-12px);
    transform-origin: center;
    font: 700 clamp(0.72rem, 1.3vw, 0.92rem)/1.1 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cw-wheel__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(64px, 18%, 92px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fffdf5, #ffffff 68%, #8f5810 100%);
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.24),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.cw-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--cw-text);
    font-size: 1.4rem;
    cursor: pointer;
}

.cw-result {
    display: none;
    margin-top: 0;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cw-result.is-visible {
    display: grid;
}

.cw-result__heading {
    margin: 0;
    font: 700 1.6rem/1.05 Georgia, 'Times New Roman', serif;
}

.cw-coupon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0.85rem 1.1rem;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.32);
    background: rgba(0, 0, 0, 0.16);
    font: 800 1.18rem/1 Georgia, 'Times New Roman', serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cw-result__action {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 0.9rem 1.2rem;
    background: linear-gradient(145deg, var(--cw-accent-secondary), var(--cw-accent));
    color: var(--cw-button-text);
    font: 700 0.92rem/1 Georgia, 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
}

.cw-feedback {
    min-height: 1.4rem;
    color: #ffeaa7;
}

.cw-hidden {
    display: none !important;
}

@keyframes cw-pointer-tick {
    0% { transform: rotate(0deg); }
    45% { transform: rotate(-16deg); }
    70% { transform: rotate(6deg); }
    100% { transform: rotate(0deg); }
}

.cw-pointer__svg.is-ticking {
    animation: cw-pointer-tick 0.11s ease-out;
}

@media (min-width: 901px) {
    .cw-overlay[data-cw-desktop-position="left"] {
        justify-items: start;
    }

    .cw-overlay[data-cw-desktop-position="left"] .cw-shell {
        grid-template-columns: minmax(320px, 42%) minmax(0, 58%);
    }

    .cw-overlay[data-cw-desktop-position="left"] .cw-wheel-panel {
        order: 1;
        justify-items: start;
    }

    .cw-overlay[data-cw-desktop-position="left"] .cw-copy {
        order: 2;
        padding-left: 20px;
        padding-right: 54px;
    }

    .cw-overlay[data-cw-desktop-position="left"] .cw-root--popup .cw-wheel-frame {
        transform: translateX(-44%);
    }

    .cw-overlay[data-cw-desktop-position="left"] .cw-pointer {
        left: auto;
        right: -62px;
        top: 50%;
        transform: translateY(-50%);
    }

    .cw-overlay[data-cw-desktop-position="right"] {
        justify-items: end;
    }

    .cw-overlay[data-cw-desktop-position="right"] .cw-shell {
        grid-template-columns: minmax(0, 58%) minmax(320px, 42%);
    }

    .cw-overlay[data-cw-desktop-position="right"] .cw-copy {
        order: 1;
        padding-left: 54px;
        padding-right: 20px;
    }

    .cw-overlay[data-cw-desktop-position="right"] .cw-wheel-panel {
        order: 2;
        justify-items: end;
    }

    .cw-overlay[data-cw-desktop-position="right"] .cw-root--popup .cw-wheel-frame {
        transform: translateX(44%);
    }

    .cw-overlay[data-cw-desktop-position="right"] .cw-pointer {
        left: -26px;
        right: auto;
        top: 50%;
        transform: translateY(-50%) scaleX(-1);
    }
}

@media (max-width: 900px) {
    .cw-overlay {
        display: flex;
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
        overflow: hidden;
    }

    .cw-root {
        width: 100%;
    }

    .cw-root--popup {
        min-height: 100svh;
        height: 100svh;
        max-height: 100svh;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .cw-root--inline {
        width: 100%;
        min-height: auto;
        height: auto;
        border-radius: 0;
        overflow: visible;
    }

    .cw-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }

    .cw-root--popup .cw-shell {
        min-height: 100%;
    }

    .cw-wheel-panel {
        order: 2;
        justify-items: center;
        overflow: visible;
        padding: 20px 16px 0;
        min-height: auto;
    }

    .cw-root--popup .cw-wheel-frame,
    .cw-root--inline .cw-wheel-frame {
        width: min(100%, 300px);
        transform: none;
    }

    .cw-copy {
        order: 1;
        justify-content: flex-start;
        min-height: auto;
        padding: 20px 16px calc(32px + env(safe-area-inset-bottom));
    }

    .cw-submit-button {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .cw-input-row {
        grid-template-columns: 1fr;
    }

    .cw-title {
        font-size: 1.7rem;
    }

    .cw-wheel__label span {
        width: 86px;
        font-size: 0.66rem;
    }
}











