.woocommerce-MyAccount-navigation{
    width: 100% !important;
}

.wcs-sidebar li{
    list-style : none;
    display: block;
    width: 100%;
}
.wcs-sidebar a{
    display:block;
    color:#fff;
    padding:10px 0;
    width: 100%;
    text-decoration:none;
}

.wcs-sidebar a:hover{
    color: #fd0724;
}

body.wcs-app-account{
    margin:0;
    background:#f4f6f9;
    font-family:IRANSans, sans-serif;
}

.wcs-app-wrapper{
    display:flex;
    min-height:100vh;
}

/* ================= SIDEBAR ================= */

.wcs-sidebar{
    width:260px;
    background:#111827;
    color:#fff;
    padding:25px 15px;
    position:fixed;
    height:100%;
    overflow-y:auto;
    transition:0.3s;
}

.wcs-logo{
    font-size:20px;
    font-weight:bold;
    margin-bottom:20px;
    text-align:center;
}

.wcs-back-site{
    text-align:center;
    margin-bottom:20px;
}

.wcs-back-site a{
    color:#9ca3af;
    text-decoration:none;
    font-size:13px;
}

.wcs-back-site a:hover{
    color:#fff;
}

.wcs-nav ul{
    list-style:none;
    padding:0;
    margin:0;
}

.wcs-nav li{
    margin-bottom:8px;
}

.wcs-nav a{
    display:block;
    padding:10px 15px;
    border-radius:10px;
    text-decoration:none;
    color:#d1d5db;
    transition:0.3s;
}

.wcs-nav a:hover,
.wcs-nav .is-active a{
    background:#1f2937;
    color:#fff;
}

/* ================= CONTENT ================= */

.wcs-content{
    margin-right:260px;
    padding:40px;
    width:100%;
}

.wcs-content > *{
    background:#fff;
    padding:25px;
    border-radius:15px;
    margin-bottom: 15px;
    box-shadow:0 5px 25px rgba(0,0,0,0.05);
}

.woocommerce-notices-wrapper{
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    margin-bottom: 10px;   
}
/* ================= MOBILE ================= */

.wcs-bottom-nav{
    display:none;
}



input, select{
    line-height: 2 !important;
    padding: 5px 10px;
    border: 1px solid #aba8a8;
    border-radius: 10px;
    margin: 6px 0 !important;
    display: block;
    width: 100%;
    max-width:500px;
}
input[type=radio], input[type=checkbox]{
    display:inline-block;
    width: auto;
}
label.method-pay{
    padding: 13px;
    border-radius: 5px;
    border: 1px solid #e1e1e1;
    background: #e2e2e2;
    margin-left: 10px;
    cursor: pointer;
    line-height: 2;
}
label.la-block{
    display: block !important;
}
.submit-customer.button, .button, .button, button{
    background: #fd0724 !important;
    color: #fff !important;
    line-height: 2 !important;
    padding: 6px 20px !important;
    border-radius: 8px !important;
    border: 1px solid #fff !important;
    display: inline-block;
    margin:6px 0 !important;
}
.submit-customer.button:hover, .button:hover,#pay-cancel.button, button:hover, button.filter, .coupon button,button.product-add{
    background: #fff !important;
    color: #fd0724 !important;
    border: 1px solid #aba8a8 !important;

}
.coupon button{
    margin-right: 10px !important;
}
button.remove-item{
    background: transparent !important;
    padding: 0 !important;
    margin-left:5px;
    color: #fd0724 !important;
}
button.remove-item:hover{
    border: none !important;
}
#pay-cancel.button:hover,button.filter:hover,.coupon button:hover{
    background: #fd0724 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
} 
/* ---------- قیمت ---------- */
.wcs-price-wrapper {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    min-height: 75px;
}

.wcs-unit-label {
    font-size: 12px;
    color: #777;
    margin-bottom: 3px;
}

.wcs-cash-price, .wcs-credit-price{
    color: #434443;
    font-weight: bold;
    background: #e8e8e8;
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 8px;
}

.wcs-credit-price {
    color: #fd0724;
}

