/* استایل‌های پایه شمارنده */
.bebanstore-countdown {
    font-family: inherit;
    text-align: center;
    margin: 0;
    direction: ltr;
}

.bebanstore-countdown-timer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* سازگاری با RTL */
.rtl .bebanstore-countdown {
    direction: ltr;
}

/* سازگاری با موبایل */
@media screen and (max-width: 480px) {
    .bebanstore-countdown {
        font-size: 0.9em;
    }
}

/* ========== سبک‌های جدید شمارنده معکوس ========== */

/* 1. سبک کلاسیک (پیش‌فرض) */
.bebanstore-countdown-classic .bebanstore-countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* فاصله یکسان بین همه عناصر */
}

.bebanstore-countdown-classic .bebanstore-countdown-item {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bebanstore-countdown-classic .bebanstore-countdown-number {
    color: inherit;
    font-size: inherit !important;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bebanstore-countdown-classic .bebanstore-countdown-separator {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* جلوگیری از کوچک شدن */
}


/* 2. سبک کارتی */
.bebanstore-countdown-card .bebanstore-countdown-timer {
    display: inline-flex;
    align-items: center;
    /* gap توسط JS اعمال می‌شود */
}

.bebanstore-countdown-card .bebanstore-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    /* استایل‌های زیر توسط JS اعمال می‌شوند:
       - background-color
       - border-color
       - border-width
       - border-style
       - border-radius
       - padding
    */
}

.bebanstore-countdown-card .bebanstore-countdown-number {
    color: inherit;
    font-size: inherit !important;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bebanstore-countdown-card .bebanstore-countdown-label {
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    line-height: 1.2;
    margin: 0;
}

.bebanstore-countdown-card .bebanstore-countdown-separator {
    display: none !important;
}


/* 3. سبک خطی */
.bebanstore-countdown-inline .bebanstore-countdown-timer {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

.bebanstore-countdown-inline .bebanstore-countdown-item {
    display: none !important;
}

.bebanstore-countdown-inline span {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.bebanstore-countdown-inline .bebanstore-countdown-number,
.bebanstore-countdown-inline .bebanstore-countdown-days,
.bebanstore-countdown-inline .bebanstore-countdown-hours,
.bebanstore-countdown-inline .bebanstore-countdown-minutes,
.bebanstore-countdown-inline .bebanstore-countdown-seconds {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0 !important; /* عدم اعمال padding روی عناصر داخلی */
}

.bebanstore-countdown-inline .bebanstore-countdown-label {
    font-size: 12px;
    color: #666;
    margin-right: 4px;
    font-weight: normal;
    padding: 0 !important; /* عدم اعمال padding روی برچسب‌ها */
}

.bebanstore-countdown-inline .bebanstore-countdown-separator {
    font-weight: bold;
    margin: 0 4px;
    line-height: 1;
    padding: 0 !important; /* جلوگیری از اعمال padding روی جداکننده‌ها */
}

/* تنظیمات responsive */
@media screen and (max-width: 480px) {
    .bebanstore-countdown-classic .bebanstore-countdown-item {
        min-width: auto;
    }
    
    .bebanstore-countdown-card .bebanstore-countdown-item {
        padding: 6px 8px;
        min-width: 40px;
    }
} 