/**
 * Final filled-cart corrections against the hydrated WooCommerce 10.9.4 DOM.
 *
 * commerce-fidelity.css owns the layout; this layer only overrides the few
 * places where WooCommerce's own stylesheet ships a higher-specificity default
 * (or leaves a node behind) that the layout cannot reach on its own.
 */

/* Storefront adds viewport margins to .col-full below 66em; the cart uses the
   shared page frame instead. */
.woocommerce-cart #content > .col-full {
	margin-right: auto !important;
	margin-left: auto !important;
}

/* Woo keeps the serialized empty-cart inner block mounted on this page and only
   hides it once its JavaScript runs. The body class is also set in PHP, so the
   hide is deterministic — no leftover container and no flash before hydration. */
.woocommerce-cart.eth-cart-has-items .wp-block-woocommerce-empty-cart-block {
	display: none !important;
}

/* The totals component exposes this heading although the design uses our kicker. */
.woocommerce-cart .wc-block-cart__totals-title {
	display: none !important;
}

/* WooCommerce draws border-top and generous padding on every cart cell and a
   border-bottom on the table itself; all of them surface as stray lines inside
   the white card. */
.woocommerce-cart .wc-block-cart-items td,
.woocommerce-cart .wc-block-cart-items th {
	padding: 0 !important;
	border-top: 0 !important;
}
.woocommerce-cart .wc-block-cart__main .wc-block-cart-items,
.woocommerce-cart .wc-block-cart-items:not(.wc-block-mini-cart-items):not(:last-child) .wc-block-cart-items__row {
	border-bottom: 0 !important;
}
/* Keep a separator only *between* multiple items. */
.woocommerce-cart .wc-block-cart__main .wc-block-cart-items__row + .wc-block-cart-items__row {
	border-top: 1px solid var(--eth-line) !important;
}

/* Woo hides the remove control inside .wc-block-cart (it exposes a text link
   instead) and resets buttons hard; both have to be undone for the circled x. */
.woocommerce-cart .wc-block-cart-items__row .wc-block-cart-item__remove-link {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 26px !important;
	height: 26px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--eth-line) !important;
	border-radius: 50% !important;
	background: var(--eth-bg-alt) !important;
}

/* Storefront underlines content links; the design's link is plain. */
.woocommerce-cart a.eth-continue,
.woocommerce-cart a.eth-continue:hover,
.woocommerce-cart a.eth-continue:focus {
	text-decoration: none !important;
}

/* On narrow screens Woo re-parents the checkout button into a fixed bar pinned
   to the bottom of the viewport. The design keeps it inside the summary card,
   so the sticky variant is flattened back into the flow — hiding it would take
   the only checkout button on mobile with it. */
.woocommerce-cart .wc-block-cart .wc-block-cart__submit-container--sticky {
	position: static !important;
	width: 100% !important;
	padding: 0 !important;
	background: none !important;
	box-shadow: none !important;
}
.woocommerce-cart .wc-block-cart .wc-block-cart__submit-container--sticky::before {
	display: none !important;
}
