/* English / French / Moroccan Darija. Presentation only; no payment styles. */
.cm-language{z-index:160}
.cm-language .cm-language-panel{display:flex;flex-direction:column;gap:4px;min-width:224px;max-width:calc(100vw - 32px);padding:7px;left:auto;right:auto;inset-inline-end:0;z-index:180}
.cm-language-option{appearance:none;width:100%;display:flex;align-items:center;justify-content:space-between;gap:18px;border:0;border-radius:8px;background:transparent;color:var(--cm-text,#333);padding:11px 12px;font:inherit;font-weight:500;font-family:inherit;font-size:14px;line-height:1.45;text-align:start;cursor:pointer}
.cm-language-option:hover,.cm-language-option:focus-visible{background:var(--cm-soft,#f0ecfc)}
.cm-language-option:focus-visible{outline:2px solid var(--cm-purple,#6050dc);outline-offset:1px}
.cm-language-option.is-selected{color:var(--cm-purple,#6050dc);background:var(--cm-soft,#f0ecfc)}
.cm-language-check{visibility:hidden}.cm-language-option.is-selected .cm-language-check{visibility:visible}
html.cm-dark .cm-language-option{color:#e9e4f3}html.cm-dark .cm-language-option:is(:hover,:focus-visible,.is-selected){background:#332854;color:#c6b7ff}
.cm-language [data-cm-language-label]{white-space:nowrap;font-weight:600}
[dir="rtl"] .cm-language-panel{inset-inline-end:0}
html[data-cm-language="ary"] body{font-family:Tahoma,Arial,"Segoe UI",sans-serif}
html[data-cm-language="ary"] :is(h1,h2,h3,h4,.cm-hero-title,.ar-widget h2){letter-spacing:0!important}
html[data-cm-language="ary"] .cm-hero-title{line-height:1.35}
html[data-cm-language="ary"] .cm-home-hero .cm-hero-title{line-height:1.28}
html[data-cm-language="ary"] :is(.cm-hero-lead,.cm-faq-item p,.cm-business,.cm-feature-card,.cm-footer){line-height:1.85}
html[dir="rtl"] .cm-header-tools{margin-left:0;margin-right:auto}
html[dir="rtl"] .cm-nav .wp-block-navigation__submenu-container,html[dir="rtl"] .cm-preview-submenu{left:auto;right:-16px;text-align:right}
html[dir="rtl"] :is(.cm-brand,.cm-site-title,.cm-logo-mark,.cm-gift-code){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .cm-brand{flex-direction:row}
html[dir="rtl"] .cm-faq-item summary{padding-right:0;padding-left:28px}
html[dir="rtl"] .cm-faq-item summary:after{right:auto;left:5px}
html[dir="rtl"] .cm-map-region-links{text-align:right}
html[dir="rtl"] .cm-other-row:before{left:auto;right:14px}
html[dir="rtl"] .cm-other-row p{margin-left:0;margin-right:16px}
html[dir="rtl"] .cm-checklist li{padding-left:0;padding-right:18px}
html[dir="rtl"] .cm-checklist li:before{left:auto;right:0}
html[dir="rtl"] .cm-footer .cm-payments{margin-left:auto!important;margin-right:0!important}
html[dir="rtl"] .cm-gift-badge{right:auto;left:20px}
html[dir="rtl"] .cm-gift-decoration{right:auto!important;left:0!important;transform:scaleX(-1)}
html[dir="rtl"] .cm-main .ar-widget{text-align:right}
html[dir="rtl"] .ar-widget .ar-country-label{margin-left:0;margin-right:auto}
html[dir="rtl"] .ar-widget .ar-label small{margin-left:0;margin-right:4px}
html[dir="rtl"] .ar-widget .ar-phone-field{direction:ltr}
html[dir="rtl"] .ar-widget :is([data-phone],[data-summary-phone],[data-summary-price],[data-summary-operator]){direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .ar-widget .ar-summary strong{display:inline-block}
html[dir="rtl"] .ar-widget .ar-compact-note{white-space:normal;line-height:1.8}
html[dir="rtl"] .ar-widget .ar-primary>span[aria-hidden="true"]{display:inline-block;transform:scaleX(-1)}
html[dir="rtl"] .ar-widget select{direction:rtl;text-align:right}
html[dir="rtl"] .ar-widget :is(.ar-eyebrow,.ar-country-label){letter-spacing:0}
html[dir="rtl"] .cm-gift-controls :is(input,textarea){text-align:start}
@media(max-width:900px){
 html[dir="rtl"] .cm-header-tools{margin-left:0;margin-right:auto}
 html[data-cm-language="ary"] .cm-home-hero .cm-hero-title{font-size:38px;line-height:1.32}
 html[data-cm-language="ary"] .cm-gift-hero .cm-hero-title{line-height:1.32}
 html[dir="rtl"] .cm-language-panel{inset-inline-end:-24px}
 html[dir="rtl"] .cm-gift-badge{right:auto;left:17px}
}
@media(max-width:359px){
 html[data-cm-language="ary"] .cm-home-hero .cm-hero-title{font-size:32px}
 .cm-language .cm-language-panel{min-width:210px}
}
@media(prefers-reduced-motion:reduce){.cm-language-option{transition:none}}


/* Map27 — complete front-end language consistency, including WooCommerce.
   Labels follow the selected language; customer-entered values and amounts do not. */
html[dir="rtl"] :is(.woocommerce,.woocommerce-checkout,.woocommerce-cart,.woocommerce-account,.wc-block-checkout,.wc-block-cart,.atlas-charge-checkout,.atlas-card-contact-frame){
  text-align:right;
}
html[dir="rtl"] :is(.woocommerce form .form-row label,.woocommerce-checkout h1,.woocommerce-checkout h2,.woocommerce-checkout h3,.atlas-charge-checkout h1,.atlas-charge-checkout h2){
  text-align:right;
}
html[dir="rtl"] :is(input[type="tel"],input[type="email"],input[inputmode="tel"],input[inputmode="email"],input[inputmode="decimal"],.woocommerce-Price-amount,.amount,bdi,[data-summary-phone],[data-summary-price],[data-summary-total],[data-summary-amount]){
  direction:ltr!important;
  unicode-bidi:isolate;
}
html[dir="rtl"] :is(input[type="tel"],input[type="email"],input[inputmode="tel"],input[inputmode="email"],input[inputmode="decimal"]){
  text-align:left!important;
}
html[dir="rtl"] :is(.atlas-order-copy,.atlas-charge-gateway-price,.atlas-charge-summary-lines dd,.atlas-charge-payment-total strong){
  direction:ltr;
  unicode-bidi:isolate;
}
html[data-cm-language="ary"] :is(.woocommerce,.woocommerce-checkout,.woocommerce-cart,.woocommerce-account,.wc-block-checkout,.wc-block-cart){
  font-family:Tahoma,Arial,"Segoe UI",sans-serif;
}

/* Map29: isolate direction to the actual selected language. Do not reverse strings. */
html[data-cm-language="en"] .cm-home-hero :is(.cm-hero-title,.cm-hero-lead),
html[data-cm-language="fr"] .cm-home-hero :is(.cm-hero-title,.cm-hero-lead){direction:ltr;unicode-bidi:isolate}
html[data-cm-language="ary"] .cm-home-hero :is(.cm-hero-title,.cm-hero-lead){direction:rtl;unicode-bidi:isolate}
.cm-home-hero .cm-hero-location{direction:ltr;unicode-bidi:isolate}
.cm-home-hero .atlas-hero-prefix{unicode-bidi:isolate}
/* Do not let generic LTR email/summary rules above override the requested recharge view. */
html[dir="rtl"] .ar-widget input:is([data-email],[data-first-name],[data-last-name]){direction:rtl!important;unicode-bidi:normal!important;text-align:right!important}
html[dir="rtl"] .ar-widget[data-mode="compact"] input[data-phone]{direction:rtl!important;unicode-bidi:normal!important;text-align:right!important}
html[dir="rtl"] .ar-widget:not([data-mode="compact"]) input[data-phone]{direction:ltr!important;unicode-bidi:isolate!important;text-align:center!important}
html[dir="rtl"] .ar-widget [data-summary-phone]{display:inline-flex!important;direction:rtl!important;unicode-bidi:isolate!important}
html[dir="rtl"] .ar-widget [data-summary-price]{direction:ltr!important;unicode-bidi:isolate!important}
.cm-language-panel{pointer-events:auto}
.cm-language-option{touch-action:manipulation}
