/* Public locale controls; existing FA/EN page geometry is retained. Load after the existing CSS. */
html[data-mhr-public="v3"] .mhr-v220-lang a {
  display:inline-block; padding:4px 6px; border-radius:6px;
  color:#fff; font:700 11px/1.5 Tahoma,"Segoe UI",Arial,sans-serif;
  text-decoration:none; white-space:nowrap;
}
html[data-mhr-public="v3"] .mhr-v220-lang a.active,
html[data-mhr-public="v3"] .mhr-v220-lang a[aria-current="page"] {background:rgba(255,255,255,.18)}
html[data-mhr-public="v3"] .mhr-v220-lang a:hover {background:rgba(255,255,255,.12)}
html[data-mhr-public="v3"] .mhr-v220-lang a:focus-visible {outline:3px solid #f28a25;outline-offset:2px}
html[data-mhr-public="v3"] .mhr-v220-lang [aria-hidden="true"] {opacity:.6}

/* Arabic public pages use the existing RTL design, with readable wrapping and isolated numbers. */
html[lang="ar"] body {direction:rtl!important;font-family:Tahoma,"Segoe UI",Arial,sans-serif!important}
html[lang="ar"] :is(button,input,select,textarea) {font-family:Tahoma,"Segoe UI",Arial,sans-serif!important}
html[lang="ar"] :is(h1,h2,h3,h4,h5,h6) {letter-spacing:normal!important;line-height:1.5}
html[lang="ar"] :is(.hero-content,.hero-actions a,.device-caption,.service-copy,.content,.info-card,.field,.brand-copy) {
  direction:rtl!important; text-align:start!important;
}
html[lang="ar"] :is(.hero p,.section p,.service-copy p,.faq-answer,.note) {line-height:1.95}
html[lang="ar"] :is(input:not([type="checkbox"]):not([type="radio"]),textarea,select) {direction:rtl;text-align:start}
html[lang="ar"] :is([dir="ltr"],input[type="email"],input[type="tel"],input[inputmode="numeric"],.phone,.phone-ltr,.phone-number) {
  direction:ltr!important;unicode-bidi:isolate;
}
html[lang="ar"] .hero-actions {direction:rtl!important}
html[lang="ar"] body>.mhr-v220-header .header-actions {flex-wrap:wrap!important;max-width:100%;direction:rtl!important}
html[lang="ar"] body>.mhr-v220-header .header-actions a {
  height:auto!important;min-height:38px!important;padding:6px 10px!important;
  line-height:1.5!important;white-space:normal!important;text-align:center!important;
  flex-wrap:wrap;gap:4px!important;
}
html[lang="ar"] .mhr-operational-language {font-size:.88em;font-weight:inherit;white-space:nowrap}
html[lang="ar"] body>.mhr-v220-header .header-actions .mhr-operational-language {font-size:9px}
html[lang="ar"] .service-copy h3 a {color:inherit;text-decoration:none}
html[lang="ar"] .tablebox :is(th,td) {text-align:start}
html[lang="ar"] .tablebox .price {direction:ltr;unicode-bidi:isolate;text-align:end;font-variant-numeric:tabular-nums}
html[lang="ar"] .toolbar input {min-width:0;max-width:100%}
html[lang="ar"] .mhr-v220-footer-contact {direction:rtl}

/* Arabic home actions: keep the destination-language note below the text, beside the icon. */
html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions a {
  display:grid!important;grid-template-columns:32px minmax(0,1fr);grid-template-rows:auto auto;
  column-gap:10px!important;row-gap:2px!important;align-items:center;align-content:center;
  width:188px!important;min-width:0;min-height:98px;height:auto!important;
  padding:12px 14px!important;box-sizing:border-box;
}
html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions a>svg {
  grid-column:1;grid-row:1/span 2;width:32px!important;height:32px!important;
}
html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions a>div {
  grid-column:2;grid-row:1;min-width:0;white-space:normal;overflow-wrap:break-word;
}
html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions a>.mhr-operational-language {
  grid-column:2;grid-row:2;min-width:0;margin:0;font-size:10px!important;line-height:1.5;white-space:normal;
}

@media(max-width:1100px) {
  html[lang="ar"][data-mhr-public-page="index.html"] .hero {
    display:flex;flex-direction:column;min-height:0!important;padding-bottom:26px!important;
  }
  html[lang="ar"][data-mhr-public-page="index.html"] .hero-content {
    position:relative!important;inset:auto!important;width:auto!important;max-width:none!important;
    margin:280px 24px 22px!important;padding:0!important;order:2;
  }
  html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions {
    position:relative!important;inset:auto!important;display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));gap:12px!important;margin:16px 24px 20px!important;order:4;
  }
  html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions a {width:auto!important;min-width:0!important;height:auto!important;min-height:80px}
  html[lang="ar"][data-mhr-public-page="index.html"] .device-caption {
    position:relative!important;inset:auto!important;min-width:0!important;max-width:none!important;margin:0 24px!important;order:3;
  }
  html[lang="ar"][data-mhr-public-page="index.html"] .hero-wash {
    background:linear-gradient(180deg,rgba(255,255,255,.04) 0%,rgba(255,255,255,.22) 25%,rgba(255,255,255,.94) 40%,#fff 70%)!important;
  }
}
@media(max-width:650px) {
  html[lang="ar"][data-mhr-public-page="index.html"] .hero-content {margin:260px 22px 20px!important}
  html[lang="ar"][data-mhr-public-page="index.html"] .hero h1 {font-size:30px!important;line-height:1.5!important}
  html[lang="ar"][data-mhr-public-page="index.html"] .hero p {font-size:14px!important;line-height:1.95!important}
  html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions {grid-template-columns:1fr;margin:16px 22px 20px!important}
  html[lang="ar"][data-mhr-public-page="index.html"] .hero-actions a {min-height:68px;justify-content:flex-start!important;padding-inline:20px!important}
  html[lang="ar"][data-mhr-public-page="index.html"] .device-caption {margin-inline:22px!important}
}
@media(max-width:420px) {
  html[lang="ar"] body>.mhr-v220-topbar {grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;row-gap:4px!important}
  html[lang="ar"] body>.mhr-v220-topbar>.side:not(.top-contact) {grid-column:1!important;grid-row:1!important;justify-self:center!important}
  html[lang="ar"] body>.mhr-v220-topbar>.mhr-v220-lang {grid-column:1!important;grid-row:2!important;justify-self:center!important}
  html[lang="ar"] body>.mhr-v220-topbar>.side.top-contact {grid-column:1!important;grid-row:3!important;justify-self:center!important}
}

