/* «پایان تخفیف امروز» — a pill beside the price: label on the tint, the digits on white.
   Small on purpose: it sits under a price, it does not compete with it. */
.hy-cd {
	display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
	margin: 10px 0 0; padding: 5px 5px 5px 12px; border-radius: 999px;
	background: #FDEDEC; color: #C8433C; font-size: 12.5px; font-weight: 700; line-height: 1;
	box-sizing: border-box;
}
.hy-cd-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hy-cd-label svg { width: 14px; height: 14px; flex: 0 0 auto; }
.hy-cd-time {
	display: inline-flex; align-items: center; gap: 1px; padding: 6px 9px; border-radius: 999px;
	background: #fff; color: #1E1C26; font-size: 14px; font-weight: 800; letter-spacing: .02em;
	font-variant-numeric: tabular-nums; box-shadow: 0 1px 2px rgba(20, 18, 28, .08);
}
.hy-cd-time i { font-style: normal; color: #E2564F; margin: 0 1px; animation: hyCdBlink 1s steps(1) infinite; }
.hy-cd-n { display: inline-flex; justify-content: center; min-width: 1.45em; }
/* one digit slot: the digit in place, the one leaving sliding down, the one arriving sliding in from above */
.hy-cd-d { position: relative; display: inline-block; width: .68em; height: 1.2em; overflow: hidden; line-height: 1.2em; }
.hy-cd-d > span { position: absolute; inset: 0; display: block; text-align: center; transform: none; opacity: 1; transition: transform .42s cubic-bezier(.25, .75, .25, 1), opacity .3s ease; will-change: transform, opacity; }
.hy-cd-d > span.is-in { transform: translateY(-100%); opacity: 0; transition: none; }
.hy-cd-d > span.is-out { transform: translateY(100%); opacity: 0; }
.hy-cd.is-over { opacity: .55; }
@keyframes hyCdBlink { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .hy-cd-d > span { transition: none; } .hy-cd-time i { animation: none; } }

/* under the vendor's price box on the builder product page: on its own line, the price's side */
.hy-cd--placed { display: flex; width: max-content; max-width: 100%; margin: 10px 0 12px; }
.price_align_right + .hy-cd--placed { margin-inline-start: 0; }
@media (max-width: 600px) { .hy-cd { gap: 8px; font-size: 12px; } .hy-cd-time { font-size: 13px; padding: 5px 8px; } }
