/**
 * AwesGO Qty Stepper
 * Large touch-friendly +/- buttons around quantity inputs.
 */

.awg-qty-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #d9dde1;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	vertical-align: middle;
	height: 44px;
	line-height: 1;
}

.awg-qty-stepper .awg-qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: #f5f7f5;
	color: #1B884A;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	user-select: none;
	transition: background .15s ease;
	-webkit-tap-highlight-color: transparent;
}

.awg-qty-stepper .awg-qty-btn:hover,
.awg-qty-stepper .awg-qty-btn:focus-visible {
	background: #e4eee7;
	outline: none;
}

.awg-qty-stepper .awg-qty-btn:active {
	background: #d6e5d9;
}

.awg-qty-stepper input.qty,
.awg-qty-stepper input[type="number"] {
	width: 56px;
	min-width: 56px;
	max-width: 72px;
	height: 44px;
	padding: 0;
	border: 0;
	border-left: 1px solid #d9dde1;
	border-right: 1px solid #d9dde1;
	background: #fff;
	color: #1c1c1c;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

/* Mobile: slightly bigger for thumb reach */
@media (max-width: 640px) {
	.awg-qty-stepper { height: 48px; }
	.awg-qty-stepper .awg-qty-btn {
		width: 48px;
		height: 48px;
		font-size: 22px;
	}
	.awg-qty-stepper input.qty,
	.awg-qty-stepper input[type="number"] {
		width: 60px;
		height: 48px;
		font-size: 17px;
	}
}

/* Cart page: make qty cell accommodate the stepper */
.woocommerce-cart-form .product-quantity,
.woocommerce-cart table.shop_table td.product-quantity {
	min-width: 180px;
}

/* Hide default WC qty styling that might leak through */
.woocommerce .quantity .qty {
	margin: 0;
}
