/* Avitan Accessibility – branded toolbar.
   Brand: ink #16171A / #1F2024, cream #F5F2EC, gold #B09975 (decoration only), accessible gold #7E6948 (text/icons).
   Fonts: Futurism (headings) and Polin (text) are already loaded by the site theme; Arial is the fallback. */
#avl-root {
	--avl-ink: #16171A;
	--avl-ink-2: #1F2024;
	--avl-cream: #F5F2EC;
	--avl-gold: #B09975;
	--avl-gold-ok: #7E6948;
	--avl-line: #E4DCCD;
	--avl-head: Futurism, Arial, sans-serif;
	--avl-text: Polin, Arial, "Segoe UI", sans-serif;
	position: fixed;
	bottom: 22px;
	z-index: 2147483000;
	font-family: var(--avl-text) !important;
	font-size: 16px !important;
	line-height: 1.4 !important;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	color: var(--avl-ink-2);
	direction: rtl;
	text-align: right;
}
#avl-root.avl-side-left { left: 22px; }
#avl-root.avl-side-right { right: 22px; }
#avl-root *,
#avl-root *::before,
#avl-root *::after {
	box-sizing: border-box;
	letter-spacing: normal !important;
	word-spacing: normal !important;
	line-height: 1.3 !important;
	filter: none !important;
	cursor: pointer;
	margin: 0;
}
#avl-root button { font-family: var(--avl-text) !important; }

#avl-root .avl-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
}

/* ---------- Launcher ---------- */
#avl-root .avl-launch {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	padding: 0;
	border-radius: 50%;
	border: 0;
	background: var(--avl-ink) !important;
	color: var(--avl-cream) !important;
	box-shadow: 0 0 0 2px var(--avl-gold), 0 0 0 5px rgba(22, 23, 26, 0.9), 0 10px 24px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s, box-shadow 0.2s;
}
#avl-root .avl-launch:hover { transform: translateY(-2px); }
#avl-root.is-open .avl-launch { box-shadow: 0 0 0 2px var(--avl-cream), 0 0 0 5px var(--avl-ink), 0 10px 24px rgba(0, 0, 0, 0.3); }

#avl-root button:focus-visible,
#avl-root a:focus-visible {
	outline: 3px solid var(--avl-gold-ok) !important;
	outline-offset: 3px !important;
	box-shadow: 0 0 0 6px #fff !important;
}
#avl-root .avl-head button:focus-visible {
	outline-color: var(--avl-cream) !important;
	box-shadow: 0 0 0 6px var(--avl-ink) !important;
}

/* ---------- Panel ---------- */
#avl-root .avl-panel {
	position: absolute;
	bottom: 76px;
	width: 380px;
	max-width: calc(100vw - 44px);
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	background: var(--avl-cream) !important;
	color: var(--avl-ink-2) !important;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(22, 23, 26, 0.35), 0 0 0 1px rgba(22, 23, 26, 0.12);
	overscroll-behavior: contain;
}
#avl-root.avl-side-left .avl-panel { left: 0; }
#avl-root.avl-side-right .avl-panel { right: 0; }
#avl-root .avl-panel[hidden] { display: none !important; }

#avl-root .avl-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px 16px;
	background: var(--avl-ink) !important;
	color: var(--avl-cream) !important;
	border-radius: 18px 18px 0 0;
}
#avl-root .avl-logo {
	display: block;
	width: auto !important;
	height: 38px !important;
	max-width: 110px;
	object-fit: contain;
}
#avl-root .avl-head-text {
	flex: 1;
	padding-right: 14px;
	border-right: 1px solid rgba(176, 153, 117, 0.55);
}
#avl-root .avl-title {
	font-family: var(--avl-head) !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	color: var(--avl-cream) !important;
	text-transform: none;
}
#avl-root .avl-sub {
	margin-top: 3px !important;
	white-space: nowrap;
	font-size: 13px !important;
	color: #D9D2C4 !important;
}
#avl-root .avl-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(245, 242, 236, 0.55);
	background: transparent !important;
	color: var(--avl-cream) !important;
	transition: background 0.2s;
}
#avl-root .avl-close:hover { background: rgba(245, 242, 236, 0.12) !important; }

