/* =========================================================
   Solvante Translation Pro
   Arabic RTL
   ========================================================= */

html[dir="rtl"] body {
    direction: rtl;
}

/* Arabic text */
html[dir="rtl"] .woocommerce,
html[dir="rtl"] .woocommerce-page {
    text-align: right;
}

/* Product summary text */
html[dir="rtl"] .woocommerce div.product .summary {
    text-align: right;
}

/* Product title */
html[dir="rtl"] .woocommerce div.product .product_title {
    text-align: right;
}

/* Product description */
html[dir="rtl"] .woocommerce-Tabs-panel,
html[dir="rtl"] .woocommerce div.product .woocommerce-product-details__short-description {
    direction: rtl;
    text-align: right;
}

/* Product tabs */
html[dir="rtl"] .woocommerce-tabs {
    direction: rtl;
    text-align: right;
}

/* Product metadata */
html[dir="rtl"] .product_meta {
    direction: rtl;
    text-align: right;
}

/* Related products */
html[dir="rtl"] .related {
    direction: rtl;
}

html[dir="rtl"] .related h2 {
    text-align: right;
}

/* Product forms */
html[dir="rtl"] .woocommerce form,
html[dir="rtl"] .woocommerce select,
html[dir="rtl"] .woocommerce textarea {
    direction: rtl;
}

/* Keep numbers and prices readable */
html[dir="rtl"] .price,
html[dir="rtl"] .amount,
html[dir="rtl"] input[type="number"],
html[dir="rtl"] .quantity {
    direction: ltr;
}

/* English/Spanish remain LTR */
html[dir="ltr"] body {
    direction: ltr;
}


/* =========================================================
   RTL — WooCommerce My Account navigation
   ========================================================= */

html[dir="rtl"] .woocommerce-MyAccount-navigation ul,
html[dir="rtl"] .woocommerce-MyAccount-navigation li {
    text-align: right;
}

html[dir="rtl"] .woocommerce-MyAccount-navigation li {
    position: relative;
}

/*
 * Keep menu text away from notification/count numbers.
 */
html[dir="rtl"] .woocommerce-MyAccount-navigation li a {
    display: block;
    padding-left: 40px;
    padding-right: 115px;
}

/*
 * Numbers / counters / badges.
 *
 * Many themes position these absolutely for LTR.
 * Reset the LTR positioning and place them on the
 * left side in RTL.
 */
html[dir="rtl"] .woocommerce-MyAccount-navigation li .count,
html[dir="rtl"] .woocommerce-MyAccount-navigation li .badge,
html[dir="rtl"] .woocommerce-MyAccount-navigation li .number,
html[dir="rtl"] .woocommerce-MyAccount-navigation li span.count {
    left: 50px;
    right: auto;
}

/*
 * If the theme uses a pseudo-element for the number,
 * give the menu text sufficient room.
 */
html[dir="rtl"] .woocommerce-MyAccount-navigation li a::after {
    margin-right: 58px;
    margin-left: 0;
}