/*
 * Right-to-left overrides.
 *
 * The theme is built with logical properties, so this file only fixes the few
 * places where a physical direction is unavoidable: the mobile drawer offset
 * and directional arrow glyphs.
 */

html[dir="rtl"] {
	--cooprtim-drawer-hidden: translateX(100%);
}

html[dir="rtl"] .cooprtim-card__more-icon,
html[dir="rtl"] .cooprtim-icon--arrow {
	transform: scaleX(-1);
}

html[dir="rtl"] .cooprtim-card__more:hover .cooprtim-card__more-icon {
	transform: scaleX(-1) translateX(-3px);
}

/* Numerals and prices stay LTR inside an RTL flow. */
html[dir="rtl"] .cooprtim-shop ul.products li.product .price,
html[dir="rtl"] .cooprtim-shop--single div.product p.price,
html[dir="rtl"] .cooprtim-cart-count,
html[dir="rtl"] .cooprtim-topbar__link [dir="ltr"] {
	direction: ltr;
	unicode-bidi: isolate;
}

html[dir="rtl"] .cooprtim-cart-count {
	direction: ltr;
}

/* Arrow in the "read more" link should point left in RTL flows. */
html[dir="rtl"] .cooprtim-search-form__submit .cooprtim-icon {
	transform: scaleX(1);
}
