.tonar-language-switch {
  position: fixed;
  z-index: 2000;
  top: 24px;
  right: 24px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid rgba(201, 168, 108, 0.46);
  border-radius: 999px;
  background: rgba(5, 8, 16, 0.72);
  color: #f0f0ec;
  font: 600 12px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.tonar-language-switch:hover {
  border-color: #c9a86c;
  background: rgba(15, 34, 48, 0.92);
  transform: translateY(-1px);
}

.tonar-language-switch:focus-visible {
  outline: 2px solid #d4bd8e;
  outline-offset: 3px;
}

.tonar-language-switch svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #d4bd8e;
}

/* Reserve the top-right corner on the site's different header systems. */
body:has(.tonar-language-switch) .site-header,
body:has(.tonar-language-switch) .feedback-header,
body:has(.tonar-language-switch) .cms-nav {
  padding-right: 164px;
}

body:has(.tonar-language-switch) .navbar__inner {
  padding-right: 164px;
}

@media (max-width: 480px) {
  .tonar-language-switch {
    top: 16px;
    right: 16px;
  }

  body:has(.tonar-language-switch) .site-header,
  body:has(.tonar-language-switch) .feedback-header,
  body:has(.tonar-language-switch) .cms-nav,
  body:has(.tonar-language-switch) .navbar__inner {
    padding-right: 148px;
  }

  body:has(.tonar-language-switch) .feedback-header > p {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tonar-language-switch { transition: none; }
}
