/**
 * Quote page V1 (task 312): the sticky price row above the advertising, the dark chart panel with
 * one toolbar line, the dense data panel and the flat cards. Classes carry the itxq- prefix; the
 * rules for the v10 template are scoped to .itxq-v10-template-host.itxq-v1 so they win over the
 * template's own inline <style> (one class) without !important, except where the chart library or
 * the theme (modern-typography.css paints every h1-h6 with !important) forces it.
 *
 * @version 1.2.256
 */

:root {
	--itxq-ink: #0b0e11;
	--itxq-ink-2: #161a23;
	--itxq-ink-3: #232833;
	--itxq-ink-line: #2c323c;
	--itxq-mist: #f6f8fb;
	--itxq-mist-2: #eef2f7;
	--itxq-line: #e2e8f0;
	--itxq-line-2: #cbd5e1;
	--itxq-muted: #5b6474;
	--itxq-muted-dark: #a9b2c0;
	--itxq-amber: #f7a600;
	--itxq-up: #0b8a5b;
	--itxq-down: #c62a1f;
	--itxq-font: 'PF DinDisplay Pro', 'Noto Sans Arabic', 'Noto Sans Thai', 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---------- The 728x90 slot under the chart (task 320) ---------- */

/* The slot left the header: on phones the theme hid the header-long block only while the slot was its later
   sibling (css/service-horizontal-banner.css), so it is hidden here by the page itself (long waits before the footer). */
@media (max-width: 767px) {
	.fx_wrapper:has(.itxq-qbar) .fx_long-blockdiv { display: none; }
}
.itxq-v1 .ft-service-inline-ad { margin-top: 18px; margin-bottom: 18px; }

/* ---------- Sticky price row (printed above the long banner, under the fixed menu) ---------- */

.itxq-qbar {
	position: sticky;
	top: 65px; /* height of the fixed theme menu: 64 + 1 border */
	z-index: 500;
	background: #fff;
	border-bottom: 1px solid var(--itxq-line);
	color: var(--itxq-ink);
	font-family: var(--itxq-font);
	font-variant-numeric: tabular-nums;
}

body.admin-bar .itxq-qbar,
body.bybit-admin-bar-detected .itxq-qbar {
	top: 97px; /* + 32 admin bar */
}

.itxq-qbar__in {
	box-sizing: border-box;
	max-width: 1440px;
	margin: 0 auto;
	padding: 10px var(--itx-standard-shell-gutter, 40px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 24px;
}

.itxq-qbar h1.itxq-qbar__h1 {
	margin: 0 !important;
	padding: 0 !important;
	color: var(--itxq-ink) !important;
	font: 700 22px/1.1 var(--itxq-font) !important;
	letter-spacing: -0.02em !important;
	text-transform: none !important;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 10px;
}

.itxq-qbar h1.itxq-qbar__h1 small {
	font-size: 0.62em;
	font-weight: 500;
	color: var(--itxq-muted);
	letter-spacing: 0;
}

.itxq-qbar .itxq-qbar__sub {
	margin: 0;
	max-width: 34ch;
	color: var(--itxq-muted);
	font-size: 14px;
	line-height: 1.25;
}

.itxq-qbar__px {
	display: flex;
	align-items: baseline;
	gap: 6px;
	flex-wrap: nowrap;
}

.itxq-qbar .bybit-price {
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.itxq-qbar .bybit-price-tail {
	font-size: inherit;
	vertical-align: baseline;
	margin: 0;
}

.itxq-qbar .itxq-qbar__cur {
	color: var(--itxq-muted);
	font-size: 13px;
	font-weight: 500;
}

.itxq-qbar__chg {
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.itxq-qbar .bybit-change {
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
}

.itxq-qbar .bybit-change.positive { color: var(--itxq-up); }
.itxq-qbar .bybit-change.negative { color: var(--itxq-down); }

.itxq-qbar .itxq-qbar__d {
	color: var(--itxq-muted);
	font-size: 14px;
}

.itxq-qbar .itxq-qbar__st {
	margin: 0;
	margin-inline-start: auto;
	display: block;
	color: var(--itxq-muted);
	font-size: 13px;
	text-align: end;
}

.itxq-qbar .itxq-qbar__jump {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--itxq-line-2);
	border-radius: 10px;
	color: var(--itxq-ink);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.itxq-qbar .itxq-qbar__jump:hover { border-color: var(--itxq-ink); }

.itxq-qbar .itxq-qbar__jump:focus-visible,
.itxq-v1 a:focus-visible,
.itxq-v1 summary:focus-visible {
	outline: 2px solid var(--itxq-amber);
	outline-offset: 2px;
	border-radius: 4px;
}

.itxq-i {
	width: 18px;
	height: 18px;
	flex: none;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 768px) {
	.itxq-qbar { top: 57px; } /* mobile menu: 56 + 1 border */
	body.admin-bar .itxq-qbar,
	body.bybit-admin-bar-detected .itxq-qbar { top: 103px; }
}

/* Phone: the name and the price only. */
@media (max-width: 720px) {
	.itxq-qbar__in { padding: 8px 16px; gap: 2px 14px; }
	.itxq-qbar h1.itxq-qbar__h1 { font-size: 18px !important; }
	.itxq-qbar .bybit-price { font-size: 24px; }
	.itxq-qbar .bybit-change { font-size: 14px; }
	.itxq-qbar .itxq-qbar__st,
	.itxq-qbar .itxq-qbar__jump,
	.itxq-qbar .itxq-qbar__sub,
	.itxq-qbar .itxq-qbar__d { display: none; }
}

/* ---------- The content column ---------- */

.itxq-v10-template-host.itxq-v1 {
	font-family: var(--itxq-font);
	color: var(--itxq-ink);
}

.itxq-v1 .bybit-light-grid { gap: 28px; }
.itxq-v1 .bybit-main-top { gap: 0; }

.itxq-v1 .bybit-crumbs {
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 18px 0 0;
	color: var(--itxq-muted);
	font-size: 14px;
}

.itxq-v1 .bybit-crumbs span { color: var(--itxq-ink); }

.itxq-v1 .bybit-crumbs a:hover { text-decoration: underline; }

.itxq-v1 .itxq-card,
.itxq-v1 #fundamentalsDataSection {
	background: #fff;
	border: 1px solid var(--itxq-line);
	border-radius: 16px;
	box-shadow: none;
	padding: 22px 24px;
}

.itxq-v1 h2.itxq-h2,
.itxq-v1 h3.itxq-h3,
.itxq-v1 #fundamentalsDataSection .bybit-card-title {
	margin: 0 0 6px !important;
	color: var(--itxq-ink) !important;
	font-family: var(--itxq-font) !important;
	font-weight: 700 !important;
	letter-spacing: -0.02em !important;
	line-height: 1.15 !important;
	text-transform: none !important;
}

.itxq-v1 h2.itxq-h2 { font-size: 18px !important; }
.itxq-v1 h3.itxq-h3 { font-size: 19px !important; margin: 26px 0 6px !important; }
.itxq-v1 #fundamentalsDataSection .bybit-card-title { font-size: 22px !important; margin-bottom: 14px !important; }

/* Key/value lists */
.itxq-v1 .itxq-kv { margin: 0; padding: 0; }
.itxq-v1 .itxq-kv > div {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-top: 1px solid var(--itxq-line);
}
.itxq-v1 .itxq-kv dt { margin: 0; color: var(--itxq-muted); }
.itxq-v1 .itxq-kv dd { margin: 0; font-weight: 500; text-align: end; }
.itxq-v1 .itxq-kv dt small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--itxq-muted); }
.itxq-v1 .itxq-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; }
.itxq-v1 .itxq-links a { color: var(--itxq-ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.itxq-v1 .itxq-kv .itxq-up { color: var(--itxq-up); }
.itxq-v1 .itxq-kv .itxq-down { color: var(--itxq-down); }
.itxq-v1 .itxq-note { margin: 12px 0 0; color: var(--itxq-muted); font-size: 14px; line-height: 1.4; }

/* Dense panel: performance and 52 weeks | key figures and other currencies */
.itxq-v1 .itxq-dense {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 44px;
}
.itxq-v1 .itxq-dense--single { grid-template-columns: minmax(0, 1fr); }
.itxq-v1 .itxq-dense__col { min-width: 0; border-top: 2px solid var(--itxq-ink); padding-top: 14px; }
.itxq-v1 .itxq-dense__col > h2.itxq-h2 ~ h2.itxq-h2,
.itxq-v1 .itxq-dense__col > .itxq-kv ~ h2.itxq-h2,
.itxq-v1 .itxq-dense__col > .itxq-note ~ h2.itxq-h2 { margin-top: 22px !important; }

.itxq-v1 .itxq-range { margin-top: 16px; }
.itxq-v1 .itxq-range__bar {
	position: relative;
	height: 6px;
	margin: 22px 0 10px;
	background: var(--itxq-mist-2);
	border-radius: 99px;
	direction: ltr;
}
.itxq-v1 .itxq-range__bar i {
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border-radius: 50%;
	background: var(--itxq-amber);
	box-shadow: 0 0 0 4px rgba(247, 166, 0, 0.22);
}
.itxq-v1 .itxq-range__ends { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; direction: ltr; }
.itxq-v1 .itxq-range__ends small { display: block; color: var(--itxq-muted); font-size: 14px; font-weight: 400; }
.itxq-v1 .itxq-range__ends span:last-child { text-align: end; }

@container itxq-quote (max-width: 640px) {
	.itxq-v1 .itxq-dense { grid-template-columns: minmax(0, 1fr); }
	.itxq-v1 .itxq-card,
	.itxq-v1 #fundamentalsDataSection { padding: 18px 16px; }
}

/* About, questions, articles, related */
.itxq-v1 .itxq-prose { color: var(--itxq-ink); font-size: 17px; line-height: 1.6; text-align: start; }
.itxq-v1 .itxq-prose p + p { margin-top: 12px; }
.itxq-v1 .itxq-facts { margin: 18px 0 0; }
.itxq-v1 .itxq-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--itxq-line); }
.itxq-v1 .itxq-facts dt { margin: 0; color: var(--itxq-muted); }
.itxq-v1 .itxq-facts dd { margin: 0; font-weight: 500; text-align: end; }