.wcs-credit-percent {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: #fff;
    background: #fd0724;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ---------- Badge روی عکس ---------- */
.wcs-credit-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #fd0724;
    color: #fff;
    font-size: 12px;
    padding: 4px 7px;
    border-radius: 4px;
    z-index: 9;
}

/* اطمینان از relative بودن کانتینر */
.woocommerce ul.products li.product,
.woocommerce .product {
    position: relative;
}

/* ---------- صفحه محصول ---------- */
.wcs-credit-badge-single {
    background: #fd0724;
    color: #fff;
    display: inline-block;
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* کارت محصول */
.product.carousel-slider__product,
.products .product {
    display: flex;
    flex-direction: column;
}

/* فوتر کارت */
.kiflex-card-footer {
    margin-top: auto;
    padding: 10px;
}

/* دکمه */
.wholesale-open-modal {
    display: block;
    width: 100%;
    background: #fd0724;
    color: #fff !important;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
}


/* دکمه */
.wholesale-open-modal {
    display: block;
    width: 100%;
    background: #fd0724;
    color: #fff !important;
    padding: 10px 0;
    border-radius: 8px;
    font-size: 14px;
}

/* ===== Credit System Styles ===== */
.bd-main button{
    padding: 0 !important;
    color: #292828 !important;
}
.bd-main table th{
    background-color: #fd0724 !important;
    color: #fff;
}
.bd-main .bd-next, .bd-main .bd-prev{
    background-color: #fd0724;
}
.bd-table-days button:hover:enabled{
    color: #f00 !important;
}
/* marketer dashboard style */
.b2b-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:15px;margin-bottom:25px}
.b2b-card{background:#fff;padding:15px;border-radius:8px;border:1px solid #eee}
.b2b-card h3{margin:0;font-size:14px;color:#777}
.b2b-card strong{font-size:22px}
.b2b-table{width:100%;border-collapse:collapse}
.b2b-table th,.b2b-table td{padding:8px;border-bottom:1px solid #eee;text-align:right}
.b2b-actions a{display:inline-block;margin:5px 0;padding:8px 12px;background:#2271b1;color:#fff;border-radius:5px;text-decoration:none}
.b2b-alert{background:#fff3cd;border:1px solid #ffeeba;padding:10px;border-radius:6px;margin-bottom:15px}

/* ladger statement style */

.b2b-statement{font-family:tahoma;direction:rtl}
.b2b-summary{display:flex;gap:20px;margin-bottom:20px; flex-wrap: wrap;}
#bd-root-test-date-id-1,#bd-root-test-date-id-2{
    display: inline-block;
}
.b2b-box{background:#f7f7f7;padding:15px;border-radius:6px;flex:1;text-align:center}
table.b2b-table{width:100%;border-collapse:collapse}
table.b2b-table th,table.b2b-table td{border:1px solid #ddd;padding:8px;text-align:center}
table.b2b-table th{background:#eee}
.debit{color:#c0392b}
.credit{color:#27ae60}
.pay-btn{background:#27ae60;color:#fff;padding:5px 10px;border-radius:4px;text-decoration:none}
.print-btn{background:#2980b9;color:#fff;padding:6px 12px;border-radius:4px}
@media print {.no-print{display:none}}

/* debt peyment style */ 
.b2b-debt{direction:rtl;font-family:tahoma}
table{width:100%;border-collapse:collapse}
th,td{
    border:1px solid #ccc;
    padding:8px !important;
    text-align:center !important;
}
th{background:#eee}
.overdue{color:#c0392b;font-weight:bold}
.current{color:#27ae60}
.submit-btn{background:#27ae60;color:#fff;padding:8px 15px;border:none}
.hidden{display:none}
.b2b-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.b2b-table th, .b2b-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
.b2b-table thead {
    background: #f5f5f5;
}
.b2b-table tr.selected {
    background: #e8f4ff;
}
.b2b button {
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    cursor: pointer;
}
.b2b button:hover {
    background: #135e96;
}
/* marketer style */
.b2b-sale {max-width:600px;margin:auto}
.b2b-list {list-style:none;padding:0;border:1px solid #ccc}
.b2b-list li {padding:8px;border-bottom:1px solid #eee;cursor:pointer}
.b2b-toggle label {margin-right:15px}
.select2{
    margin-bottom: 15px !important;
}
.settelment{
    width: 120px;
    height: 50px;
    padding: 10px;
    display: inline-block;
    text-align: center;
    background: #0f0;
    margin-left: 20px;
    border-radius: 10px;
}
.settelment.set-credit{
    background: #f00;
}
.wcs-credit-badge,
.wcs-credit-badge-single {
    background: #d32f2f;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 8px;

}

.wcs-price-wrapper {
    line-height: 1.8;
}

.wcs-credit-percent {
    display: block;
    font-size: 12px;
    color: #555;
}

/* ===== Cart ===== */

.wcs-cart-item-prices {
    font-size: 13px;
    line-height: 1.6;
}

.wcs-cart-item-prices .cash {
    color: #2e7d32;
    font-weight: bold;
}

.wcs-cart-item-prices .credit {
    color: #c62828;
}

.wcs-cart-profit td {
    color: #2e7d32;
    font-weight: bold;
}

.wcs-cart-credit-total td {
    color: #c62828;
}

/* مخفی کردن قیمت پیش‌فرض اگر خواستی */
.cart-subtotal,
.order-total {
    display: none !important;
}

/* قفل اسکرول */
body.wholesale-modal-open {
    overflow: hidden;
}

/* overlay */
#wholesale-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* مودال */
#wholesale-modal {
    background: #fff;
    width: 92%;
    max-width: 420px;
    padding: 24px;
    border-radius: 14px;
    position: relative;
    margin: 20px auto;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: modalIn .35s cubic-bezier(.25,.8,.25,1);
}
#wholesale-modal p{
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #e1e1e1;
    padding-bottom: 10px;
}
.wholesale-product-title{
    padding-bottom: 15px;
    border-bottom: 2px solid #fd0724;
}
/* انیمیشن */
@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(.95);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* دکمه بستن */
.wholesale-modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    border: none;
    background: none !important;
    font-size: 22px;
    cursor: pointer;
    width: auto !important;
    height: auto;
    color: #fd0724 !important;
    padding: 3px !important;
}

/* دکمه‌ها */
#wholesale-add-to-cart {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: #fd0724;
    color: #fff;
    border: 1px solid #fd0724;
    border-radius: 8px;
}
.wholesale-open-modal{
    display: inline-block;
    width: 90%;
    margin: 10px 5%;
    padding: 8px;
    background: #fd0724;
    color: #FFf;
    text-align: center;
    border-radius: 7px;
    border: 1px solid #fd0724;
    box-shadow: 1px 1px 2px #fd0724;
    font-weight: 600;
}
.wholesale-open-modal:hover{
    background: #fff;
    color: #fd0724 !important;
    border: 1px solid #fd0724;
}
.wholesale-view-cart {
    display: block;
    margin-top: 10px;
    text-align: center;
    font-size: 14px;
}

/* پیام */
.wholesale-error {
    margin-top: 12px;
    font-size: 14px;
}
.wholesale-error.error { color: #c0392b; }
.wholesale-error.success { color: #27ae60; }
/* checkout display */
.wcs-qty-box {
    line-height: 1.6;
}

.wcs-qty-sub {
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.wcs-unit-price {
    font-weight: 600;
    color: #222;
}
.wp-list-table td{
    padding:3px 5px;
    width: auto !important;
}
.wp-list-table td input{
    width: 90% !important;
}
.wcs-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.wcs-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
}

.wcs-card h3 {
    margin-bottom: 15px;
}

.wcs-card ul {
    list-style: none;
    padding: 0;
}

.wcs-card li {
    margin-bottom: 8px;
}

.wcs-progress {
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    height: 8px;
    margin: 10px 0;
}

.wcs-progress .bar {
    height: 100%;
    background: #2ecc71;
}

.wcs-card.warning .bar { background: #f1c40f; }
.wcs-card.danger .bar { background: #e74c3c; }

.status-text {
    font-weight: bold;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    text-align: center;
}

.woocommerce table.shop_table thead {
    background: #f7f7f7;
}

.woocommerce table.shop_table tbody tr:hover {
    background: #fafafa;
}
.b2b-table td{
    font-weight:500;
}

.b2b-table td:last-child{
    font-weight:700;
    color:#d32f2f;
}

.b2b-ladger-new{
    padding: 10px 20px;
    border: 1px solid #b6b0b0;
    border-bottom: 3px solid;
    border-right: 3px solid;
    margin-bottom: 10px;
}
/* موبایل */
@media (max-width: 480px) {
    #wholesale-modal {
        padding: 18px;
        border-radius: 10px;
    }
}
@media (max-width: 768px){

    .woocommerce-MyAccount-content{
        padding:12px;
    }

    table, thead, tbody, tr, td {display:block}
    table.shop_table {border:none !important; padding: 10px 5px;}
    .shop_table,
    .shop_table tbody,
    .shop_table tr,
    .shop_table td{
        display:block;
        width:100%;
    }

    .shop_table tr{
        background:#fff;
        border-radius:10px;
        padding:10px;
        margin-bottom:12px;
        box-shadow:0 2px 8px rgba(0,0,0,0.08);
    }

    .shop_table td{
        text-align:right;
        padding:6px 0;
        border:none;
        position:relative;
        padding-right:90px;
    }
    .shop_table td:first-child{border-top: none !important;}
    .wcs-app-wrapper td{
        padding-right: 100px !important;
    }
    .wcs-app-wrapper td:before{
        position:absolute;
        right:0;
        top:6px;
        font-weight:bold;
        color:#888;
    }
    .b2b-card{
        background:#fff;
        border-radius:14px;
        padding:16px;
        margin-bottom:18px;
        box-shadow:0 4px 12px rgba(0,0,0,0.08);
    }

    .b2b-card h3{
        font-size:16px;
        font-weight:700;
        margin-bottom:12px;
        border-bottom:1px solid #f1f1f1;
        padding-bottom:8px;
    }
    .wcs-app-wrapper thead{
        display:none;
    }

    .b2b-table,
    .b2b-table tbody,
    .b2b-table tr,
    .b2b-table td{
        display:block;
        width:100%;
    }

    .b2b-table tr{
        background:#fafafa;
        border-radius:10px;
        padding:12px;
        margin-bottom:12px;
        box-shadow:0 2px 6px rgba(0,0,0,0.05);
    }

    .b2b-table td{
        text-align:right;
        padding:6px 0;
        border:none;
        position:relative;
        padding-right:90px;
        font-size:14px;
    }
    .wcs-total-cash, .wcs-total-credit , .wcs-total-profit {min-width: 320px;}
    .wcs-total-cash td, .wcs-total-credit td , .wcs-total-profit td, .wcs-cart-cash td,
    .wcs-cart-credit td , .wcs-cart-profit td{ text-align: left !important; border: none !important;}
    .wcs-total-cash th, .wcs-total-credit th, .wcs-total-profit th{ display: none;}
    .wcs-total-cash td:nth-of-type(1):before { content:"جمع کل نقدی :"; }
    .wcs-total-credit td:nth-of-type(1):before { content:"جمع کل اعتباری :"; }
    .wcs-total-profit td:nth-of-type(1):before { content:"سود شما از خرید نقدی :";}
    .wcs-app-wrapper tr td:before{content:attr(data-title) ":";}

    .b2b-table td:before{
        position:absolute;
        right:0;
        top:6px;
        font-weight:600;
        color:#777;
        font-size:13px;
    }


}
@media(max-width:992px){

    .wcs-sidebar{
        right:-260px;
        z-index:9999;
    }

    .wcs-sidebar.active{
        right:0;
    }

    .wcs-content{
        margin:0;
        padding:20px;
        padding-bottom: 50px;
    }

    .wcs-back-site{
        display:none;
    }

    .wcs-bottom-nav{
        position:fixed;
        bottom:0;
        width:100%;
        background:#fff;
        display:flex;
        justify-content:space-around;
        padding:10px 0;
        box-shadow:0 -5px 20px rgba(0,0,0,0.08);
        z-index:999;
    }

    .wcs-bottom-nav a{
        text-decoration:none;
        color:#111;
        font-size:13px;
        display:flex;
        flex-direction:column;
        align-items:center;
    }

    .wcs-bottom-nav span:first-child{
        font-size:20px;
    }

}