/* Loaded only for languages marked RTL. Keep these overrides out of LTR pages. */
html[dir=rtl] body.lang-rtl { direction: rtl; text-align: right; }
body.lang-rtl :is(h1,h2,h3,h4,h5,h6,.h1,.h2,.h3) { letter-spacing: normal; }
body.lang-rtl :is(input,select,textarea,.form-control-label,.form-control-comment) { text-align: right; }
body.lang-rtl :is(input[type=email],input[type=tel],input[type=url],input[name=postcode],input[name=phone],input[name=phone_mobile],a[href^="mailto:"],a[href^="tel"]) { direction: ltr; unicode-bidi: isolate; text-align: left; }
body.lang-rtl :is(.tm-brand,.material-icons,.price,.current-price,.product-price) { unicode-bidi: isolate; }
body.lang-rtl .material-icons { direction: ltr; }
body.lang-rtl :is(.float-xs-left,.pull-left) { float: right !important; }
body.lang-rtl :is(.float-xs-right,.pull-right) { float: left !important; }
body.lang-rtl :is(.text-xs-left,.text-sm-left,.text-md-left) { text-align: right !important; }
body.lang-rtl :is(.text-xs-right,.text-sm-right,.text-md-right) { text-align: left !important; }
body.lang-rtl .breadcrumb li::after { content: "\\2039"; margin: 0 8px; }
body.lang-rtl .breadcrumb li:last-child::after { content: none; }

/* Contact form and store information. */
body#contact.lang-rtl .contact-form :is(.form-control-label,.form-control-comment,.orange-contact-options button) { text-align: right; }
body#contact.lang-rtl .contact-form .form-group > div[class*=col-md] { margin-right: 0; }
body#contact.lang-rtl .contact-rich .block .icon { float: right; }
body#contact.lang-rtl .contact-rich .block .data { margin-left: 0; margin-right: 48px; text-align: right; }
body#contact.lang-rtl .contact-rich a[href^="mailto:"] { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
body#contact.lang-rtl .contact-form .form-footer { text-align: left; }
body#contact.lang-rtl .contact-form .bootstrap-filestyle .form-control { border-radius: 0 5px 5px 0; }
body#contact.lang-rtl .contact-form .bootstrap-filestyle .btn { border-radius: 5px 0 0 5px; }

/* Theme components use flex/grid; direction mirrors their visual order. */
body.lang-rtl #header .right-nav { justify-content: flex-end; }
body.lang-rtl #_desktop_top_menu .top-menu .sub-menu { left: auto; right: 0; }
body.lang-rtl :is(.dropdown-menu,.orange-contact-options) { text-align: right; }
body.lang-rtl #search_widget input { padding-left: 42px; padding-right: 14px; }
body.lang-rtl #search_widget button { left: 0; right: auto; }
body.lang-rtl :is(.product-miniature .product-title,.product-miniature .product-price-and-shipping) { text-align: right; }
body.lang-rtl .custom-checkbox label { text-align: right; }
body.lang-rtl .custom-checkbox { margin-right: 0; margin-left: 6px; }
body.lang-rtl .input-group .input-group-btn > .btn { border-radius: 5px 0 0 5px; }
body.lang-rtl .input-group .form-control { border-radius: 0 5px 5px 0; }
body.lang-rtl .page-customer-account :is(.form-control-label,th,td) { text-align: right; }

/* Checkout: badges and radios precede labels on the right. */
body#checkout.lang-rtl section.checkout-step .step-edit { margin-left: 0; margin-right: auto; }
body#checkout.lang-rtl .js-address-form .form-control-label { text-align: right; }
body#checkout.lang-rtl section.checkout-step .carrier-price { text-align: left; }
body#checkout.lang-rtl #payment-confirmation { text-align: left; }
body#checkout.lang-rtl .js-checkout-modal .close { right: auto; left: 12px; }
body#checkout.lang-rtl .js-checkout-modal .mv-privacy-kicker { padding-right: 0; padding-left: 24px; }
body.lang-rtl :is(.cart-summary-line .label,.cart-summary-line .value) { float: none; }
body.lang-rtl .cart-summary-line { display: flex; justify-content: space-between; gap: 12px; }

/* Policy documents, including the document inside the checkout modal. */
body.lang-rtl :is(.page-cms .mv-privacy,.page-cms .mv-privacy p,.page-cms .mv-privacy li,.tm-returns-page,.tm-returns-page p,.tm-returns-page li),
body#checkout.lang-rtl .js-checkout-modal :is(.mv-privacy,.mv-privacy p,.mv-privacy li) { text-align: right; }
body.lang-rtl .mv-privacy .mv-privacy-nav ol,
body#checkout.lang-rtl .js-checkout-modal .mv-privacy-nav ol { padding-left: 0; padding-right: 22px; }
body.lang-rtl .mv-privacy .mv-privacy-section li { padding-left: 0; padding-right: 17px; }
body.lang-rtl .mv-privacy .mv-privacy-section li::before { left: auto; right: 0; }
body.lang-rtl .tm-policy-section li { border-left: 0; border-right: 3px solid #e79a5c; }
@media (min-width: 576px) {
  body.lang-rtl :is(.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12) { float: right; }
}
@media (min-width: 768px) {
  body.lang-rtl :is(.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12) { float: right; }
}
@media (min-width: 992px) {
  body.lang-rtl :is(.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12) { float: right; }
}
@media (max-width: 575px) {
  body#checkout.lang-rtl section.checkout-step .carrier-price { text-align: right; }
}
