/* Style par défaut */
.promo-countdown-wrapper {
    margin: 15px 0;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.countdown-container {
    font-size: 1em;
}

.countdown-label {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.countdown-label i {
    vertical-align: middle;
    margin-right: 5px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    direction: ltr !important;
}

.countdown-block {
    text-align: center;
    min-width: 60px;
}

.countdown-timer .countdown-days,
.countdown-timer .countdown-hours,
.countdown-timer .countdown-minutes,
.countdown-timer .countdown-seconds {
    font-size: 1.5em;
    font-weight: bold;
    display: block;
    background: rgba(0,0,0,0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.countdown-unit {
    font-size: 0.7em;
    display: block;
    margin-top: 1px;
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 1.5em;
    font-weight: bold;
}

.countdown-date {
    margin-top: 8px;
    font-size: 0.8em;
}

/* Style compact */
.countdown-style-compact .countdown-timer {
    gap: 5px;
}

.countdown-style-compact .countdown-block {
    min-width: 40px;
}

.countdown-style-compact .countdown-timer .countdown-days,
.countdown-style-compact .countdown-timer .countdown-hours,
.countdown-style-compact .countdown-timer .countdown-minutes,
.countdown-style-compact .countdown-timer .countdown-seconds {
    font-size: 1.2em;
    padding: 3px 6px;
}

.countdown-style-compact .countdown-unit {
    font-size: 0.6em;
}

/* Style large */
.countdown-style-large .countdown-timer {
    gap: 15px;
}

.countdown-style-large .countdown-block {
    min-width: 80px;
}

.countdown-style-large .countdown-timer .countdown-days,
.countdown-style-large .countdown-timer .countdown-hours,
.countdown-style-large .countdown-timer .countdown-minutes,
.countdown-style-large .countdown-timer .countdown-seconds {
    font-size: 2em;
    padding: 8px 15px;
}

.countdown-style-large .countdown-unit {
    font-size: 0.8em;
}

/* Style pour les listes */
.promo-countdown-list {
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 0.85em;
}

.countdown-timer-list {
  font-weight: bold;
  direction: ltr !important;
  align-items: flex-start;
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.countdown-timer-list span {
    background: rgba(0,0,0,0.1);
    padding: 2px 5px;
    border-radius: 3px;
    margin: 0 2px;
}

.countdown-unit-list {
    margin: 0 2px 0 0;
}

/* Animation d'urgence */
.promo-countdown-wrapper.urgent {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Masquer le countdown de la liste sur la fiche produit */
body#product .promo-countdown-list {
    display: none !important;
}

/* Support RTL pour arabe */
html.rtl .countdown-label i {
    margin-right: 0;
    margin-left: 5px;
}

html.rtl .countdown-separator {
    display: inline-block;
    transform: scaleX(-1);
}

/* Responsive */
@media (max-width: 768px) {
    .countdown-timer {
        flex-wrap: wrap;
        justify-content: center;
    }

    .countdown-block {
        min-width: 45px !important;
    }

    .countdown-timer .countdown-days,
    .countdown-timer .countdown-hours,
    .countdown-timer .countdown-minutes,
    .countdown-timer .countdown-seconds {
        font-size: 1em !important;
        padding: 3px 6px !important;
    }

    .countdown-unit {
        font-size: 0.6em !important;
    }
}
