/*
Theme Name:  hello elementor child theme
Theme URL:   https://maximize-team.ir/daroomi
Description: Write here theme description.
Author:      Taha Safari
Author URL:  https://maximize-team.ir/daroomi
Template:    hello-elementor
Version:     1.0.0
*/

/* ===== RESET کامل جدول ===== */
.shop_table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    box-shadow: none !important;
    margin-bottom: 25px !important;
}

/* حذف خطوط و استایل‌های اضافه */
.shop_table.woocommerce-checkout-review-order-table thead {
    background: transparent !important;
}

.shop_table.woocommerce-checkout-review-order-table thead th {
    padding: 0 0 15px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #8a9bb5 !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.shop_table.woocommerce-checkout-review-order-table thead th:first-child {
    text-align: right !important;
    padding-right: 0 !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody tr {
    border: none !important;
    background: #fff !important;
    border-radius: 12px !important;
    margin-bottom: 10px !important;
    display: block !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    transition: all 0.3s ease !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody tr:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px) !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody td {
    padding: 16px 20px !important;
    font-size: 14px !important;
    color: #2d3a4a !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: none !important;
    background: transparent !important;
    display: inline-block !important;
    width: 50% !important;
    box-sizing: border-box !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody td:first-child {
    text-align: right !important;
    padding-right: 20px !important;
    width: 60% !important;
    border-radius: 12px 0 0 12px !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody td:last-child {
    text-align: left !important;
    padding-left: 20px !important;
    width: 40% !important;
    border-radius: 0 12px 12px 0 !important;
}

.product-name {
    font-weight: 500 !important;
    color: #2d3a4a !important;
}

.product-quantity {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.08) !important;
    padding: 2px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-right: 5px !important;
}

/* ===== بخش جمع‌بندی ===== */
.shop_table tfoot {
    display: block !important;
    margin-top: 20px !important;
}

.shop_table tfoot tr {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 20px !important;
    background: #fff !important;
    border-radius: 12px !important;
    margin-bottom: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    border: 1px solid #f0f3f9 !important;
    transition: all 0.3s ease !important;
}

.shop_table tfoot tr:hover {
    border-color: #e0e7ff !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.06) !important;
}

.shop_table tfoot th {
    padding: 0 !important;
    font-weight: 600 !important;
    color: #4a5a6e !important;
    text-align: right !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    flex: 1 !important;
}

.shop_table tfoot td {
    padding: 0 !important;
    text-align: left !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    flex: 0 0 auto !important;
    min-width: 120px !important;
}

/* استایل ویژه جمع جزء */
.shop_table tfoot .cart-subtotal {
    border-right: 3px solid #667eea !important;
}

.shop_table tfoot .cart-subtotal td .woocommerce-Price-amount {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* استایل ویژه حمل و نقل */
.shop_table tfoot .shipping {
    border-right: 3px solid #f59e0b !important;
}

.shop_table tfoot .shipping td {
    font-size: 14px !important;
}

#shipping_method {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: flex-start !important;
}

#shipping_method li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#shipping_method input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #f59e0b !important;
    margin: 0 !important;
}

#shipping_method label {
    font-size: 14px !important;
    color: #2d3a4a !important;
    font-weight: 500 !important;
}

/* استایل ویژه جمع کل */
.shop_table tfoot .order-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    padding: 18px 25px !important;
    margin-top: 12px !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25) !important;
}

.shop_table tfoot .order-total:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35) !important;
}

.shop_table tfoot .order-total th {
    color: rgba(255,255,255,0.9) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
}

.shop_table tfoot .order-total td .woocommerce-Price-amount {
    font-size: 24px !important;
    color: #fff !important;
    font-weight: 800 !important;
}

.shop_table tfoot .order-total td .woocommerce-Price-currencySymbol {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600 !important;
}

