/* =========================================================
   Compliance suite — accessibility widget, cookie popup, modals
   Bottom-LEFT (bot lives bottom-right). Loaded after main.css.
   ========================================================= */

.av-compliance { position: fixed; left: 18px; bottom: 18px; z-index: 9000;
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }

/* launcher buttons */
.av-launch { width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
	display: grid; place-items: center; color: #0f0f10;
	background: linear-gradient(135deg, var(--gold-light, #FDEAA1), var(--gold-deep, #C79934));
	box-shadow: 0 8px 22px rgba(0,0,0,.28); transition: transform .15s ease, box-shadow .15s ease; }
.av-launch:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(201,168,76,.4); }
.av-launch:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }
.av-launch--privacy { width: 46px; height: 46px; align-self: flex-start; }
.av-launch--a11y svg { filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }

/* cookie popup — flush to the left edge, above the launcher buttons */
.av-cookie { position: fixed; left: 0; bottom: 140px; z-index: 9000;
	width: min(360px, calc(100vw - 16px)); background: #fff; border: 1px solid var(--line, #e7e3d8); border-left: 0;
	border-radius: 0 16px 16px 0; padding: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.22);
	border-top: 4px solid var(--gold, #C9A84C); }
.av-cookie[hidden] { display: none; }
.av-cookie__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.av-cookie__ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--gold-deep, #C79934); background: rgba(201,168,76,.12); border: 1px solid rgba(201,168,76,.3); }
.av-cookie__head strong { font-size: 1.02rem; color: var(--ink, #1c1c1e); }
.av-cookie__txt { margin: 0 0 14px; font-size: .86rem; line-height: 1.6; color: var(--ink-soft, #5a5a5e); }
.av-cookie__link { color: var(--gold-deep, #C79934); text-decoration: underline; white-space: nowrap; }
.av-cookie__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.av-cookie__actions[hidden] { display: none; }
.av-cookie__btn { cursor: pointer; border-radius: 999px; font-weight: 700; font-size: .88rem; padding: 11px 18px; border: 1px solid transparent; transition: filter .15s, border-color .15s, color .15s, background .15s; }
.av-cookie__btn--ok { flex: 1 1 auto; color: #0f0f10; border: 0; background: linear-gradient(135deg, var(--gold-light, #FDEAA1), var(--gold-deep, #C79934)); box-shadow: 0 6px 16px rgba(201,168,76,.3); }
.av-cookie__btn--ok:hover { filter: brightness(1.05); }
.av-cookie__btn--ghost { background: #fff; border-color: var(--line, #e7e3d8); color: var(--ink, #1c1c1e); font-weight: 600; }
.av-cookie__btn--ghost:hover { border-color: var(--gold-deep, #C79934); color: var(--gold-deep, #C79934); }
.av-cookie__btn--link { background: none; border: 0; color: var(--ink-soft, #5a5a5e); font-weight: 600; text-decoration: underline; padding: 11px 8px; }
.av-cookie__btn--link:hover { color: var(--ink, #1c1c1e); }

/* granular settings */
.av-cookie__settings[hidden] { display: none; }
.av-cookie__settings { margin-top: 4px; }
.av-cookie__cat { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line, #e7e3d8); cursor: pointer; }
.av-cookie__cat span { display: flex; flex-direction: column; line-height: 1.35; }
.av-cookie__cat strong { font-size: .9rem; color: var(--ink, #1c1c1e); }
.av-cookie__cat small { font-size: .76rem; color: var(--ink-soft, #5a5a5e); }
.av-cookie__cat input[type="checkbox"] { width: 20px; height: 20px; flex: none; accent-color: var(--gold-deep, #C79934); cursor: pointer; }
.av-cookie__cat--locked { cursor: default; opacity: .85; }
.av-cookie__cat--locked input { cursor: not-allowed; }
.av-cookie__settings .av-cookie__actions { margin-top: 14px; }

/* accessibility panel */
.av-a11y-panel { position: fixed; left: 18px; bottom: 84px; z-index: 9001;
	width: min(300px, calc(100vw - 36px)); max-height: 76vh; overflow: auto;
	background: #fff; border: 1px solid var(--line, #e7e3d8); border-radius: 16px;
	box-shadow: 0 22px 60px rgba(0,0,0,.28); }
.av-a11y-panel[hidden] { display: none; }
.av-a11y-panel__head { display: flex; align-items: center; justify-content: space-between;
	padding: 14px 18px; color: #fff; border-radius: 16px 16px 0 0;
	background: radial-gradient(120% 120% at 80% 0%, #1c1c22, #0f0f10); }
.av-a11y-panel__head strong { font-size: 1.05rem; }
.av-a11y-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.av-a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; }
.av-a11y-grid button { display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: center;
	min-height: 76px; padding: 10px 6px; border: 1px solid var(--line, #e7e3d8); border-radius: 12px;
	background: var(--bg-soft, #faf7ef); cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink, #1c1c1e);
	text-align: center; transition: border-color .15s, background .15s, transform .1s; }
.av-a11y-grid button span { font-size: 1.25rem; line-height: 1; color: var(--gold-deep, #C79934); }
.av-a11y-grid button:hover { border-color: var(--gold-deep, #C79934); transform: translateY(-1px); }
.av-a11y-grid button.is-on { background: var(--gold-deep, #C79934); border-color: var(--gold-deep, #C79934); color: #0f0f10; }
.av-a11y-grid button.is-on span { color: #0f0f10; }
.av-a11y-statement { display: block; text-align: center; padding: 12px; border-top: 1px solid var(--line, #e7e3d8);
	color: var(--gold-deep, #C79934); font-weight: 600; text-decoration: underline; }

/* generic modal */
.av-modal { position: fixed; inset: 0; z-index: 9100; display: grid; place-items: center; padding: 20px;
	background: rgba(10,10,12,.62); backdrop-filter: blur(3px); }
.av-modal[hidden] { display: none; }
.av-modal__box { position: relative; width: min(620px, 100%); max-height: 84vh; overflow: auto;
	background: #fff; border-radius: 18px; padding: 34px 30px 30px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
	border-top: 5px solid var(--gold, #C9A84C); }
.av-modal__close { position: absolute; top: 14px; inset-inline-start: 16px; background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink-soft, #5a5a5e); }
.av-modal__box h2 { font-size: 1.5rem; margin: 0 0 16px; padding-bottom: 12px; position: relative; }
.av-modal__box h2::after { content: ""; position: absolute; bottom: 0; right: 0; width: 54px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold-light, #FDEAA1), var(--gold-deep, #C79934)); }
.av-modal__body { line-height: 1.85; color: var(--ink, #1c1c1e); }
.av-modal__body ul { margin: 12px 0; padding-inline-start: 20px; }
.av-modal__body li { margin: 6px 0; }
.av-modal__full { display: inline-block; margin-top: 20px; }
body.av-noscroll { overflow: hidden; }

/* checkout / contact consent row */
.av-consent-row { margin: 14px 0 18px; font-size: .92rem; }
.av-consent-row label { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.av-consent-row input[type="checkbox"] { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-deep, #C79934); flex: none; }
.av-consent-row a { color: var(--gold-deep, #C79934); text-decoration: underline; }
.av-consent-row .required { color: #c0392b; text-decoration: none; border: 0; }

/* ---------- mobile ---------- */
@media (max-width: 560px) {
	.av-compliance { left: 12px; bottom: 12px; }
	.av-launch { width: 48px; height: 48px; }
	.av-a11y-panel { bottom: 74px; left: 12px; }
	.av-cookie { bottom: 120px; }
}

/* =========================================================
   Accessibility adjustment classes (toggled on <html>)
   ========================================================= */
html.av-fs-1 { font-size: 112.5%; }
html.av-fs-2 { font-size: 125%; }
html.av-fs-3 { font-size: 140%; }

html.av-a11y-gray { filter: grayscale(1); }
html.av-a11y-invert { filter: invert(1) hue-rotate(180deg); }
html.av-a11y-invert img, html.av-a11y-invert video, html.av-a11y-invert .av-launch svg { filter: invert(1) hue-rotate(180deg); }
html.av-a11y-contrast { filter: contrast(1.4) brightness(1.05); }

html.av-a11y-links a { text-decoration: underline !important; outline: 2px dashed var(--gold-deep, #C79934); outline-offset: 2px; }

html.av-a11y-readable, html.av-a11y-readable body,
html.av-a11y-readable h1, html.av-a11y-readable h2, html.av-a11y-readable h3,
html.av-a11y-readable p, html.av-a11y-readable a, html.av-a11y-readable span,
html.av-a11y-readable li, html.av-a11y-readable button, html.av-a11y-readable input,
html.av-a11y-readable td, html.av-a11y-readable th, html.av-a11y-readable label {
	font-family: Arial, "Segoe UI", "Noto Sans Hebrew", sans-serif !important; letter-spacing: .01em; }

html.av-a11y-bigcursor, html.av-a11y-bigcursor * {
	cursor: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l7 18 2.5-7L20 11z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }

html.av-a11y-stopmotion *, html.av-a11y-stopmotion *::before, html.av-a11y-stopmotion *::after {
	animation-duration: .001s !important; animation-iteration-count: 1 !important;
	transition-duration: .001s !important; scroll-behavior: auto !important; }

/* keep the accessibility widget itself usable under filters */
html.av-a11y-contrast .av-compliance, html.av-a11y-gray .av-compliance { filter: none; }
