.float-bar { position: fixed; z-index: 11; right: 20px; bottom: 0; display: flex; align-items: end; gap: 8px; }
.language-control { position: relative; }
.float-bar .btn { padding: 8px 14px; }
#lang-toggle .icon { width: 13px; height: 13px; }
.top-link { min-width: 42px; }
.language-options { position: absolute; bottom: calc(100% + 5px); right: 0; min-width: 160px; padding: 5px; border: 1px solid var(--sand); border-radius: 8px; box-shadow: 0 8px 28px rgba(73,61,44,.24); background: var(--ivory); }
.language-options {
  max-height: calc(100vh - var(--header-height) - 100% - 10px);
  max-height: calc(100dvh - var(--header-height) - 100% - 10px);
  overflow-y: auto;
}
.language-options button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; border: 0; border-radius: 4px; padding: 8px 11px; background: var(--ivory); text-align: start; }
.language-options button:hover, .language-options button[aria-pressed="true"] { background: var(--sand); color: var(--teal); }
[dir="rtl"] .float-bar { right: auto; left: 20px; }
[dir="rtl"] .language-options { right: auto; left: 0; }

@media (max-width: 490px) {
  .float-bar { right: 10px; }
  [dir="rtl"] .float-bar { left: 10px; }
}

@supports not (inset: 0) {
  .float-bar > * { margin: 3px; }
}
