/* VerseSofts Bulk Order Table Public Styles */
.versbuor-bulk-order-form {
    margin: 20px 0;
    font-family: inherit;
}

.versbuor-search-filter {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    background: #fff;
    padding: 2px;
    border-radius: 8px;
}

.versbuor-search-filter input,
.versbuor-search-filter select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #444;
    transition: all 0.3s ease;
}

.versbuor-search-filter input:focus,
.versbuor-search-filter select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    outline: none;
}

.versbuor-product-table {
    width: 100%;
    border-spacing: 0;
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
}

.versbuor-product-table th,
.versbuor-product-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.versbuor-product-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.versbuor-product-table tr:hover {
    background-color: #fdfdfd;
}

.versbuor-qty-input {
    width: 65px !important;
    padding: 8px !important;
    border: 1px solid #ced4da !important;
    border-radius: 4px !important;
    text-align: center;
    transition: border-color 0.2s;
}

.versbuor-qty-input:focus {
    border-color: #007cba !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.versbuor-add-to-cart-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.versbuor-btn {
    background: #2271b1;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.versbuor-btn:hover {
    background: #135e96;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.versbuor-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.versbuor-col-check {
    width: 40px;
    text-align: center;
}

.versbuor-row-check, #versbuor-select-all {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2271b1;
}

.versbuor-col-image img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
}

.versbuor-col-product strong {
    font-size: 1rem;
    color: #2c3e50;
    display: block;
}

.versbuor-col-product small {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.versbuor-col-price {
    font-weight: 600;
    color: #27ae60;
}

/* Responsive Table */
@media screen and (max-width: 768px) {
    .versbuor-search-filter {
        grid-template-columns: 1fr;
    }
    
    .versbuor-product-table, 
    .versbuor-product-table thead, 
    .versbuor-product-table tbody, 
    .versbuor-product-table th, 
    .versbuor-product-table td, 
    .versbuor-product-table tr { 
        display: block; 
    }
    
    .versbuor-product-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .versbuor-product-table tr { border: 1px solid #ccc; margin-bottom: 15px; }
    
    .versbuor-product-table td { 
        border: none;
        border-bottom: 1px solid #eee; 
        position: relative;
        padding-left: 50%; 
        text-align: right;
    }
    
    .versbuor-product-table td:before { 
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%; 
        padding-right: 10px; 
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }
    
    /* Label the data */
    .versbuor-product-table td:nth-of-type(1):before { content: "Select"; }
    .versbuor-product-table td:nth-of-type(2):before { content: "Image"; }
    .versbuor-product-table td:nth-of-type(3):before { content: "Product"; }
    .versbuor-product-table td:nth-of-type(4):before { content: "SKU"; }
    .versbuor-product-table td:nth-of-type(5):before { content: "Price"; }
    .versbuor-product-table td:nth-of-type(6):before { content: "Quantity"; }
}
