.accessibility-widget {
  direction: rtl;
  font-family: "Heebo", Arial, sans-serif;
}

.accessibility-widget-launcher {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  width: 52px;
  height: 52px;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 2px solid var(--gold, #c9a227);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  color: var(--gold-deep, #9d7920);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.accessibility-widget-launcher:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.accessibility-widget-launcher:focus-visible,
.accessibility-widget-panel button:focus-visible {
  outline: 3px solid var(--gold-deep, #9d7920);
  outline-offset: 3px;
}

.accessibility-widget-icon {
  color: var(--gold, #c9a227);
  -webkit-text-fill-color: var(--gold, #c9a227);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Arial Unicode MS", sans-serif;
  font-variant-emoji: text;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.accessibility-widget-panel {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 86px;
  width: min(340px, calc(100vw - 44px));
  overflow: hidden;
  border: 2px solid #c9a227;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(36, 32, 25, 0.28);
  color: #242019;
}

.accessibility-widget-panel[hidden] {
  display: none !important;
}

.accessibility-widget-header {
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 13px 9px 18px;
  background: #29241c;
  color: #ffffff;
}

.accessibility-widget-header h2 {
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1.3;
}

.accessibility-widget-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 1.55rem;
  line-height: 1;
}

.accessibility-widget-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px;
  gap: 10px;
}

.accessibility-widget-options button {
  min-height: 52px;
  border: 1px solid #b49a53;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  background: #fffdf8;
  color: #3e321b;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.accessibility-widget-options button:hover,
.accessibility-widget-options button[aria-pressed="true"] {
  border-color: #806016;
  background: #f7edce;
  color: #241c09;
}

.accessibility-widget-options .accessibility-widget-reset {
  grid-column: 1 / -1;
}

.accessibility-widget-status {
  min-height: 20px;
  margin: 0;
  padding: 0 15px 12px;
  color: #5f584d;
  font-size: 0.72rem;
  text-align: center;
}

html.accessibility-font-1 {
  font-size: 112.5%;
}

html.accessibility-font-2 {
  font-size: 125%;
}

html.accessibility-high-contrast {
  --white: #ffffff;
  --ivory: #ffffff;
  --cream: #f2f2f2;
  --cream-deep: #dddddd;
  --gold: #ffcc00;
  --gold-bright: #ffdc3d;
  --gold-deep: #5a4200;
  --ink: #000000;
  --ink-soft: #111111;
  --ink-muted: #222222;
  --line: #555555;
}

html.accessibility-high-contrast .accessibility-widget-panel {
  border-color: #000000;
}

html.accessibility-links a:not(.button):not(.brand) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}

html.accessibility-motion-stop {
  scroll-behavior: auto;
}

html.accessibility-motion-stop *,
html.accessibility-motion-stop *::before,
html.accessibility-motion-stop *::after {
  scroll-behavior: auto !important;
  animation: none !important;
  transition-duration: 0.01ms !important;
}

@media (max-width: 720px) {
  .accessibility-widget-launcher {
    right: auto;
    left: 0;
    top: 60%;
    bottom: auto;
    width: 40px;
    height: 40px;
    min-height: 40px;
    gap: 0;
    border: 2px solid var(--gold, #c9a227);
    border-left: 0;
    border-radius: 0 50% 50% 0;
    padding: 0;
    background: transparent;
    color: var(--gold-deep, #9d7920);
    box-shadow: none;
    transform: translateY(-50%);
  }

  .accessibility-widget-launcher:hover {
    transform: translateY(calc(-50% - 2px));
  }

  .accessibility-widget-launcher:focus-visible {
    transform: translateY(-50%);
  }

  .accessibility-widget-launcher span:not(.accessibility-widget-icon) {
    display: none;
  }

  .accessibility-widget-icon {
    font-size: 1rem;
  }

  .accessibility-widget-panel {
    right: 12px;
    bottom: 74px;
    width: min(340px, calc(100vw - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .accessibility-widget-launcher {
    transition: none;
  }
}
