.single-product div.product form.cart button.single_add_to_cart_button {
    height: 100%;
            margin-right: 14px; 
                min-height: 46px;
}

a.added_to_cart
 {
    height: 100%;
    margin: 0;
    text-align: center;
    border-radius: 6px;
    padding: 10px 50px;
    line-height: 24px;
    text-transform: uppercase;
    height: 100%;
    min-height: 46px;
    font-weight: normal;
}

.products-list a.added_to_cart
 {
    width: 100%;
}

html .single-product div.product form.cart {
    display: block;
}

.single-product .af_mli_inven_selector {
    font-size: 16px !important;
    border-color: #8c8c8c;
    border-radius: 2px;
}

.single-product .af_inven_heading {
    font-size: 16px;
}

.single-product .af_mli_front_inven_div {
    width: 100%;
    max-width: 250px;
}

.woocommerce-order-details .wc-item-meta {
    display: none;
}


@media (max-width: 576px) {
    .single-product .af_mli_front_inven_div {
        max-width: 100%;
    }
}


/* Multi-warehouse quantity rows */
.rbw-multi-qty-wrapper {
    margin-bottom: 12px;
}

.rbw-warehouse-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.rbw-warehouse-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rbw-stock-badge {
    font-size: 12px;
    font-weight: normal;
    padding: 2px 8px;
    border-radius: 20px;
}

.rbw-stock-badge.in-stock {
    background: #e6f4ea;
    color: #2e7d32;
}

.rbw-stock-badge.out-of-stock {
    background: #fce8e6;
    color: #c62828;
}

.rbw-warehouse-qty {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #8c8c8c;
    border-radius: 2px;
    font-size: 15px;
    text-align: center;
}

.rbw-warehouse-qty:disabled {
    background: #f0f0f0;
    color: #aaa;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .rbw-warehouse-row {
        flex-wrap: wrap;
    }
    .rbw-warehouse-qty {
        width: 100%;
    }
}

.rbw-warehouse-qty.rbw-qty-over-stock {
    border-color: #c62828;
    background-color: #fff5f5;
    outline: none;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.2);
}


dl.variation dd.variation-SKU,
dl.variation dd.variation-InventorySKU,
dl.variation dd.variation-InventorySKU p {
    margin-bottom: 0;
}

/* Stepper wrapper */
.rbw-qty-stepper {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    overflow: hidden;
    height: 42px;
    min-width: 120px;
}

.rbw-qty-stepper button {
    background: #fff;
    border: none;
    border-radius: 0;
    color: #333;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 0 14px;
    transition: background 0.15s;
    flex-shrink: 0;
}

.rbw-qty-stepper button:hover:not(:disabled) {
    background: #f0f0f0;
}

.rbw-qty-stepper button:disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Left/right dividers */
.rbw-qty-stepper .rbw-qty-minus {
    border-right: 1px solid #d0d0d0;
}

.rbw-qty-stepper .rbw-qty-plus {
    border-left: 1px solid #d0d0d0;
}

/* The number input inside the stepper */
.rbw-qty-stepper .rbw-qty-input {
    border: none;
    border-radius: 0;
    text-align: center;
    font-size: 15px;
    width: 54px;
    padding: 0;
    -moz-appearance: textfield;
    appearance: textfield;
    background: #fff;
    color: #333;
    box-shadow: none;
}

/* Hide browser spinner arrows */
.rbw-qty-stepper .rbw-qty-input::-webkit-outer-spin-button,
.rbw-qty-stepper .rbw-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.rbw-qty-stepper .rbw-qty-input:focus {
    outline: none;
    background: #fafafa;
}

/* Over-stock state */
.rbw-qty-stepper .rbw-qty-input.rbw-qty-over-stock {
    color: #c62828;
    background: #fff5f5;
}

/* Disabled (out of stock) state */
.rbw-qty-stepper.rbw-qty-disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Align stepper to right side of warehouse row */
.rbw-warehouse-row {
    justify-content: space-between;
}

/* Hide native browser spinner arrows from stepper input */
.rbw-qty-stepper .rbw-qty-input::-webkit-outer-spin-button,
.rbw-qty-stepper .rbw-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

.rbw-qty-stepper .rbw-qty-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.woocommerce-order-received .woocommerce-order-details .wc-item-meta {
    padding-left: 0;
}

.woocommerce-orders .woocommerce-orders-table__row td {
    vertical-align: middle;
}

/* ── Inventory rows inside loop cards (shop/search) ─────────────────── */

.rbw-inventory-loop {
    padding: 8px 0 4px;
    border-top: 1px solid #f0f0f0;
    margin-top: 8px;
}

/* Independent cart */

.rbw-split-checkout-wrap {
    margin-top: 200px;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
}

.rbw-inventory-loop .rbw-warehouse-row {
    padding: 6px 10px;
    margin-bottom: 6px;
    background: #f9f9f9;
    border-radius: 3px;
}

.rbw-inventory-loop .rbw-warehouse-label {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px;
    color: #333;
}

.rbw-split-checkout-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 18px;
}

.rbw-inventory-loop .rbw-stock-badge {
    font-size: 11px;
    padding: 1px 6px;
}

.rbw-warehouse-checkout-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    gap: 12px;
}

.rbw-inventory-loop .rbw-qty-stepper {
    height: 34px;
    min-width: 96px;
}

.rbw-warehouse-checkout-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rbw-inventory-loop .rbw-qty-stepper button {
    padding: 0 10px;
}

.rbw-warehouse-checkout-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.rbw-inventory-loop .rbw-qty-input {
    width: 40px;
}

.rbw-warehouse-checkout-meta {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.rbw-loop-add-to-cart {
    width: 100%;
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
}
.rbw-warehouse-checkout-meta strong {
    color: #333;
}

.rbw-loop-qty-error {
    font-size: 12px;
    margin: 4px 0 0;
}
.rbw-checkout-warehouse-btn {
    white-space: nowrap;
    min-width: 180px;
    text-align: center;
}

.af_inven_heading {
    font-size: 16px;
}
.rbw-checkout-warehouse-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.rbw-split-cart-error {
    margin-bottom: 14px;
    padding: 10px 14px;
    font-size: 13px;
}

body button.rbw-loop-add-to-cart {
    display: inline-block;
    padding: 12px 28px;
    border: 2px solid #ff4d4d !important;
    color: #ff4d4d !important;
    background-color: transparent !important;;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

body button.rbw-loop-add-to-cart:hover {
    background-color: #c99999 !important;;
    color: #fff !important;;
    border-color: #ef0000 !important;;
}

@media ( max-width: 576px ) {
    .rbw-warehouse-checkout-group {
        flex-direction: column;
        align-items: flex-start;
    }
    .rbw-checkout-warehouse-btn {
        width: 100%;
    }
}

@media ( max-width: 768px ) {
    .rbw-split-checkout-wrap {
        margin-top: 20px;
    }
}

.woocommerce-cart-form__cart-item .variation-InventorySKU,
.woocommerce-mini-cart-item .variation-InventorySKU {
    display: none;
}
