/**
 * Styles for B2B Product List
 */

.b2b-product-list-wrapper {
    border: 1px solid #e2e4e7;
    padding: 20px;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 30px;
}

.b2b-product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.b2b-filter-field {
    flex: 1 1 200px;
    min-width: 200px;
}

.b2b-filter-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.b2b-filter-field input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.b2b-filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.b2b-product-batch-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.b2b-product-feedback {
    min-height: 24px;
    color: #2271b1;
    font-weight: 600;
}

.b2b-product-feedback.b2b-error {
    color: #d63638;
}

.b2b-product-results {
    border-top: 1px solid #e2e4e7;
    border-bottom: 1px solid #e2e4e7;
}

.b2b-product-row {
    display: grid;
    grid-template-columns: 1.6fr 0.6fr 0.8fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
}

.b2b-product-row:last-child {
    border-bottom: none;
}

.b2b-product-main h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.b2b-product-main h4 a {
    color: #2271b1;
    text-decoration: none;
}

.b2b-product-main h4 a:hover {
    text-decoration: underline;
}

.b2b-fast-delivery {
    font-size: 0.85em;
    font-style: italic;
    color: #28a745;
    margin-left: 8px;
    font-weight: normal;
}

.b2b-product-pn {
    margin: 0;
    color: #666;
    margin-bottom: 0!important;
}

.b2b-product-price {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.b2b-calculated-price {
    font-weight: 600;
    font-size: 16px;
    color: #1d2327;
}

.b2b-calculated-price strong {
    margin-right: 6px;
}

.b2b-regular-price {
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

.b2b-regular-price strong {
    margin-right: 6px;
}

.b2b-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.b2b-product-actions input[type="number"] {
    width: 90px;
    padding: 6px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

.b2b-product-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.b2b-product-pagination button {
    min-width: 36px;
    padding: 6px 10px;
    border: 1px solid #ccd0d4;
    background: #f6f7f7;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
}

.b2b-product-pagination button.b2b-active {
    background: #2271b1;
    color: #fff;
    border-color: #1d5c90;
}

.b2b-product-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.b2b-product-batch-actions {
    display: flex;
    justify-content: flex-end;
}

.b2b-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.b2b-no-products {
    padding: 20px;
    text-align: center;
}

#b2b-stock-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#b2b-stock-modal.active {
    display: flex;
    max-width: none;
}

.b2b-stock-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 6px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.b2b-stock-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 26px;
    cursor: pointer;
    color: #555;
}

.b2b-stock-modal-close:hover {
    color: #000;
}

.b2b-stock-modal-body table {
    width: 100%;
    margin-top: 15px;
}

.b2b-stock-modal-body td,
.b2b-stock-modal-body th {
    padding: 8px;
    text-align: left;
}

.b2b-stock-modal-body tbody tr:nth-child(odd) {
    background: #f9f9f9;
}

@media (max-width: 768px) {
    .b2b-product-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .b2b-product-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .b2b-product-actions input[type="number"] {
        width: 70px;
    }
}

