/* ==========================================================================
   WDA — right-to-left (Arabic, Urdu). Loaded only when is_rtl().
   main.css, woocommerce.css and tutor.css use logical properties
   (margin-inline-start, inset-inline-end, text-align: start…), so the layout
   mirrors on its own. This file holds what logical properties cannot express.
   ========================================================================== */

/* Directional icons point the other way. Play, cart, search, check, user… stay as drawn. */
.wda-ico--arrow, .wda-ico--arrow-l, .wda-ico--chev, .wda-ico--arrow-ur { transform: scaleX(-1); }

/* Numbers and prices read left to right inside right-to-left text. */
.wda-price__now, .wda-price__old, .woocommerce-Price-amount, .wc-block-formatted-money-amount, .wc-block-components-formatted-money-amount,
.tutor-course-price, .wda-ccard__price del, .wda-prod__price del, .wda-hero__stat b, .wda-cart-count, .wda-crow__n,
.wda-pagination .page-numbers, .woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span,
.wda-lsw__badge, .wda-langtile__code, .wda-lsw-mbtn, .wda-lsw__code { direction: ltr; unicode-bidi: isolate; }
.wda-price { align-items: flex-start; }

/* Latin-only form fields (email, phone, links, codes) stay left to right. */
input[type="email"], input[type="url"], input[type="tel"], input[type="number"], input[name="coupon_code"], .wc-block-components-text-input input[type="email"], .wc-block-components-text-input input[type="tel"] { direction: ltr; text-align: end; }
input[type="email"]::placeholder, input[type="tel"]::placeholder, input[type="url"]::placeholder { text-align: end; }

/* Code keeps its own direction. */
.wda-prose pre, .wda-prose code, .wda-content pre, .wda-content code { direction: ltr; unicode-bidi: isolate; text-align: left; }

/* Brand wordmark is English: keep it left to right (the crest still moves to the right). */
.wda-brand__text { direction: ltr; }

/* WooCommerce: select2 arrow and the default sale flash. */
.select2-container--default .select2-selection--single .select2-selection__arrow { left: 12px; right: auto; }
.woocommerce ul.products li.product .onsale { right: auto; left: 0; }
.woocommerce-checkout #payment div.payment_box::before { left: auto; right: 2em; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { text-align: start; }
.woocommerce .cart-collaterals .cart_totals table td, .woocommerce .cart-collaterals .cart_totals table th { text-align: start; }

/* Tutor LMS: the course box and lists read right to left. */
.wda-enrol, .wda-enrol .tutor-course-sidebar-card-pricing { text-align: start; }
.wda-enrol .tutor-course-sidebar-card-pricing { align-items: flex-start !important; }

/* Customizer texts (copyright, notes) may stay in English: let each line keep its own direction. */
.wda-footer__bar > span, .wda-footer__contact { unicode-bidi: plaintext; }

/* WooCommerce small screens: label on the right, value on the left. */
@media (max-width: 768px) {
	.woocommerce table.shop_table_responsive tr td, .woocommerce-page table.shop_table_responsive tr td { text-align: left !important; }
	.woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before { float: right; }
}
