.language-switcher {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
  margin: 0;
}

.language-switcher label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.language-switcher select {
  width: auto;
  min-width: 108px;
  padding: 6px 28px 6px 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  appearance: none;
  -webkit-appearance: none;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.language-switcher select:hover {
  border-color: #94a3b8;
  background-color: #ffffff;
}

.language-switcher select:focus-visible {
  border-color: #2563eb;
  background-color: #ffffff;
  outline: 3px solid rgba(37, 99, 235, 0.22);
  outline-offset: 1px;
}

.language-switcher button {
  width: auto;
  padding: 5px 10px;
  font: inherit;
  font-size: 12.5px;
  border-radius: 999px;
}

.js-enabled .language-switcher button[type="submit"] {
  display: none;
}
