/* ===== WooCommerce Sale Timer — Styles ===== */

/* ── Container général ── */
.wst-timer {
    margin: 16px 0 20px;
    font-family: inherit;
}

/* ── Timer actif ── */
.wst-timer.wst-active {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 12px;
    padding: 18px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    display: inline-block;
    min-width: 280px;
}

.wst-label {
    color: #e0e0e0;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 500;
}

.wst-countdown {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wst-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 52px;
}

.wst-unit span {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 52px;
    text-align: center;
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.wst-unit span.wst-pulse {
    color: #e94560;
}

.wst-unit em {
    font-style: normal;
    font-size: 0.6rem;
    color: #9e9e9e;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 5px;
    font-weight: 400;
}

.wst-sep {
    color: rgba(255,255,255,0.4);
    font-size: 1.6rem;
    font-weight: 300;
    margin-bottom: 14px;
    line-height: 1;
}

/* Urgence : moins de 1h */
.wst-timer.wst-urgent .wst-unit span {
    color: #e94560;
    animation: wst-blink 1s ease-in-out infinite;
}

@keyframes wst-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}

/* ── Expiré ── */
.wst-timer.wst-expired {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    border-radius: 8px;
    padding: 12px 18px;
    display: inline-block;
}

.wst-expired-msg {
    color: #842029;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── Pas encore commencé ── */
.wst-timer.wst-not-started {
    background: #fff3cd;
    border: 1px solid #ffecb5;
    border-radius: 8px;
    padding: 12px 18px;
    display: inline-block;
    color: #664d03;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ── Badges archives ── */
.wst-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.wst-badge-active {
    background: #0f3460;
    color: #ffffff;
}

.wst-badge-expired {
    background: #dc3545;
    color: #ffffff;
}

.wst-badge-soon {
    background: #fd7e14;
    color: #ffffff;
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wst-unit span {
        font-size: 1.5rem;
        min-width: 40px;
        padding: 5px 7px;
    }
    .wst-timer.wst-active {
        padding: 14px 16px;
    }
    .wst-unit {
        min-width: 40px;
    }
}
