/* PayToGo language switcher + RTL support */
.lang-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-inline-start: auto;
  gap: 0;
  height: 2.5rem;
  padding-inline: 0.15rem;
}
@media (min-width: 1024px) {
  .lang-switch { margin-inline-start: 0.15rem; }
  header .ml-auto.lg\:flex { margin-left: auto; }
}
@media (max-width: 1023px) {
  /* Sit just before the hamburger, which also uses ml-auto */
  header [class*="ml-auto"][class*="lg:hidden"] { margin-left: 0.35rem !important; }
}

.lang-switch__dot {
  color: rgba(247, 249, 255, 0.28);
  font-size: 11px;
  padding-inline: 0.22rem;
  line-height: 1;
  user-select: none;
}
.lang-switch__btn {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(247, 249, 255, 0.55);
  cursor: pointer;
  font: 600 11px/1 Inter, "Noto Sans Arabic", system-ui, sans-serif;
  letter-spacing: 0.06em;
  min-height: 2rem;
  min-width: 1.7rem;
  padding: 0.25rem 0.15rem;
  border-radius: 999px;
}
.lang-switch__btn:hover { color: #f7f9ff; }
.lang-switch__btn.is-active {
  color: #9ec0ff;
}
.lang-switch__btn:focus-visible {
  outline: 2px solid #9ec0ff;
  outline-offset: 2px;
}

html[dir="rtl"] body,
html[dir="rtl"] button,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  font-family: "Noto Sans Arabic", Inter, system-ui, sans-serif;
}

/* Flip physical Tailwind utilities used on this site */
html[dir="rtl"] .ml-auto { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .ml-2 { margin-left: 0; margin-right: 0.5rem; }
html[dir="rtl"] .pr-1 { padding-right: 0; padding-left: 0.25rem; }
html[dir="rtl"] .pr-12 { padding-right: 0; padding-left: 3rem; }
html[dir="rtl"] .left-0 { left: auto; right: 0; }
html[dir="rtl"] .left-1\/2 { left: auto; right: 50%; }
html[dir="rtl"] .right-0 { right: auto; left: 0; }
html[dir="rtl"] .right-4 { right: auto; left: 1rem; }
html[dir="rtl"] .origin-left { transform-origin: right; }
html[dir="rtl"] .border-l { border-left-width: 0; border-right-width: 1px; }
html[dir="rtl"] .-left-\[9999px\] { left: auto; right: -9999px; }
html[dir="rtl"] [class*="-left-[9999px]"] { left: auto; right: -9999px; }

/* Keep the compact language switch readable in RTL */
html[dir="rtl"] .lang-switch { flex-direction: row; }
