/**
 * RTL (Right-to-Left) Support for i18n
 * SIMPLE: Only text direction changes, layout stays exactly the same
 */

/* ===========================================
   TEXT ONLY - Elements with translations
   =========================================== */

/* Translated text elements get RTL */
body.rtl [data-i18n] {
  direction: rtl;
  text-align: right;
}

/* Form text inputs - right align for Hebrew typing */
body.rtl input[type="text"],
body.rtl input[type="password"],
body.rtl textarea {
  text-align: right;
}

/* ===========================================
   KEEP THESE LEFT-TO-RIGHT (numbers, etc.)
   =========================================== */

body.rtl input[type="number"],
body.rtl input[type="email"],
body.rtl input[type="url"],
body.rtl input[type="tel"],
body.rtl a[href^="tel:"] {
  direction: ltr;
  text-align: left;
}

body.rtl .price,
body.rtl .amount,
body.rtl .product-price {
  direction: ltr;
}

/* ===========================================
   LANGUAGE PICKER DROPDOWN
   =========================================== */

body.rtl .language-picker__dropdown {
  left: auto !important;
  right: 0 !important;
}

body.rtl .language-picker__item {
  direction: ltr;
  text-align: left;
}
