/* HS Bulk Order Frontend Styles */
.hs-bulk-order-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.hs-step-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.hs-step-content h2 {
    margin: 0 0 10px;
    color: #333;
    font-size: 24px;
}

.hs-step-content p {
    margin: 0 0 20px;
    color: #666;
    font-size: 16px;
}

.hs-bulk-order-steps .step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
}


.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    transition: all 0.3s ease;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.step.active .step-number,
.step.completed .step-number {
    background: #4a90e2;
    color: white;
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.3);
}

.step.active .step-number::before {
    content: '●';
    font-size: 20px;
    font-weight: bold;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: bold;
}

.step-label {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 8px solid #e0e0e0;
    z-index: 2;
    transition: border-left-color 0.3s ease;
}

.step.completed:not(:last-child)::after {
    border-left-color: #4a90e2;
}

.step.active:not(:last-child)::after {
    border-left-color: #4a90e2;
}

.step.active .step-label,
.step.completed .step-label {
    color: #4a90e2;
    font-weight: bold;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.hs-category-filter {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hs-category-filter label {
    font-weight: 600;
    color: #333;
    margin: 0;
}

.hs-category-filter select {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 14px;
    min-width: 200px;
    transition: border-color 0.3s ease;
}

.hs-category-filter select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: white;
}

.hs-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

#hs-prev-step,
#hs-next-step {
    padding: 10px 20px;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#hs-prev-step {
    background: #6c757d;
}

#hs-prev-step:disabled,
#hs-next-step:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.hs-products-table {
    background: white;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    margin-top: 20px;
}

.hs-products-list {
    width: 100%;
    border-collapse: collapse;
}

.hs-products-list th,
.hs-products-list td {
    border: 1px solid #ddd;
    padding: 15px 12px;
    text-align: left;
    vertical-align: middle;
}

.hs-products-list th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    border-top: none;
    border-bottom: 2px solid #ddd;
}

.hs-products-list tbody tr {
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #ddd;
}

.hs-products-list tbody tr:hover {
    background-color: #f8f9fa;
}

.hs-product-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #4a90e2;
}

.hs-quantity-input {
    width: 80px;
    padding: 8px 10px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    background: #f8f9fa;
    font-size: 14px;
    text-align: center;
    transition: border-color 0.3s ease;
}

.hs-quantity-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: white;
}

.hs-quantity-input[placeholder] {
    color: #6c757d;
}

.hs-loading,
.hs-error-message {
    text-align: center;
    padding: 20px;
}

.hs-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.hs-cart-table th,
.hs-cart-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.hs-cart-table th {
    background-color: #f5f5f5;
}

.hs-cart-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.hs-total {
    font-weight: bold;
    text-align: right;
    margin-top: 10px;
}

.hs-contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hs-contact-form .hs-custom-contact-form {
    display: flex;
    flex-direction: column;
}

.hs-contact-form p {
    margin-bottom: 20px;
}

.hs-contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required {
    color: #e74c3c;
}

.hs-contact-form input,
.hs-contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 0;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f8f9fa;
}

.hs-contact-form input:focus,
.hs-contact-form textarea:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: white;
}

.hs-contact-form textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}

.hs-contact-form input[type="email"],
.hs-contact-form input[type="tel"] {
    font-size: 16px;
}

#hs-next-step {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-end;
    margin-top: 20px;
    transition: background 0.3s ease;
}

#hs-next-step:hover {
    background: #357abd;
}

.hs-success-icon {
    font-size: 48px;
    color: #28a745;
    text-align: center;
    margin-bottom: 20px;
}

/* Invoice Preview Styles */
.hs-invoice-preview {
    background: white;
    border: 1px solid #ddd;
    padding: 20px;
    margin: 20px 0;
    color: #333;
}

.hs-invoice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 20px;
}

.hs-invoice-header h1 {
    margin: 0;
    color: #4a90e2;
    font-size: 36px;
}

.hs-invoice-header h2 {
    margin: 0;
    color: #333;
    font-size: 24px;
}

.hs-invoice-body {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.hs-bill-to,
.hs-from {
    width: 45%;
}

.hs-bill-to h3,
.hs-from h3 {
    color: #4a90e2;
    margin-bottom: 10px;
}

.hs-products-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.hs-products-table th,
.hs-products-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.hs-products-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.hs-products-table tfoot td {
    font-weight: bold;
    background-color: #f9f9f9;
}

.hs-payment-info {
    margin-bottom: 40px;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
}

.hs-payment-info h5 {
    color: #4a90e2;
    margin-top: 0;
}

.hs-thank-you {
    text-align: center;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.hs-thank-you p {
    margin: 5px 0;
}

.hs-next-steps {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
}

.hs-next-steps ul {
    list-style-type: disc;
    padding-left: 20px;
}

.hs-success-message {
    text-align: center;
    padding: 40px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
}
