/* ===== Accessibility Widget ===== */

/* Toggle button — right-side tab */
.acc-btn {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 54px;
  background: #1a3a5c;
  color: #fff;
  border: none;
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: -2px 2px 12px rgba(0,0,0,0.22);
  transition: background 0.2s;
}
.acc-btn:hover { background: #4a8fc1; }
.acc-btn svg { width: 26px; height: 26px; }

/* Panel */
.acc-panel {
  position: fixed;
  right: -280px;
  top: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  box-shadow: -4px 0 30px rgba(0,0,0,0.13);
  z-index: 1003;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
  font-family: 'Heebo', Arial, sans-serif;
  direction: rtl;
}
.acc-panel.open {
  right: 0;
}

/* Panel header */
.acc-ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1a3a5c;
  color: #fff;
  padding: 18px 20px;
}
.acc-ph h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}
.acc-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background 0.2s;
}
.acc-close:hover { background: rgba(255,255,255,0.15); }

/* Options area */
.acc-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acc-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #f0f7fc;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.92rem;
  color: #1a3a5c;
  font-family: inherit;
  text-align: right;
  transition: background 0.18s, border-color 0.18s;
}
.acc-opt:hover { background: #dceef8; }
.acc-opt.active {
  background: #dceef8;
  border-color: #4a8fc1;
  font-weight: 600;
}
.acc-icon {
  font-size: 1.1rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

/* Reset button */
.acc-rst {
  background: #fff3f3;
  color: #c0392b;
  margin-top: 4px;
}
.acc-rst:hover { background: #fde8e8; }
.acc-rst.active { border-color: #e74c3c; }

/* Panel footer */
.acc-footer {
  padding: 12px 18px;
  border-top: 1px solid #e8edf2;
  text-align: center;
  font-size: 0.8rem;
}
.acc-footer a {
  color: #4a8fc1;
  text-decoration: underline;
}

/* Overlay */
.acc-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 1001;
}
.acc-overlay.open { display: block; }


/* ===== Body accessibility modes ===== */

/* Font size */
body.acc-big  { font-size: 112%; }
body.acc-bigger { font-size: 160%; }

/* High contrast / invert */
body.acc-invert { filter: invert(100%) hue-rotate(180deg); }
body.acc-invert img,
body.acc-invert video,
body.acc-invert .whatsapp-float svg { filter: invert(100%) hue-rotate(180deg); }

/* Grayscale */
body.acc-gray { filter: grayscale(100%); }

/* Both invert + gray */
body.acc-invert.acc-gray { filter: invert(100%) hue-rotate(180deg) grayscale(100%); }

/* Highlight links */
body.acc-links a {
  text-decoration: underline !important;
  outline: 2px solid currentColor !important;
  outline-offset: 2px !important;
}

/* Readable font */
body.acc-font,
body.acc-font * {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.02em !important;
}

/* Stop animations */
body.acc-stop *,
body.acc-stop *::before,
body.acc-stop *::after {
  animation: none !important;
  transition: none !important;
}