/* استایل برای مواردی که چند ردیف در تکه‌ها هست */
.shop_table tfoot tr:not(.order-total) .woocommerce-Price-amount {
    font-weight: 600 !important;
    color: #2d3a4a !important;
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 768px) {
    .shop_table.woocommerce-checkout-review-order-table tbody td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 8px 15px !important;
    }
    
    .shop_table.woocommerce-checkout-review-order-table tbody td:first-child {
        text-align: center !important;
        width: 100% !important;
        padding-top: 15px !important;
        font-weight: 600 !important;
    }
    
    .shop_table.woocommerce-checkout-review-order-table tbody td:last-child {
        text-align: center !important;
        width: 100% !important;
        padding-bottom: 15px !important;
        font-size: 16px !important;
    }
    
    .shop_table tfoot tr {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        padding: 14px 18px !important;
    }
    
    .shop_table tfoot th {
        text-align: center !important;
        font-size: 14px !important;
    }
    
    .shop_table tfoot td {
        text-align: center !important;
        flex: 1 !important;
        min-width: unset !important;
    }
    
    .shop_table tfoot .order-total {
        padding: 16px 20px !important;
    }
    
    .shop_table tfoot .order-total td .woocommerce-Price-amount {
        font-size: 20px !important;
    }
    
    #shipping_method {
        align-items: center !important;
    }
}
/* ===== RESET کامل جدول ===== */
.shop_table.woocommerce-checkout-review-order-table {
    width: 100% !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    box-shadow: none !important;
    margin-bottom: 25px !important;
}

/* حذف استایل‌های اضافه */
.shop_table.woocommerce-checkout-review-order-table thead {
    background: transparent !important;
}

.shop_table.woocommerce-checkout-review-order-table thead th {
    padding: 0 0 15px 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #8a9bb5 !important;
    text-align: center !important;
    border: none !important;
    background: transparent !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.shop_table.woocommerce-checkout-review-order-table thead th:first-child {
    text-align: right !important;
    padding-right: 0 !important;
}

/* ===== محصولات ===== */
.shop_table.woocommerce-checkout-review-order-table tbody tr {
    display: table-row !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    transition: all 0.3s ease !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody tr:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody td {
    padding: 16px 20px !important;
    font-size: 14px !important;
    color: #2d3a4a !important;
    text-align: center !important;
    vertical-align: middle !important;
    border: none !important;
    background: #fff !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody td:first-child {
    text-align: right !important;
    padding-right: 20px !important;
    border-radius: 12px 0 0 12px !important;
}

.shop_table.woocommerce-checkout-review-order-table tbody td:last-child {
    text-align: left !important;
    padding-left: 20px !important;
    border-radius: 0 12px 12px 0 !important;
}

.product-name {
    font-weight: 500 !important;
    color: #2d3a4a !important;
}

.product-quantity {
    color: #667eea !important;
    background: rgba(102, 126, 234, 0.08) !important;
    padding: 2px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    margin-right: 5px !important;
}

/* ===== بخش جمع‌بندی ===== */
.shop_table tfoot tr {
    display: table-row !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
    border: 1px solid #f0f3f9 !important;
    transition: all 0.3s ease !important;
}

.shop_table tfoot tr:hover {
    border-color: #e0e7ff !important;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.06) !important;
}

.shop_table tfoot th {
    padding: 14px 20px !important;
    font-weight: 600 !important;
    color: #4a5a6e !important;
    text-align: right !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    width: 40% !important;
}

.shop_table tfoot td {
    padding: 14px 20px !important;
    text-align: left !important;
    font-size: 15px !important;
    border: none !important;
    background: transparent !important;
    width: 60% !important;
}

/* استایل ویژه جمع جزء */
.shop_table tfoot .cart-subtotal td {
    color: #667eea !important;
    font-weight: 700 !important;
}

/* ===== حمل و نقل - رفع مشکل ===== */
.shop_table tfoot .shipping th {
    vertical-align: middle !important;
    white-space: nowrap !important;
}

.shop_table tfoot .shipping td {
    vertical-align: middle !important;
    padding: 14px 20px !important;
}

#shipping_method {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    align-items: flex-start !important;
}

#shipping_method li {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

#shipping_method input[type="radio"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #f59e0b !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

#shipping_method input[type="hidden"] {
    display: none !important;
}

