/* Shared language-switch pill — used by every Praxis patient portal.
   Position: fixed top-end so it's visible immediately on every page and
   doesn't collide with bottom action bars (e.g. Xray's select-bar, RZ's
   payment-status footer). Uses logical properties (inset-inline-end) so
   it mirrors to the start in RTL layouts.

   Visual style is deliberately neutral — projects only need their own
   CSS custom properties (--accent, --accent-ink, --border, --surface,
   --ink, --muted) defined. No project-specific overrides expected. */

.lang-switch {
    position: fixed;
    top: 14px;
    inset-inline-end: 16px;
    display: inline-flex;
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    z-index: 100;
    margin: 0;
    padding: 0;
}

.lang-chip {
    border: none;
    background: transparent;
    padding: 0.35rem 0.85rem;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--muted, #6b7280);
    cursor: pointer;
    line-height: 1.2;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.lang-chip:hover { color: var(--ink, #1f2937); }

.lang-chip.active {
    background: var(--accent, #0d6efd);
    color: var(--accent-ink, #fff);
    font-weight: 600;
}
