/* SASSYX public RTL foundation — Arabic customer/store experience. */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
  text-align: right;
}

/* Technical and financial identifiers must remain readable left-to-right. */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"],
html[dir="rtl"] input[type="url"],
html[dir="rtl"] code,
html[dir="rtl"] pre,
html[dir="rtl"] .wallet-address,
html[dir="rtl"] .crypto-address,
html[dir="rtl"] .transaction-reference,
html[dir="rtl"] .order-reference,
html[dir="rtl"] [data-ltr],
html[dir="rtl"] [dir="ltr"] {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}

html[dir="rtl"] .text-left { text-align: right !important; }
html[dir="rtl"] .text-right { text-align: left !important; }
html[dir="rtl"] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
html[dir="rtl"] .mr-auto { margin-right: 0 !important; margin-left: auto !important; }

/* Do not mirror brand artwork, product photography, QR codes or payment logos. */
html[dir="rtl"] img,
html[dir="rtl"] svg[data-no-mirror],
html[dir="rtl"] .qr-code,
html[dir="rtl"] .product-image,
html[dir="rtl"] .payment-logo {
  direction: ltr;
}

/* Common directional controls. Apply data-rtl-flip only where mirroring is correct. */
html[dir="rtl"] [data-rtl-flip] {
  transform: scaleX(-1);
}
