/**
 * Счётчик количества — как .product-card__qty / .qty в /test
 * Работает с Woodmart: .minus / .plus + input.qty
 */

.filtek-qty.quantity,
.quantity.filtek-qty {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	width: 120px;
	height: 48px;
	padding: 0 16px;
	margin: 0;
	background: #eef1f5;
	border-radius: 12px;
	--wd-form-height: 48px;
	white-space: nowrap;
	vertical-align: middle;
	gap: 0;
	box-shadow: none;
}

.filtek-qty.quantity .minus,
.filtek-qty.quantity .plus,
.filtek-qty.quantity .qty__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	min-width: 28px;
	min-height: 28px;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	color: #8b96a6 !important;
	cursor: pointer;
	transition: color 0.15s ease;
}

.filtek-qty.quantity .minus:hover,
.filtek-qty.quantity .plus:hover,
.filtek-qty.quantity .qty__btn:hover {
	color: #1a1a1a !important;
	background: transparent !important;
	border-color: transparent !important;
}

.filtek-qty.quantity input.qty,
.filtek-qty.quantity input.qty__value,
.filtek-qty.quantity input[type="number"],
.filtek-qty.quantity input[type="text"] {
	flex: 0 1 auto;
	width: 36px !important;
	min-width: 20px;
	max-width: 48px;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	color: #8b96a6;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

.filtek-qty.quantity.hidden {
	display: none !important;
}

/* Checkout / корзина — в строке товара */
.wd-checkout-prod-cont .filtek-qty.quantity,
.woocommerce-cart-form .filtek-qty.quantity,
.woocommerce-mini-cart .filtek-qty.quantity {
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.filtek-qty.quantity,
	.quantity.filtek-qty {
		width: 108px;
		height: 44px;
		padding: 0 14px;
	}
}
