.afiltro-checkout-row {
	display: none;
	box-sizing: border-box;
	clear: both;
	flex: 0 0 100%;
	width: 100%;
	margin-top: 12px !important;
	margin-bottom: 12px !important;
}

.afiltro-checkout-row.is-visible {
	display: block;
}

.afiltro-checkout-button,
.afiltro-checkout-button:visited {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: var(--afiltro-cart-button-height, 48px);
	padding: 0 18px;
	border: 0;
	border-radius: var(--afiltro-cart-button-radius, 0);
	background: #4f7f00;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}

.afiltro-checkout-button:hover,
.afiltro-checkout-button:focus {
	background: #456f00;
	color: #fff;
	text-decoration: none;
	filter: none;
}

.afiltro-checkout-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.single-product form.cart {
	flex-wrap: wrap;
	row-gap: 0 !important;
}

/*
 * Fixed and equal vertical spacing.
 * We use explicit margins on our row because Apple Pay / Google Pay may be
 * rendered outside form.cart or inside a separate wrapper.
 */
.single-product .afiltro-checkout-row {
	margin-top: 12px !important;
	margin-bottom: 12px !important;
}

/* Prevent payment wrappers from cancelling the 12px gap below our button. */
.single-product .afiltro-checkout-row + *,
.single-product .afiltro-checkout-row ~ .wcpay-express-checkout-wrapper,
.single-product .afiltro-checkout-row ~ .wc-block-components-express-payment,
.single-product .afiltro-checkout-row ~ .ppcp-button-wrapper,
.single-product .afiltro-checkout-row ~ [class*="express-checkout"],
.single-product .afiltro-checkout-row ~ [class*="express-payment"] {
	margin-top: 0 !important;
}

/* Prevent the Add to cart button/theme margins from doubling the upper gap. */
.single-product form.cart .single_add_to_cart_button {
	margin-bottom: 0 !important;
}

@media (max-width: 767px) {
	/* Same 12px gap between quantity and Add to cart on mobile. */
	.single-product form.cart .quantity {
		margin-bottom: 12px !important;
	}

	.single-product form.cart .single_add_to_cart_button {
		margin-top: 0 !important;
		margin-bottom: 0 !important;
	}

	.single-product .afiltro-checkout-row {
		margin-left: 0 !important;
		width: 100% !important;
		margin-top: 12px !important;
		margin-bottom: 12px !important;
	}
}
