/*
 * Wayyak locale presentation layer. Pair with locale.js / window.WayyakI18n;
 * preference namespace is wayyak.locale.v1. Intentional limits: preserve the
 * existing English visual system and palette; mirror flow only, without flipping
 * brand marks, photos or portraits. Parent injects .wayyak-locale-switch.
 */
html[dir="rtl"] {
  font-family: "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
  line-height: 1.72;
}
html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif;
}
html[lang="ar"] body,
html[lang="ar"] body * {
  font-family: "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, Arial, sans-serif !important;
}
html[dir="rtl"] :is(button, input, select, textarea) {
  font-family: inherit;
}
html[dir="rtl"] :is(p, li, label, summary, .notice, .micro, .fine, .eyebrow, .status) {
  line-height: 1.8;
}
html[dir="rtl"] :is(h1, h2, h3, h4, .dialog-title, .journey-copy h2) {
  line-height: 1.35;
}
html[dir="rtl"] :is(h1, h2, h3, h4, .dialog-title) {
  font-weight: 700;
  text-transform: none;
}
html[dir="rtl"] .eyebrow,
html[dir="rtl"] .demo-label,
html[dir="rtl"] .preview {
  letter-spacing: 0;
  text-transform: none;
}
html[dir="rtl"] :is(.hero-copy, .journey-copy, .page-top, .section-heading,
  .business-sharp-copy, .digital-copy, .support-band, .faq, .about-intro,
  .leadership-heading, .organization-section, .portal-content, .panel,
  .quote-card, .support-card, .service-request-card, .service-broker-card) {
  text-align: start;
}
html[dir="rtl"] :is(.header-row, #site-nav, .head-actions, .actions, .toolbar,
  .footer-top, .footer-bottom, .service-request-head, .service-broker-card-head,
  .service-broker-actions, .service-customer-actions, .service-request-summary) {
  direction: rtl;
}
html[dir="rtl"] :is(.sidebar, .table-wrap, .quote-grid, .product-grid,
  .portal-policy-grid, .service-policy-grid, .journey-products, .journey-goals,
  .service-filter-bar, .service-request-facts, .service-broker-fields) {
  direction: rtl;
}
html[dir="rtl"] :is(.sidebar, .journey-goals > button, .journey-products > button,
  .search-results button, .product-card, .service-broker-check, .document-row) {
  text-align: start;
}
html[dir="rtl"] .sidebar {
  border-right: 0;
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 24px;
}
html[dir="rtl"] .portal-sidebar {
  border-right: 0;
  border-left: 1px solid var(--line);
  padding-right: 0;
  padding-left: 24px;
}
html[dir="rtl"] .header-row .brand {
  margin-right: 0;
  margin-inline-end: auto;
}
html[dir="rtl"] .wayyak-brand-headline {
  text-align: start;
}
html[dir="ltr"] .wayyak-brand-headline {
  text-transform: none;
}
html[dir="rtl"] .wayyak-brand-headline {
  text-transform: none;
  letter-spacing: normal;
}
html[dir="rtl"] .adviser-card a[href^="tel:"],
html[dir="rtl"] .adviser-card a[href^="mailto:"] {
  display: block;
  min-height: 44px;
  padding-block: 10px;
}
html[dir="rtl"] a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
}
html[dir="rtl"] .product-brandline {
  text-align: start;
  font-weight: 600;
}
html[dir="rtl"] .service-activity {
  padding-left: 0;
  padding-right: 16px;
  border-left: 0;
  border-right: 2px solid #dce5f3;
}
html[dir="rtl"] .service-activity li {
  padding: 3px 6px 18px 0;
}
html[dir="rtl"] .service-activity li:before {
  left: auto;
  right: -21px;
}
html[dir="rtl"] .service-check-label,
html[dir="rtl"] .service-request-facts dd,
html[dir="rtl"] .service-policy-meta dd {
  margin-inline-start: auto;
  margin-inline-end: 0;
}
html[dir="rtl"] .service-policy-meta > div {
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr);
}
html[dir="rtl"] .preview a,
html[dir="rtl"] .footer-bottom a,
html[dir="rtl"] .skip {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] .skip {
  left: auto;
  right: 20px;
}
html[dir="rtl"] .guide-launch {
  right: auto;
  left: 22px;
}
html[dir="rtl"] .close {
  right: auto;
  left: 15px;
}
html[dir="rtl"] .service-request-facts dt {
  letter-spacing: 0;
}

/* Stable values that must remain legible in their original direction. */
[dir="ltr"], .wayyak-ltr, [data-locale-ltr], :is(.reference, .contact-channel, .phone, .email) {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

.wayyak-locale-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 44px;
  padding: 3px;
  border: 1px solid var(--line, #dce1e6);
  border-radius: 999px;
  background: var(--paper, #f7f6f2);
  color: var(--navy, #142642);
  font: 500 12px/1.2 "Noto Sans Arabic", "Noto Naskh Arabic", Tahoma, sans-serif;
}
.wayyak-locale-switch button {
  min-width: 44px;
  min-height: 36px;
  padding: 6px 11px;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.wayyak-locale-switch button[aria-pressed="true"] {
  background: var(--navy, #142642);
  color: var(--paper, #f7f6f2);
}
.wayyak-locale-switch :is(button, a):focus-visible {
  outline: 3px solid var(--blue, #456eb5);
  outline-offset: 3px;
}
.wayyak-locale-switch--desktop {
  display: inline-flex;
}
.wayyak-locale-switch--mobile {
  display: none;
}
@media (max-width: 1100px) {
  .wayyak-locale-switch--desktop {
    display: none;
  }
  .wayyak-locale-switch--mobile {
    display: inline-flex;
    align-self: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wayyak-locale-switch *,
  html[dir="rtl"] * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
