/* استایل‌های پایه شمارنده */
.bebanstore-countdown {
    font-family: inherit;
    text-align: center;
    margin: 0;
    padding: 0;
    direction: ltr;
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    --beban-countdown-color: #000000;
    --beban-separator-color: #000000;
    --beban-label-color: #666666;
    --beban-number-size: 14px;
    --beban-separator-size: 16px;
    --beban-label-size: 12px;
    --beban-box-padding: 8px;
    --beban-label-gap: 8px;
    --beban-card-bg: #ffffff;
    --beban-card-border-color: #ededed;
    --beban-card-border-width: 1px;
    --beban-card-border-radius: 8px;
    --beban-card-gap: 4px;
}

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

.bebanstore-countdown-days,
.bebanstore-countdown-hours,
.bebanstore-countdown-minutes,
.bebanstore-countdown-seconds {
    color: var(--beban-countdown-color);
    font-size: var(--beban-number-size);
    line-height: 1;
}

.bebanstore-countdown-separator {
    color: var(--beban-separator-color);
    font-size: var(--beban-separator-size);
    line-height: 1;
}

.bebanstore-countdown-label {
    color: var(--beban-label-color);
    font-size: var(--beban-label-size);
}

.bebanstore-countdown-expired,
.countdown-placeholder {
    text-align: center;
    color: var(--beban-label-color, #666666);
    font-size: var(--beban-label-size, 12px);
}

/* سازگاری با 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: var(--beban-box-padding) !important;
    border-radius: 0 !important;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.bebanstore-countdown-classic .bebanstore-countdown-separator {
    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: var(--beban-card-gap);
}

.bebanstore-countdown-card .bebanstore-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: var(--beban-box-padding);
    background-color: var(--beban-card-bg);
    border-color: var(--beban-card-border-color);
    border-width: var(--beban-card-border-width);
    border-style: solid;
    border-radius: var(--beban-card-border-radius);
}

.bebanstore-countdown-card .bebanstore-countdown-days,
.bebanstore-countdown-card .bebanstore-countdown-hours,
.bebanstore-countdown-card .bebanstore-countdown-minutes,
.bebanstore-countdown-card .bebanstore-countdown-seconds {
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
}

.bebanstore-countdown-card .bebanstore-countdown-label {
    line-height: 1.2;
    margin: var(--beban-label-gap) 0 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;
    padding: var(--beban-box-padding);
}

.bebanstore-countdown-inline .bebanstore-countdown-day-item,
.bebanstore-countdown-inline .bebanstore-countdown-hour-item,
.bebanstore-countdown-inline .bebanstore-countdown-minute-item,
.bebanstore-countdown-inline .bebanstore-countdown-second-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.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-label {
    margin-right: 4px;
    font-weight: normal;
}

.bebanstore-countdown-inline .bebanstore-countdown-separator {
    font-weight: bold;
    margin: 0 4px;
}

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

    .bebanstore-countdown-card .bebanstore-countdown-item {
        min-width: 40px;
    }
}
