/* Cart Fixes */

/* 1. Remove Button */
.woocommerce-cart-form a.remove {
    display: inline-flex !important; /* Override standard block/square */
    width: auto !important;
    height: auto !important;
    line-height: inherit !important;
    text-align: left !important;
    border-radius: 0 !important;
    color: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.woocommerce-cart-form a.remove:hover {
    background: transparent !important;
    color: var(--danger-600, #dc3545) !important; /* Use theme variable if available or fallback */
}
.woocommerce-cart-form a.remove .ph {
    font-size: 24px;
}

/* 2. Cart Totals */
/* Ensure the text doesn't wrap awkwardly by preventing flex shrink on labels */
.cart_totals .font-heading-two {
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.cart_totals .flex-between {
    flex-wrap: nowrap !important; /* Prevent wrapping of the row itself if desired, or let it wrap safely */
    gap: 16px; /* Ensure gap */
}
/* Ensure the value aligns right */
.cart_totals .fw-semibold {
    text-align: right;
}

/* 3. Table Layout */
/* Override WC shop_table styles that might be enforcing widths */
.shop_table.cart th, .shop_table.cart td {
    border-top: none !important; /* Clean borders */
}
.shop_table.cart th {
    padding: 16px 24px !important; 
}
.shop_table.cart td {
    padding: 24px !important;
    vertical-align: middle !important;
}

/* Fix product thumbnail width in table */
.shop_table.cart .product-name .table-product__thumb {
    width: 80px;
    height: 80px;
    padding: 5px;
}
.shop_table.cart .product-name .table-product__thumb img {
    max-width: 100%;
    height: auto;
}

/* 4. Update Cart Button Alignment */
.woocommerce-cart-form .actions .coupon {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
/* Override WC default actions alignment if necessary */
table.cart td.actions {
    text-align: left !important;
}
/* Media queries for responsiveness */
@media (max-width: 768px) {
    .woocommerce-cart-form .actions .coupon {
        flex-direction: column;
        gap: 16px;
    }
}
