/**
 * Cart page styles for custom checkout products
 */

/* Fix cursor for quantity +/- buttons */
.quantity .ast-qty-placeholder.plus,
.quantity .ast-qty-placeholder.minus {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* Ensure buttons are interactive */
.quantity .ast-qty-placeholder {
    cursor: pointer !important;
}

/* Cart totals customization */

/* Enable flexbox on cart totals to reorder rows */
.cart_totals .shop_table tbody,
.woocommerce-checkout-review-order-table tbody {
    display: flex;
    flex-direction: column;
}

/* Set display order for cart totals rows */
.wcso-cart-original-price {
    order: 1;
}

.wcso-cart-savings {
    order: 2;
}

.cart-subtotal {
    order: 3;
}

.woocommerce-shipping-totals {
    order: 4;
}

tr.shipping {
    order: 4;
}

.order-total {
    order: 5;
}

/* Original price styling - smaller text */
.wcso-cart-original-price th,
.wcso-cart-original-price td {
    font-size: 0.9em;
    font-weight: normal;
}

/* Savings styling - bold green */
.wcso-cart-savings .wcso-savings-amount {
    color: #28a745;
    font-weight: bold;
}

.wcso-cart-savings th {
    font-weight: normal;
}

.wcso-cart-savings td {
    font-size: 1em;
}

/* Ensure table rows display properly with flexbox */
.cart_totals .shop_table tbody tr,
.woocommerce-checkout-review-order-table tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}