#avl-root .avl-rule {
	height: 3px;
	background: linear-gradient(90deg, rgba(176, 153, 117, 0), var(--avl-gold) 20%, var(--avl-gold) 80%, rgba(176, 153, 117, 0));
}

#avl-root .avl-body { padding: 16px 18px 6px; }

/* Text size */
#avl-root .avl-size {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px 10px 10px;
	margin-bottom: 14px !important;
	background: #fff !important;
	border: 1px solid var(--avl-line);
	border-radius: 12px;
}
#avl-root .avl-size-label {
	font-family: var(--avl-head) !important;
	font-weight: 700;
	font-size: 15px !important;
	color: var(--avl-ink-2) !important;
}
#avl-root .avl-stepper {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 3px;
	background: var(--avl-cream) !important;
	border-radius: 10px;
}
#avl-root .avl-size-btn {
	width: 40px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #fff !important;
	color: var(--avl-ink-2) !important;
	font-size: 17px !important;
	font-weight: 700 !important;
	box-shadow: 0 1px 2px rgba(22, 23, 26, 0.15);
}
#avl-root .avl-size-btn small { font-size: 12px !important; margin-right: 1px; }
#avl-root .avl-size-btn:hover { background: var(--avl-ink) !important; color: var(--avl-cream) !important; }
#avl-root .avl-size-val {
	min-width: 52px;
	text-align: center;
	font-family: var(--avl-head) !important;
	font-weight: 700;
	font-size: 15px !important;
	color: var(--avl-ink-2) !important;
}

/* Options grid */
#avl-root .avl-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
#avl-root .avl-opt {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	min-height: 92px;
	padding: 14px 6px 10px;
	border: 1px solid var(--avl-line);
	border-radius: 12px;
	background: #fff !important;
	color: var(--avl-ink-2) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	text-align: center;
	transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
#avl-root .avl-opt:hover { border-color: var(--avl-gold); transform: translateY(-1px); }
#avl-root .avl-ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--avl-cream) !important;
	color: var(--avl-gold-ok) !important;
}
#avl-root .avl-lbl { display: block; }
#avl-root .avl-check {
	position: absolute;
	top: 7px;
	left: 7px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--avl-gold) !important;
	color: var(--avl-ink) !important;
}
#avl-root .avl-opt[aria-pressed="true"] {
	background: var(--avl-ink) !important;
	border-color: var(--avl-ink);
	color: var(--avl-cream) !important;
}
#avl-root .avl-opt[aria-pressed="true"] .avl-ico {
	background: rgba(176, 153, 117, 0.18) !important;
	color: var(--avl-gold) !important;
}
#avl-root .avl-opt[aria-pressed="true"] .avl-check { display: flex; }

/* Footer */
#avl-root .avl-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 18px 16px;
	margin-top: 10px !important;
	border-top: 1px solid var(--avl-line);
}
#avl-root .avl-reset {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 9px 16px;
	border: 1px solid var(--avl-ink-2);
	border-radius: 999px;
	background: transparent !important;
	color: var(--avl-ink-2) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
}
#avl-root .avl-reset:hover { background: var(--avl-ink) !important; color: var(--avl-cream) !important; }
#avl-root .avl-statement {
	color: var(--avl-gold-ok) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

@media (max-width: 480px) {
	#avl-root { bottom: 14px; }
	#avl-root.avl-side-left { left: 14px; }
	#avl-root.avl-side-right { right: 14px; }
	#avl-root .avl-launch { width: 52px; height: 52px; }
	#avl-root .avl-panel { width: calc(100vw - 28px); bottom: 68px; }
	#avl-root .avl-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	#avl-root * { transition: none !important; }
}
