:root {
  --a11y-text-scale: 1;
}

.a11y-fab-wrap {
  position: fixed;
  right: 16px;
  bottom: 100px;
  z-index: 9999;
}

.a11y-fab {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.a11y-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.a11y-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: 220px;
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 12px;
  box-shadow: none;
  padding: 10px;
  display: none;
}

.a11y-panel.open {
  display: block;
}

.a11y-row {
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
  margin-bottom: 8px;
}

.a11y-opt {
  background: #ffffff;
  color: #000000;
  border: 2px solid #000000;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  min-height: 44px;
}

.a11y-reset {
  width: 100%;
}

.a11y-fab:focus-visible,
.a11y-opt:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.a11y-contrast-high {
  --bg: #000000;
  --panel: #000000;
  --panel-2: #000000;
  --text: #ffffff;
  --muted: #d0d0d0;
  --primary: #ffff00;
  --primary-700: #ffff00;
  --accent: #00ffff;
  --danger: #ff4444;
  --success: #55ff55;
  --shadow: none;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

.a11y-text-bigger {
  -webkit-text-size-adjust: calc(100% * var(--a11y-text-scale));
}

@supports (zoom: 1) {
  .a11y-zoom {
    zoom: var(--a11y-text-scale);
  }
}

@supports not (zoom: 1) {
  .a11y-transform {
    transform-origin: 0 0;
    transform: scale(var(--a11y-text-scale));
    width: calc(100% / var(--a11y-text-scale));
  }
}

.a11y-fab-wrap,
.a11y-fab-wrap * {
  transform: none !important;
  zoom: 1 !important;
}
