html.i18n-pending body { visibility: hidden; }
html, body { max-width: 100%; overflow-x: clip; }

.language-switcher {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 12, 13, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.language-switcher button {
  appearance: none;
  min-width: 42px;
  min-height: 34px;
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font: 650 12px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.language-switcher button:hover { color: #fff; }
.language-switcher button:active { transform: scale(0.96); }
.language-switcher button[aria-pressed="true"] { background: #f2e3ae; color: #101213; }
.language-switcher button:focus-visible { outline: 2px solid #f2e3ae; outline-offset: 3px; }

body.modal-open .language-switcher,
body.is-modal-open .language-switcher,
body:has(.modal.is-open) .language-switcher,
body:has(.reservation-modal[aria-hidden="false"]) .language-switcher { display: none; }

@media (max-width: 600px) {
  .language-switcher { left: max(10px, env(safe-area-inset-left)); bottom: max(10px, env(safe-area-inset-bottom)); }
  .language-switcher button { min-width: 40px; min-height: 32px; padding: 6px 9px; }
}

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