/*
 * Neutral, prefixed UI for [dostepnosc] shortcode.
 * Theme-safe, WCAG-friendly focus + hit targets.
 */

.sod-a11y-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: #1d2327;
}

.sod-a11y-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
}

.sod-a11y-toolbar__label {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  margin-right: 4px;
}

.sod-a11y-btn {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  background: #ffffff;
  color: #1d2327;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.sod-a11y-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}

.sod-a11y-btn:active {
  transform: translateY(1px);
}

.sod-a11y-btn:focus,
.sod-a11y-btn:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

.sod-a11y-btn--icon {
  padding: 8px;
}

.sod-a11y-btn--wide {
  padding: 8px 12px;
}

.sod-a11y-btn__text {
  font-weight: 600;
}

/* Contrast badge variants (neutral, non-theme-breaking). */
.sod-a11y-btn--c1 { border-left-width: 6px; }
.sod-a11y-btn--c2 { border-left-width: 6px; }
.sod-a11y-btn--c3 { border-left-width: 6px; }
.sod-a11y-btn--c4 { border-left-width: 6px; }

.sod-a11y-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 10px;
}

.sod-a11y-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
}

.sod-a11y-check label {
  font-size: 14px;
  line-height: 1.2;
}

/* Screen-reader-only helper */
.sod-a11y-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .sod-a11y-toolbar {
    gap: 10px;
    padding: 10px;
  }

  .sod-a11y-toolbar__group {
    gap: 6px;
    padding: 8px;
  }

  .sod-a11y-toolbar__label {
    font-size: 13px;
  }
}
