.coupon-root [hidden] {
    display: none !important;
}

.coupon-launcher {
    position: fixed;
    top: 50%;
    left: .75rem;
    z-index: 40;
    display: grid;
    min-width: 5rem;
    min-height: 5rem;
    place-items: center;
    padding: .65rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #fde68a, #facc15 58%, #fb923c);
    color: #0f172a;
    cursor: pointer;
    transform: translateY(-50%);
    animation: coupon-launcher-glow 2.4s ease-in-out infinite;
    transition: transform .25s ease;
}

.coupon-launcher:hover,
.coupon-launcher:focus-visible {
    transform: translateY(-50%) scale(1.06);
}

.coupon-launcher:focus-visible,
.coupon-dialog button:focus-visible,
.coupon-dialog input:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
}

.coupon-video {
    position: fixed;
    bottom: .75rem;
    left: .75rem;
    z-index: 999;
    display: block;
    width: clamp(9rem, 22vw, 16rem);
    aspect-ratio: 16 / 9;
    border: 2px solid white;
    border-radius: .75rem;
    background: #0f172a;
    object-fit: cover;
    box-shadow: 0 8px 24px rgb(15 23 42 / 30%);
 
}

.coupon-launcher__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    line-height: 1.1;
}

.coupon-launcher__gift {
    font-size: 1.7rem;
}

.coupon-launcher__text {
    max-width: 8rem;
    font-size: .64rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-align: center;
    text-transform: uppercase;
}

.coupon-launcher--claimed {
    min-width: 8rem;
    min-height: 4.5rem;
    background: linear-gradient(160deg, #1d4ed8, #6d28d9);
    color: white;
    box-shadow: 0 12px 28px rgb(29 78 216 / 32%);
}

.coupon-launcher--claimed .coupon-launcher__text {
    font-size: .68rem;
    text-transform: none;
}

.coupon-dialog {
    width: min(94vw, 36rem);
    max-width: none;
    max-height: 90vh;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 1.25rem;
    background: transparent;
    color: #0f172a;
}

.coupon-dialog::backdrop {
    background: rgb(15 23 42 / 70%);
    backdrop-filter: blur(5px);
}

.coupon-dialog--wheel {
    height: min(44rem, 90vh);
}

.coupon-dialog__panel {
    position: relative;
    padding: 2rem 1.25rem 1.5rem;
    border-radius: inherit;
    background: white;
    text-align: center;
    box-shadow: 0 24px 70px rgb(15 23 42 / 30%);
}

.coupon-dialog__close {
    position: absolute;
    top: .65rem;
    right: .65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    font-size: 1.5rem;
}

.coupon-dialog__title {
    margin: 0 2rem 1rem;
    color: #0f172a;
    font-size: 1.4rem;
    font-weight: 800;
}

.coupon-email-form {
    display: grid;
    max-width: 26rem;
    gap: .75rem;
    margin: 1.25rem auto;
    text-align: left;
}

.coupon-email-form label {
    color: #334155;
    font-size: .9rem;
    font-weight: 700;
}

.coupon-email-form input {
    width: 100%;
    padding: .8rem .9rem;
    border: 1px solid #ff8a56;
    border-radius: .65rem;
    font: inherit;
}

.coupon-button {
    min-height: 2.8rem;
    padding: .65rem 1rem;
    border: 0;
    border-radius: .65rem;
    background: #ff8a56;
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.coupon-button:hover:not(:disabled) {
    background: #cf5a28;
}

.coupon-button:disabled {
    cursor: wait;
    opacity: .65;
}

.coupon-status {
    min-height: 1.5rem;
    margin: .75rem auto;
    color: #475569;
    font-size: .9rem;
}

.coupon-status--error {
    color: #b91c1c;
}

.coupon-wheel-stage {
    margin-top: 1rem;
}

.coupon-wheel-frame {
    position: relative;
    --coupon-label-offset: clamp(-12rem, -33vw, -6rem);
    width: min(80vw, 32rem);
    aspect-ratio: 1;
    margin: 1rem auto;
    padding: .5rem;
    border: .45rem solid white;
    border-radius: 50%;
    box-shadow: 0 16px 40px rgb(15 23 42 / 25%), 0 0 0 1px #e2e8f0;
}

.coupon-wheel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 50%;
    transition: transform 5s cubic-bezier(.12, .75, .14, 1);
    will-change: transform;
}

.coupon-wheel__pointer {
    position: absolute;
    top: -.25rem;
    left: 50%;
    z-index: 2;
    width: 0;
    height: 0;
    border-top: 1.5rem solid #e11d48;
    border-right: .9rem solid transparent;
    border-left: .9rem solid transparent;
    filter: drop-shadow(0 2px 2px rgb(15 23 42 / 25%));
    transform: translateX(-50%);
}

.coupon-wheel__label {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32%;
    color: #eee;
    font-size: clamp(.65rem, 1vw, 1rem);
    font-weight: 800;
    text-align: center;
    text-shadow: 0 1px 2px rgb(255 255 255 / 60%);
    white-space: nowrap;
    transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(var(--coupon-label-offset)) rotate(var(--label-correction));
    transform-origin: center;
    padding:10px;
}

.coupon-wheel__name {
    display: block;
    white-space: normal;
    line-height: 1.15;
}

.coupon-spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    width: 5.5rem;
    height: 5.5rem;
    padding: .5rem;
    border: 4px solid white;
    border-radius: 50%;
    background: #0f172a;
    color: white;
    cursor: pointer;
    font-size: .8rem;
    font-weight: 900;
    transform: translate(-50%, -50%);
    box-shadow: 0 4px 14px rgb(15 23 42 / 35%);
}

