.d20-locale-switcher {
  display: inline-flex;
  align-items: center;
}

.d20-locale-switcher__track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(122, 30, 44, 0.24);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.11);
  backdrop-filter: blur(10px);
}

.d20-locale-switcher__btn {
  min-width: 48px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: transparent;
  color: #6d1a2a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.d20-locale-switcher__btn:hover {
  background: rgba(122, 30, 44, 0.1);
}

.d20-locale-switcher__btn:focus-visible {
  outline: 2px solid rgba(201, 162, 39, 0.78);
  outline-offset: 2px;
}

.d20-locale-switcher__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #7a1e2c 0%, #9f2b3d 100%);
  box-shadow: 0 8px 18px rgba(122, 30, 44, 0.28);
}

.d20-locale-switcher__btn.is-active:hover {
  transform: translateY(-1px);
}

.d20-locale-switcher--dark .d20-locale-switcher__track {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.d20-locale-switcher--dark .d20-locale-switcher__btn {
  color: rgba(255, 255, 255, 0.85);
}

.d20-locale-switcher--dark .d20-locale-switcher__btn:hover {
  background: rgba(255, 255, 255, 0.13);
}

.d20-locale-switcher--dark .d20-locale-switcher__btn.is-active {
  color: #45101a;
  background: linear-gradient(135deg, #f5c94c 0%, #fbd86f 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

@media (max-width: 575.98px) {
  .d20-locale-switcher__btn {
    min-width: 44px;
    height: 34px;
    padding: 0 12px;
  }
}
