/* AFAPP Sticky Accessibility widget */

.a11y-sticky-widget {
  position: fixed !important;
  bottom: 24px !important;
  right: 24px !important;
  z-index: 9999 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Floating toggle button */
.a11y-sticky-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  border: 2px solid #ffffff !important;
  background-color: #00305B !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  transition: background-color 0.2s ease, transform 0.1s ease !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.a11y-sticky-toggle:hover,
.a11y-sticky-toggle:focus {
  background-color: #002648;
  outline: 3px solid #5EDCFF;
  outline-offset: 3px;
}

.a11y-sticky-toggle:active {
  transform: scale(0.95);
}

/* Panel */
.a11y-sticky-panel {
  background: #ffffff;
  border: 1px solid #8298A5;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  width: 280px;
  overflow: hidden;
  animation: a11y-panel-in 0.2s ease;
}

@keyframes a11y-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.a11y-sticky-panel[hidden] {
  display: none;
}

/* Panel header */
.a11y-sticky-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #00305B;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.a11y-sticky-close {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.a11y-sticky-close:hover,
.a11y-sticky-close:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: 2px solid #5EDCFF;
}

/* Panel body - civic toolbar styles */
.a11y-sticky-panel__body {
  padding: 16px;
}

.a11y-sticky-panel__body .accessibility--controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.a11y-sticky-panel__body .color-contrast,
.a11y-sticky-panel__body .text-sizing {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.a11y-sticky-panel__body .accessibility--label {
  font-size: 12px;
  font-weight: 600;
  color: #4D5053;
  width: 100%;
}

.a11y-sticky-panel__body .accessibility--control {
  border: 1px solid #B2B4B5;
  border-radius: 6px;
  background: #FAFAFA;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 13px;
  transition: background 0.15s, border-color 0.15s;
}

.a11y-sticky-panel__body .accessibility--control:hover,
.a11y-sticky-panel__body .accessibility--control:focus {
  background: #E5EAEE;
  border-color: #4C6E8C;
  outline: 2px solid #5EDCFF;
  outline-offset: 2px;
}
