/* Language switcher UI - loaded on every page, independent of RTL/LTR direction fixes. */

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  z-index: 20;
}

.lang-switcher-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 6px;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: inherit;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.lang-switcher-btn:hover {
  opacity: 0.85;
}

.lang-switcher-btn.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-switcher-sep {
  opacity: 0.4;
  font-size: 11px;
}

/* Header placement: sits inline with the user-dropdown/login control. */
header .lang-switcher {
  color: #fff;
}

.mobile-sidebar .lang-switcher {
  justify-content: center;
  padding: 10px 0;
  color: #fff;
}

/* Standalone placement: pages with no header (login, register, privacy,
   terms, dashboard) drop the switcher in a fixed corner instead. */
.standalone-lang-switcher {
  position: fixed;
  top: 15px;
  inset-inline-end: 15px;
  z-index: 500;
}

.standalone-lang-switcher .lang-switcher {
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 8px;
}
