/**
 * /cart/ page — line-item quantity stepper.
 * Paired with inc/airx-cart-page-qty.php + inc/js/airx-cart-page-qty.js.
 * Scoped to the cart table so it never touches the product-page quantity
 * selector, which renders through the same woocommerce_quantity_input()
 * template function but outside .woocommerce-cart-form.
 */

.woocommerce-cart-form .quantity {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	/* Keep the control as  −  [n]  +  even on the RTL store. */
	direction: ltr;
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
}

.airx-cart-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 32px;
	padding: 0;
	border: 0;
	margin: 0;
	background: #f5f5f5;
	color: #333;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background 0.15s ease;
}

.airx-cart-qty-btn:hover,
.airx-cart-qty-btn:focus {
	background: #e8e8e8;
	outline: none;
}

.woocommerce-cart-form .quantity .qty {
	width: 44px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: 0;
	border-left: 1px solid #e5e5e5;
	border-right: 1px solid #e5e5e5;
	text-align: center;
	font-size: 14px;
	color: #222;
	background: #fff;
	box-shadow: none;
	-moz-appearance: textfield;
}

.woocommerce-cart-form .quantity .qty:focus {
	outline: none;
}

.woocommerce-cart-form .quantity .qty::-webkit-outer-spin-button,
.woocommerce-cart-form .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Dim the stepper while a cart update is in flight (mirrors WooCommerce's
   own .processing state on the cart form/table during an AJAX update). */
.woocommerce-cart-form.processing .quantity,
.woocommerce-cart-form table.cart.processing .quantity {
	opacity: 0.6;
	pointer-events: none;
}
