/**
 * ZYMARG OS — WooCommerce: Cart
 * -----------------------------------------------------------------------------
 * Cart page table, the live cart count fragment, and a couple of cart-specific
 * tweaks layered on top of the generic off-canvas drawer (ui/drawer.css). The
 * cart drawer markup uses .zymarg-drawer + the .zymarg-cart-drawer modifier.
 */

/* ---- Cart page ------------------------------------------------------- */
.woocommerce table.shop_table {
	border-radius: var(--zymarg-radius);
	border-color: var(--color-outline-variant);
}

.woocommerce table.shop_table th {
	font-family: var(--zymarg-font-heading);
	color: var(--color-on-primary-fixed);
}

.woocommerce .cart-collaterals .cart_totals h2 {
	color: var(--color-on-primary-fixed);
}

.woocommerce .cart_totals .order-total .amount {
	color: var(--color-primary);
}

/* ---- Cart count badge ------------------------------------------------ */
.zymarg-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.4em;
	height: 1.4em;
	padding: 0 0.4em;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--color-on-primary);
	background: var(--color-primary);
	border-radius: 999px;
}

/* ---- Cart-specific tweaks on the generic drawer ---------------------- *
 * The drawer shell (slide-in, overlay, head, close) comes from ui/drawer.css.
 * Here we only add the mini-cart total styling for the cart instance.         */
.zymarg-cart-drawer .woocommerce-mini-cart__total {
	border-top: 1px solid var(--color-outline-variant);
	padding-top: var(--zymarg-space-sm);
	color: var(--color-on-primary-fixed);
}
