/* Base styles */
.acc-menu {
  position: fixed;
  left: var(--acc-menu-inline-gap, 12px);
  top: var(--acc-menu-block-gap, 12px);
  bottom: var(--acc-menu-block-gap, 12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  opacity: 1;
  transition: 0.3s;
  z-index: var(--acc-widget-z-index, 100000);
  overflow: hidden;
  /* The primary color shows through the content margins, framing the body
     like a gate: header across the top, posts down both sides. */
  background: var(--acc-primary-color);
  width: min(516px, calc(100vw - (var(--acc-menu-inline-gap, 12px) * 2)));
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  font-size: 16px;
  height: auto;
  letter-spacing: 0.015em;
  color: var(--acc-text-color);
  --acc-content-inline-padding: 14px;
  --acc-menu-inline-gap: clamp(16px, 2.5vw, 28px);
  --acc-menu-block-gap: var(--acc-menu-inline-gap);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

/* The dialog receives programmatic focus on open (tabindex="-1", never
   Tab-reachable); a focus ring around the whole panel would be noise. */
.acc-menu:focus {
  outline: none;
}

/* Ensure all elements inherit proper colors for accessibility */
.acc-menu * {
  color: var(--acc-text-color);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  padding: 0;
  margin: 0;
  line-height: 1.5 !important;
  letter-spacing: normal !important;
}

/* Header section */
.acc-menu-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--acc-content-inline-padding);
  height: var(--acc-header-height);
  font-weight: 700 !important;
  background-color: var(--acc-primary-color) !important;
}

.acc-menu-title {
  display: flex;
  align-items: center;
  min-width: 0;
  font-size: 17px !important;
  color: var(--acc-text-color-inverted) !important;
  font-weight: 700;
}

.acc-menu-title .acc-label {
  color: var(--acc-text-color-inverted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.acc-menu-close:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.acc-menu-close:focus {
  outline: 2px solid var(--acc-text-color-inverted);
  outline-offset: 1px;
}

.acc-menu-header .acc-menu-close svg {
  fill: var(--acc-text-color-inverted) !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.acc-header-back {
  display: flex;
  align-items: center;
}

.acc-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: var(--acc-text-color-inverted) !important;
  transition: background-color 0.2s ease;
  border-radius: 4px;
  visibility: hidden;
}

.acc-back-btn > span {
  color: var(--acc-text-color-inverted) !important;
}

.acc-back-btn.visible {
  visibility: visible;
}

.acc-back-btn:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.acc-back-btn:focus {
  outline: 2px solid var(--acc-text-color-inverted);
  outline-offset: 1px;
}

.acc-back-btn svg {
  fill: var(--acc-text-color-inverted) !important;
  width: 24px !important;
  height: 24px !important;
}

.acc-menu-header svg {
  fill: var(--acc-text-color-inverted) !important;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}

.acc-menu-header > div {
  display: flex;
  align-items: center;
}

/* Interactive elements */
.acc-menu-header div[role="button"] {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  transition: background-color 0.2s ease;
}

.acc-menu-header div[role="button"]:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.acc-menu-header div[role="button"]:focus {
  outline: 2px solid var(--acc-text-color-inverted);
  outline-offset: 1px;
}

.acc-menu-header .acc-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.acc-language-container {
  margin: 0 var(--acc-content-inline-padding) 24px;
}

.acc-lang-details {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--acc-button-border-radius);
  background: var(--acc-card-bg);
}

.acc-lang-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-radius: var(--acc-button-border-radius);
}

.acc-lang-summary::-webkit-details-marker {
  display: none;
}

.acc-lang-summary::marker {
  content: '';
}

.acc-lang-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.acc-lang-current-label {
  font-size: 16px !important;
  font-weight: 600 !important;
}

.acc-lang-summary:hover {
  background-color: rgba(25, 118, 210, 0.06);
}

.acc-lang-summary:focus {
  outline: var(--acc-focus-outline-width) solid var(--acc-focus-ring-color);
  outline-offset: var(--acc-focus-outline-offset);
}

.acc-lang-summary-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--acc-text-color);
  border-bottom: 2px solid var(--acc-text-color);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

.acc-lang-details[open] .acc-lang-summary-arrow {
  transform: rotate(45deg);
}

