/* ===== כפתור ותפריט נגישות ===== */
.a11y-widget {
  position: fixed;
  left: calc(1rem + 15px);
  bottom: 1.5rem;
  z-index: 905;
  font-family: "Assistant", "Heebo", Arial, Helvetica, sans-serif;
}

body:has(.chat-widget) .a11y-widget {
  bottom: 6.25rem;
}

body.has-cart-bar .a11y-widget,
body.menu-page:has(.cart-bar:not([hidden])) .a11y-widget {
  bottom: 5.5rem;
}

body:has(.chat-widget).has-cart-bar .a11y-widget,
body:has(.chat-widget).menu-page:has(.cart-bar:not([hidden])) .a11y-widget {
  bottom: 10rem;
}

.a11y-widget__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #f26522 0%, #ff9048 45%, #f26522 100%);
  box-shadow:
    0 8px 24px rgba(242, 101, 34, 0.42),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.a11y-widget__toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(242, 101, 34, 0.5);
}

.a11y-widget__toggle:focus-visible {
  outline: 3px solid #1a3260;
  outline-offset: 3px;
}

.a11y-widget__toggle svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.a11y-widget__panel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.65rem);
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
  color: #1a3260;
  box-shadow: 0 12px 40px rgba(26, 50, 96, 0.18);
  border: 1px solid rgba(26, 50, 96, 0.1);
}

.a11y-widget__panel[hidden] {
  display: none;
}

.a11y-widget__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.a11y-widget__actions {
  display: grid;
  gap: 0.45rem;
}

.a11y-widget__btn {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(26, 50, 96, 0.15);
  border-radius: 0.65rem;
  background: #f7f9fc;
  color: #1a3260;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.a11y-widget__btn:hover {
  background: #eef3fa;
  border-color: rgba(26, 50, 96, 0.28);
}

.a11y-widget__btn:focus-visible {
  outline: 2px solid #f26522;
  outline-offset: 2px;
}

.a11y-widget__btn.is-active {
  background: #1a3260;
  border-color: #1a3260;
  color: #fff;
}

.a11y-widget__btn--reset {
  margin-top: 0.35rem;
  background: #fff;
  color: #c0392b;
  border-color: rgba(192, 57, 43, 0.35);
}

.a11y-widget__btn--reset:hover {
  background: #fff5f4;
}

.a11y-widget__note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(26, 50, 96, 0.1);
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(26, 50, 96, 0.72);
}

.a11y-widget__note a {
  color: #1a3260;
  font-weight: 700;
}

/* === התאמות נגישות על האתר === */
html.a11y-font-110 {
  font-size: 110%;
}

html.a11y-font-120 {
  font-size: 120%;
}

html.a11y-font-130 {
  font-size: 130%;
}

html.a11y-font-140 {
  font-size: 140%;
}

html.a11y-readable-font body,
html.a11y-readable-font body button,
html.a11y-readable-font body input,
html.a11y-readable-font body textarea,
html.a11y-readable-font body select {
  font-family: Arial, Helvetica, sans-serif !important;
}

html.a11y-underline-links a {
  text-decoration: underline !important;
  text-underline-offset: 0.15em;
}

html.a11y-high-contrast body {
  background: #fff !important;
  color: #000 !important;
}

html.a11y-high-contrast .site-header,
html.a11y-high-contrast .order-app-card,
html.a11y-high-contrast .terms-hakfar__inner,
html.a11y-high-contrast .chat-widget__panel,
html.a11y-high-contrast .a11y-widget__panel {
  background: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

html.a11y-high-contrast a {
  color: #0000cc !important;
}

html.a11y-high-contrast .site-kosher-bar,
html.a11y-high-contrast .order-fab__btn,
html.a11y-high-contrast .a11y-widget__toggle {
  background: #000 !important;
  color: #fff !important;
  border: 2px solid #fff !important;
}

html.a11y-reduce-motion *,
html.a11y-reduce-motion *::before,
html.a11y-reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

@media (max-width: 480px) {
  .a11y-widget {
    left: calc(0.75rem + 15px);
    bottom: 1rem;
  }

  body:has(.chat-widget) .a11y-widget {
    bottom: 5.75rem;
  }
}
