/* נגישות לפי ת"י 5568 (WCAG 2.0 AA): דילוג לתוכן, סימון מיקוד, תפריט נגישות, ועמודי מידע משפטי */

html { scroll-padding-top: 110px; }

/* ---------- דילוג לתוכן ---------- */
.skip { position: fixed; top: 10px; right: 10px; z-index: 200; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 800; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; outline: 3px solid var(--yellow); outline-offset: 2px; }
main:focus { outline: none; }

/* ---------- סימון מיקוד במקלדת ---------- */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .chip:focus-visible, .add:focus-visible, .qty button:focus-visible, .mbar:focus-visible { outline-offset: 4px; border-radius: 999px; }
.hero :focus-visible, .process :focus-visible, .footer :focus-visible, .mbar:focus-visible, .saving :focus-visible { outline-color: var(--yellow); }
.field input:focus-visible, .lead__field input:focus-visible, .lead__field select:focus-visible, .lead__field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.faq summary:focus-visible { outline-offset: 6px; }

/* כפתורי כמות בגודל נוח ללחיצה */
.qty button { width: 44px; height: 44px; }

/* ---------- הסכמה בטופס ---------- */
.lead__notice { font-size: 14px; line-height: 1.5; color: var(--muted); }
.lead__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.lead__consent input { flex: none; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--ink); cursor: pointer; }
.lead__consent input[aria-invalid="true"] { outline: 3px solid #B42318; outline-offset: 2px; }
.lead__consent a { text-decoration: underline; text-underline-offset: 3px; }
.lead__field [aria-invalid="true"] { border-color: #B42318; }

/* ---------- קישורים בכותרת התחתונה ---------- */
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; font-size: 15px; }
.footer__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer--doc { padding-top: 12px; }

/* ---------- עמודי מדיניות והצהרה ---------- */
.doc { padding: 140px 0 80px; }
.doc__wrap { max-width: 800px; }
.doc h1 { margin-bottom: 18px; }
.doc__lead { font-size: 20px; color: var(--ink); padding: 22px 26px; border-radius: 24px; background: var(--surface); margin-bottom: 12px; }
.doc h2 { font-size: clamp(24px, 3vw, 30px); margin: 40px 0 10px; color: var(--ink); }
.doc p { margin-top: 10px; color: var(--muted); }
.doc ul { margin-top: 10px; display: grid; gap: 10px; }
.doc li { position: relative; padding-inline-start: 26px; color: var(--muted); }
.doc li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 30%, transparent); }
.doc li b { color: var(--ink); }
.doc a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- כפתור ותפריט נגישות ---------- */
.a11y-btn { position: fixed; z-index: 90; left: 0; top: 46%; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 0 16px 16px 0; cursor: pointer; color: #fff; background: var(--blue); box-shadow: var(--shadow-pop); }
.a11y-btn svg { width: 30px; height: 30px; }
.a11y-panel { position: fixed; z-index: 95; left: 12px; top: 50%; transform: translateY(-50%); width: min(320px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 20px; border-radius: 26px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px color-mix(in srgb, var(--ink) 40%, transparent); border: 2px solid var(--line); }
.a11y-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.a11y-panel__head h2 { font-size: 24px; }
.a11y-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); cursor: pointer; font-size: 26px; line-height: 1; }
.a11y-size { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 10px; }
.a11y-size span { min-width: 64px; text-align: center; font-weight: 800; }
.a11y-opt { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; margin-top: 8px; padding: 10px 16px; border: 2px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; text-align: start; cursor: pointer; }
.a11y-opt[aria-pressed="true"] { border-color: var(--ink); background: color-mix(in srgb, var(--yellow) 30%, #fff); }
.a11y-opt[aria-pressed="true"]::after { content: "פעיל"; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.a11y-reset { width: 100%; margin-top: 14px; }
.a11y-link { display: block; margin-top: 12px; text-align: center; font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ההגדרות עצמן ---------- */
html.a11y-z1 body > :not(.a11y-panel):not(.a11y-btn):not(.skip) { zoom: 1.15; }
html.a11y-z2 body > :not(.a11y-panel):not(.a11y-btn):not(.skip) { zoom: 1.3; }
html.a11y-z3 body > :not(.a11y-panel):not(.a11y-btn):not(.skip) { zoom: 1.5; }
html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-font body, html.a11y-font h1, html.a11y-font h2, html.a11y-font h3, html.a11y-font .btn, html.a11y-font input, html.a11y-font button, html.a11y-font select, html.a11y-font textarea { font-family: Arial, 'Segoe UI', sans-serif !important; letter-spacing: .01em; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-still .rv { opacity: 1 !important; transform: none !important; }
html.a11y-contrast { --muted: var(--ink); --line: var(--ink); --on-dark: #fff; --surface: #fff; --surface-2: #fff; }
html.a11y-contrast .dots, html.a11y-contrast .tool::before, html.a11y-contrast .cta__outline { display: none; }
html.a11y-contrast .item, html.a11y-contrast .total, html.a11y-contrast .faq details, html.a11y-contrast .tool, html.a11y-contrast .hint { border: 2px solid var(--ink); }
html.a11y-contrast .pr { border: 1px solid var(--ink); color: var(--ink); }
html.a11y-contrast .title em { color: var(--ink); text-decoration: underline; text-decoration-thickness: 4px; }
html.a11y-contrast .title em::after { display: none; }

@media (max-width: 999px) {
  .a11y-btn { top: auto; bottom: 86px; }
}

/* ---------- חלון הזמנה ---------- */
.total__order { margin-top: 12px; width: 100%; }
.order { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 24px; border: 0; border-radius: 28px; color: var(--ink); background: #fff; box-shadow: 0 40px 90px color-mix(in srgb, var(--ink) 45%, transparent); }
.order::backdrop { background: color-mix(in srgb, var(--ink) 55%, transparent); }
.order__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order__head h2 { font-size: clamp(24px, 4vw, 32px); }
.order__intro { margin-top: 8px; color: var(--muted); }
.order__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.order__progress { margin-top: 14px; font-weight: 800; }
.order__list { margin-top: 8px; display: grid; gap: 8px; }
.oi { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 18px; border: 2px solid var(--line); }
.oi--done { border-color: var(--teal-d); background: color-mix(in srgb, var(--teal) 10%, #fff); }
.oi--miss { border-style: dashed; }
.oi__name { display: block; font-weight: 800; line-height: 1.35; }
.oi__meta { display: block; font-size: 14px; color: var(--muted); }
.oi--miss .oi__meta { color: #B42318; font-weight: 700; }
.oi__acts { display: flex; align-items: center; gap: 10px; }
.oi__check { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 15px; font-weight: 700; cursor: pointer; }
.oi__check input { width: 24px; height: 24px; accent-color: var(--teal-d); }
.order__note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 559px) { .oi { grid-template-columns: 1fr; } .order { padding: 18px; } }