.acc-lang-details[open] .acc-lang-summary {
  border-bottom: 1px solid var(--acc-border-color);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.acc-lang-details-panel {
  padding: 12px 0 8px;
}

.acc-lang-details-panel .acc-section-title {
  font-size: 16px !important;
  padding: 0 16px 10px;
}

.acc-lang-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  font-size: 18px !important;
  line-height: 1;
}

.acc-lang-search-wrapper {
  padding: 0 16px 8px;
}

.acc-lang-search {
  width: 100%;
  padding: 10px 16px;
  border: 1.5px solid var(--acc-border-color);
  border-radius: var(--acc-button-border-radius);
  font-size: 16px;
  background-color: var(--acc-card-bg);
  transition: border-color 0.2s ease;
}

.acc-lang-search:focus {
  outline: var(--acc-focus-outline-width) solid var(--acc-focus-ring-color);
  outline-offset: var(--acc-focus-outline-offset);
  border-color: var(--acc-primary-color) !important;
}

.acc-lang-list {
  padding: 6px 8px 12px;
  max-height: 280px;
  overflow-y: auto;
}

.acc-lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 11px 10px;
  margin-bottom: 4px;
  background-color: transparent;
  border: none;
  border-radius: var(--acc-button-border-radius);
  cursor: pointer;
  font-size: 16px;
  color: var(--acc-text-color);
  transition: background-color 0.12s ease;
}

.acc-lang-item:hover {
  background-color: rgba(25, 118, 210, 0.06);
}

.acc-lang-item:focus {
  outline: var(--acc-focus-outline-width) solid var(--acc-focus-ring-color);
  outline-offset: var(--acc-focus-outline-offset);
}

.acc-lang-item.selected {
  background-color: rgba(25, 118, 210, 0.08);
  font-weight: 600;
}

.acc-lang-item-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.acc-lang-item-label {
  font-size: 16px !important;
  line-height: 1.4 !important;
}

.acc-icon-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23886f60' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.acc-lang-item.selected .acc-icon-check {
  opacity: 1;
}

.acc-menu .acc-lang-select {
  width: 100% !important;
  padding: 0 16px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  font-weight: 600 !important;
  border-radius: var(--acc-button-border-radius) !important;
  background: var(--acc-card-bg) !important;
  border: 1.5px solid var(--acc-border-color) !important;
  min-height: 48px !important;
  max-height: 48px !important;
  height: 48px !important;
  color: var(--acc-text-color) !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0%20-960%20960%20960' width='24px' fill='%231f1f1f'%3E%3Cpath d='M480-344%20240-584l56-56%20184 184%20184-184%2056 56-240 240Z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 20px !important;
  padding-right: 44px !important;
}

/* Hide default arrows in Firefox and IE */
.acc-menu .acc-lang-select::-ms-expand {
  display: none !important;
}

.acc-menu .acc-lang-select:focus {
  outline: var(--acc-focus-outline-width) solid var(--acc-focus-ring-color);
  outline-offset: var(--acc-focus-outline-offset);
  border-color: var(--acc-primary-color) !important;
}

/* Option grid layout */
.acc-options-all {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 var(--acc-content-inline-padding) 12px;
}

.acc-option-category {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-option-category-interaction {
  padding-bottom: 12px;
}

.acc-option-category .acc-section-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  text-transform: none;
  color: #6b7280 !important;
  padding: 0 2px;
}

