/* Language switch (EN / ع) — fixed pill, stays clear of the bag drawer and toasts */
.mila-lang {
  position: fixed;
  /* sits bottom-right in LTR (the app's toasts live bottom-left);
     flips to bottom-left in RTL, where toasts are mirrored to the right */
  right: 20px;
  bottom: 20px;
  /* below the app's modal layers (menu z-50, drawers z-80) so it never
     floats on top of an open bag/drawer/dialog */
  z-index: 40;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(252, 250, 245, 0.94);
  border: 1px solid rgba(30, 59, 50, 0.14);
  box-shadow: 0 6px 22px rgba(30, 59, 50, 0.16);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: 'IBM Plex Sans Arabic', 'Manrope', system-ui, sans-serif;
}
.mila-lang button {
  appearance: none;
  border: 0;
  cursor: pointer;
  min-width: 40px;
  padding: 7px 10px 8px;
  border-radius: 999px;
  background: transparent;
  color: #1E3B32;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.mila-lang button:hover { background: rgba(30, 59, 50, 0.08); }
.mila-lang button.is-active { background: #1E3B32; color: #F7F5F0; }
.mila-lang button:focus-visible { outline: 2px solid #1E3B32; outline-offset: 2px; }
html[dir="rtl"] .mila-lang { right: auto; left: 20px; }
@media (max-width: 640px) {
  .mila-lang { right: 12px; bottom: 12px; padding: 2px; }
  html[dir="rtl"] .mila-lang { right: auto; left: 12px; }
  .mila-lang button { min-width: 36px; padding: 6px 9px 7px; font-size: 12px; }
}
