/* General RTL/LTR adjustments for WooCommerce content */
body.rtl .woocommerce-mini-cart-item .quantity,
body.rtl .cart_item .product-subtotal,
body.rtl .order_details .product-subtotal,
body.rtl .woocommerce-cart-form__contents .product-name,
body.rtl .woocommerce-checkout-review-order-table .product-name,
body.rtl .woocommerce-cart-form__contents .product-quantity,
body.rtl .woocommerce-account-fields label,
body.rtl .woocommerce-account-details label,
body.rtl .woocommerce-order-details .product-name,
body.rtl .woocommerce-order-details .product-total,
body.rtl .woocommerce-order-details .woocommerce-table__product-name,
body.rtl .shop_table.order_details th,
body.rtl .shop_table.order_details td,
body.rtl .woocommerce-order-details .woocommerce-table__product-total,
body.rtl .woocommerce-table--order-details .woocommerce-table__product-name,
body.rtl .woocommerce-table--order-details .woocommerce-table__product-total,
body.rtl .woocommerce-table--order-details th,
body.rtl .woocommerce-table--order-details td {
    direction: rtl;
    text-align: right;
}

body:not(.rtl) .woocommerce-mini-cart-item .quantity,
body:not(.rtl) .cart_item .product-subtotal,
body:not(.rtl) .order_details .product-subtotal,
body:not(.rtl) .woocommerce-cart-form__contents .product-name,
body:not(.rtl) .woocommerce-checkout-review-order-table .product-name,
body:not(.rtl) .woocommerce-cart-form__contents .product-quantity,
body:not(.rtl) .woocommerce-account-fields label,
body:not(.rtl) .woocommerce-account-details label,
body:not(.rtl) .woocommerce-order-details .product-name,
body:not(.rtl) .woocommerce-order-details .product-total,
body:not(.rtl) .woocommerce-order-details .woocommerce-table__product-name,
body:not(.rtl) .shop_table.order_details th,
body:not(.rtl) .shop_table.order_details td,
body:not(.rtl) .woocommerce-order-details .woocommerce-table__product-total,
body:not(.rtl) .woocommerce-table--order-details .woocommerce-table__product-name,
body:not(.rtl) .woocommerce-table--order-details .woocommerce-table__product-total,
body:not(.rtl) .woocommerce-table--order-details th,
body:not(.rtl) .woocommerce-table--order-details td {
    direction: ltr;
    text-align: left;
}

/* Ensure fee names are aligned correctly in cart/checkout totals */
.woocommerce-cart-form__contents .product-name span.tav-gift-fee-dir,
.woocommerce-checkout-review-order-table .product-name span.tav-gift-fee-dir,
.tav-gift-wrap-order-info span.tav-gift-fee-dir {
    display: block; /* Make it a block element to control text-align */
}
body.rtl .woocommerce-cart-form__contents .product-name span.tav-gift-fee-dir,
body.rtl .woocommerce-checkout-review-order-table .product-name span.tav-gift-fee-dir,
body.rtl .tav-gift-wrap-order-info span.tav-gift-fee-dir {
    text-align: right;
}
body:not(.rtl) .woocommerce-cart-form__contents .product-name span.tav-gift-fee-dir,
body:not(.rtl) .woocommerce-checkout-review-order-table .product-name span.tav-gift-fee-dir,
body:not(.rtl) .tav-gift-wrap-order-info span.tav-gift-fee-dir {
    text-align: left;
}

/* Specific styling for gift wrap info displayed in user account/thank you page */
.tav-gift-wrap-order-info {
    margin: 1em 0;
    padding: 0;
    list-style: none;
}
.tav-gift-wrap-order-info strong {
    display: inline-block;
    min-width: 150px; /* Adjust as needed for alignment */
    text-align: inherit;
}
body.rtl .tav-gift-wrap-order-info,
body.rtl .tav-gift-wrap-order-info li {
    direction: rtl;
    text-align: right;
}
body:not(.rtl) .tav-gift-wrap-order-info,
body:not(.rtl) .tav-gift-wrap-order-info li {
    direction: ltr;
    text-align: left;
} 