/* Arabic guided help contains only prewritten answers and ordinary links. */
html[lang="ar"] .mhr-ar-guide-ready {position:fixed;right:18px;bottom:18px;z-index:9999;direction:rtl;text-align:right}
html[lang="ar"] .mhr-ar-guide-toggle {
  display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:10px 16px;
  border:1px solid #dce6ef;border-radius:999px;background:#fff;color:#123b61;
  font:700 13px/1.5 Tahoma,"Segoe UI",Arial,sans-serif;cursor:pointer;box-shadow:0 8px 24px rgba(8,47,93,.18);
}
html[lang="ar"] .mhr-ar-guide-toggle-icon {display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:#0b527d;color:#fff}
html[lang="ar"] .mhr-ar-guide-panel {
  position:absolute;right:0;bottom:calc(100% + 10px);width:min(370px,calc(100vw - 24px));
  max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px);overflow:auto;
  border:1px solid #dce6ef;border-radius:16px;background:#fff;color:#12314f;box-shadow:0 12px 32px rgba(8,47,93,.2);
}
html[lang="ar"] .mhr-ar-guide-panel[hidden] {display:none!important}
html[lang="ar"] .mhr-ar-guide-heading {display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 16px;background:#0b527d;color:#fff}
html[lang="ar"] .mhr-ar-guide-heading h2 {margin:0;font-size:15px;line-height:1.6}
html[lang="ar"] .mhr-ar-guide-close {border:0;border-radius:7px;background:rgba(255,255,255,.15);color:#fff;font-size:24px;line-height:1;width:32px;height:32px;cursor:pointer}
html[lang="ar"] .mhr-ar-guide-intro {margin:0;padding:14px 16px;color:#52697b;font-size:12px;line-height:1.9}
html[lang="ar"] .mhr-ar-guide-items {padding:0 16px 14px}
html[lang="ar"] .mhr-ar-guide-items details {border-top:1px solid #e5edf3;padding:11px 0}
html[lang="ar"] .mhr-ar-guide-items summary {cursor:pointer;color:#0b527d;font-size:13px;font-weight:700;line-height:1.8}
html[lang="ar"] .mhr-ar-guide-items p {margin:9px 0;color:#52697b;font-size:12px;line-height:1.95}
html[lang="ar"] .mhr-ar-guide-links {display:flex;gap:7px;flex-wrap:wrap}
html[lang="ar"] .mhr-ar-guide-links a {display:inline-block;padding:7px 10px;border:1px solid #dce6ef;border-radius:8px;background:#f4f9fb;color:#0b527d;text-decoration:none;font-size:12px;line-height:1.6}
html[lang="ar"] .mhr-ar-guide-ready :is(button,a,summary):focus-visible {outline:3px solid #f28a25;outline-offset:3px}
@media(max-width:420px) {html[lang="ar"] .mhr-ar-guide-ready {right:12px;bottom:12px}}
@media print {html[lang="ar"] [data-mhr-ar-guide] {display:none!important}}