.acc-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.acc-options-text {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.acc-options-text-inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.acc-btn.acc-text-inline {
  min-height: 54px;
  aspect-ratio: auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  padding: 12px 14px;
}

.acc-btn.acc-text-inline .acc-label {
  font-size: 14px !important;
  flex: 1 1 auto;
  min-width: 0;
}

.acc-btn.acc-text-inline .acc-progress-indicator {
  margin-top: 0;
  margin-left: auto;
  justify-content: flex-end;
  min-width: 24px;
}

@media only screen and (max-width: 430px) {
  .acc-options-text-inline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .acc-btn.acc-text-inline {
    min-height: auto;
    aspect-ratio: 11 / 8;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 10px;
  }

  .acc-btn.acc-text-inline .acc-label {
    font-size: 13px !important;
    flex: 0 1 auto;
  }

  .acc-btn.acc-text-inline .acc-progress-indicator {
    margin-top: 8px;
    margin-left: 0;
    justify-content: center;
  }
}

.acc-tts-toggle-container {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.acc-text-scale-control {
  width: 100%;
  background: var(--acc-card-bg) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  border-radius: var(--acc-border-radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-text-scale-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acc-text-scale-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acc-text-scale-icon svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  fill: var(--acc-text-color);
}

.acc-text-scale-meta .acc-label {
  font-size: 15px !important;
  font-weight: 600 !important;
}

.acc-text-scale-percent {
  margin-left: auto;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--acc-primary-color) !important;
}

.acc-text-scale-range {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 20px;
  cursor: pointer;
  margin: 0;
}

.acc-text-scale-range:focus {
  outline: none;
}

.acc-text-scale-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    to right,
    var(--acc-primary-color) 0%,
    var(--acc-primary-color) var(--acc-text-scale-progress, 0%),
    #d8d8d8 var(--acc-text-scale-progress, 0%),
    #d8d8d8 100%
  );
}

.acc-text-scale-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--acc-primary-color);
  margin-top: -7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.acc-text-scale-range::-moz-range-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #d8d8d8;
}

.acc-text-scale-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: var(--acc-primary-color);
}

.acc-text-scale-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--acc-primary-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.acc-btn.acc-tts-toggle {
  width: 100%;
  min-height: 54px;
  aspect-ratio: auto;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
  padding: 12px 76px 12px 14px;
}

.acc-btn.acc-tts-toggle .acc-label {
  font-size: 15px !important;
}

.acc-btn.acc-tts-toggle svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
}

.acc-btn.acc-tts-toggle::before {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #dbd7d2;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.acc-btn.acc-tts-toggle::after {
  content: "";
  position: absolute;
  right: 38px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.acc-btn.acc-tts-toggle.acc-selected::before {
  background: var(--acc-primary-color);
  border-color: var(--acc-primary-color);
}

.acc-btn.acc-tts-toggle.acc-selected::after {
  right: 16px;
}

/* Button styling */
.acc-btn {
  aspect-ratio: 11 / 8;
  border-radius: var(--acc-border-radius);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  font-size: 15px !important;
  background: var(--acc-card-bg) !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  transition: background-color 0.2s ease;
  cursor: pointer;
  word-break: break-word;
  gap: 6px;
  position: relative;
}

.acc-btn:hover {
  border-color: var(--acc-hover-color) !important;
  border-width: 1px !important;
  box-shadow: inset 0 0 0 1px var(--acc-hover-color);
}

.acc-btn:focus {
  outline: var(--acc-focus-outline-width) solid var(--acc-focus-ring-color);
  outline-offset: var(--acc-focus-outline-offset);
  border-color: var(--acc-primary-color) !important;
}

.acc-btn .acc-label, .acc-text-adjust .acc-label div {
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* SVG icons */
.acc-text-adjust svg {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

.acc-btn svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  fill: var(--acc-text-color);
}

/* Selected state */
.acc-btn.acc-selected {
  background-color: var(--acc-primary-color) !important;
  border-color: var(--acc-primary-color) !important;
}

.acc-btn.acc-selected .acc-progress-dot {
  background-color: rgba(255, 255, 255, 0.5);
}

.acc-btn.acc-selected .acc-progress-dot.active {
  background-color: var(--acc-text-color-inverted) !important;
}

.acc-btn.acc-selected svg,
.acc-btn.acc-selected span,
.acc-btn.acc-selected .acc-label {
  fill: var(--acc-text-color-inverted) !important;
  color: var(--acc-text-color-inverted) !important;
}

.acc-btn.acc-tts-toggle.acc-selected {
  background-color: var(--acc-card-bg) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

.acc-btn.acc-tts-toggle.acc-selected svg,
.acc-btn.acc-tts-toggle.acc-selected span,
.acc-btn.acc-tts-toggle.acc-selected .acc-label {
  fill: var(--acc-text-color) !important;
  color: var(--acc-text-color) !important;
}

/* Footer section */
.acc-footer {
  flex-shrink: 0;
  background: var(--acc-card-bg);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  border-top: 1px solid var(--acc-border-color);
  overflow: visible;
}

.acc-footer-reset {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  border-radius: var(--acc-button-border-radius);
  background-color: var(--acc-primary-color) !important;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.acc-footer-reset svg {
  width: 24px !important;
  height: 24px !important;
  fill: var(--acc-text-color-inverted) !important;
}

.acc-footer-reset .acc-label {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--acc-text-color-inverted) !important;
  line-height: 1.2 !important;
}

.acc-footer-reset:hover {
  background-color: var(--acc-primary-color-dark) !important;
}

.acc-footer-reset:focus {
  outline: var(--acc-focus-outline-width) solid var(--acc-focus-ring-color);
  outline-offset: var(--acc-focus-outline-offset);
}

.acc-header-lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--acc-button-border-radius);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.acc-header-lang-toggle:hover {
  background-color: rgba(255, 255, 255, 0.18);
}

.acc-header-lang-toggle:focus {
  outline: 2px solid var(--acc-text-color-inverted);
  outline-offset: 1px;
}

.acc-header-lang-current {
  display: inline-block;
  min-width: 2ch;
  text-align: left;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--acc-text-color-inverted) !important;
}

.acc-header-lang-arrow {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--acc-text-color-inverted);
  border-bottom: 1.5px solid var(--acc-text-color-inverted);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.acc-header-lang-toggle[aria-expanded="true"] .acc-header-lang-arrow {
  transform: rotate(-135deg) translateY(-1px);
}

.acc-lang-modal {
  position: absolute;
  inset-inline-end: 12px;
  top: calc(var(--acc-header-height) + 8px);
  width: min(320px, calc(100% - 32px));
  border: 1px solid var(--acc-border-color);
  border-radius: 14px;
  background: var(--acc-card-bg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  z-index: 120;
  padding: 10px 0 8px;
}

.acc-lang-modal[hidden] {
  display: none;
}

.acc-lang-modal-header {
  padding: 0 14px 8px;
}

.acc-lang-modal .acc-section-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #6b7280 !important;
}

.acc-lang-modal .acc-lang-search-wrapper {
  padding: 0 12px 8px;
}

.acc-lang-modal .acc-lang-list {
  padding: 6px 8px 8px;
  max-height: 240px;
}

/* Content area */
.acc-menu-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 28px 0 36px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  background: var(--acc-bg-color);
}

