/* ============================
   B2B Collaboration Pricing
   Frontend Styles - Liquid Glass
============================ */

:root {
    --b2bcp-brand: #8A1BE3;
    --b2bcp-brand-dark: #6d0fc4;
    --b2bcp-brand-light: rgba(138, 27, 227, 0.12);
    --b2bcp-brand-border: rgba(138, 27, 227, 0.28);
    --b2bcp-glass-bg: rgba(255, 255, 255, 0.62);
    --b2bcp-glass-bg-strong: rgba(255, 255, 255, 0.78);
    --b2bcp-glass-border: rgba(255, 255, 255, 0.55);
    --b2bcp-text-strong: #1f2937;
    --b2bcp-text-normal: #374151;
    --b2bcp-text-soft: #6b7280;
    --b2bcp-shadow: 0 18px 45px rgba(31, 41, 55, 0.10);
    --b2bcp-radius: 22px;
}

/* حذف زیرخط لینک‌های افزونه */
.b2bcp-wholesale a,
.b2bcp-wholesale button,
.b2bcp-pagination a,
.b2bcp-button,
.b2bcp-modal a,
.b2bcp-form a,
.b2bcp-action-buttons a,
.b2bcp-filter-actions a,
.b2bcp-wholesale-table th a {
    text-decoration: none !important;
}

.b2bcp-wholesale a:hover,
.b2bcp-pagination a:hover,
.b2bcp-action-buttons a:hover,
.b2bcp-filter-actions a:hover,
.b2bcp-wholesale-table th a:hover {
    text-decoration: none !important;
}

/* کنترل عرض و box model */
.b2bcp-wholesale,
.b2bcp-wholesale * {
    box-sizing: border-box;
}

.b2bcp-wholesale {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.b2bcp-wholesale img {
    max-width: 100%;
    height: auto;
}

.b2bcp-wholesale input,
.b2bcp-wholesale select,
.b2bcp-wholesale textarea,
.b2bcp-wholesale button,
.b2bcp-wholesale a,
.b2bcp-wholesale span,
.b2bcp-wholesale div {
    max-width: 100%;
    min-width: 0;
}

.b2bcp-wholesale,
.b2bcp-form,
.b2bcp-box,
.b2bcp-filters,
.b2bcp-modal {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
}

.b2bcp-box {
    display: block;
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 16px;
    line-height: 1.9;
    background: var(--b2bcp-glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--b2bcp-glass-border);
    box-shadow: var(--b2bcp-shadow);
    max-width: 100%;
}

.b2bcp-restricted {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(255, 243, 205, 0.82);
    border: 1px solid #ffc107;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.b2bcp-restricted a {
    color: #b45309;
    text-decoration: underline;
}

.b2bcp-success {
    background: rgba(236, 253, 245, 0.82);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #065f46;
}

.b2bcp-notice {
    background: rgba(239, 246, 255, 0.82);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #1e3a8a;
}

.b2bcp-error {
    background: rgba(254, 242, 242, 0.82);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #7f1d1d;
}

/* Form */
.b2bcp-form {
    max-width: 640px;
    width: 100%;
}

.b2bcp-form .b2bcp-field {
    margin-bottom: 16px;
    width: 100%;
}

.b2bcp-form label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--b2bcp-text-strong);
}

.b2bcp-form input[type="text"],
.b2bcp-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.82);
}

.b2bcp-form input[type="text"]:focus,
.b2bcp-form textarea:focus {
    outline: none;
    border-color: var(--b2bcp-brand);
    box-shadow: 0 0 0 3px rgba(138, 27, 227, 0.14);
}

.b2bcp-form textarea {
    min-height: 100px;
    resize: vertical;
}

.b2bcp-form .b2bcp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    background: linear-gradient(135deg, var(--b2bcp-brand), var(--b2bcp-brand-dark));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(138, 27, 227, 0.24);
    width: auto;
}

.b2bcp-form .b2bcp-button:hover {
    background: linear-gradient(135deg, var(--b2bcp-brand-dark), var(--b2bcp-brand));
}