.itxq-v1 .itxq-faq__q { border-top: 1px solid var(--itxq-line); }
.itxq-v1 .itxq-faq__q summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	cursor: pointer;
	font-size: 17px;
	font-weight: 500;
	list-style: none;
}
.itxq-v1 .itxq-faq__q summary::-webkit-details-marker { display: none; }
.itxq-v1 .itxq-faq__q summary::after {
	content: '';
	flex: none;
	width: 9px;
	height: 9px;
	margin-inline-end: 4px;
	border-inline-end: 2px solid var(--itxq-muted);
	border-bottom: 2px solid var(--itxq-muted);
	transform: rotate(45deg);
	transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
.itxq-v1 .itxq-faq__q[open] summary::after { transform: rotate(-135deg); }
.itxq-v1 .itxq-faq__a { margin: 0; padding: 0 0 18px; color: var(--itxq-ink); line-height: 1.6; }

.itxq-v1 .itxq-list a {
	display: grid;
	gap: 2px;
	padding: 14px 0;
	border-top: 1px solid var(--itxq-line);
	color: inherit;
	text-decoration: none;
}
.itxq-v1 .itxq-list b { font-size: 18px; font-weight: 500; line-height: 1.3; }
.itxq-v1 .itxq-list a:hover b,
.itxq-v1 .itxq-rows a:hover .itxq-rows__n { text-decoration: underline; text-underline-offset: 3px; }
.itxq-v1 .itxq-list small { color: var(--itxq-muted); font-size: 14px; }

.itxq-v1 .itxq-rows a {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	gap: 4px 20px;
	align-items: center;
	min-height: 52px;
	padding: 6px 0;
	border-top: 1px solid var(--itxq-line);
	color: inherit;
	text-decoration: none;
}
.itxq-v1 .itxq-rows__p { text-align: end; }
.itxq-v1 .itxq-rows__c { min-width: 72px; text-align: end; font-weight: 500; }
.itxq-v1 .itxq-rows__c.itxq-up { color: var(--itxq-up); }
.itxq-v1 .itxq-rows__c.itxq-down { color: var(--itxq-down); }
.itxq-v1 .itxq-more {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	margin-top: 6px;
	border-bottom: 1px solid var(--itxq-line-2);
	color: inherit;
	font-weight: 500;
	text-decoration: none;
}

/* Fundamentals card: the existing accordion, flat */
.itxq-v1 #fundamentalsDataSection .bybit-fundamentals-section { border: 0; border-top: 1px solid var(--itxq-line); border-radius: 0; background: transparent; }
.itxq-v1 #fundamentalsDataSection .bybit-fundamentals-header { padding: 16px 0; }
.itxq-v1 #fundamentalsDataSection .bybit-fundamentals-inner { padding: 0 0 16px; }
.itxq-v1 #fundamentalsDataSection .bybit-fundamentals-header-title { font-size: 17px; font-weight: 500; }
.itxq-v1 #fundamentalsDataSection .bybit-fundamentals-metric { background: transparent; border: 0; border-top: 1px solid var(--itxq-line); border-radius: 0; padding: 10px 0; }

/* ---------- The chart panel: dark, one toolbar line ---------- */

.itxq-v1 .bybit-overview-chart-full {
	scroll-margin-top: 150px; /* the menu and the price row cover the top of the viewport */
	min-height: 0;
	padding: 12px 14px;
	background: var(--itxq-ink);
	border: 0;
	border-radius: 16px;
	color: #e6eaf0;
	box-shadow: 0 22px 44px -30px rgba(11, 14, 17, 0.6);
}
.itxq-v1 .bybit-overview-chart-full .bybit-chart-header { display: none; }
.itxq-v1 .bybit-overview-chart-full .bybit-chart-stage {
	background: var(--itxq-ink);
	border: 0;
	border-radius: 0;
	color: var(--itxq-muted-dark);
	min-height: 600px; /* the height the chart takes once built: nothing under it moves */
}
/* The toolbar is built by the chart script: its place is held until it exists (no jump of the chart under it). */
.itxq-v1 .bybit-overview-chart-full:not(:has(.itxq-am5-toolbar))::before {
	content: "";
	display: block;
	height: 70px;
}

.itxq-v1 .itxq-am5-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 2px 0 8px;
}