/* Text adjustments */
.acc-text-adjust {
  background: var(--acc-card-bg);
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: var(--acc-border-radius);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.acc-text-adjust .acc-label {
  display: flex;
  justify-content: flex-start;
}

.acc-text-adjust > div {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  align-items: center;
  font-size: 16px;
}

.acc-text-adjust .acc-label div {
  font-size: 16px !important;
}

.acc-text-adjust div[role="button"] {
  background: var(--acc-bg-color) !important;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.2s ease;
}

.acc-text-adjust div[role="button"]:hover {
  border-color: var(--acc-primary-color);
}

.acc-text-adjust div[role="button"]:focus {
  outline: var(--acc-focus-outline-width) solid var(--acc-focus-ring-color);
  outline-offset: var(--acc-focus-outline-offset);
}

/* Overlay */
.acc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: calc(var(--acc-widget-z-index, 100000) - 1);
}

/* Progress indicator */
.acc-progress-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  height: 8px;
}

.acc-progress-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--acc-border-color);
  transition: background-color 0.2s ease;
}

.acc-progress-dot.active {
  background-color: var(--acc-primary-color);
}

/* Selected state updates indicator colors */
.acc-btn.acc-selected .acc-progress-dot.active {
  background-color: var(--acc-bg-color);
}

/* Responsive adjustments */
@media only screen and (max-width: 560px) {
  .acc-menu {
    width: calc(100vw - (var(--acc-menu-inline-gap, 8px) * 2));
  }
}

@media only screen and (max-width: 420px) {
  .acc-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .acc-btn {
    padding: 8px;
  }
}

/* Ensure proper focus visibility for assistive technology */
@media (prefers-reduced-motion: reduce) {
  .acc-menu,
  .acc-btn,
  .acc-lang-select,
  .acc-progress-dot,
  .acc-menu-header div[role="button"],
  .acc-lang-toggle,
  .acc-back-btn,
  .acc-menu-close,
  .acc-footer-reset,
  .acc-header-lang-toggle,
  .acc-header-lang-arrow,
  .acc-text-adjust div[role="button"] {
    transition: none;
  }
}
