/* ===== Discount Sale v1.4 ===== */

#ds-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999998;
    justify-content: center;
    align-items: center;
    padding: 16px;
    backdrop-filter: blur(2px);
    animation: ds-fade-in 0.3s ease;
}

#ds-overlay.ds-visible {
    display: flex;
}

@keyframes ds-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

#ds-offer {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 36px 32px 30px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    animation: ds-slide-up 0.35s cubic-bezier(0.34,1.56,0.64,1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@keyframes ds-slide-up {
    from { opacity: 0; transform: translateY(40px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Close button */
#ds-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}
#ds-close-btn:hover { color: #111; background: #f3f4f6; }

/* Badge */
#ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    color: #92400e;
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* Headline */
#ds-headline {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Discount text */
#ds-discount-text {
    font-size: 38px;
    font-weight: 900;
    color: #e11d48;
    margin: 0 0 14px;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

/* Description */
#ds-text2 {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0 0 18px;
}

/* ── Coupon Code Box ── */
#ds-coupon-wrap {
    display: flex;
    align-items: stretch;
    border: 2px dashed #e11d48;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fff5f7;
}

#ds-coupon-btn {
    flex-shrink: 0;
    background: #e11d48;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 12px 18px;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
#ds-coupon-btn:hover { background: #be123c; }

#ds-coupon-code-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 12px 14px;
}

#ds-coupon-code {
    font-size: 18px;
    font-weight: 800;
    color: #e11d48;
    letter-spacing: 3px;
    transition: filter 0.3s;
    user-select: none;
}

#ds-coupon-code.ds-blurred {
    filter: blur(6px);
    user-select: none;
}

/* "Click to reveal" hint — same size as the Get Code button text */
#ds-coupon-hint {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #e11d48;
    background: rgba(255,245,247,0.6);
    pointer-events: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Timer */
#ds-timer-wrap {
    border: 2px dashed #e11d48;
    border-radius: 10px;
    padding: 12px 20px;
    margin-bottom: 22px;
    background: #fff5f7;
}

#ds-timer-label {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#ds-timer-display {
    font-size: 40px;
    font-weight: 800;
    color: #111827;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

/* CTA Button */
#ds-btn {
    display: block;
    width: 100%;
    background: #e11d48;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    padding: 15px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(225,29,72,0.35);
    letter-spacing: 0.2px;
}
#ds-btn:hover { background: #be123c; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(225,29,72,0.4); }
#ds-btn:active { transform: translateY(0); }

/* Responsive */
@media (max-width: 520px) {
    #ds-offer { padding: 28px 20px 24px; }
    #ds-discount-text { font-size: 30px; }
    #ds-timer-display { font-size: 32px; }
    #ds-headline { font-size: 20px; }
    #ds-coupon-btn { padding: 10px 14px; font-size: 12px; }
    #ds-coupon-hint { font-size: 12px; }
}
