/* ووکامرس پلاس - تایمر تخفیف. رنگ‌ها و اندازه‌ها از متغیرهای --wt-* می‌آیند */
.wcplus-timer {
	--wt-bg: #ffffff; --wt-text: #1d2327; --wt-num: #d63638; --wt-lbl: #646970; --wt-border: #e2e4e7; --wt-accent: #d63638;
	--wt-num-size: 22px; --wt-lbl-size: 11px; --wt-title-size: 13px; --wt-num-weight: 700; --wt-title-weight: 600;
	--wt-radius: 10px; --wt-bw: 1px; --wt-gap: 8px; --wt-align: right; --wt-justify: flex-end; --wt-ml: auto; --wt-mr: 0;
	box-sizing: border-box; margin: 12px var(--wt-mr) 12px var(--wt-ml); width: var(--wt-width, fit-content); max-width: 100%; text-align: var(--wt-align); color: var(--wt-text);
	font-family: var(--wt-font, inherit); line-height: 1.4; direction: rtl;
}
.wcplus-timer *, .wcplus-timer *::before, .wcplus-timer *::after { box-sizing: border-box; }
.wcplus-timer[hidden] { display: none !important; }
.wcplus-timer__title { margin-bottom: 8px; font-size: var(--wt-title-size); font-weight: var(--wt-title-weight); color: var(--wt-text); }
.wcplus-timer__grid { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wt-gap); justify-content: var(--wt-justify); }
.wcplus-timer__num { display: block; font-size: var(--wt-num-size); font-weight: var(--wt-num-weight); color: var(--wt-num); line-height: 1.2; font-variant-numeric: tabular-nums; }
.wcplus-timer__lbl { display: block; font-size: var(--wt-lbl-size); color: var(--wt-lbl); margin-top: 2px; }
.wcplus-timer__unit { text-align: center; }

/* کلاسیک: اعداد با دو نقطه، بدون کادر */
.wcplus-timer--classic .wcplus-timer__grid { gap: calc(var(--wt-gap) / 2); direction: ltr; }
.wcplus-timer--classic .wcplus-timer__unit { min-width: 2.4em; }
.wcplus-timer--classic .wcplus-timer__sep { font-size: var(--wt-num-size); font-weight: var(--wt-num-weight); color: var(--wt-num); align-self: flex-start; line-height: 1.2; }

/* کارتی: هر واحد یک کارت */
.wcplus-timer--card .wcplus-timer__grid { direction: ltr; }
.wcplus-timer--card .wcplus-timer__unit {
	min-width: calc(var(--wt-num-size) * 2.4); padding: calc(var(--wt-num-size) * .4) calc(var(--wt-num-size) * .5);
	background: var(--wt-bg); border: var(--wt-bw) solid var(--wt-border); border-radius: var(--wt-radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
}

/* خطی: یک نوار افقی با نوار پیشرفت */
.wcplus-timer--line { padding: calc(var(--wt-num-size) * .5) calc(var(--wt-num-size) * .7); background: var(--wt-bg); border: var(--wt-bw) solid var(--wt-border); border-radius: var(--wt-radius); }
.wcplus-timer--line .wcplus-timer__title { margin-bottom: 6px; }
.wcplus-timer--line .wcplus-timer__grid { gap: calc(var(--wt-gap) * 1.5); }
.wcplus-timer--line .wcplus-timer__unit { display: flex; align-items: baseline; gap: 4px; }
.wcplus-timer--line .wcplus-timer__lbl { margin-top: 0; }
.wcplus-timer__bar { height: 6px; margin-top: 10px; background: rgba(0, 0, 0, .08); border-radius: 99px; overflow: hidden; }
.wcplus-timer__bar i { display: block; height: 100%; width: 100%; background: var(--wt-accent); border-radius: 99px; transition: width 1s linear; }

.wcplus-timer--loop { margin: 8px 0; }
.wcplus-timer__ended { font-weight: var(--wt-title-weight); color: var(--wt-num); }
