/* Card Buy Now (includes/class-card-buy-now.php).
 *
 * Sizing mirrors the theme's card "Add to cart" rule (child style.css,
 * `li.product .add_to_cart_button`). The link deliberately has no `.button`
 * class: on product pages `.woocommerce a.button` gives buy-box sizing to every
 * a.button, which made the card Buy Now bigger than Add to cart there.
 * Specificity stays at 0,2,1 so the theme's phone rule
 * (`li.wc-block-product .wc-block-components-product-button .wp-block-button__link`,
 * max-width 600px) still shrinks it exactly like Add to cart.
 */
li.product .km-card-buy-now {
	border: 1.5px solid #1c1108 !important;
	border-radius: 0 !important;
	font-family: Manrope, sans-serif !important;
	font-size: 0.65rem !important;
	letter-spacing: 2px !important;
	text-transform: uppercase !important;
	font-weight: 600 !important;
	padding: 10px 20px !important;
	margin: 0 16px 16px 16px !important;
	display: block !important;
	text-align: center !important;
	transition: background 0.3s, color 0.3s, border-color 0.3s !important;
	width: calc(100% - 32px) !important;
	box-sizing: border-box !important;
	box-shadow: none !important;
	white-space: normal !important;
	overflow: visible !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
}

/* The block wrapper is a flex column with a 12px gap, so Add to cart needs no
 * bottom margin of its own when Buy Now follows it. */
li.product .km-has-buy-now .wc-block-components-product-button__button {
	margin-bottom: 0 !important;
}

li.product .km-has-buy-now .km-card-buy-now {
	background: #1c1108 !important;
	color: #fff !important;
}
li.product .km-has-buy-now .km-card-buy-now:hover,
li.product .km-has-buy-now .km-card-buy-now:focus-visible {
	background: #c4956a !important;
	border-color: #c4956a !important;
	color: #fff !important;
}
