/* Container for toggle + bar */
#a11y-container {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 10000;
  pointer-events: none; /* only its children react */
}

/* The round wheelchair toggle button */
#a11y-toggle {
  position: relative;
  pointer-events: all;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: background 0.2s;
}
#a11y-toggle:hover {
  background: #0055aa;
}

#a11y-toggle .escape-indicator {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 40px;
  height: 40px;
  pointer-events: none;
}

/* The sliding bar—completely hidden until “open” */
#a11y-bar {
  pointer-events: all;
  position: fixed;
  bottom: calc(16px + 48px + 8px); /* where it will sit when open */
  left: 16px;
  width: 280px;
  background: #f1f1f1;
  border-radius: 8px 8px 0 0;
  padding: 16px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);

  /* hidden state */
  visibility: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* visible/open state */
#a11y-container.open #a11y-bar {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

#a11y-bar button i {
  margin-left: 8px;
}

/* Inner bar styling */
#a11y-bar h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  text-align: center;
}
#a11y-bar button {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  font-size: 0.9rem;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
#a11y-bar button:focus {
  outline: 2px solid #0066cc;
}

@media (max-width: 1024px) {
  #a11y-toggle .escape-indicator {
    display: none;
  }
}
