.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lang-switcher__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 12px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switcher__btn.is-active,
.lang-switcher__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.92);
  color: #111;
}

.lang-switcher__btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .lang-switcher__btn {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* Header placement (WebSite X5 header concept row) */
.im-header-concept .lang-switcher {
  margin-left: 8px;
}

/* EN tweaks: nicer wrapping for translated headings/buttons */
.lang-en h1,
.lang-en h2,
.lang-en h3 {
  text-wrap: balance;
}

.lang-en .btn {
  white-space: normal;
}
