/* ==========================================================================
   Technoor — Single Product: boxed quantity selector
   Sits at the start of the CTA row (.tz-sp-cta-block), before Add to Cart
   and Buy Now. Scoped to `.tz-sp-cta-block form.cart .quantity` so it never
   touches header/footer, cart-page, or checkout quantity fields.
   ========================================================================== */

/* Wrapper: bold "Quantity:" label + the three boxes, all inline */
html body .tz-sp-cta-block form.cart .quantity {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	flex: 0 0 auto;
}

.tz-sp-cta-block form.cart .quantity::before {
	content: "Quantity:";
	font-weight: 700;
	font-size: 14px;
	color: #1a1a2e;
	margin-right: 2px;
	white-space: nowrap;
}

/* number field + minus/plus — separate bordered boxes, square corners */
.tz-sp-cta-block form.cart .quantity .qty,
.tz-sp-cta-block form.cart .quantity .minus,
.tz-sp-cta-block form.cart .quantity .plus {
	-webkit-appearance: none;
	appearance: none;
	width: 38px;
	height: 42px;
	min-width: 38px;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #d8dbe3 !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: none !important;
	color: #1a1a2e;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-sizing: border-box !important;
	transition: border-color .18s ease, color .18s ease;
}

.tz-sp-cta-block form.cart .quantity .qty {
	cursor: text;
	-moz-appearance: textfield;
}
.tz-sp-cta-block form.cart .quantity .qty::-webkit-outer-spin-button,
.tz-sp-cta-block form.cart .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.tz-sp-cta-block form.cart .quantity .qty:focus {
	outline: none;
	border-color: #1a1a2e !important;
}

.tz-sp-cta-block form.cart .quantity .minus:hover,
.tz-sp-cta-block form.cart .quantity .plus:hover {
	border-color: #EA191F !important;
	color: #EA191F;
}
.tz-sp-cta-block form.cart .quantity .minus:active,
.tz-sp-cta-block form.cart .quantity .plus:active {
	transform: scale(.94);
}

/* Out-of-stock variation: grey out + disable the whole selector */
.tz-sp-cta-block form.cart .quantity.tz-qty-disabled {
	opacity: 0.45;
	filter: grayscale(60%);
	pointer-events: none;
}
.tz-sp-cta-block form.cart .quantity.tz-qty-disabled .qty,
.tz-sp-cta-block form.cart .quantity.tz-qty-disabled .minus,
.tz-sp-cta-block form.cart .quantity.tz-qty-disabled .plus {
	cursor: not-allowed;
}

/* small screens: let the row wrap without squashing the boxes */
@media (max-width: 480px) {
	.tz-sp-cta-block form.cart .quantity {
		width: 100%;
		justify-content: flex-start;
		margin-bottom: 8px !important;
	}
}
