/* «نوار آخرین قیمت‌ها» (.wpht-tk) — colours are variables set by this
   widget's own style controls; !important keeps theme link colours off. */
.wpht-tk {
	--wpht-tk-bg: #0f2346;
	--wpht-tk-height: 44px;
	--wpht-tk-gap: 40px;
	--wpht-tk-label-color: #f5b42a;
	--wpht-tk-label-bg: transparent;
	--wpht-tk-name: #ffffff;
	--wpht-tk-name-hover: #f5b42a;
	--wpht-tk-price: #e5e9f0;
	--wpht-tk-up: #22c55e;
	--wpht-tk-down: #ef4444;
	--wpht-tk-flat: #94a3b8;
	--wpht-tk-sep: rgba(255, 255, 255, 0.28);
	--wpht-tk-fade: 36px;

	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: var(--wpht-tk-height);
	overflow: hidden;
	background: var(--wpht-tk-bg);
	direction: rtl;
	font-size: 13px;
	line-height: 1.5;
}
.wpht-tk *, .wpht-tk *::before, .wpht-tk *::after { box-sizing: border-box; }
.wpht-tk-label {
	flex: 0 0 auto; display: flex; align-items: center;
	padding: 0 16px; white-space: nowrap; font-weight: 700;
	color: var(--wpht-tk-label-color); background: var(--wpht-tk-label-bg);
	position: relative; z-index: 1;
}
.wpht-tk-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; position: relative; display: flex; align-items: center; }
.wpht-tk-empty { padding: 0 16px; color: var(--wpht-tk-flat); white-space: nowrap; }
.wpht-tk.has-fade .wpht-tk-viewport {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--wpht-tk-fade), #000 calc(100% - var(--wpht-tk-fade)), transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 var(--wpht-tk-fade), #000 calc(100% - var(--wpht-tk-fade)), transparent 100%);
}

/* The track = two identical groups, slid by exactly one group's width.
   Moving left: laid out left-to-right from the left edge; moving right:
   right-to-left from the right edge — new items always come in in order. */
.wpht-tk.is-left .wpht-tk-viewport { direction: ltr; }
.wpht-tk.is-right .wpht-tk-viewport { direction: rtl; }
.wpht-tk-track {
	display: flex; flex-wrap: nowrap; flex: 0 0 auto; width: max-content;
	will-change: transform;
	animation: wpht-tk-left var(--wpht-tk-duration, 40s) linear infinite;
}
.wpht-tk.is-right .wpht-tk-track { animation-name: wpht-tk-right; }
@keyframes wpht-tk-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes wpht-tk-right { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(50%, 0, 0); } }
.wpht-tk.is-pausable:hover .wpht-tk-track,
.wpht-tk.is-pausable:focus-within .wpht-tk-track { animation-play-state: paused; }

.wpht-tk .wpht-tk-group { display: flex; flex-wrap: nowrap; flex: 0 0 auto; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.wpht-tk .wpht-tk-item {
	position: relative; display: flex; align-items: center; flex: 0 0 auto;
	margin: 0 !important; padding: 0 calc(var(--wpht-tk-gap) / 2) !important;
	list-style: none !important; white-space: nowrap; direction: rtl;
}
.wpht-tk .wpht-tk-item::before { content: none; }
.wpht-tk.sep-dot .wpht-tk-item::after,
.wpht-tk.sep-line .wpht-tk-item::after {
	position: absolute; top: 50%; left: 0; transform: translate(-50%, -50%);
	color: var(--wpht-tk-sep); background: none;
}
.wpht-tk.sep-dot .wpht-tk-item::after { content: "•"; font-size: 14px; line-height: 1; }
.wpht-tk.sep-line .wpht-tk-item::after { content: ""; width: 1px; height: 14px; background: var(--wpht-tk-sep); }

.wpht-tk .wpht-tk-link,
.wpht-tk .wpht-tk-link:link,
.wpht-tk .wpht-tk-link:visited {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--wpht-tk-name) !important;
	text-decoration: none !important; background: none !important; box-shadow: none !important; border: 0 !important;
}
.wpht-tk .wpht-tk-name { color: var(--wpht-tk-name) !important; font-weight: 600; }
.wpht-tk a.wpht-tk-link:hover .wpht-tk-name,
.wpht-tk a.wpht-tk-link:focus .wpht-tk-name { color: var(--wpht-tk-name-hover) !important; }
.wpht-tk .wpht-tk-price { color: var(--wpht-tk-price) !important; font-variant-numeric: tabular-nums; }
.wpht-tk .wpht-tk-price.is-empty { opacity: .8; }
.wpht-tk .wpht-tk-change { font-size: 11px; font-weight: 700; }
.wpht-tk .wpht-tk-change.is-up { color: var(--wpht-tk-up) !important; }
.wpht-tk .wpht-tk-change.is-down { color: var(--wpht-tk-down) !important; }
.wpht-tk .wpht-tk-change.is-flat { color: var(--wpht-tk-flat) !important; font-size: 8px; }
.wpht-tk a.wpht-tk-link:focus-visible { outline: 2px solid var(--wpht-tk-name-hover); outline-offset: 2px; border-radius: 3px; }

@media (max-width: 767px) {
	.wpht-tk { font-size: 12.5px; }
	.wpht-tk-label { padding: 0 10px; }
	.wpht-tk.no-mobile-label .wpht-tk-label { display: none; }
	.wpht-tk { --wpht-tk-fade: 20px; }
}

/* Visitors who ask for less motion: no sliding, swipe the list instead. */
@media (prefers-reduced-motion: reduce) {
	.wpht-tk-track { animation: none !important; transform: none !important; }
	.wpht-tk-viewport { overflow-x: auto; scrollbar-width: none; }
	.wpht-tk-viewport::-webkit-scrollbar { display: none; }
	.wpht-tk .wpht-tk-group[aria-hidden="true"] { display: none; }
}
