/**
 * DigieSales Lucky Wheel — Popup + Wheel + All Effects CSS
 */

/* ================================================================== */
/* Overlay + Modal                                                      */
/* ================================================================== */

.ds-lw-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ds-lw-overlay.ds-lw-visible {
    opacity: 1;
    visibility: visible;
}

.ds-lw-modal {
    position: relative;
    width: 940px;
    max-width: 96vw;
    max-height: 94vh;
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
    transform: translateY(24px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ds-lw-visible .ds-lw-modal {
    transform: translateY(0) scale(1);
}

.ds-lw-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 50;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #333;
    font-size: 0;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.ds-lw-modal__close:hover {
    background: #fff;
    color: #000;
    transform: scale(1.05);
}

.ds-lw-modal__close--right {
    display: none;
}

/* ================================================================== */
/* Content Layout (2 columns)                                          */
/* ================================================================== */

.ds-lw-content {
    display: flex;
    align-items: stretch;
    min-height: 520px;
}

.ds-lw-content__left {
    flex: 0 0 38%;
    padding: 44px 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.ds-lw-content__right {
    flex: 1 1 62%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 40% 35%, #1e2a3a 0%, #141b2d 50%, #0c1018 100%);
    border-radius: 0 24px 24px 0;
    padding: 24px;
    overflow: hidden;
}

.ds-lw-content__right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.02) 0%, transparent 60%);
    pointer-events: none;
}

/* ================================================================== */
/* Badge                                                                */
/* ================================================================== */

.ds-lw-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,184,148,0.08), rgba(0,184,148,0.15));
    color: #00b894;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    width: fit-content;
}

.ds-lw-badge svg {
    flex-shrink: 0;
}

/* ================================================================== */
/* Typography                                                           */
/* ================================================================== */

.ds-lw-title {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.ds-lw-desc {
    margin: 0 0 20px;
    font-size: 15px;
    color: #6b7280;
    line-height: 1.55;
}

/* ================================================================== */
/* Perks List                                                           */
/* ================================================================== */

.ds-lw-perks {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ds-lw-perks li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #374151;
    font-weight: 500;
}

.ds-lw-perks li svg {
    flex-shrink: 0;
}

/* ================================================================== */
/* Form                                                                */
/* ================================================================== */

.ds-lw-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ds-lw-field {
    display: flex;
    flex-direction: column;
}

.ds-lw-input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    color: #1a1a2e;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.ds-lw-input:focus {
    outline: none;
    border-color: #00b894;
    box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.1);
    background: #fff;
}

.ds-lw-gdpr {
    margin-top: 2px;
}

.ds-lw-gdpr__label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #9ca3af;
    cursor: pointer;
}

.ds-lw-gdpr__label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #00b894;
}

.ds-lw-spin-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00b894, #00d2a0);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.25);
}

.ds-lw-spin-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(0, 184, 148, 0.35);
}

.ds-lw-spin-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ================================================================== */
/* Footer Note                                                          */
/* ================================================================== */

.ds-lw-note {
    margin: 16px 0 0;
    font-size: 11.5px;
    color: #c0c5cc;
    text-align: center;
}

.ds-lw-form-error {
    padding: 8px 12px;
    border-radius: 8px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    font-size: 13px;
    animation: ds-lw-fade-in 0.3s ease;
}

/* ================================================================== */
/* Wheel                                                                */
/* ================================================================== */

.ds-lw-wheel-spin {
    width: 480px;
    height: 480px;
    position: relative;
}

.ds-lw-canvas {
    display: block;
    border-radius: 50%;
}

/* ================================================================== */
/* Pointer                                                              */
/* ================================================================== */

.ds-lw-pointer {
    position: absolute;
    z-index: 5;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.ds-lw-pointer--top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.ds-lw-pointer--right {
    top: 50%;
    right: -6px;
    transform: translateY(-50%) rotate(90deg);
}

.ds-lw-pointer--bottom {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.ds-lw-pointer--left {
    top: 50%;
    left: -6px;
    transform: translateY(-50%) rotate(-90deg);
}

.ds-lw-pointer-tick {
    animation: ds-lw-tick 0.1s linear infinite alternate;
}

@keyframes ds-lw-tick {
    from { transform: translateX(-50%) rotate(-4deg); }
    to   { transform: translateX(-50%) rotate(4deg); }
}

/* ================================================================== */
/* Spin Effects                                                         */
/* ================================================================== */

.ds-lw-spin-blur {
    filter: blur(1.2px);
    transition: filter 0.4s ease;
}

.ds-lw-winner-glow {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3), transparent 60%);
    animation: ds-lw-glow-pulse 1s ease-in-out 3;
    pointer-events: none;
}