#shipping_method label {
    font-size: 14px !important;
    color: #2d3a4a !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
}

/* ===== جمع کل ===== */
.shop_table tfoot .order-total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25) !important;
    margin-top: 5px !important;
}

.shop_table tfoot .order-total:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.35) !important;
}

.shop_table tfoot .order-total th {
    color: rgba(255,255,255,0.9) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 16px 20px !important;
}

.shop_table tfoot .order-total td {
    padding: 16px 20px !important;
}

.shop_table tfoot .order-total td .woocommerce-Price-amount {
    font-size: 24px !important;
    color: #fff !important;
    font-weight: 800 !important;
}

.shop_table tfoot .order-total td .woocommerce-Price-currencySymbol {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600 !important;
}

.shop_table tfoot .order-total td strong {
    color: #fff !important;
}

/* استایل برای بقیه ردیف‌ها */
.shop_table tfoot tr:not(.order-total) .woocommerce-Price-amount {
    font-weight: 600 !important;
    color: #2d3a4a !important;
}

/* ===== حذف استایل‌های اضافه ===== */
.shop_table tfoot tr.woocommerce-shipping-totals.shipping td ul {
    margin: 0 !important;
}

/* ===== واکنش‌گرایی ===== */
@media (max-width: 768px) {
    .shop_table.woocommerce-checkout-review-order-table tbody td {
        padding: 12px 15px !important;
    }
    
    .shop_table.woocommerce-checkout-review-order-table tbody td:first-child {
        padding-right: 15px !important;
    }
    
    .shop_table.woocommerce-checkout-review-order-table tbody td:last-child {
        padding-left: 15px !important;
    }
    
    .shop_table tfoot th,
    .shop_table tfoot td {
        padding: 12px 15px !important;
        display: table-cell !important;
    }
    
    .shop_table tfoot th {
        width: 35% !important;
        font-size: 14px !important;
    }
    
    .shop_table tfoot td {
        width: 65% !important;
        font-size: 14px !important;
    }
    
    .shop_table tfoot .order-total td .woocommerce-Price-amount {
        font-size: 20px !important;
    }
    
    #shipping_method li {
        white-space: normal !important;
        flex-wrap: wrap !important;
    }
    
    #shipping_method label {
        white-space: normal !important;
        font-size: 13px !important;
    }
}

@media (max-width: 480px) {
    .shop_table.woocommerce-checkout-review-order-table tbody td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 8px 15px !important;
    }
    
    .shop_table.woocommerce-checkout-review-order-table tbody td:first-child {
        text-align: center !important;
        padding-top: 15px !important;
        border-radius: 12px 12px 0 0 !important;
        font-weight: 600 !important;
    }
    
    .shop_table.woocommerce-checkout-review-order-table tbody td:last-child {
        text-align: center !important;
        padding-bottom: 15px !important;
        font-size: 16px !important;
        border-radius: 0 0 12px 12px !important;
    }
    
    .shop_table tfoot tr {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 5px !important;
        padding: 0 !important;
    }
    
    .shop_table tfoot th,
    .shop_table tfoot td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 8px 15px !important;
    }
    
    .shop_table tfoot th {
        padding-top: 12px !important;
        font-size: 14px !important;
    }
    
    .shop_table tfoot td {
        padding-bottom: 12px !important;
    }
    
    .shop_table tfoot .order-total {
        padding: 0 !important;
    }
    
    .shop_table tfoot .order-total th,
    .shop_table tfoot .order-total td {
        padding: 10px 15px !important;
    }
    
    #shipping_method {
        align-items: center !important;
    }
    
    #shipping_method li {
        justify-content: center !important;
    }
}


