.sfx-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(3, 6, 13, 0.72);
  backdrop-filter: blur(12px);
}

.sfx-language-switcher a {
  display: grid;
  min-width: 30px;
  min-height: 28px;
  place-items: center;
  border-radius: 4px;
  color: #a8b3c3;
  font: 800 10px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: none;
}

.sfx-language-switcher a:hover,
.sfx-language-switcher a:focus-visible {
  color: #f4f7fb;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.sfx-language-switcher a[aria-current="true"] {
  color: #03130c;
  background: #26e08c;
}

.sfx-language-switcher--floating {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 1200;
}

.sfx-i18n-fallback {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 1000;
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(3, 6, 13, 0.94);
  color: #d5dde8;
  font: 700 12px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

@media (max-width: 760px) {
  .site-header .header-inner,
  .topbar .nav {
    height: auto;
    min-height: 0;
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header .header-inner > .sfx-language-switcher,
  .topbar .nav > .sfx-language-switcher {
    order: 20;
    width: 100%;
    flex-basis: 100%;
    justify-content: center;
  }

  .topbar .nav > .back {
    margin-left: auto;
    text-align: right;
  }

  .sfx-language-switcher {
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
  }

  .sfx-language-switcher a {
    min-width: 28px;
    min-height: 26px;
  }
}

@media print {
  .sfx-language-switcher,
  .sfx-i18n-fallback { display: none !important; }
}
