/* Панель и кнопка */
#accessibility-toggle-panel {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: sans-serif;
  max-width: 280px;
  width: 90vw;
}

#accessibility-toggler {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: #f0f0f0;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

#accessibility-controls {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  background: #fff;
  color: #000;
  padding: 0 10px;
  margin-top: 5px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  opacity: 0;
}

#accessibility-controls button,
#accessibility-controls select {
  width: 100%;
  padding: 8px;
  margin-bottom: 5px;
  font-size: 15px;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
}

/* Всплывающее уведомление */
#accessibility-toast {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 9999;
  display: none;
  max-width: 250px;
}

/* Ч/Б контрастная тема */
.theme-bw {
  background-color: #fff !important;
  color: #000 !important;
}
.theme-bw a {
  color: #000 !important;
  text-decoration: underline !important;
}
.theme-bw {
  font-size: 20px !important;
  line-height: 1.6 !important;
}

/* Адаптация под мобильные */
@media screen and (max-width: 600px) {
  #accessibility-toggle-panel {
    right: 10px;
    bottom: 10px;
  }

  #accessibility-toggler {
    font-size: 14px !important;
  }

  #accessibility-controls,
  #accessibility-controls button,
  #accessibility-controls select {
    font-size: 14px;
  }
}
