/* Buy It Now: quantity on its own row, then Add to cart + Buy It Now side by side.
   Grid (not flex) so the two buttons always split the row evenly regardless of the
   theme's min-width:200px on .single_add_to_cart_button. !important everywhere because
   the theme stylesheet is concatenated by Autoptimize and wins the cascade otherwise. */
body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
body.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) {
	display: grid !important;
	grid-template-columns: 1fr 1fr !important;
	gap: 10px !important;
	align-items: center !important;
}
body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart > .quantity,
body.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) > .quantity {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: 130px !important;
	margin: 0 !important;
}
body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart > .single_add_to_cart_button,
body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart > .vso-buy-now,
body.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) > .single_add_to_cart_button,
body.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) > .vso-buy-now {
	grid-column: auto !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding-left: 10px !important;
	padding-right: 10px !important;
	white-space: nowrap !important;
}
body.woocommerce div.product form.cart .vso-buy-now {
	background: #0084ff !important;
	border: 1px solid #0084ff !important;
	color: #fff !important;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 500;
	min-height: 45px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}
body.woocommerce div.product form.cart .vso-buy-now:hover,
body.woocommerce div.product form.cart .vso-buy-now:focus {
	background: #0073e0 !important;
	border-color: #0073e0 !important;
	color: #fff !important;
}
body.woocommerce div.product form.cart .vso-buy-now:disabled,
body.woocommerce div.product form.cart .vso-buy-now.loading {
	opacity: .55;
	cursor: not-allowed;
}
/* Hidden WooCommerce inputs must not consume a grid cell. */
body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart > input[type="hidden"],
body.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) > input[type="hidden"] {
	display: none !important;
}
@media (max-width: 767px) {
	body.woocommerce div.product form.cart .woocommerce-variation-add-to-cart,
	body.woocommerce div.product form.cart:not(.variations_form):not(.grouped_form) {
		grid-template-columns: 1fr !important;
	}
}

/* 2026-10-14: Barn2 WooCommerce Product Options (WPO) injects .wpo-options-container,
   .wpo-totals-container and .wpo-total-qty-hint into the same form.cart. The 2-column
   grid above only fits the quantity / add-to-cart / buy-now row, so those three
   containers were being squeezed into a half column (titles, flavour dropdowns and
   the running total wrapped, and the two buttons landed in the wrong rows).
   Give them the full row; the quantity row and the two buttons keep the grid. */
body.woocommerce div.product form.cart > .wpo-options-container,
body.woocommerce div.product form.cart > .wpo-totals-container,
body.woocommerce div.product form.cart > .wpo-total-qty-hint {
	grid-column: 1 / -1 !important;
	width: 100% !important;
	max-width: none !important;
}