.itxq-v1 .itxq-am5-timeframe-row {
	display: inline-flex !important;
	flex: none;
	flex-wrap: nowrap !important;
	gap: 2px !important;
	margin: 0 !important;
	padding: 3px !important;
	background: var(--itxq-ink-3);
	border-radius: 10px;
}

.itxq-v1 .itxq-am5-timeframe-btn {
	min-width: 44px;
	height: 38px !important;
	min-height: 38px !important;
	padding: 0 10px !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	color: var(--itxq-muted-dark) !important;
	font-family: var(--itxq-font) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0 !important;
}
.itxq-v1 .itxq-am5-timeframe-btn:hover { color: #fff !important; background: transparent !important; }
.itxq-v1 .itxq-am5-timeframe-btn.active { background: var(--itxq-amber) !important; color: var(--itxq-ink) !important; border: 0 !important; }

.itxq-v1 #itxqAm5Chart-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	padding: 0 !important;
	min-width: 0;
}

.itxq-v1 #itxqAm5Chart-controls .am5stock-control {
	min-height: 44px !important;
	height: 44px !important;
	padding: 0 12px !important;
	border: 1px solid var(--itxq-ink-line) !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: #e6eaf0 !important;
	font-family: var(--itxq-font) !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	white-space: nowrap;
}
.itxq-v1 #itxqAm5Chart-controls .am5stock-control:hover { border-color: var(--itxq-muted-dark) !important; background: var(--itxq-ink-3) !important; }
.itxq-v1 #itxqAm5Chart-controls .am5stock-control-active,
.itxq-v1 #itxqAm5Chart-controls .am5stock-control-button-active { background: var(--itxq-ink-3) !important; border-color: var(--itxq-amber) !important; color: #fff !important; }
.itxq-v1 #itxqAm5Chart-controls .am5stock-control-label { font-family: var(--itxq-font) !important; font-size: 15px !important; font-weight: 500 !important; color: inherit !important; }
/* The library draws outline icons: keep them outlines, in the text colour */
.itxq-v1 #itxqAm5Chart-controls .am5stock-control-icon svg,
.itxq-v1 #itxqAm5Chart-controls .am5stock-control-icon svg path { fill: none !important; stroke: currentColor !important; }