/* Wholesale wrapper - liquid glass */
.b2bcp-wholesale {
    width: 100%;
    position: relative;
    border-radius: var(--b2bcp-radius);
    padding: 18px;
    background:
        radial-gradient(900px 300px at 100% 0%, rgba(138, 27, 227, 0.16), transparent 55%),
        radial-gradient(700px 260px at 0% 100%, rgba(138, 27, 227, 0.10), transparent 50%),
        rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: var(--b2bcp-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.b2bcp-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    width: 100%;
}

/* Filters */
.b2bcp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-bottom: 16px;
    padding: 16px;
    background: var(--b2bcp-glass-bg);
    border: 1px solid var(--b2bcp-glass-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    width: 100%;
    max-width: 100%;
}

.b2bcp-filter-field {
    min-width: 180px;
    flex: 1 1 180px;
    max-width: 100%;
}

.b2bcp-filter-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 800;
    color: var(--b2bcp-text-strong);
}

.b2bcp-filter-field input[type="search"],
.b2bcp-filter-field input[type="text"],
.b2bcp-filter-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.86);
    color: var(--b2bcp-text-strong);
    transition: border-color .15s ease, box-shadow .15s ease;
    max-width: 100%;
    font-size: 13px;
}

.b2bcp-filter-field input[type="search"]:focus,
.b2bcp-filter-field input[type="text"]:focus,
.b2bcp-filter-field select:focus {
    outline: none;
    border-color: var(--b2bcp-brand);
    box-shadow: 0 0 0 3px rgba(138, 27, 227, 0.14);
}

.b2bcp-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.b2bcp-filter-actions .button,
.b2bcp-filter-actions a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.b2bcp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: linear-gradient(135deg, var(--b2bcp-brand), var(--b2bcp-brand-dark));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.6;
    box-shadow: 0 10px 24px rgba(138, 27, 227, 0.22);
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
    max-width: 100%;
}

.b2bcp-button:hover {
    background: linear-gradient(135deg, var(--b2bcp-brand-dark), var(--b2bcp-brand));
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(138, 27, 227, 0.28);
}

.b2bcp-button-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--b2bcp-brand-dark);
    border: 1px solid var(--b2bcp-brand-border);
    box-shadow: none;
}

.b2bcp-button-ghost:hover {
    background: rgba(138, 27, 227, 0.08);
    color: var(--b2bcp-brand-dark);
    box-shadow: none;
}

.b2bcp-button-print {
    background: linear-gradient(135deg, #7c3aed, var(--b2bcp-brand-dark));
}

.b2bcp-small-button {
    padding: 7px 11px !important;
    font-size: 12px !important;
    border-radius: 10px;
    line-height: 1.4;
}

.b2bcp-result-count {
    margin-bottom: 12px;
    color: var(--b2bcp-text-normal);
    font-size: 14px;
    width: 100%;
    max-width: 100%;
}

.b2bcp-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--b2bcp-glass-bg-strong);
    border: 1px solid var(--b2bcp-glass-border);
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.b2bcp-wholesale-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1080px;
    table-layout: fixed;
}

.b2bcp-wholesale-table th,
.b2bcp-wholesale-table td {
    border-bottom: 1px solid rgba(209, 213, 219, 0.75);
    padding: 12px 10px;
    text-align: right;
    vertical-align: middle;
    word-break: break-word;
    overflow-wrap: anywhere;
    height: 58px;
}

.b2bcp-wholesale-table th {
    background: linear-gradient(180deg, rgba(138, 27, 227, 0.12), rgba(138, 27, 227, 0.05));
    font-weight: 800;
    color: #5b21b6;
    font-size: 13px;
    border-bottom: 2px solid rgba(138, 27, 227, 0.25);
    white-space: nowrap;
    height: 52px;
}

.b2bcp-wholesale-table th a {
    color: inherit;
    text-decoration: none;
}

.b2bcp-wholesale-table th a:hover {
    color: var(--b2bcp-brand-dark);
}