/* ============================================
   استایل فاکتور خرید - ارث‌بری فونت
   ============================================ */

/* ارث‌بری فونت از کل سایت */
.rdh-invoice-wrapper * {
    font-family: "Yekan Bakh" !important;
}

/* کانتینر اصلی */
.rdh-invoice-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    direction: rtl;
}

/* ============================================
   هدر فاکتور
   ============================================ */
.rdh-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.rdh-invoice-header-logo-type {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rdh-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

.rdh-invoice-header-logo-type h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.02em;
}

.rdh-invoice-header-num-date {
    text-align: left;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.8;
}

.rdh-invoice-header-num-date strong {
    color: #0f172a;
    font-weight: 700;
}

.rdh-invoice-header-num-date b {
    color: #64748b;
    font-weight: 600;
}

/* ============================================
   نوار پیشرفت سفارش
   ============================================ */
.rdh-order-progress-wrapper {
    margin-bottom: 2.5rem;
    padding: 1.5rem 1rem;
    background: #f8fafc;
    border-radius: 16px;
}

.rdh-progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.rdh-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.rdh-order-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.rdh-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.rdh-step.active {
    opacity: 1;
}

.rdh-step .rdh-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e2e8f0;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.rdh-step.active .rdh-icon {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.rdh-step .rdh-icon img {
    width: 24px;
    height: 24px;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.rdh-step.active .rdh-icon img {
    filter: grayscale(0) brightness(0) invert(1);
}

.rdh-step .rdh-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
}

.rdh-step.active .rdh-label {
    color: #0f172a;
}

/* ============================================
   بخش اطلاعات
   ============================================ */
.rdh-info-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.rdh-box {
    background: #f8fafc;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid #eef2f6;
    transition: all 0.2s ease;
}

.rdh-box:hover {
    border-color: #d1d9e6;
    background: #f1f5f9;
}

.rdh-box h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem;
}

.rdh-box p {
    margin: 0.3rem 0;
    color: #0f172a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.rdh-box p strong {
    font-weight: 700;
    color: #0f172a;
}

/* ============================================
   جدول محصولات
   ============================================ */
.rdh-table-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1rem;
}

.rdh-invoice-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.rdh-invoice-table thead {
    background: #f1f5f9;
}

.rdh-invoice-table th {
    padding: 1rem 1.25rem;
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rdh-invoice-table th.product-details {
    text-align: right;
    border-radius: 0 16px 0 0;
}

.rdh-invoice-table th.gty {
    text-align: center;
}

.rdh-invoice-table th.unit-price,
.rdh-invoice-table th.total-price {
    text-align: center;
}

.rdh-invoice-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.rdh-invoice-table tbody tr:hover {
    background: #fafcfd;
}

.rdh-invoice-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    font-size: 0.95rem;
    color: #0f172a;
}

.rdh-invoice-table td.product-details-row {
    padding-right: 0;
}

