/* Module: add-to-cart-row — quantity stepper and buy button share one 48px row */

.single-product .summary {
	--g4c-buy-height: 48px;
}

/* Simple products: the form itself; variable products: the inner row */
.single-product .summary form.cart:not(.variations_form):not(.grouped_form),
.single-product .summary .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

/* Theme clearfix pseudo-elements would become empty flex items and add a stray gap at the edge */
.single-product .summary form.cart:not(.variations_form):not(.grouped_form)::before,
.single-product .summary form.cart:not(.variations_form):not(.grouped_form)::after,
.single-product .summary .woocommerce-variation-add-to-cart::before,
.single-product .summary .woocommerce-variation-add-to-cart::after {
	display: none;
}

.single-product .summary form.cart .quantity {
	display: flex;
	flex: none;
	height: var(--g4c-buy-height);
	margin: 0 !important;
}

.single-product .summary form.cart .quantity .minus,
.single-product .summary form.cart .quantity .plus {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: var(--g4c-buy-height);
	line-height: 1;
	font-size: 16px;
}

/* 16px keeps iOS from zooming into the field */
.single-product .summary form.cart .quantity input.qty {
	width: 44px;
	height: var(--g4c-buy-height);
	font-size: 16px;
}

.single-product .summary form.cart .single_add_to_cart_button {
	display: inline-flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	height: var(--g4c-buy-height);
	min-height: var(--g4c-buy-height);
	margin: 0 !important;
	padding: 0 16px;
	white-space: nowrap;
	line-height: 1;
}
