/**
 * Tenant storefront RTL — customer account, cart, tables, modals
 * Loaded when user_lang_dir == 'rtl' (see header.blade.php)
 * Batch 3: shared across all themes
 */

/* ------------------------------------------------------------------
   Customer dashboard — sidebar & mobile drawer
   ------------------------------------------------------------------ */
[dir="rtl"] .seller-dashboard-list .list a {
    text-align: start;
}

[dir="rtl"] .seller-dashboard-list .list a i {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .dashboard-close {
        left: auto;
        right: -100%;
    }

    [dir="rtl"] .dashboard-close.active {
        left: auto;
        right: 0;
    }

    [dir="rtl"] .dashboard-close .close-bars {
        right: auto;
        left: -50px;
    }

    [dir="rtl"] .dashboard-icon {
        text-align: start;
    }
}

/* ------------------------------------------------------------------
   Customer dashboard — content & forms
   ------------------------------------------------------------------ */
[dir="rtl"] .seller-profile-details-wrapper,
[dir="rtl"] .seller-profile-details-wrapper .btn-wrapper,
[dir="rtl"] .single-dashboard-input,
[dir="rtl"] .dashboard-address-details,
[dir="rtl"] .dashboard-password-details .btn-wrapper,
[dir="rtl"] .title-seller,
[dir="rtl"] .edit-title,
[dir="rtl"] .seller-order-status-contents,
[dir="rtl"] .profile-badge-contetns,
[dir="rtl"] .seller-status-flex-content .common-price-title {
    text-align: start;
}

[dir="rtl"] .single-dashboard-input .single-info-input .form--control,
[dir="rtl"] .single-dashboard-input .single-info-input textarea.form--control {
    text-align: start;
}

[dir="rtl"] .profile-single-badge .profile-badge-flex .author-thumb {
    margin-right: 0;
    margin-left: 30px;
}

[dir="rtl"] .seller-profile-details-wrapper .seller-profile-edit-flex {
    flex-direction: row;
}

[dir="rtl"] .nav-pills {
    padding-right: 0;
}

[dir="rtl"] .nav-pills .nav-link {
    text-align: start;
}

/* Dashboard home stat cards */
[dir="rtl"] .single-orders .orders-flex-content {
    flex-direction: row;
}

[dir="rtl"] .single-orders .orders-flex-content .contents {
    text-align: start;
}

/* ------------------------------------------------------------------
   Order history & shared storefront tables
   ------------------------------------------------------------------ */
[dir="rtl"] .order-history-inner table thead tr th,
[dir="rtl"] .order-history-inner table tbody tr td {
    text-align: start;
}

[dir="rtl"] .order-history-inner table tbody tr td.status p {
    text-align: start;
}

[dir="rtl"] .order-history-inner table tbody tr td.table-btn .d-flex {
    justify-content: flex-start;
}

[dir="rtl"] .table-list-content .custom--table thead tr th {
    text-align: start;
}

[dir="rtl"] .table-list-content .custom--table tbody tr td {
    text-align: start;
}

[dir="rtl"] .table-list-content .custom--table tbody tr td .product-name-table .carts-contents {
    margin-left: 0;
    margin-right: 40px;
    text-align: start;
}

[dir="rtl"] .table-list-content .custom--table tbody tr td .close-table-cart,
[dir="rtl"] .table-list-content .custom--table tbody tr td .close-table-wishlist {
    right: auto;
    left: 5px;
}

@media (max-width: 991.98px) {
    [dir="rtl"] .table-list-content .custom--table tbody tr td .close-table-cart,
    [dir="rtl"] .table-list-content .custom--table tbody tr td .close-table-wishlist {
        right: auto;
        left: 10px;
    }

    [dir="rtl"] .table-list-content .custom--table tbody tr td .product-name-table .thumbs {
        margin-left: 0;
        margin-right: auto;
    }
}

[dir="rtl"] .table-list-content .custom--table tbody tr td:last-child {
    padding-right: 0;
    padding-left: 20px;
    padding-inline-start: 20px;
    padding-inline-end: 0;
}

[dir="rtl"] .table-update-btn {
    text-align: start;
}

[dir="rtl"] .table-update-btn .btn-table + .btn-table {
    margin-left: 0;
    margin-right: 15px;
}

/* ------------------------------------------------------------------
   Cart summary / coupon sidebar
   ------------------------------------------------------------------ */
[dir="rtl"] .coupon-wrapper,
[dir="rtl"] .coupon-contents,
[dir="rtl"] .single-checkout-list .common-title {
    text-align: start;
}

/* ------------------------------------------------------------------
   Checkout sign-in & order details
   ------------------------------------------------------------------ */
[dir="rtl"] .checkout-form-contents,
[dir="rtl"] .checkout-form-contents-title,
[dir="rtl"] .checkout-title {
    text-align: start;
}

[dir="rtl"] .order-status-wrap .order-wrapper-flex,
[dir="rtl"] .order-details-page .order-status-inner {
    text-align: start;
}

[dir="rtl"] .order-status-wrap .btn-wrapper.justify-content-end {
    justify-content: flex-start !important;
}

/* ------------------------------------------------------------------
   Shared modals & inline auth forms
   ------------------------------------------------------------------ */
[dir="rtl"] .auth-form-light,
[dir="rtl"] .auth-form-light-wrap,
[dir="rtl"] .auth-form-light h4,
[dir="rtl"] .auth-form-light h6 {
    text-align: start;
}

[dir="rtl"] .auth-form-light.text-left,
[dir="rtl"] .auth-form-light-wrap.text-left {
    text-align: start !important;
}

[dir="rtl"] .auth-form-light .brand-logo {
    text-align: start;
}

[dir="rtl"] .modal-content,
[dir="rtl"] .modal-header,
[dir="rtl"] .modal-body,
[dir="rtl"] .modal-footer {
    text-align: start;
}

[dir="rtl"] .modal-header .btn-close {
    margin-left: auto;
    margin-right: 0;
}

/* Product review login modal (tenant partial) */
[dir="rtl"] .about-seller-flex-content {
    flex-direction: row;
}

[dir="rtl"] .about-seller-content {
    text-align: start;
}

[dir="rtl"] .review-form .btn-wrapper.text-end {
    text-align: start !important;
}

/* ------------------------------------------------------------------
   Pagination (dashboard lists)
   ------------------------------------------------------------------ */
[dir="rtl"] .blog-pagination .pagination {
    justify-content: flex-start;
}

[dir="rtl"] .pagination-list::before,
[dir="rtl"] .pagination-list::after {
    transform: rotate(180deg);
}