/* Dropdown lists: dark like the panel, above the chart (the library paints them with the interface colours of the chart theme) */
.itxq-v1 #itxqAm5Chart-controls .am5stock-control-list-container {
	z-index: 1000;
	background: var(--itxq-ink-2) !important;
	border: 1px solid var(--itxq-ink-line) !important;
	border-radius: 12px !important;
	color: #e6eaf0;
	box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45) !important;
}
.itxq-v1 #itxqAm5Chart-controls .am5stock-list-item,
.itxq-v1 #itxqAm5Chart-controls .am5stock-list-item label { color: #e6eaf0 !important; }
.itxq-v1 #itxqAm5Chart-controls .am5stock-list-item:hover,
.itxq-v1 #itxqAm5Chart-controls .am5stock-list-item:focus { background: var(--itxq-ink-3) !important; }
.itxq-v1 #itxqAm5Chart-controls .am5stock-list-search input {
	background: var(--itxq-ink-3);
	border: 1px solid var(--itxq-ink-line);
	border-radius: 8px;
	color: #e6eaf0;
}
.itxq-v1 #itxqAm5Chart-controls .am5stock-list-search input::placeholder { color: var(--itxq-muted-dark); }

/* Phone: one scrollable line instead of four rows (the dropdowns leave the scroller: position fixed) */
@media (max-width: 720px) {
	.itxq-v1 .bybit-overview-chart-full { padding: 10px 10px 8px; border-radius: 14px; }
	.itxq-v1 .itxq-am5-toolbar {
		flex-wrap: nowrap;
		overflow-x: auto;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.itxq-v1 .itxq-am5-toolbar::-webkit-scrollbar { display: none; }
	.itxq-v1 #itxqAm5Chart-controls { flex: none; flex-wrap: nowrap; }
	.itxq-v1 #itxqAm5Chart-controls .am5stock-control-list-container {
		position: fixed !important;
		margin-top: 0 !important;
		inset-inline: 10px !important; /* top is set by itx-quotes-single-v1.js: the library's top:100% would be 100% of the viewport */
		width: auto !important;
		max-width: none !important;
		max-height: 60vh;
		overflow: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.itxq-v1 .itxq-faq__q summary::after { transition: none; }
}
