/* Classic quantity input with plus/minus buttons (markup in lib/quantity-buttons.php, JS in script.js) */
.quantity:has(.qty-btn) {
	display: inline-flex;
	align-items: stretch;
	gap: .5ch;
	border: 2px solid var(--e-global-color-primary);
	border-radius: 2.5rem;
	overflow: hidden;
}
.quantity .qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
	flex: 0 0 auto;
	width: 2.5rem;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	color: var(--e-global-color-primary);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}
.quantity .qty-btn:hover,
.quantity .qty-btn:focus-visible {
	background-color: var(--e-global-color-primary);
	color: var(--e-global-color-26cdbf7);
}
.quantity:has(.qty-btn) input.qty {
	width: 4ch;
	padding: 5px 0;
	border: none;
	border-radius: 0;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.quantity:has(.qty-btn) input.qty::-webkit-outer-spin-button,
.quantity:has(.qty-btn) input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
/* Only 1 in stock/sold individually: WC renders a hidden input; hide the empty wrapper too */
.quantity:has(input.qty[type="hidden"]) {
	display: none !important;
}
