/* Quantity stepper: [ - ] [ 6 ] [ + ] — one style for every quantity field */
body .quantity-choser:has(> .quantity-less) {
	display: flex;
	align-items: stretch;
	width: 104px;
	height: 40px;
	padding: 0;
	border: 1px solid #ececec;
	border-radius: 0;
	overflow: hidden;
	background: #fff;
}

body .quantity-choser:has(> .quantity-less) .quantity-less,
body .quantity-choser:has(> .quantity-less) .quantity-more {
	position: static;
	flex: 0 0 32px;
	width: 32px;
	height: auto;
	margin: 0;
	transform: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
	transition: background-color .15s ease;
}

body .quantity-choser:has(> .quantity-less) .quantity-less {
	border-right: 1px solid #f1f1f1;
}

body .quantity-choser:has(> .quantity-less) .quantity-more {
	border-left: 1px solid #f1f1f1;
}

body .quantity-choser:has(> .quantity-less) .quantity-less:hover,
body .quantity-choser:has(> .quantity-less) .quantity-more:hover {
	background-color: #f7f7f7;
}

body .quantity-choser:has(> .quantity-less) .quantity-less:active,
body .quantity-choser:has(> .quantity-less) .quantity-more:active {
	background-color: #efefef;
}

/* the minus and plus signs (drawn with gradients so they are always centred) */
body .quantity-choser:has(> .quantity-less) .quantity-less {
	background-image: linear-gradient(#000, #000);
	background-size: 12px 2px;
	background-position: center;
	background-repeat: no-repeat;
}

body .quantity-choser:has(> .quantity-less) .quantity-more {
	background-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
	background-size: 12px 2px, 2px 12px;
	background-position: center, center;
	background-repeat: no-repeat;
}

/* minus is dimmed when the quantity can't go lower */
body .quantity-choser:has(> .quantity-less) .quantity-less.disabled,
body .quantity-choser:has(> .quantity-less):has(.qty-number[value="1"]) .quantity-less,
body .quantity-choser:has(> .quantity-less):has(.qty-number[value="0"]) .quantity-less {
	background-image: linear-gradient(#b5b5b5, #b5b5b5);
	cursor: default;
}

body .quantity-choser:has(> .quantity-less) input.qty-number {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	text-indent: 0;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #000;
	-moz-appearance: textfield;
	appearance: textfield;
}

body .quantity-choser:has(> .quantity-less) input.qty-number:focus {
	outline: none;
	background: #fafafa;
}

body .quantity-choser:has(> .quantity-less):focus-within {
	border-color: #000;
}

/* the old 1-10 dropdown for phones is no longer needed */
body .quantity-choser:has(> .quantity-less) .mobile-quantity_input {
	display: none !important;
}

/* single product page */
body .product-content_holder .quantity-choser:has(> .quantity-less) {
	width: 112px;
	height: 44px;
}

body .product-content_holder .qty-wrap .quantity-choser:has(> .quantity-less) input.qty-number {
	text-indent: 0;
}

body .product-content_holder .add-to-cart {
	width: calc(100% - 120px);
}

/* cart / checkout rows: keep them compact */
body .cart-item .quantity-choser:has(> .quantity-less) {
	width: 96px;
	height: 36px;
	padding: 0;
}

body .cart-item .quantity-choser:has(> .quantity-less) .quantity-less,
body .cart-item .quantity-choser:has(> .quantity-less) .quantity-more {
	flex-basis: 28px;
	width: 28px;
	height: auto;
}

body .cart-item .quantity-choser:has(> .quantity-less) input.qty-number {
	width: auto;
	height: auto;
	font-size: 14px;
	line-height: 1;
}

/* gift add-ons in checkout */
body .checkout-gifts_addons .checkout-product .quantity-choser:has(> .quantity-less) {
	width: 96px;
}

/* cart: the native number field sits inside a .quantity wrapper */
body .quantity-choser:has(> .quantity-less) > .quantity {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
}

body .quantity-choser:has(> .quantity-less) input.qty-number::-webkit-inner-spin-button,
body .quantity-choser:has(> .quantity-less) input.qty-number::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
