.abantether-widget {
	direction: rtl;
	font-family: inherit;
	max-width: 420px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 16px 18px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	margin: 12px 0;
}

.abantether-widget-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.abantether-title {
	font-weight: 600;
	font-size: 15px;
	color: #111827;
}

.abantether-price-box {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 10px;
}

.abantether-coin-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #f9fafb;
	flex-wrap: wrap;
}

.abantether-coin-id {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 70px;
}

.abantether-coin-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.abantether-coin-symbol {
	font-weight: 700;
	font-size: 13px;
	color: #111827;
	letter-spacing: 0.4px;
}

.abantether-coin-values {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 14px;
	justify-content: flex-end;
	flex: 1;
}

.abantether-mini-row {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
}

.abantether-mini-row .label {
	color: #6b7280;
}

.abantether-mini-row .value {
	font-weight: 700;
	color: #111827;
	direction: ltr;
	font-variant-numeric: tabular-nums;
}

.abantether-mini-buy .value {
	color: #16a34a;
}

.abantether-mini-sell .value {
	color: #dc2626;
}

.abantether-loading {
	color: #9ca3af;
	font-size: 13px;
}

.abantether-error {
	color: #dc2626;
	font-size: 13px;
}

.abantether-admin-hint {
	color: #9ca3af;
	font-size: 11px;
	margin: 4px 0 0;
}

/* ---------------------------------------------------------
   طرح «لیستی ساده»
--------------------------------------------------------- */
.abantether-price-box[data-layout="list"] .abantether-coin-row {
	background: none;
	border-bottom: 1px solid #eef0f3;
	border-radius: 0;
	padding: 10px 4px;
}

.abantether-price-box[data-layout="list"] .abantether-coin-row:last-child {
	border-bottom: none;
}

/* ---------------------------------------------------------
   طرح «جدولی»
--------------------------------------------------------- */
.abantether-table-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 10px;
	font-size: 12px;
	color: #6b7280;
	font-weight: 700;
	border-bottom: 2px solid #e5e7eb;
	margin-bottom: 4px;
}

.abantether-th-values {
	display: flex;
	gap: 18px;
}

.abantether-th-cell {
	min-width: 90px;
	text-align: left;
	direction: ltr;
}

.abantether-price-box[data-layout="table"] .abantether-coin-row {
	background: none;
	border-radius: 0;
	border-bottom: 1px solid #f3f4f6;
	padding: 9px 4px;
}

.abantether-price-box[data-layout="table"] .abantether-coin-row:last-child {
	border-bottom: none;
}

.abantether-price-box[data-layout="table"] .abantether-coin-values {
	gap: 18px;
	flex-wrap: nowrap;
}

.abantether-price-box[data-layout="table"] .abantether-mini-row .label {
	display: none;
}

.abantether-price-box[data-layout="table"] .abantether-mini-row .value {
	min-width: 90px;
	text-align: left;
}

/* ---------------------------------------------------------
   طرح «شبکه‌ای»
--------------------------------------------------------- */
.abantether-price-box[data-layout="grid"] {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
	gap: 10px;
}

.abantether-price-box[data-layout="grid"] .abantether-coin-row {
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: #f9fafb;
	border-radius: 10px;
	padding: 14px 8px;
}

.abantether-price-box[data-layout="grid"] .abantether-coin-id {
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.abantether-price-box[data-layout="grid"] .abantether-coin-icon {
	width: 30px;
	height: 30px;
}

.abantether-price-box[data-layout="grid"] .abantether-coin-values {
	flex-direction: column;
	align-items: center;
	gap: 4px;
	justify-content: center;
	margin-top: 6px;
}

/* ---------------------------------------------------------
   طرح «متن متحرک (تیکر)»
--------------------------------------------------------- */
.abantether-widget[data-layout="ticker"] {
	max-width: none;
	border: none;
	box-shadow: none;
	padding: 0;
	background: none;
}

.abantether-ticker-viewport {
	overflow: hidden;
	position: relative;
	width: 100%;
	min-height: 46px;
	background: #0f172a;
	border-radius: 10px;
	padding: 12px 0;
	margin: 12px 0;
	/* جهت به‌صورت ثابت چپ‌به‌راست فیزیکی است تا محاسبه‌ی transform/overflow
	   مستقل از راست‌چین بودن قالب سایت (که روی .abantether-widget اعمال شده) و
	   قابل‌اعتماد در همه‌ی مرورگرها باشد؛ جهتِ حرکتِ انیمیشن با data-direction کنترل می‌شود */
	direction: ltr;
}

.abantether-ticker-inner {
	display: flex;
	width: max-content;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	will-change: transform;
}

.abantether-ticker-viewport[data-direction="ltr"] .abantether-ticker-inner {
	animation-name: abantether-ticker-ltr;
}

.abantether-ticker-viewport[data-direction="rtl"] .abantether-ticker-inner {
	animation-name: abantether-ticker-rtl;
}

.abantether-ticker-viewport[data-speed="slow"] .abantether-ticker-inner {
	animation-duration: 42s;
}

.abantether-ticker-viewport[data-speed="normal"] .abantether-ticker-inner {
	animation-duration: 24s;
}

.abantether-ticker-viewport[data-speed="fast"] .abantether-ticker-inner {
	animation-duration: 13s;
}

.abantether-ticker-viewport:hover .abantether-ticker-inner {
	animation-play-state: paused;
}

@keyframes abantether-ticker-ltr {
	from { transform: translateX(-50%); }
	to   { transform: translateX(0%); }
}

@keyframes abantether-ticker-rtl {
	from { transform: translateX(0%); }
	to   { transform: translateX(-50%); }
}

.abantether-ticker-track {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	direction: ltr;
}

.abantether-ticker-track .abantether-coin-row {
	display: flex;
	align-items: center;
	background: none;
	padding: 0 28px;
	border-inline-end: 1px solid rgba(255, 255, 255, 0.12);
	flex-shrink: 0;
	white-space: nowrap;
}

.abantether-ticker-track .abantether-coin-id {
	direction: ltr;
}

.abantether-ticker-track .abantether-coin-symbol {
	color: #fff;
}

.abantether-ticker-track .abantether-coin-values {
	flex-wrap: nowrap;
	direction: ltr;
}

.abantether-ticker-track .abantether-mini-row .label {
	color: #94a3b8;
}

.abantether-ticker-track .abantether-mini-row .value {
	color: #fff;
}

.abantether-ticker-track .abantether-mini-buy .value {
	color: #4ade80;
}

.abantether-ticker-track .abantether-mini-sell .value {
	color: #f87171;
}

.abantether-ticker-track .abantether-loading {
	color: #94a3b8;
}

.abantether-ticker-track .abantether-error {
	color: #fca5a5;
}

.abantether-chart-wrap {
	position: relative;
	height: 220px;
	margin-top: 8px;
}

.abantether-chart-wrap canvas {
	display: block;
	width: 100%;
	height: 220px;
}

.abantether-chart-empty {
	color: #9ca3af;
	font-size: 13px;
	text-align: center;
	margin-top: 30px;
}

.abantether-updated-at {
	margin-top: 8px;
	font-size: 11px;
	color: #9ca3af;
	text-align: left;
	direction: ltr;
}
