.language-switcher {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--backend-line, #d9dee8);
  border-radius: 10px;
  background: var(--backend-surface, #fff);
  color: var(--backend-ink, #172033);
  box-shadow: 0 2px 8px rgb(15 23 42 / 8%);
}

.language-switcher .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-switcher.mobile { display: none; }

.language-switcher button {
  width: auto;
  min-width: 0;
  min-height: 32px;
  padding: 5px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  line-height: 1.1;
  white-space: nowrap;
}

.language-switcher button.is-active,
.language-switcher button[aria-pressed="true"] {
  background: var(--backend-primary, #176b70);
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.language-switcher button:focus-visible {
  outline: 3px solid var(--backend-focus, #5eead4);
  outline-offset: 2px;
}

.language-switcher-divider {
  color: var(--backend-muted, #667085);
  font-size: .76rem;
}

.language-switcher.standalone {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1000;
}

.language-switcher.embedded { flex: 0 0 auto; }

.admin-language-header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 850px) {
  .language-switcher.desktop { display: none; }
  .language-switcher.mobile { display: inline-flex; }
}

@media (max-width: 420px) {
  .language-switcher { padding: 2px; }
  .language-switcher button { padding-inline: 7px; font-size: .76rem; }
  .language-switcher.standalone { top: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .language-switcher *,
  .language-switcher *::before,
  .language-switcher *::after { transition: none !important; }
}