.product-details-row-product-name {
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.product-details-row-product-attr {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #64748b;
}

.product-details-row-product-attr li {
    display: inline-block;
    margin-left: 1rem;
}

.product-details-row-product-attr li strong {
    color: #475569;
}

.rdh-invoice-table td.gty-row {
    text-align: center;
    font-weight: 600;
}

.rdh-invoice-table td.unit-price-row,
.rdh-invoice-table td.total-price-row {
    text-align: center;
    font-weight: 500;
}

.rdh-invoice-table tfoot td {
    padding: 0.85rem 1.25rem;
    font-weight: 600;
    background: #fafcfd;
}

.rdh-invoice-table tfoot tr:last-child td {
    padding: 1.2rem 1.25rem;
    background: #f1f5f9;
}

.rdh-grand-total td {
    font-weight: 700 !important;
    background: #f1f5f9 !important;
}

.rdh-grand-total td:last-child {
    font-size: 1.1rem;
    color: #0f172a;
}

/* ============================================
   دکمه‌ها
   ============================================ */
.rdh-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.rdh-btn {
    display: inline-block;
    padding: 0.75rem 2.5rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.rdh-secondary {
    background: #f1f5f9;
    color: #0f172a;
    border: 2px solid transparent;
}

.rdh-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    color: #0f172a;
}

/* ============================================
   ریسپانسیو
   ============================================ */
@media (max-width: 768px) {
    .rdh-invoice-wrapper {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 16px;
    }

    .rdh-invoice-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .rdh-invoice-header-num-date {
        text-align: right;
        width: 100%;
    }

    .rdh-info-section {
        grid-template-columns: 1fr;
    }

    .rdh-order-steps {
        gap: 0.5rem;
    }

    .rdh-step .rdh-icon {
        width: 40px;
        height: 40px;
    }

    .rdh-step .rdh-icon img {
        width: 20px;
        height: 20px;
    }

    .rdh-step .rdh-label {
        font-size: 0.75rem;
    }

    /* جدول در موبایل - اسکرول افقی */
    .rdh-invoice-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .rdh-invoice-table thead,
    .rdh-invoice-table tbody,
    .rdh-invoice-table tfoot {
        display: table;
        width: 100%;
        min-width: 600px;
    }

    .rdh-invoice-table th,
    .rdh-invoice-table td {
        padding: 0.75rem 1rem;
    }

    .rdh-invoice-table th.product-details {
        border-radius: 0;
    }

    .rdh-invoice-table td.product-details-row {
        padding-right: 0.5rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .product-details-row-product-name {
        font-size: 0.85rem;
    }

    .rdh-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1.5rem;
    }

    .rdh-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .rdh-invoice-wrapper {
        padding: 1rem;
        margin: 0.5rem;
        border-radius: 12px;
    }

    .rdh-invoice-header-logo-type h2 {
        font-size: 1.2rem;
    }

    .rdh-logo {
        max-height: 45px;
    }

    .rdh-box {
        padding: 1rem;
    }

    .rdh-box h3 {
        font-size: 0.8rem;
    }

    .rdh-box p {
        font-size: 0.85rem;
    }

    .rdh-step .rdh-icon {
        width: 34px;
        height: 34px;
    }

    .rdh-step .rdh-icon img {
        width: 16px;
        height: 16px;
    }

    .rdh-step .rdh-label {
        font-size: 0.65rem;
    }

    .rdh-invoice-table th,
    .rdh-invoice-table td {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
    }

    .rdh-grand-total td {
        font-size: 0.95rem !important;
    }
}

/* ============================================
   انیمیشن‌های ملایم
   ============================================ */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rdh-invoice-wrapper {
    animation: fadeSlideUp 0.5s ease-out;
}

.rdh-box,
.rdh-order-progress-wrapper,
.rdh-invoice-table {
    animation: fadeSlideUp 0.5s ease-out forwards;
    opacity: 0;
}

.rdh-box:nth-child(1) {
    animation-delay: 0.05s;
}
.rdh-box:nth-child(2) {
    animation-delay: 0.1s;
}
.rdh-order-progress-wrapper {
    animation-delay: 0.02s;
}
.rdh-invoice-table {
    animation-delay: 0.12s;
}

/* ============================================
   سفارشی‌سازی ووکامرس - ارث‌بری
   ============================================ */
.rdh-invoice-wrapper .woocommerce-Price-amount {
    font-weight: 500;
    color: inherit;
}

.rdh-invoice-wrapper .woocommerce-Price-currencySymbol {
    font-weight: 600;
}
.rdh-actions .rdh-button.rdh-secondary {
	background-color: #C8EED5 !important;
}

.woocommerce-notices-wrapper {
	font-family: 'Yekan Bakh' !important;
}
img.avatar {
    border-radius: 50%;
    object-fit: cover;
    background: #f5f5f5;
    border: 1px solid #e5e7eb;
}