@keyframes ds-lw-glow-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ================================================================== */
/* Result Panel (inside left column)                                    */
/* ================================================================== */

.ds-lw-result {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    text-align: center;
    flex: 1;
    animation: ds-lw-fade-in 0.4s ease;
}

.ds-lw-result__icon {
    font-size: 52px;
    margin-bottom: 10px;
    animation: ds-lw-bounce-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ds-lw-result__title {
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a2e;
}

.ds-lw-result__prize {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 600;
    color: #00b894;
}

.ds-lw-result__coupon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 10px 16px;
    background: #f0fdf4;
    border: 2px dashed #00b894;
    border-radius: 10px;
}

.ds-lw-result__code {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    letter-spacing: 1px;
}

.ds-lw-result__copy {
    padding: 6px 14px;
    border: none;
    border-radius: 6px;
    background: #00b894;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ds-lw-result__copy:hover {
    background: #00a382;
}

.ds-lw-result__msg {
    margin: 0 0 16px;
    font-size: 13px;
    color: #6b7280;
}

.ds-lw-result__close {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: #1a1a2e;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.ds-lw-result__close:hover {
    background: #374151;
}

/* ================================================================== */
/* Floating Icon                                                        */
/* ================================================================== */

#ds-lw-icon {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999998;
    display: none;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00b894, #55efc4);
    box-shadow: 0 4px 16px rgba(0, 184, 148, 0.4);
    cursor: pointer;
    font-size: 28px;
    animation: ds-lw-bounce-subtle 2s ease-in-out infinite;
    transition: transform 0.2s;
}

/* Position variants — driven by data-position attribute on the icon */
#ds-lw-icon[data-position="bottom-right"] { right: 24px; left: auto; }
#ds-lw-icon[data-position="bottom-left"]  { left: 24px;  right: auto; }

#ds-lw-icon:hover {
    transform: scale(1.12);
}

@keyframes ds-lw-bounce-subtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ================================================================== */
/* Shake Validation                                                     */
/* ================================================================== */

.ds-lw-shake {
    animation: ds-lw-shake 0.4s ease;
}

@keyframes ds-lw-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

@keyframes ds-lw-bounce-in {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes ds-lw-fade-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================== */
/* ═══ CELEBRATION EFFECT ANIMATIONS ═══════════════════════════════ */
/* ================================================================== */

/* ── Fireworks ──────────────────────────────────────────── */

.ds-lw-fx-firework-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: ds-lw-fx-firework 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    pointer-events: none;
}

@keyframes ds-lw-fx-firework {
    0% {
        transform: translate(-50%, -50%) rotate(var(--fx-angle)) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--fx-angle)) translateY(calc(var(--fx-dist) * -1));
        opacity: 0;
    }
}

/* ── Confetti ───────────────────────────────────────────── */

.ds-lw-fx-confetti {
    position: absolute;
    animation: ds-lw-fx-confetti-fall 2.5s ease-in forwards;
    pointer-events: none;
}

@keyframes ds-lw-fx-confetti-fall {
    0% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--fx-drift)) rotate(var(--fx-spin));
        opacity: 0;
        top: 100%;
    }
}

/* ── Coin Shower ────────────────────────────────────────── */

.ds-lw-fx-coin {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd700, #daa520);
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.2), 0 0 6px rgba(255, 215, 0, 0.4);
    animation: ds-lw-fx-coin-fall 2.5s ease-in forwards;
    pointer-events: none;
}

.ds-lw-fx-coin::before {
    content: '$';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #b8860b;
}

@keyframes ds-lw-fx-coin-fall {
    0% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--fx-wobble)) rotateY(1080deg);
        top: 100%;
        opacity: 0;
    }
}

/* ── Ribbon Burst ───────────────────────────────────────── */

.ds-lw-fx-ribbon {
    position: absolute;
    width: 4px;
    height: 30px;
    border-radius: 2px;
    animation: ds-lw-fx-ribbon-burst 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    pointer-events: none;
}

@keyframes ds-lw-fx-ribbon-burst {
    0% {
        transform: translate(-50%, -50%) rotate(var(--fx-angle)) translateY(0) scaleY(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) rotate(var(--fx-angle)) translateY(-120px) scaleY(2);
        opacity: 0;
    }
}

/* ── Emoji Rain ─────────────────────────────────────────── */