.b2bcp-wholesale-table tbody tr {
    transition: background 0.15s ease;
    width: 100%;
}

.b2bcp-wholesale-table tbody tr:nth-child(even) {
    background: rgba(249, 250, 251, 0.82);
}

.b2bcp-wholesale-table tbody tr:hover {
    background: rgba(138, 27, 227, 0.08);
}

/* عرض ستون‌ها - ستون اول ردیف است */
.b2bcp-wholesale-table th:nth-child(1),
.b2bcp-wholesale-table td:nth-child(1) {
    width: 52px;
    text-align: center;
}

.b2bcp-wholesale-table th:nth-child(2),
.b2bcp-wholesale-table td:nth-child(2) {
    width: 58px;
}

.b2bcp-wholesale-table th:nth-child(4),
.b2bcp-wholesale-table td:nth-child(4) {
    width: 110px;
}

.b2bcp-wholesale-table th:nth-child(5),
.b2bcp-wholesale-table td:nth-child(5) {
    width: 150px;
}

.b2bcp-wholesale-table th:nth-child(6),
.b2bcp-wholesale-table td:nth-child(6) {
    width: 95px;
}

.b2bcp-wholesale-table th:nth-child(7),
.b2bcp-wholesale-table td:nth-child(7) {
    width: 95px;
}

.b2bcp-wholesale-table th:nth-child(8),
.b2bcp-wholesale-table td:nth-child(8) {
    width: 190px;
}

.b2bcp-row-number {
    font-weight: 800;
    color: var(--b2bcp-brand-dark);
    text-align: center;
}

.b2bcp-cell-image img {
    width: 48px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    border: 1px solid rgba(209, 213, 219, 0.65);
    background: #fff;
}

.b2bcp-cell-name {
    font-weight: 800;
    color: var(--b2bcp-text-strong);
    overflow-wrap: anywhere;
}

.b2bcp-cell-sku {
    direction: ltr;
    text-align: right;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    color: var(--b2bcp-text-normal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.b2bcp-cell-price {
    white-space: nowrap;
    direction: ltr;
    text-align: right;
    max-width: 100%;
}

.b2bcp-price {
    direction: ltr;
    unicode-bidi: embed;
    font-weight: 900;
    color: var(--b2bcp-brand-dark);
    display: inline-block;
    max-width: 100%;
}

.b2bcp-money {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
    white-space: nowrap;
    max-width: 100%;
}

.b2bcp-money-amount {
    font-weight: 900;
}

.b2bcp-money-currency {
    font-weight: 700;
    margin-left: 3px;
float:left;
}

.b2bcp-price-separator {
    font-weight: 700;
    color: var(--b2bcp-text-soft);
}

.b2bcp-cell-date {
    color: var(--b2bcp-text-soft);
    font-size: 12px;
    white-space: nowrap;
    max-width: 100%;
}

.b2bcp-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
}

/* Pagination */
.b2bcp-pagination {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

.b2bcp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 8px 11px;
    border: 1px solid rgba(138, 27, 227, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--b2bcp-text-normal);
    text-decoration: none;
    line-height: 1.4;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all .15s ease;
}

.b2bcp-pagination .page-numbers:hover {
    border-color: var(--b2bcp-brand);
    color: var(--b2bcp-brand-dark);
    background: rgba(138, 27, 227, 0.08);
}

.b2bcp-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--b2bcp-brand), var(--b2bcp-brand-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 22px rgba(138, 27, 227, 0.24);
}

.b2bcp-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Print only elements */
.b2bcp-print-only {
    display: none;
}

/* Modal */
.b2bcp-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
}

.b2bcp-modal {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 20px;
    max-width: 430px;
    width: 100%;
    padding: 22px;
    position: relative;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.25);
    animation: b2bcpModalFade .18s ease;
}

