/* Logical layout for Arabic and the existing English/French translator. */
#main-content, .dzkeys-primary-navigation, .dzkeys-picker-panel { text-align: start; }
/* Preserve the established brand/actions order across languages. */
.dzkeys-header-inner { direction: ltr; }
.dzkeys-primary-navigation, .dzkeys-picker-panel, .dzkeys-header-search { direction: inherit; }
html[dir="rtl"] :is(.dzkeys-primary-navigation, .dzkeys-picker-panel, .dzkeys-header-search) { direction: rtl; }
html[dir="ltr"] :is(.dzkeys-primary-navigation, .dzkeys-picker-panel, .dzkeys-header-search) { direction: ltr; }
.dzkeys-brand, .dzkeys-brand-name, .dzkeys-brand-tagline, .notranslate { unicode-bidi: isolate; }
#main-content input:is([type="email"], [type="tel"], [type="url"]) { direction: ltr; text-align: start; }
html[dir="rtl"] #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) { padding: 1em 3.5em 1em 2em; }
html[dir="rtl"] #main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { left: auto; right: 1.5em; }
html[dir="rtl"] #main-content .woocommerce-MyAccount-navigation a { text-align: right; }
html[dir="ltr"] #main-content .woocommerce-MyAccount-navigation a { text-align: left; }
html[dir="rtl"] #main-content form .show-password-input { right: auto; left: 2px; }
html[dir="rtl"] #main-content table.shop_table :is(th, td) { text-align: start; }
@media (max-width: 768px) {
  html[dir="rtl"] #main-content table.shop_table_responsive tr td { text-align: left !important; }
  html[dir="rtl"] #main-content table.shop_table_responsive tr td::before { float: right; }
}
