/* ===== ACCESSIBILITY WIDGET ===== */
#a11y-content { transition: none; }

#a11y-content.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  outline: 2px dashed #2563eb;
  outline-offset: 2px;
  border-radius: 3px;
}
#a11y-content.a11y-readable,
#a11y-content.a11y-readable * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.012em !important;
}
#a11y-content.a11y-noanim,
#a11y-content.a11y-noanim * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

.a11y-btn {
  position: fixed;
  bottom: 16px;
  inset-inline-start: 14px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: 2px solid #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  z-index: 99998;
  cursor: pointer;
  padding: 0;
}
.a11y-btn:hover { background: #1d4ed8; }
.a11y-btn svg { width: 30px; height: 30px; fill: #fff; }
.a11y-btn:focus-visible { outline: 3px solid #fde047; outline-offset: 2px; }

.a11y-panel {
  position: fixed;
  bottom: 78px;
  inset-inline-start: 14px;
  width: 304px;
  max-width: calc(100vw - 28px);
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  background: #ffffff;
  color: #1a1a1a;
  border-radius: 16px;
  box-shadow: 0 18px 52px rgba(0,0,0,0.45);
  z-index: 99999;
  padding: 16px;
  direction: rtl;
  font-family: 'Heebo', system-ui, sans-serif;
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.a11y-panel-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #111;
}
.a11y-close {
  background: #f0f0f0;
  border: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: #444;
  line-height: 1;
}
.a11y-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a11y-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #f5f6f8;
  border: 2px solid #f5f6f8;
  border-radius: 12px;
  padding: 12px 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.a11y-opt svg { width: 22px; height: 22px; stroke: #2563eb; fill: none; stroke-width: 1.8; }
.a11y-opt.active {
  background: #e7efff;
  border-color: #2563eb;
  color: #1d4ed8;
}
.a11y-opt:focus-visible { outline: 3px solid #fde047; outline-offset: 1px; }
.a11y-fontrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f6f8;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
}
.a11y-fontrow .lbl { font-size: 13.5px; font-weight: 700; color: #333; }
.a11y-fontrow .ctrls { display: flex; gap: 6px; }
.a11y-fontrow button {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: none;
  background: #2563eb;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.a11y-fontrow button:disabled { background: #c5c9d1; cursor: default; }
.a11y-foot {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.a11y-reset {
  width: 100%;
  background: #fff;
  border: 1.5px solid #d6d9df;
  color: #444;
  border-radius: 10px;
  padding: 11px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.a11y-reset:hover { background: #f5f6f8; }
.a11y-statement {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: underline;
  padding: 4px;
}
