.shc4wc-wallet-express-blocks-mount {
	display: none;
}

.shc4wc-wallet-express-blocks-mount .shc4wc-wallet-express::before {
	display: none;
}

.shc4wc-wallet-express {
	clear: both;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 12px;
	margin: 0 auto 16px;
	max-width: 510px;
	width: 100%;
}

/* Classic cart: full width in totals column with space below Proceed to Checkout. */
body.woocommerce-cart .cart_totals .shc4wc-wallet-express[data-context="cart"],
body.woocommerce-cart .wc-block-cart .shc4wc-wallet-express[data-context="cart"] {
	max-width: none;
	width: 100%;
	margin-left: 0;
	margin-right: 0;
}

.wc-proceed-to-checkout .shc4wc-wallet-express[data-context="cart"],
.cart_totals .wc-proceed-to-checkout + .shc4wc-wallet-express[data-context="cart"],
.wc-proceed-to-checkout + .shc4wc-wallet-express[data-context="cart"] {
	margin-top: 1.5rem;
}

.wc-block-cart__submit-container + .shc4wc-wallet-express[data-context="cart"],
.wc-block-cart__submit-button + .shc4wc-wallet-express[data-context="cart"] {
	margin-top: 12px;
	max-width: none;
	width: 100%;
}

/*
 * Product page: match WooCommerce Square #wc-square-digital-wallet
 * (padding-top: 1.5em; margin: 0 auto) with full-width buttons below Add to Cart.
 */
.shc4wc-wallet-express[data-context="product"] {
	display: flex;
	flex-direction: column;
	flex: 0 0 100%;
	align-self: stretch;
	clear: both;
	gap: 0;
	margin: 0 auto 16px;
	max-width: none;
	padding-top: 1.5em;
	width: 100%;
}

.shc4wc-wallet-express[data-context="product"] .shc4wc-wallet-express-button {
	flex: none;
	height: 40px;
	margin: 0 0 1em;
	min-height: 40px;
}

.shc4wc-wallet-express[data-context="product"] .shc4wc-wallet-express-button:last-child {
	margin-bottom: 0;
}

form.cart .shc4wc-wallet-express[data-context="product"],
.woocommerce-variation-add-to-cart .shc4wc-wallet-express[data-context="product"] {
	flex: 0 0 100%;
	order: 99;
	width: 100%;
}

.shc4wc-wallet-express[data-context="cart"]:not(.is-primary),
.shc4wc-wallet-express[data-context="checkout"]:not(.is-primary) {
	display: none;
}

.shc4wc-wallet-express-button,
.shc4wc-wallet-button-container {
	flex: 1 1 100%;
	font-size: 0;
	line-height: 0;
	min-height: 44px;
	min-width: 0;
	width: 100%;
}

.shc4wc-wallet-express-button .shc4wc-apple-pay-notice {
	font-size: 13px;
	line-height: 1.45;
}

.shc4wc-wallet-express-button button {
	width: 100% !important;
	min-height: 40px;
}

.shc4wc-wallet-express-divider {
	flex: 1 1 100%;
	font-size: 13px;
	line-height: normal;
	margin: 1em 0 0;
	text-align: center;
	color: #666;
}

.shc4wc-wallet-express.is-empty {
	display: none;
}

.shc4wc-wallet-express .shc4wc-apple-pay-notice {
	width: 100%;
	margin: 0;
}

.shc4wc-wallet-express-button.is-hidden {
	display: none;
}
