/* Checkout quantity controls — Health Chart palette (#488070 / #F0901E). */

/* WooCommerce still prints its static "× N" next to the product name, and some
   builders inject a second control. Both are redundant once ours is present. */
.woocommerce-checkout-review-order-table .cart_item .product-name strong.product-quantity,
.woocommerce-checkout-review-order-table .cart_item .product-name .cq-row,
.wcf-embed-checkout-form .cart_item .product-name strong.product-quantity,
.wcf-embed-checkout-form .cart_item .product-name .cq-row {
	display: none !important;
}

/* Third-party language switcher is a distraction on a payment page. */
body.woocommerce-checkout .trp-floating-switcher {
	display: none !important;
}

.hc-qty {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin-block-start: 10px;
	padding: 4px;
	border: 1px solid rgba(72, 128, 112, .22);
	border-radius: 999px;
	background: #fff;
	white-space: nowrap;
	vertical-align: middle;
}

.hc-qty.is-busy {
	opacity: .5;
	pointer-events: none;
}

/* High specificity so theme/builder button rules cannot repaint these. */
.hc-qty .hc-qty__btn,
.woocommerce .hc-qty .hc-qty__btn,
.wcf-embed-checkout-form .hc-qty .hc-qty__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 30px !important;
	min-width: 30px !important;
	height: 30px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid rgba(72, 128, 112, .3) !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #2C5548 !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-transform: none !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.hc-qty .hc-qty__btn:hover {
	background: rgba(72, 128, 112, .1) !important;
	border-color: #488070 !important;
}

.hc-qty .hc-qty__btn:focus-visible,
.hc-qty .hc-qty__remove:focus-visible {
	outline: 2px solid #F0901E;
	outline-offset: 2px;
}

.hc-qty .hc-qty__value {
	min-width: 26px;
	text-align: center;
	font-weight: 700;
	font-size: 15px;
	color: #10231C;
	font-variant-numeric: tabular-nums;
}

.hc-qty .hc-qty__remove,
.woocommerce .hc-qty .hc-qty__remove,
.wcf-embed-checkout-form .hc-qty .hc-qty__remove {
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	margin: 0 4px 0 2px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: #9A3B3B !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 1 !important;
	text-transform: none !important;
	text-decoration: underline;
	box-shadow: none !important;
	cursor: pointer;
}

.hc-qty .hc-qty__remove:hover {
	color: #7A2E2E !important;
}

/* Give the product cell room so the control never collides with the price. */
.woocommerce-checkout-review-order-table .cart_item .product-name {
	line-height: 1.6;
}

@media (max-width: 640px) {
	.hc-qty {
		margin-block-start: 8px;
	}
}
