/**
 * Cart and checkout.
 *
 * WooCommerce ships both blocks aligned wide, which here is the full width of
 * the footer. A form is read and filled in, so it gets a narrower column. The
 * class is repeated because the theme sets the width of `alignwide` itself.
 */

.woocommerce-page .wp-site-blocks .content-container .wp-block-woocommerce-cart.alignwide,
.woocommerce-page .wp-site-blocks .content-container .wp-block-woocommerce-checkout.alignwide {
	/*
	 * The theme pins `alignwide` to the wide width with both `width` and
	 * `max-width`, from a selector carrying three classes, so both have to be
	 * overridden from a longer one. `min()` keeps it inside its parent on a
	 * narrow screen, where the wide width no longer applies.
	 */
	width: min(var(--miudinho-cart-width, 1100px), 100%);
	max-width: var(--miudinho-cart-width, 1100px);
	margin-right: auto;
	margin-left: auto;
}

/**
 * Headings in the body face. The display serif is for the shop's own voice —
 * the page title, the category, the product — not for the labels of a form.
 */
.wp-block-woocommerce-cart :is(h1, h2, h3, h4),
.wp-block-woocommerce-checkout :is(h1, h2, h3, h4),
.wp-block-woocommerce-cart .wc-block-components-title,
.wp-block-woocommerce-checkout .wc-block-components-title {
	font-family: var(--global-body-font-family, inherit);
}
