body.coupon-wheel-open {
    overflow: hidden;
}

#coupon-wheel-modal.coupon-wheel-modal,
#coupon-wheel-modal.coupon-wheel-modal * {
    box-sizing: border-box;
}

#coupon-wheel-modal.coupon-wheel-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-content {
    background: white;
    color: #222;
    padding: 0;
    border-radius: 15px;
    max-width: 500px;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-x: hidden;
    overflow-y: auto;
    display: block;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 52px 24px 16px;
    background: white;
}

#coupon-wheel-modal.coupon-wheel-modal #coupon-wheel-title {
    margin: 0 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-body {
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: 4px 24px 24px;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-close {
    position: absolute;
    top: 4px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    font: 32px/1 sans-serif;
    cursor: pointer;
    color: #444;
}

#coupon-wheel-modal.coupon-wheel-modal .wheel-wrapper {
    position: relative;
    --coupon-wheel-size: min(300px, calc(100vw - 96px), max(120px, calc(100vh - 280px)));
    display: block;
    width: 300px;
    height: 300px;
    width: var(--coupon-wheel-size);
    height: var(--coupon-wheel-size);
    max-width: 100%;
    margin: 28px auto 0;
}

#coupon-wheel-modal.coupon-wheel-modal .wheel {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

#coupon-wheel-modal.coupon-wheel-modal .wheel-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #ff6b6b;
    position: relative;
    overflow: hidden;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-segments {
    display: block;
    width: 100%;
    height: 100%;
    shape-rendering: geometricPrecision;
}

#coupon-wheel-modal.coupon-wheel-modal .wheel-pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-top: 32px solid #222;
    z-index: 1;
}

#coupon-wheel-modal.coupon-wheel-modal .spin-button,
#coupon-wheel-modal.coupon-wheel-modal .coupon-product-link,
#coupon-wheel-modal.coupon-wheel-modal .coupon-copy-code {
    display: inline-block;
    border: 0;
    border-radius: 8px;
    background: #b53b31;
    color: white;
    padding: 12px 20px;
    margin: 12px 4px 0;
    min-height: 44px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

#coupon-wheel-modal.coupon-wheel-modal .spin-button {
    margin: 20px 0 0;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-copy-code {
    background: #333;
}

#coupon-wheel-modal.coupon-wheel-modal .spin-button:hover,
#coupon-wheel-modal.coupon-wheel-modal .coupon-product-link:hover {
    background: #932f27;
    color: white;
}

#coupon-wheel-modal.coupon-wheel-modal .spin-button:disabled {
    background: #777;
    cursor: wait;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-result,
#coupon-wheel-modal.coupon-wheel-modal .already-spun {
    margin-top: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 5px solid #38823d;
}

#coupon-wheel-modal.coupon-wheel-modal .already-spun {
    background: #fff3cd;
    border-color: #856404;
    color: #624900;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-code {
    font-size: 24px;
    font-weight: bold;
    color: #a33128;
    margin: 10px 0;
    padding: 10px;
    background: white;
    border: 2px dashed currentColor;
    border-radius: 5px;
    overflow-wrap: anywhere;
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-description {
    color: #444;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

#coupon-wheel-modal.coupon-wheel-modal .product-image-container {
    margin: 15px 0;
}

#coupon-wheel-modal.coupon-wheel-modal .product-image-container img {
    display: inline-block;
    max-width: min(200px, 100%);
    max-height: 150px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

#coupon-wheel-modal.coupon-wheel-modal button:focus-visible,
#coupon-wheel-modal.coupon-wheel-modal a:focus-visible,
.coupon-wheel-floating:focus-visible {
    outline: 3px solid #135e96;
    outline-offset: 3px;
}

#coupon-wheel-modal.coupon-wheel-modal #coupon-wheel-message:empty {
    display: none;
}

.coupon-wheel-floating {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #b53b31;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    font-size: 24px;
    padding: 0;
}

@media (max-width: 360px) {
    #coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-header {
        padding-right: 12px;
        padding-left: 12px;
    }
    #coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-body {
        padding: 4px 12px 16px;
    }
    #coupon-wheel-modal.coupon-wheel-modal .wheel-wrapper {
        --coupon-wheel-size: min(300px, calc(100vw - 64px), max(120px, calc(100vh - 280px)));
    }
}

#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-segments,
#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-segments path,
#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-segments circle {
    opacity: 1;
    fill-opacity: 1;
    stroke: none;
    filter: none;
    mix-blend-mode: normal;
}
#coupon-wheel-modal.coupon-wheel-modal .coupon-wheel-segments stop {
    stop-opacity: 1;
}
