/* Esenzia B2B – frontend styles */

/* Match B2B terms checkbox font size to the theme's privacy policy checkbox (14px). */
#b2b_terms_field label.checkbox {
	font-size: 14px;
	font-weight: 400;
	color: #414141;
	line-height: 1.5;
}

#b2b_terms_field label.checkbox a {
	color: #111111;
}

/* Cooldown notice: full-width row above quantity + button.
   Use :has() to only activate wrapping when notice is actually present. */
@media (min-width: 768px) {
	.single-product__cart-form .woocommerce-variation-add-to-cart:has(.b2b-cooldown-notice) {
		flex-wrap: wrap;
	}

	/* Notice takes its own full-width row. */
	.single-product__cart-form .woocommerce-variation-add-to-cart:has(.b2b-cooldown-notice) .b2b-cooldown-notice {
		flex: 0 0 100%;
		order: -1;
		margin-bottom: 0;
	}

	/* Fix button width so it stays in the same row as quantity (not wrapping alone). */
	.single-product__cart-form .woocommerce-variation-add-to-cart:has(.b2b-cooldown-notice) .single_add_to_cart_button {
		width: auto;
	}
}

/* Mobile: notice renders first naturally via order (column direction). */
@media (max-width: 767px) {
	.single-product__cart-form .b2b-cooldown-notice {
		order: -1;
		margin-bottom: 0;
	}
}

/* Spacing around the date inside the cooldown notice. */
.b2b-cooldown-notice strong {
	margin: 0 4px;
}
