/*******************************************************************************************
*   ___  _          ______                     _ _                _                        *
*  / _ \| |         | ___ \                   | (_)              | |              © 2025   *
* / /_\ | | _____  _| |_/ /_ __ __ _ _ __   __| |_ _ __   __ _   | |_ ___  __ _ _ __ ___   *
* |  _  | |/ _ \ \/ / ___ \ '__/ _` | '_ \ / _` | | '_ \ / _` |  | __/ _ \/ _` | '_ ` _ \  *
* | | | | |  __/>  <| |_/ / | | (_| | | | | (_| | | | | | (_| |  | ||  __/ (_| | | | | | | *
* \_| |_/_|\___/_/\_\____/|_|  \__,_|_| |_|\__,_|_|_| |_|\__, |  \___\___|\__,_|_| |_| |_| *
*                                                         __/ |                            *
*                                                        |___/                             *
* ---------------------------------------------------------------------------------------- *
* This is commercial software, only users who have purchased a valid license and accept    *
* to the terms of the License Agreement can install and use this program.                  *
* ---------------------------------------------------------------------------------------- *
* website: https://cs-cart.alexbranding.com                                                *
*   email: info@alexbranding.com                                                           *
*******************************************************************************************/
html[dir="rtl"] {
    &:root {
        --flow-direction-factor-inline: -1;
    }

    .ty-icon-right-circle:before {
        content: "\e020";
    }
    .ty-icon-left-circle:before {
        content: "\e01f";
    }
    .ty-horizontal-filters-content-to-right {
        right: auto;
        left: 0;
    }
    .ty-horizontal-product-filters-dropdown a .ty-icon-cancel-circle {
        padding-right: 5px;
    }
    .ty-cart-items__list-item-desc p span {
        float: left;
    }
    .ty-icon-right-dir:before {
        content: "\e003";
    }

    .ty-price-slider {
        .ty-range-slider__num {
            --ty-force-range-slider-num-end: calc(var(--gap-xs) * -1);
        }
    }
    .ty-order-info__profile-field-item {
        &.b-phone,
        &.s-phone {
            direction: rtl;
        }
    }
    .ty-control-group.ty-profile-field__item {
        &.ty-billing-phone input,
        &.ty-billing-address-line2 input,
        &.ty-shipping-phone input,
        &.ty-shipping-address-line2 input {
            direction: rtl !important;
            text-align: left !important;
        }
    }
    [name="payment_info[customer_phone]"] {
        direction: rtl !important;
        text-align: left !important;
    }
    .ty-inputmask-bdi {
        direction: rtl !important;
        text-align: left !important;
    }

    @media (max-width: 576px) {
        .ui-datepicker {
            left: 0 !important;
            right: 0 !important;
        }
    }

    /** Fix old-owlcarousel non-adaptive for RTL **/
    .ty-scroller-list .owl-controls .owl-buttons {
        .owl-next:before, .owl-prev:after {
            -webkit-transform: scaleX(-1);
            transform: scaleX(-1);

        }
        .owl-next span, .owl-prev span {
            -webkit-transform: scaleX(-1);
	        transform: scaleX(-1);

	        &:before {
		        margin: 0 !important;
	        }
        }
    }
    .owl-controls-outside .owl-buttons {
        .owl-next, .owl-prev, .owl-next span, .owl-prev span {
            -webkit-transform: scaleX(-1);
            transform: scaleX(-1);
        }
    }
    .ty-scroller-list .owl-controls:not(.owl-controls-outside) > .owl-buttons > div {
        &.owl-next {
            right: auto;
            left: 0;

            &:before {
                margin-left: 0;
            }
        }
        &.owl-prev {
            left: auto;
            right: 0;

            &:before {
                margin-right: 2px;
                margin-left: 0;
            }
        }
    }

    .ty-owl-previewer {
	    .owl-wrapper-outer {
		    direction: inherit !important;
		}
	    .owl-prev:before,
        .owl-next:before {
		    .rotate(180deg);
		}
    }
    .owl-stage-outer {
        direction: ltr !important;
    }

    .ut2-social-buttons__inline {
        .pinterest__wrapper a {
            display: inline-block;
            background-position-x: ~"calc(100% - 6px)";
        }
    }

    .ab-vg-product_labels {
		float: right;
    }
    .ut2-pl__feature .ty-control-group span:before,
    .ut2-pl__feature .ty-control-group em:before,
    .ut2-gl__feature .ty-control-group span:before,
    .ut2-gl__feature .ty-control-group em:before,
    .ty-features-list .ty-control-group span:before,
    .ty-features-list .ty-control-group em:before {
		.box-shadow(none);
    }
    .flip-clock-divider .flip-clock-label {
	    left: auto;
	    right: 50%;
    }
    .ty-product-review-reviews-stars {
        flex-direction: row-reverse;
    }

	.ut2-lfl > i:before, .ut2-lsl > i:before {
    	content: "\e909";
	}
	&.touchevents .ut2-lfl.active > i:before, &.touchevents .ut2-lsl.active > i:before {
        -webkit-transform: rotate(180deg);
    	transform: rotate(180deg);
	}

    input.cm-mask-phone {
        direction: initial;
        text-align: right;
    }

    a[href^="tel:"] {
        direction: initial;
        display: block;
    }

    .ut2-pb .ty-product-img {
        .owl-next i, .owl-prev i {
            transform: scaleX(-1);
        }
    }

    body.floating-header #tygh_main_container:before {
        .ut2_header_mask() when (@abt__ut2_containers_header_add_header_mask = true) {
            background: linear-gradient(0deg, fade(@header_bg, 0%) 100%, fade(@header_bg, 60%), fade(@header_bg, 80%));
        }
        .ut2_header_mask();
    }
}
