/* --- Dual Quantity Inputs on Single Product Page --- */
.b2b-dual-quantity-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    padding: 15px;
    border-radius: 4px;
    max-width: 350px;
}

.b2b-dual-quantity-fields .b2b-quantity-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.b2b-dual-quantity-fields .b2b-input-wrapper.quantity {
    margin: 0;
}

.b2b-dual-quantity-fields .b2b-unit-label {
    font-weight: bold;
    color: #555;
    margin-left: 10px;
    flex-shrink: 0;
}

.b2b-dual-quantity-fields input.qty {
    width: 65px;
}


/* --- Original Styles Below --- */

/* Create Account top box */
.b2b-create-account-box-top {
    border: 2px solid #1b422d;
    padding: 15px 25px;
    margin: 0 auto 20px;
    text-align: center;
    font-weight: bold;
}

.b2b-create-account-box-top a {
    color: #1b422d;
    text-decoration: none;
}

.b2b-create-account-box-top a:hover {
    color: #2e6b4e;
}

/* Two-column layout */
.b2b-form-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.b2b-column {
    flex: 1;
    min-width: 250px;
}

/* Form inputs */
.b2b-registration-form input[type="text"],
.b2b-registration-form input[type="email"],
.b2b-registration-form input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Submit button */
.b2b-registration-form input[type="submit"] {
    background-color: #1b422d;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
}

.b2b-registration-form input[type="submit"]:hover {
    background-color: #2e6b4e;
}

/* Back to login link */
.b2b-back-login {
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

.b2b-back-login a {
    text-decoration: none;
    color: #1b422d;
}

.b2b-back-login a:hover {
    color: #2e6b4e;
}

/* Privacy checkbox */
.b2b-privacy {
    margin-bottom: 15px;
}

.b2b-privacy a {
    color: #1b422d;
    text-decoration: underline;
}

.b2b-privacy a:hover {
    color: #2e6b4e;
}

/* Password eye using WooCommerce style */
.b2b-password-wrapper {
    position: relative;
}

.b2b-password-wrapper input {
    width: 100%;
    padding-right: 35px;
}

/* This rule positions the clickable area */
.b2b-toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-75%);
    cursor: pointer;
    line-height: 1;
    /* Optional: style the icon's color */
    color: #777;
}



/* Custom error wrapper */
.b2b-error-wrapper {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.b2b-error-message {
    color: #721c24;
    margin: 0;
}


/* --- START: B2B QUOTE VISUAL FIXES --- */

/* Hide the "Price" column on the cart page (header and body) */
.woocommerce-cart .shop_table .product-price {
    display: none;
}

/* Hide the "Subtotal" row on the cart and checkout pages */
.woocommerce .cart-subtotal {
    display: none;
}

/* Force-hide the zero price on the "Order Received" page line item */
.woocommerce-table--order-details .order_item .product-total .amount {
    display: none;
}


.woocommerce-checkout #billing_company_field {
    clear: both !important;
}