/* Voio accessibility widget — floating button + slide-in panel.
   Israeli Accessibility Regulations 2013 baseline + WCAG 2.0 AA approximation.
   Vanilla CSS, no dependencies. */

/* ── Floating launcher button ─────────────────────────────────── */
.voio-a11y-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 8900; /* below cookies banner (9000) so banner stays on top */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1E3FC9;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 6px 18px rgba(30,63,201,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.voio-a11y-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 24px rgba(30,63,201,0.40);
}
.voio-a11y-btn .material-icons-outlined { font-size: 24px; }
[dir="rtl"] .voio-a11y-btn { left: auto; right: 20px; }

/* ── Slide-in panel ────────────────────────────────────────────── */
.voio-a11y-panel {
  position: fixed;
  bottom: 80px;
  left: 20px;
  z-index: 8950;
  width: 300px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.18);
  padding: 18px 20px 16px;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  color: #111827;
  transform: scale(0.95) translateY(8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s, opacity 0.2s;
  transform-origin: bottom left;
}
[dir="rtl"] .voio-a11y-panel { left: auto; right: 20px; transform-origin: bottom right; }

.voio-a11y-panel.is-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.voio-a11y-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.voio-a11y-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
}
.voio-a11y-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #9CA3AF;
  padding: 4px;
  border-radius: 6px;
  display: flex;
}
.voio-a11y-close:hover { color: #111827; background: #F3F4F6; }

.voio-a11y-section { margin-bottom: 14px; }
.voio-a11y-section:last-of-type { margin-bottom: 8px; }
.voio-a11y-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 6px;
}

.voio-a11y-font-row {
  display: flex;
  gap: 6px;
}
.voio-a11y-font-btn {
  flex: 1;
  background: #F8FAFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 8px 6px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  color: #111827;
  transition: all 0.15s;
}
.voio-a11y-font-btn:hover { background: #EFF6FF; border-color: #1E3FC9; }
.voio-a11y-font-btn.is-active {
  background: #1E3FC9;
  color: #FFFFFF;
  border-color: #1E3FC9;
}
.voio-a11y-font-btn-sm { font-size: 12px; }
.voio-a11y-font-btn-md { font-size: 14px; }
.voio-a11y-font-btn-lg { font-size: 17px; }

.voio-a11y-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #F8FAFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: #111827;
  margin-bottom: 6px;
  transition: all 0.15s;
}
.voio-a11y-toggle:hover { background: #EFF6FF; border-color: #1E3FC9; }
.voio-a11y-toggle-knob {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: #D1D5DB;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s;
}
.voio-a11y-toggle-knob::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: transform 0.15s;
}
.voio-a11y-toggle.is-on .voio-a11y-toggle-knob { background: #1E3FC9; }
.voio-a11y-toggle.is-on .voio-a11y-toggle-knob::after { transform: translateX(14px); }
[dir="rtl"] .voio-a11y-toggle-knob::after { left: auto; right: 2px; }
[dir="rtl"] .voio-a11y-toggle.is-on .voio-a11y-toggle-knob::after { transform: translateX(-14px); }

.voio-a11y-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.voio-a11y-reset {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #6B7280;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
}
.voio-a11y-reset:hover { color: #DC2626; }
.voio-a11y-footer a {
  color: #1E3FC9;
  text-decoration: none;
  font-weight: 500;
}
.voio-a11y-footer a:hover { text-decoration: underline; }

/* ── Applied styles (on <html>) ───────────────────────────────── */
html.voio-a11y-font-lg { font-size: 17.6px; }
html.voio-a11y-font-xl { font-size: 19.2px; }

html.voio-a11y-contrast { filter: contrast(1.45); }

html.voio-a11y-underline a { text-decoration: underline !important; }

html.voio-a11y-paused *, html.voio-a11y-paused *::before, html.voio-a11y-paused *::after {
  animation-duration: 0s !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
}
