/* Force quantity inputs to be visible */
.woocommerce table.cart td.product-quantity .quantity {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.woocommerce table.cart td.product-quantity .quantity input[type="number"],
.woocommerce table.cart td.product-quantity .quantity .qty {
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    appearance: none !important;
    width: 60px !important;
    height: 40px !important;
    border: 2px solid #27ae60 !important;
    border-radius: 4px !important;
    text-align: center !important;
    font-size: 16px !important;
    font-weight: bold !important;
    color: #333 !important;
    background-color: white !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Style quantity spinner buttons */
.woocommerce table.cart td.product-quantity .quantity input[type="number"]::-webkit-inner-spin-button,
.woocommerce table.cart td.product-quantity .quantity input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* Quantity buttons */
.woocommerce table.cart td.product-quantity .quantity .minus,
.woocommerce table.cart td.product-quantity .quantity .plus {
    width: 40px !important;
    height: 40px !important;
    background-color: #27ae60 !important;
    color: white !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    border-radius: 4px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce table.cart td.product-quantity .quantity .minus:hover,
.woocommerce table.cart td.product-quantity .quantity .plus:hover {
    background-color: #219a52 !important;
}

/* Coupon field fixes */
.woocommerce table.cart td.actions .coupon {
    float: left !important;
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
}

.woocommerce table.cart td.actions .coupon #coupon_code {
    width: 250px !important;
    padding: 12px 15px !important;
    border: 2px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    height: auto !important;
}

.woocommerce table.cart td.actions .coupon .button {
    padding: 12px 25px !important;
    background-color: #f39c12 !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    height: auto !important;
}

.woocommerce table.cart td.actions .coupon .button:hover {
    background-color: #e67e22 !important;
}

/* Update cart button */
.woocommerce table.cart td.actions .button[name="update_cart"] {
    float: right !important;
    background-color: #3498db !important;
    color: white !important;
    padding: 12px 25px !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
}

.woocommerce table.cart td.actions .button[name="update_cart"]:hover:not(:disabled) {
    background-color: #2980b9 !important;
}

.woocommerce table.cart td.actions .button[name="update_cart"]:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .woocommerce table.cart td.actions .coupon {
        float: none !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }
    
    .woocommerce table.cart td.actions .coupon #coupon_code {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
    
    .woocommerce table.cart td.actions .button[name="update_cart"] {
        float: none !important;
        width: 100% !important;
    }
}
