/*
 * WCAG-knoppen — toegankelijkheidsbalk
 *
 * Kleuren worden gestuurd via CSS custom properties die vanuit Lentl Opties
 * worden geïnjecteerd. Fallback-waarden staan in var() zodat de stijl
 * ook zonder ingestelde opties werkt.
 *
 *   --lentl-wcag-primair    standaard #FABE3B (geel)
 *   --lentl-wcag-secundair  standaard #ffffff (wit)
 */

.lentl-wcag-knop {
  position: fixed;
  left: 0;
  background: var(--lentl-wcag-primair, #FABE3B);
  color: var(--lentl-wcag-secundair, #ffffff) !important;
  padding: 10px 14px;
  border-top-right-radius: 30px;
  border-bottom-right-radius: 30px;
  font-size: 16px;
  z-index: 9999;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  transition: padding-right 0.3s, max-width 0.3s;
  max-width: 50px;
  text-decoration: none;
}

.lentl-wcag-knop i {
  font-size: 18px;
  color: var(--lentl-wcag-secundair, #ffffff) !important;
  margin-right: 6px;
  flex-shrink: 0;
}

.lentl-wcag-knop .lentl-wcag-label {
  opacity: 0;
  transition: opacity 0.2s;
}

/* Vaste posities */
.lentl-wcag-lees-voor  { bottom: 35px; }
.lentl-wcag-vergroten  { bottom: 88px; }
.lentl-wcag-verkleinen { bottom: 140px; }

/* Hover: knop uitklappen en label tonen */
.lentl-wcag-knop:hover {
  max-width: 200px;
  padding-right: 20px;
}

.lentl-wcag-knop:hover .lentl-wcag-label {
  opacity: 1;
}

/* Voorlees-knop: uitgeklapte staat bij selectie */
.lentl-wcag-lees-voor.is-uitgeklapt {
  max-width: 220px;
  padding-right: 20px;
}
.lentl-wcag-lees-voor.is-uitgeklapt .lentl-wcag-label {
  opacity: 1;
}
.lentl-wcag-lees-voor.speelt {
  background: #c0392b !important;
}
