/* Customer-facing locale controls. Admin/editor-console pages never load this. */
.amt-language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 2rem;
  padding: .32rem .65rem;
  border: 1px solid var(--amt-border, #d8e2e0);
  border-radius: 999px;
  color: var(--amt-primary, #0b5f5a);
  background: #fff;
  font: 600 .78rem/1 "Inter", "Noto Naskh Arabic", sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.amt-language-switch:hover {
  border-color: var(--amt-primary, #0b5f5a);
  background: var(--amt-success-bg, #edf7f5);
}

.app-nav .amt-language-switch {
  margin-inline-start: .15rem;
}

.drawer-links .amt-language-switch {
  align-self: flex-start;
}

html[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif !important;
  text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="date"],
html[dir="rtl"] input[type="month"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] [data-keep-ltr],
html[dir="rtl"] .amount,
html[dir="rtl"] .money {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] table {
  direction: rtl;
}

html[dir="rtl"] .amt-brand,
html[dir="rtl"] .app-header,
html[dir="rtl"] .app-nav,
html[dir="rtl"] .drawer-links {
  direction: rtl;
}

@media (max-width: 860px) {
  .amt-language-switch {
    min-height: 2.25rem;
  }
}