.ds-lw-fx-emoji {
    position: absolute;
    animation: ds-lw-fx-emoji-fall 2.5s ease-in forwards;
    pointer-events: none;
}

@keyframes ds-lw-fx-emoji-fall {
    0% {
        transform: translateX(0) rotate(0);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--fx-drift)) rotate(360deg);
        top: 100%;
        opacity: 0;
    }
}

/* ── Glitter Explosion ──────────────────────────────────── */

.ds-lw-fx-flash {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    animation: ds-lw-fx-flash 0.25s ease-out forwards;
    pointer-events: none;
    border-radius: inherit;
}

@keyframes ds-lw-fx-flash {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.ds-lw-fx-glitter {
    position: absolute;
    border-radius: 50%;
    animation: ds-lw-fx-glitter-explode 0.9s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    pointer-events: none;
}

@keyframes ds-lw-fx-glitter-explode {
    0% {
        transform: translate(-50%, -50%) rotate(var(--fx-angle)) translateY(0);
        opacity: 1;
    }
    80% { opacity: 0.8; }
    100% {
        transform: translate(-50%, -50%) rotate(var(--fx-angle)) translateY(calc(var(--fx-dist) * -1));
        opacity: 0;
    }
}

/* ── Spotlight Pulse ────────────────────────────────────── */

.ds-lw-fx-spotlight {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 35%, rgba(255, 215, 0, 0.25), transparent 65%);
    animation: ds-lw-fx-spotlight 1.3s ease-in-out 3;
    pointer-events: none;
}

@keyframes ds-lw-fx-spotlight {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* ── Trophy Bounce ──────────────────────────────────────── */

.ds-lw-fx-trophy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 80px;
    animation: ds-lw-fx-trophy 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
}

@keyframes ds-lw-fx-trophy {
    0%   { transform: translate(-50%, -50%) scale(0) rotate(-20deg); }
    50%  { transform: translate(-50%, -50%) scale(1.2) rotate(5deg); }
    70%  { transform: translate(-50%, -50%) scale(0.9) rotate(-2deg); }
    100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 0; }
}


/* ================================================================== */
/* ═══ BACKGROUND EFFECT ANIMATIONS ════════════════════════════════ */
/* ================================================================== */

.ds-lw-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

/* ── Snowflakes ─────────────────────────────────────────── */

.ds-lw-bg-snowflake {
    position: absolute;
    top: -10px;
    border-radius: 50%;
    background: #fff;
    animation: ds-lw-bg-snow-fall linear infinite;
    pointer-events: none;
}

@keyframes ds-lw-bg-snow-fall {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(var(--fx-sway)) translateY(100vh);
        opacity: 0.3;
    }
}

/* ── Stars ──────────────────────────────────────────────── */