@keyframes b2bcpModalFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.b2bcp-modal-close {
    position: absolute;
    top: 12px;
    left: 12px;
    border: none;
    background: rgba(138, 27, 227, 0.08);
    color: var(--b2bcp-brand-dark);
    width: 30px;
    height: 30px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.b2bcp-modal-close:hover {
    background: rgba(138, 27, 227, 0.16);
}

.b2bcp-modal-icon {
    width: 44px;
    height: 44px;
    background: rgba(138, 27, 227, 0.12);
    color: var(--b2bcp-brand-dark);
    border: 1px solid rgba(138, 27, 227, 0.3);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.b2bcp-modal-title {
    text-align: center;
    font-weight: 900;
    margin: 0 0 8px;
    color: var(--b2bcp-text-strong);
}

.b2bcp-modal-product-name {
    text-align: center;
    color: var(--b2bcp-text-normal);
    margin: 0 0 14px;
    font-size: 13px;
    min-height: 18px;
    overflow-wrap: anywhere;
}

.b2bcp-modal-meta {
    background: rgba(249, 250, 251, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 16px;
    display: grid;
    gap: 8px;
    width: 100%;
}

.b2bcp-modal-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--b2bcp-text-normal);
    gap: 8px;
    width: 100%;
}

.b2bcp-modal-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.b2bcp-modal-actions a,
.b2bcp-modal-actions button {
    flex: 1;
    text-align: center;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 13px;
    min-width: 0;
}

.b2bcp-modal-primary {
    background: linear-gradient(135deg, var(--b2bcp-brand), var(--b2bcp-brand-dark));
    color: #fff;
    box-shadow: 0 10px 22px rgba(138, 27, 227, 0.22);
}

.b2bcp-modal-primary:hover {
    background: linear-gradient(135deg, var(--b2bcp-brand-dark), var(--b2bcp-brand));
    color: #fff;
}

.b2bcp-modal-secondary {
    background: rgba(138, 27, 227, 0.08);
    color: var(--b2bcp-brand-dark);
    border: 1px solid rgba(138, 27, 227, 0.18);
}

.b2bcp-modal-secondary:hover {
    background: rgba(138, 27, 227, 0.14);
}

/* Desktop / Tablet */
@media screen and (max-width: 1100px) {

    .b2bcp-wholesale {
        padding: 14px;
        border-radius: 18px;
    }

    .b2bcp-wholesale-table {
        min-width: 980px;
    }
}

/* Mobile */
@media screen and (max-width: 900px) {

    .b2bcp-wholesale {
        padding: 10px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.22);
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow-x: hidden !important;
    }

    /* Filters mobile */
    .b2bcp-filters {
        padding: 12px;
        gap: 10px;
        margin-bottom: 14px;
        border-radius: 16px;
        flex-direction: column;
        align-items: stretch;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        width: 100%;
    }

    .b2bcp-filter-field {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }

    .b2bcp-filter-field label {
        font-size: 12px;
        margin-bottom: 5px;
    }

    .b2bcp-filter-field input[type="search"],
    .b2bcp-filter-field input[type="text"],
    .b2bcp-filter-field select {
        height: 42px;
        font-size: 13px;
        padding: 0 11px;
        border-radius: 11px;
    }

    .b2bcp-filter-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
        margin-top: 2px;
    }

    .b2bcp-filter-actions .button,
    .b2bcp-filter-actions a {
        width: 100%;
        min-height: 42px;
        font-size: 13px;
        border-radius: 12px;
    }

    /* Table to cards */
    .b2bcp-table-scroll {
        overflow: visible !important;
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .b2bcp-wholesale-table {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        border: none !important;
        background: transparent !important;
        table-layout: auto !important;
    }

    .b2bcp-wholesale-table thead,
    .b2bcp-wholesale-table th {
        display: none !important;
    }

    .b2bcp-wholesale-table tbody {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Product card */
    .b2bcp-wholesale-table tr {
        position: relative;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        border: 1px solid rgba(138, 27, 227, 0.12);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.86);
        padding: 34px 14px 14px;
        margin-bottom: 14px;
        box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
        height: auto !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: hidden;
    }

    .b2bcp-wholesale-table td {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border: none;
        border-bottom: 1px dashed rgba(138, 27, 227, 0.16);
        padding: 9px 0;
        text-align: left;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
    }

    .b2bcp-wholesale-table td:last-child {
        border-bottom: none;
    }

    .b2bcp-wholesale-table td::before {
        content: attr(data-label);
        font-weight: 800;
        color: var(--b2bcp-text-soft);
        text-align: right;
        flex: 0 0 38%;
        font-size: 12px;
        display: block !important;
        min-width: 0;
        overflow-wrap: normal;
        word-break: normal;
        white-space: nowrap;
    }

    .b2bcp-wholesale-table td > * {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    /* Row number badge - no label */
    .b2bcp-wholesale-table td:nth-child(1) {
        position: absolute;
        top: 10px;
        left: 10px;
        width: auto;
        border: none;
        padding: 3px 10px;
        border-radius: 999px;
        background: rgba(138, 27, 227, 0.10);
        color: var(--b2bcp-brand-dark);
        font-size: 11px;
        font-weight: 900;
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        line-height: 1.4;
    }

    .b2bcp-wholesale-table td:nth-child(1)::before {
        display: none !important;
    }

    /* Image - no label, centered */
    .b2bcp-wholesale-table td:nth-child(2) {
        justify-content: center;
        align-items: center;
        border: none;
        padding: 6px 0 4px;
    }

    .b2bcp-wholesale-table td:nth-child(2)::before {
        display: none !important;
    }

    .b2bcp-cell-image img {
        width: 68px;
        border-radius: 14px;
        box-shadow: 0 6px 16px rgba(31, 41, 55, 0.08);
    }

    /* Product name - no label, centered */
    .b2bcp-wholesale-table td:nth-child(3) {
        justify-content: center;
        align-items: center;
        text-align: center;
        border: none;
        padding: 0 0 10px;
        font-size: 14px;
        font-weight: 900;
        color: var(--b2bcp-text-strong);
    }

    .b2bcp-wholesale-table td:nth-child(3)::before {
        display: none !important;
    }

    /* SKU */
    .b2bcp-wholesale-table td:nth-child(4) {
        font-size: 12px;
    }

    /* Price highlight */
    .b2bcp-wholesale-table td:nth-child(5) {
        flex-direction: column;
        align-items: center;
        background: rgba(138, 27, 227, 0.07);
        border: 1px solid rgba(138, 27, 227, 0.12);
        border-radius: 14px;
        padding: 10px;
        margin: 6px 0;
    }

    .b2bcp-wholesale-table td:nth-child(5)::before {
        width: 100%;
        text-align: center;
        margin-bottom: 4px;
        color: var(--b2bcp-text-soft);
        font-size: 11px;
    }

    .b2bcp-cell-price {
        white-space: normal !important;
        text-align: center;
    }

    .b2bcp-price {
        font-size: 14px;
        white-space: normal;
    }

    .b2bcp-money {
        white-space: normal !important;
    }

    /* Stock/date */
    .b2bcp-cell-sku,
    .b2bcp-cell-date {
        white-space: normal !important;
        overflow-wrap: break-word !important;
        font-size: 12px;
    }

    /* Actions */
    .b2bcp-wholesale-table td:nth-child(8) {
        display: block !important;
        width: 100%;
        padding-top: 10px;
    }

    .b2bcp-wholesale-table td:nth-child(8)::before {
        display: none !important;
    }

    .b2bcp-action-buttons {
        justify-content: stretch;
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .b2bcp-action-buttons .button,
    .b2bcp-action-buttons a {
        flex: 1 1 auto;
        width: 100%;
        text-align: center;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 12px;
    }

    .b2bcp-action-buttons .add_to_cart_button {
        background: linear-gradient(135deg, var(--b2bcp-brand), var(--b2bcp-brand-dark));
        color: #fff;
        border: none;
        box-shadow: 0 8px 18px rgba(138, 27, 227, 0.22);
    }

    .b2bcp-action-buttons .add_to_cart_button:hover {
        background: linear-gradient(135deg, var(--b2bcp-brand-dark), var(--b2bcp-brand));
        color: #fff;
    }
}

@media screen and (max-width: 480px) {

    .b2bcp-wholesale {
        padding: 8px;
        border-radius: 14px;
    }

    .b2bcp-filters {
        padding: 10px;
        border-radius: 14px;
        gap: 9px;
    }

    .b2bcp-filter-field input[type="search"],
    .b2bcp-filter-field input[type="text"],
    .b2bcp-filter-field select {
        height: 40px;
        font-size: 12px;
    }

    .b2bcp-filter-actions .button,
    .b2bcp-filter-actions a {
        min-height: 40px;
        font-size: 12px;
    }

    .b2bcp-wholesale-table tr {
        padding: 32px 12px 12px;
        border-radius: 16px;
        margin-bottom: 12px;
    }

    .b2bcp-cell-image img {
        width: 60px;
    }

    .b2bcp-wholesale-table td {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .b2bcp-wholesale-table td:nth-child(1) {
        position: absolute;
        flex-direction: row;
        align-items: center;
    }

    .b2bcp-wholesale-table td:nth-child(2),
    .b2bcp-wholesale-table td:nth-child(3),
    .b2bcp-wholesale-table td:nth-child(5) {
        align-items: center;
    }

    .b2bcp-wholesale-table td::before {
        width: 100%;
        flex: none;
        margin-bottom: 2px;
        white-space: nowrap;
    }

    .b2bcp-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .b2bcp-action-buttons .button,
    .b2bcp-action-buttons a {
        width: 100%;
        min-height: 40px;
        font-size: 12px;
    }

    .b2bcp-modal {
        padding: 18px;
        border-radius: 18px;
    }

    .b2bcp-modal-actions {
        flex-direction: column;
    }
}

/* ============================
   Print A4
============================ */

@media print {

    .b2bcp-no-print,
    .site-header,
    .site-footer,
    .main-navigation,
    .elementor-location-header,
    .elementor-location-footer,
    .elementor-page-header,
    .elementor-page-footer,
    header,
    footer,
    nav {
        display: none !important;
    }

    .b2bcp-cell-actions,
    .b2bcp-action-buttons {
        display: none !important;
    }

    .b2bcp-print-only {
        display: block !important;
    }

    .b2bcp-wholesale,
    .b2bcp-filters,
    .b2bcp-table-scroll,
    .b2bcp-box {
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .b2bcp-print-header {
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #999;
    }

    .b2bcp-print-header h2 {
        margin: 0 0 6px;
        font-size: 18px;
    }

    .b2bcp-print-header p {
        margin: 0;
        font-size: 11px;
        color: #444;
    }

    .b2bcp-print-footer {
        margin-top: 12px;
        padding-top: 8px;
        border-top: 1px solid #999;
        font-size: 11px;
        color: #444;
    }

    .b2bcp-wholesale-table {
        width: 100%;
        min-width: 0;
        border-collapse: collapse;
        font-size: 11px;
        table-layout: fixed;
    }

    .b2bcp-wholesale-table thead {
        display: table-header-group !important;
    }

    .b2bcp-wholesale-table th,
    .b2bcp-wholesale-table td {
        border: 1px solid #999 !important;
        padding: 5px 7px !important;
        color: #000;
        display: table-cell !important;
        text-align: right;
        background: transparent !important;
        box-shadow: none !important;
        height: 34px;
        overflow-wrap: break-word;
    }

    .b2bcp-wholesale-table tr {
        page-break-inside: avoid;
    }

    .b2bcp-cell-image img {
        width: 30px;
        border: none;
    }

    .b2bcp-cell-name,
    .b2bcp-cell-sku,
    .b2bcp-cell-date,
    .b2bcp-price,
    .b2bcp-row-number,
    .b2bcp-money-amount,
    .b2bcp-money-currency {
        color: #000 !important;
    }

    body {
        background: #fff !important;
        margin: 0;
        padding: 0;
    }
}

@page {
    size: A4;
    margin: 12mm;
}