/**
 * Side Cart WooCommerce — line-item quantity stepper.
 * Paired with inc/airx-side-cart-qty.php + inc/js/airx-side-cart-qty.js.
 */

.airx-wsc-qty {
	display: inline-flex;
	align-items: center;
	margin-top: 8px;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	/* Keep the control as  −  [n]  +  even on the RTL store. */
	direction: ltr;
	/* The side cart's summary column is a flex container, which would stretch
	   this box to full width — hug the buttons + input instead. */
	width: -moz-fit-content;
	width: fit-content;
	max-width: 100%;
	align-self: flex-start;
}

.airx-wsc-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	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-wsc-qty-btn:hover,
.airx-wsc-qty-btn:focus {
	background: #e8e8e8;
	outline: none;
}

.airx-wsc-qty-input {
	width: 40px;
	height: 28px;
	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;
}

.airx-wsc-qty-input:focus {
	outline: none;
}

.airx-wsc-qty-input::-webkit-outer-spin-button,
.airx-wsc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Dim the stepper while a cart update is in flight. */
.xoo-wsc-loading .airx-wsc-qty {
	opacity: 0.6;
	pointer-events: none;
}