.ds-lw-bg-star {
    position: absolute;
    animation: ds-lw-bg-star-twinkle ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ds-lw-bg-star-twinkle {
    0% { opacity: 0.2; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* ── Floating Bubbles ───────────────────────────────────── */

.ds-lw-bg-bubble {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent);
    animation: ds-lw-bg-bubble-rise ease-in-out infinite;
    pointer-events: none;
}

@keyframes ds-lw-bg-bubble-rise {
    0% {
        transform: translateX(0) translateY(0);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% {
        transform: translateX(var(--fx-drift)) translateY(-100vh);
        opacity: 0;
    }
}

/* ── Falling Leaves ─────────────────────────────────────── */

.ds-lw-bg-leaf {
    position: absolute;
    width: 10px;
    height: 14px;
    border-radius: 50% 0 50% 0;
    opacity: 0.6;
    animation: ds-lw-bg-leaf-fall linear infinite;
    pointer-events: none;
}

@keyframes ds-lw-bg-leaf-fall {
    0% {
        transform: translateX(0) rotate(0deg);
    }
    100% {
        transform: translateX(var(--fx-drift)) rotate(var(--fx-spin)) translateY(100vh);
    }
}

/* ── Aurora ──────────────────────────────────────────────── */

.ds-lw-bg-aurora-band {
    position: absolute;
    left: -10%;
    right: -10%;
    height: 40%;
    border-radius: 50%;
    opacity: 0.15;
    filter: blur(40px);
    animation: ds-lw-bg-aurora 8s ease-in-out infinite alternate;
    pointer-events: none;
}

.ds-lw-bg-aurora-band:nth-child(1) { background: #6c5ce7; }
.ds-lw-bg-aurora-band:nth-child(2) { background: #00cec9; }
.ds-lw-bg-aurora-band:nth-child(3) { background: #00b894; }
.ds-lw-bg-aurora-band:nth-child(4) { background: #a29bfe; }

@keyframes ds-lw-bg-aurora {
    0% { transform: translateX(-8%) scaleY(0.8); }
    100% { transform: translateX(8%) scaleY(1.2); }
}

/* ── Sparkle Dust ───────────────────────────────────────── */

.ds-lw-bg-sparkle {
    position: absolute;
    border-radius: 50%;
    background: #ffd700;
    animation: ds-lw-bg-sparkle ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes ds-lw-bg-sparkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.3); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* ── Neon Glow ──────────────────────────────────────────── */

.ds-lw-neon-active {
    box-shadow: 0 0 20px rgba(0, 184, 148, 0.5),
                0 0 40px rgba(0, 184, 148, 0.3),
                0 0 60px rgba(108, 92, 231, 0.2);
    animation: ds-lw-bg-neon 2s ease-in-out infinite alternate;
}

@keyframes ds-lw-bg-neon {
    0% {
        box-shadow: 0 0 20px rgba(0, 184, 148, 0.5),
                    0 0 40px rgba(0, 184, 148, 0.3),
                    0 0 60px rgba(108, 92, 231, 0.2);
    }
    100% {
        box-shadow: 0 0 25px rgba(108, 92, 231, 0.5),
                    0 0 50px rgba(108, 92, 231, 0.3),
                    0 0 75px rgba(0, 184, 148, 0.2);
    }
}

/* ── Rain ────────────────────────────────────────────────── */

.ds-lw-bg-rain {
    position: absolute;
    width: 1.5px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.4));
    animation: ds-lw-bg-rain-fall linear infinite;
    pointer-events: none;
}

@keyframes ds-lw-bg-rain-fall {
    0% { transform: translateY(0); opacity: 0.6; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* ================================================================== */
/* Responsive                                                           */
/* ================================================================== */

@media (max-width: 760px) {
    .ds-lw-content {
        flex-direction: column;
    }

    .ds-lw-content__right {
        border-radius: 0 0 16px 16px;
        padding: 20px;
    }

    .ds-lw-wheel-spin {
        width: 240px;
        height: 240px;
    }

    .ds-lw-canvas {
        width: 240px !important;
        height: 240px !important;
    }

    .ds-lw-content__left {
        padding: 24px 20px;
    }

    .ds-lw-title {
        font-size: 20px;
    }

    .ds-lw-modal {
        width: auto;
        margin: 8px;
    }

    .ds-lw-modal--offcanvas {
        width: 100% !important;
        max-width: 100vw !important;
        height: auto !important;
        max-height: 96vh;
    }
}

/* ================================================================== */
/* Off-Canvas Mode                                                      */
/* ================================================================== */

.ds-lw-modal--offcanvas {
    position: fixed;
    top: 0;
    bottom: 0;
    width: 520px;
    max-width: 90vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ds-lw-modal--offcanvas-right {
    right: 0;
    left: auto;
    transform: translateX(100%);
}

.ds-lw-modal--offcanvas-left {
    left: 0;
    right: auto;
    transform: translateX(-100%);
}

.ds-lw-visible .ds-lw-modal--offcanvas {
    transform: translateX(0);
}

.ds-lw-overlay--offcanvas {
    justify-content: flex-end;
}

.ds-lw-overlay--offcanvas .ds-lw-modal--offcanvas-left {
    margin-right: auto;
}

.ds-lw-content--offcanvas {
    flex-direction: column;
    min-height: 100vh;
    overflow-y: auto;
}

.ds-lw-content--offcanvas .ds-lw-content__right {
    order: -1;
    flex: 0 0 auto;
    border-radius: 0;
    padding: 20px;
    min-height: 340px;
}

.ds-lw-content--offcanvas .ds-lw-content__left {
    flex: 1 1 auto;
    padding: 24px 28px 20px;
}

.ds-lw-content--offcanvas .ds-lw-modal__close {
    left: 16px;
    right: auto;
}

/* ================================================================== */
/* Auto-apply coupon badge                                             */
/* ================================================================== */

.ds-lw-result__apply-status {
    margin: 0 0 8px;
    font-size: 13px;
    color: #6b7280;
    min-height: 20px;
}

.ds-lw-applied-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0,184,148,0.1), rgba(0,184,148,0.2));
    color: #00b894;
    font-weight: 600;
    font-size: 13px;
}
