.language-switcher {
    position: fixed;
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 1040;
    font: 15px/1.4 Arial, sans-serif;
    color: #16394c;
    text-align: left;
}

.language-switcher * { box-sizing: border-box; margin: 0; }

.language-switcher__toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 46px;
    padding: 11px 15px;
    border: 1px solid #d8e7ef;
    border-radius: 24px;
    background: #fff;
    color: #006a9f;
    box-shadow: 0 3px 16px #16394c26;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.language-switcher__toggle:hover { background: #eef8fe; }
.language-switcher__toggle svg { flex-shrink: 0; }
.language-switcher__chevron { transition: transform .15s ease; }
.language-switcher__toggle[aria-expanded="true"] .language-switcher__chevron { transform: rotate(180deg); }

.language-switcher__panel {
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    width: 238px;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #d8e7ef;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 26px #16394c29;
}

.language-switcher__panel[hidden] { display: none !important; }
.language-switcher__heading { padding: 7px 10px; color: #587181; font-size: 13px; }

.language-switcher .language-switcher__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    padding: 10px;
    border-radius: 8px;
    color: #16394c;
    font: inherit;
    text-decoration: none;
}

.language-switcher a.language-switcher__option:hover { background: #eef8fe; color: #006a9f; }
.language-switcher .language-switcher__option[aria-current] { background: #eaf6ff; color: #006a9f; font-weight: 600; }
.language-switcher .language-switcher__option[aria-disabled="true"] { color: #657680; }
.language-switcher__option small { font-size: 12px; font-weight: 400; white-space: nowrap; }
.language-switcher button:focus-visible,
.language-switcher a:focus-visible { outline: 3px solid #0077b6; outline-offset: 2px; }

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