.coupon-spin-button:disabled {
    cursor: wait;
}

.coupon-reward {
    display: grid;
    gap: .35rem;
    max-width: 25rem;
    margin: 1rem auto;
    padding: 1rem;
    border: 1px solid #fed7aa;
    border-radius: .9rem;
    background: #fff7ed;
    color: #9a3412;
}

.coupon-reward__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 1.2rem;
    overflow-wrap: anywhere;
}

.coupon-reward__timer {
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.coupon-reward__offer {
    font-size: 1.05rem;
}

.coupon-reward__description {
    color: #c2410c;
    font-size: .9rem;
}

.coupon-inline {
    max-width: 46rem;
    margin: 2.5rem auto;
    padding: 1.5rem 1rem;
    text-align: center;
}

.coupon-inline .coupon-dialog__title {
    margin: 0 0 1rem;
}

.coupon-inline .coupon-email-form {
    margin-inline: auto;
}

.coupon-float {
    position: fixed;
    left: 1rem;
    top: 50%;
    z-index: 999;
    width: 16rem;
    padding: 1rem 1.1rem;
    border: 1px solid #fed7aa;
    border-radius: .9rem;
    background: #fff7ed;
    box-shadow: 0 14px 34px rgb(23 59 84 / 18%);
    color: #9a3412;
    text-align: left;
    transform: translateY(-50%);
}

.coupon-float[hidden] {
    display: none !important;
}

.coupon-float__body {
    display: grid;
    gap: .3rem;
}

.coupon-float__label {
    margin: 0;
    color: #c2410c;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.coupon-float__offer {
    font-size: 1rem;
    line-height: 1.35;
}

.coupon-float__code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .9rem;
    letter-spacing: .05em;
    overflow-wrap: anywhere;
}

.coupon-float__description {
    color: #c2410c;
    font-size: .8rem;
    line-height: 1.5;
}

.coupon-float__expires {
    font-size: .8rem;
}

.coupon-float__timer {
    font-variant-numeric: tabular-nums;
    font-weight: 900;
}

.coupon-float__toggle {
    position: absolute;
    top: -.6rem;
    right: -.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 .35rem;
    border: 0;
    border-radius: 0.6rem;
    background: #c2410c;
    color: #fff;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
}

.coupon-float__toggle:hover {
    background: #9a3412;
}

.coupon-float__toggle-title,
.coupon-float__toggle-time {
    display: none;
}

.coupon-float--collapsed .coupon-float__toggle-icon {
    display: none;
}

.coupon-float--collapsed .coupon-float__toggle-title,
.coupon-float--collapsed .coupon-float__toggle-time {
    display: inline;
    white-space: nowrap;
}

.coupon-float--collapsed .coupon-float__toggle-title {
    font-weight: 700;
}

.coupon-float--collapsed {
    width: auto;
    padding: .25rem;
}

.coupon-float--collapsed .coupon-float__body {
    display: none;
}

.coupon-float--collapsed .coupon-float__toggle {
    position: static;
    flex-direction: column;
    height: auto;
    padding: .3rem .6rem;
    gap: .15rem;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .coupon-float {
        left: .5rem;
        width: min(13rem, 62vw);
        padding: .75rem .85rem;
        bottom: 0;
        top: unset;
    }
    .coupon-float.coupon-float--collapsed {
        width: auto;
        padding: .25rem;
    }
}

@keyframes coupon-launcher-glow {
    0%, 100% { box-shadow: 0 12px 28px rgb(146 64 14 / 30%); }
    50% { box-shadow: 0 14px 36px rgb(146 64 14 / 50%); }
}

@media (min-width: 640px) {
    .coupon-launcher { left: 1.25rem; }
    .coupon-video { bottom: 1.25rem; left: 1.25rem; }
    .coupon-dialog__panel { padding: 2.25rem 2rem 1.75rem; }
}

@media (max-width: 420px) {
    .coupon-wheel__label { transform: translate(-50%, -50%) rotate(var(--label-angle)) translateY(-7.2rem); }
    .coupon-spin-button { width: 4.5rem; height: 4.5rem; font-size: .7rem; }
}
