
div.quantity {
	--wd-form-height: 42px;
	display: inline-flex;
	vertical-align: top;
	white-space: nowrap;
}

div.quantity input[type=number]::-webkit-inner-spin-button, div.quantity input[type=number]::-webkit-outer-spin-button, div.quantity input[type=number] {
	margin: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

div.quantity input[type=number] {
	width: 30px;
	height: unset;
	min-height: var(--wd-form-height);
	border-inline: none;
	border-radius: 0;
}

div.quantity input[type=text] {
	width: var(--quantity-space, 80px);
	height: unset;
	min-height: var(--wd-form-height);
	text-align: center;
}

div.quantity .btn {
	--btn-color: var(--wd-form-color, var(--wd-text-color));
	--btn-color-hover: #fff;
	--btn-bgcolor: var(--wd-form-bg);
	--btn-bgcolor-hover: var(--wd-primary-color);
	--btn-brd-color-hover: var(--wd-primary-color);
	--btn-height: var(--wd-form-height);
	--btn-padding: 0 5px;
	--btn-box-shadow: none;
	min-width: 25px;
	border: var(--wd-form-brd-width) solid var(--wd-form-brd-color);
}

div.quantity .minus {
	border-start-start-radius: var(--wd-form-brd-radius);
	border-end-start-radius: var(--wd-form-brd-radius);
}

div.quantity .plus {
	border-start-end-radius: var(--wd-form-brd-radius);
	border-end-end-radius: var(--wd-form-brd-radius);
}

div.quantity.hidden {
	display: none !important;
}

.form-style-underlined div.quantity input[type=number] {
	border-top-style: solid;
}

@-moz-document url-prefix() {
	div.quantity input[type=number] {
		-webkit-appearance: textfield;
		-moz-appearance: textfield;
		appearance: textfield;
	}
}
