/* CTS 1.2.14: Switch styling is emitted alongside the server-rendered switch.
   Keep dashboard directions and translation styling below unchanged. */

html[data-a360-cts-ui-lang=ar] body.page-id-484 :is(
  sc-customer-dashboard,sc-dashboard,sc-dashboard-module,sc-tab,sc-empty,
  sc-wordpress-user,sc-wordpress-user-edit,sc-wordpress-password-edit
){font-family:Alexandria,Tahoma,Arial,sans-serif!important}
/* The original CTS 1.2 profile editor already includes Arabic strings.
   Show them without modifying document.lang or SureCart's own locale. */
html[data-a360-cts-ui-lang=ar] #a360-profile-editor .a360-ar{display:inline!important}
html[data-a360-cts-ui-lang=ar] #a360-profile-editor .a360-en{display:none!important}
html[data-a360-cts-ui-lang=ar] #a360-profile-editor{
  direction:rtl;font-family:Alexandria,Tahoma,Arial,sans-serif!important;
}
html[data-a360-cts-ui-lang=en] #a360-profile-editor .a360-ar{display:none!important}
html[data-a360-cts-ui-lang=en] #a360-profile-editor .a360-en{display:inline!important}
html[data-a360-cts-ui-lang=en] #a360-profile-editor{direction:ltr}
/* Phone digits are always left-to-right. */
#a360-profile-phone{direction:ltr;text-align:left}


/* CTS v1.2.31 — Shared dashboard shell, Arabic textual RTL.
   IMPORTANT: never set `direction:rtl` on body or sc-dashboard hosts:
   that reverses the grid and triggers horizontal overflow in SureCart.
   WordPress emits LTR layout assets for BOTH languages, only on page 484.
*/
html[data-a360-cts-ui-lang="ar"] body.page-id-484,
html[data-a360-cts-ui-lang="en"] body.page-id-484 {
  direction:ltr !important;
  text-align:left !important;
}
html[data-a360-cts-ui-lang="ar"] body.page-id-484 :is(
  sc-customer-dashboard,sc-dashboard,sc-customer-dashboard-page,
  sc-dashboard-module,sc-wordpress-user,sc-dashboard-wordpress-user,
  sc-subscriptions-list,sc-orders-list,sc-invoices-list,
  sc-downloads-list,sc-dashboard-downloads-list,sc-purchase-downloads-list
){
  direction:ltr !important;
  text-align:left !important;
  font-family:Alexandria,Tahoma,Arial,sans-serif !important;
}
/* RTL only on textual regions, not on the parent dashboard grid. */
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-dashboard-module::part(heading),
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-dashboard-module::part(heading-title),
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-stacked-list-row::part(base),
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-stacked-list-row::part(label),
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-tab::part(base) {
  direction:rtl !important;
  text-align:right !important;
}
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-empty::part(base),
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-empty::part(description) {
  direction:rtl !important;
  text-align:center !important;
}
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-tab[active]::part(base) {
  box-shadow:inset -3px 0 0 #65b4ff !important;
}
html[data-a360-cts-ui-lang="en"] body.page-id-484 sc-tab[active]::part(base) {
  box-shadow:inset 3px 0 0 #65b4ff !important;
}
/* Personal details / profile editor are Arabic text blocks. */
html[data-a360-cts-ui-lang="ar"] body.page-id-484 :is(
  #a360-profile-editor, .a360-profile-card
){direction:rtl !important;text-align:right !important;}
html[data-a360-cts-ui-lang="ar"] body.page-id-484 :is(
  input[type=email],input[type=tel],input[type=number],input[type=url],
  #a360-profile-phone
),
html[data-a360-cts-ui-lang="ar"] body.page-id-484 sc-stacked-list-row::part(value) {
  direction:ltr !important;
  unicode-bidi:plaintext;
}
html[data-a360-cts-ui-lang="ar"] body.page-id-484 #wpadminbar {direction:ltr !important;text-align:left !important;}
