/* Listpress child - استایل تایمر تخفیف
   مسیر: /wp-content/themes/listpress-child/assets/css/discount-timer.css
   رنگ‌ها فقط از متغیرهای قالب:
   - پس‌زمینه و حاشیه: var(--rtcl-badge-top-bg-color)
   - متن و آیکن:      var(--rtcl-button-color)
   عرض کادر را discount-timer.js ثابت نگه می‌دارد (min-width) تا با تغییر ارقام کم و زیاد نشود. */

.lpc-dt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	box-sizing: border-box;
	padding: 0 3px;
	border-radius: 4px;
	font-size: .86em;
	font-weight: 500;
	line-height: 1.8;
	white-space: nowrap;
	vertical-align: middle;
	font-variant-numeric: tabular-nums;
	color: var(--rtcl-button-color) !important;
	background: var(--rtcl-badge-top-bg-color) !important;
	border: 1px solid var(--rtcl-badge-top-bg-color) !important;
	animation: lpc-dt-pulse 1s ease-in-out infinite;
}

/* آیکن ساعت (ماسک SVG با رنگ متن) */
.lpc-dt::before {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* کمتر از ۲۴ ساعت: پررنگ‌تر (سطح l1) و کمتر از یک ساعت (سطح l2) */
.lpc-dt-l1,
.lpc-dt-l2 {
	font-weight: 700;
}

/* ضربان ملایم برای همه تایمرها، مستقل از مقدار زمان باقی‌مانده و نوع دستگاه
   (فقط opacity؛ سبک و روی GPU) */
@keyframes lpc-dt-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .55; }
}

/* بخش قیمت اصلی (بعد از پایان تایمر) تا قبل از آن مخفی می‌ماند */
.lpc-dt-box [hidden] {
	display: none !important;
}