.fcsu-cart-page .site-main {
	padding-block: var(--fc-space-4) var(--fc-space-6);
}

.fcsu-cart-page .content-entry {
	max-width: none;
}

/*
 * The page header — breadcrumb, ADR-010 H1, intro card and the rule that
 * closes it — comes from the shared `.fcsu-page-header` primitive in app.css.
 * The cart adds nothing of its own; that is what keeps it and the checkout on
 * one rhythm.
 */

/* Classic WooCommerce cart. */
.fcsu-cart--classic .content-entry__content > .woocommerce {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.75fr);
	gap: var(--fc-space-3);
	align-items: start;
}

.fcsu-cart--classic .woocommerce > :not(.woocommerce-cart-form):not(.cart-collaterals) {
	grid-column: 1 / -1;
}

.fcsu-cart-page .woocommerce-cart-form,
.fcsu-cart-page .cart-collaterals .cart_totals,
.fcsu-cart-page .wc-block-cart-items,
.fcsu-cart-page .wc-block-components-sidebar {
	border: 1px solid var(--fc-border);
	border-radius: var(--fc-radius-lg);
	background: var(--fc-surface);
}

.fcsu-cart-page .woocommerce-cart-form {
	grid-column: 1;
	min-width: 0;
	padding: var(--fc-space-2);
}

.fcsu-cart-page .cart-collaterals {
	grid-column: 2;
	width: auto;
}

.fcsu-cart-page .cart-collaterals .cart_totals {
	position: sticky;
	top: calc(var(--fc-header-height) + var(--fc-space-2));
	float: none;
	width: auto;
	padding: var(--fc-space-3);
}

.fcsu-cart-page .cart-collaterals .cart_totals h2,
.fcsu-cart-page .wc-block-cart__totals-title {
	margin: 0 0 var(--fc-space-2);
	color: var(--fc-text);
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.fcsu-cart-page table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 0;
}

.fcsu-cart-page table.shop_table th,
.fcsu-cart-page table.shop_table td {
	padding: 1rem 0.75rem;
	border: 0;
	border-bottom: 1px solid var(--fc-border);
	vertical-align: middle;
}

.fcsu-cart-page table.shop_table thead th {
	padding-top: 0.5rem;
	color: var(--fc-text-muted);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.fcsu-cart-page table.shop_table tbody tr:last-child td,
.fcsu-cart-page table.shop_table tr.order-total th,
.fcsu-cart-page table.shop_table tr.order-total td {
	border-bottom: 0;
}

.fcsu-cart-page td.product-thumbnail {
	width: 6.25rem;
}

.fcsu-cart-page td.product-thumbnail img {
	display: block;
	width: 5.25rem;
	aspect-ratio: 1;
	border-radius: var(--fc-radius-md);
	object-fit: contain;
	background: var(--fc-background);
}

.fcsu-cart-page td.product-name a,
.fcsu-cart-page .wc-block-components-product-name {
	color: var(--fc-text);
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.fcsu-cart-page td.product-name a:hover,
.fcsu-cart-page td.product-name a:focus-visible,
.fcsu-cart-page .wc-block-components-product-name:hover,
.fcsu-cart-page .wc-block-components-product-name:focus-visible {
	color: var(--fc-brand-primary);
}

.fcsu-cart-page .variation,
.fcsu-cart-page .wc-block-components-product-details {
	display: grid;
	gap: 0.25rem;
	margin-top: 0.5rem;
	color: var(--fc-text-muted);
	font-size: 0.875rem;
}

.fcsu-cart-page .variation dt,
.fcsu-cart-page .variation dd,
.fcsu-cart-page .wc-block-components-product-details li {
	margin: 0;
}

.fcsu-cart-page .variation dt,
.fcsu-cart-page td.product-price,
.fcsu-cart-page td.product-subtotal,
.fcsu-cart-page .wc-block-components-product-price,
.fcsu-cart-page .wc-block-components-product-badge {
	color: var(--fc-text);
	font-weight: 700;
}

.fcsu-cart-page .product-remove a.remove,
.fcsu-cart-page .wc-block-cart-item__remove-link {
	display: inline-grid;
	min-width: 2.75rem;
	min-height: 2.75rem;
	place-items: center;
	border: 1px solid var(--fc-border);
	border-radius: var(--fc-radius-pill);
	color: var(--fc-danger) !important;
	background: var(--fc-surface);
	font-size: 1.25rem;
	line-height: 1;
	text-decoration: none;
}

.fcsu-cart-page .product-remove a.remove:hover,
.fcsu-cart-page .product-remove a.remove:focus-visible,
.fcsu-cart-page .wc-block-cart-item__remove-link:hover,
.fcsu-cart-page .wc-block-cart-item__remove-link:focus-visible {
	border-color: var(--fc-danger);
	background: var(--fc-background);
}

.fcsu-cart-page .quantity,
.fcsu-cart-page .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	border: 1px solid var(--fc-border);
	border-radius: var(--fc-radius-pill);
	background: var(--fc-surface);
	overflow: hidden;
}

.fcsu-cart-page .quantity input.qty,
.fcsu-cart-page .wc-block-components-quantity-selector input {
	width: 3rem;
	min-height: 2.75rem;
	padding: 0.25rem;
	border: 0;
	color: var(--fc-text);
	background: transparent;
	font: inherit;
	font-weight: 700;
	text-align: center;
	appearance: textfield;
}

.fcsu-cart-page .quantity input.qty::-webkit-inner-spin-button,
.fcsu-cart-page .quantity input.qty::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
}

.fcsu-cart-quantity__button {
	width: 2.75rem;
	min-width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	color: var(--fc-brand-primary);
	background: transparent;
	font-size: 1.25rem;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.fcsu-cart-quantity__button:hover,
.fcsu-cart-quantity__button:focus-visible {
	background: var(--fc-background);
}

.fcsu-cart-quantity__button:disabled {
	color: var(--fc-text-muted);
	cursor: not-allowed;
	opacity: 0.45;
}

.fcsu-cart-page .actions {
	padding: 1rem 0.75rem 0.25rem !important;
}

.fcsu-cart-page .actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fc-space-1);
}

.fcsu-cart-page .actions .coupon label {
	width: 100%;
	color: var(--fc-text);
	font-weight: 700;
}

/*
 * Coupon field — ADR-011 adapter.
 *
 * The Cart Block stays outside the forms.css generic layer (its controls carry
 * their own behaviour), so the global contract is applied here through the
 * shared tokens rather than restated. Both the classic `.input-text` and the
 * Block input are matched with the same :not() guards WooCommerce uses, and
 * with a `body.` prefix, so the adapter outranks WooCommerce's own control
 * rules without reaching for !important.
 */
body.fcsu-cart-page .actions .coupon input.input-text,
body.fcsu-cart-page .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]) {
	min-height: var(--fc-field-height);
	padding: 0.75rem 1rem;
	border: 1px solid var(--fc-field-border);
	border-radius: var(--fc-field-radius);
	color: var(--fc-field-text);
	background-color: var(--fc-field-surface);
	box-shadow: none;
	outline: 0;
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

body.fcsu-cart-page .actions .coupon input.input-text:hover,
body.fcsu-cart-page .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]):hover {
	border-color: var(--fc-field-border-hover);
}

/* One visible focus treatment: copper border plus its own ring. */
body.fcsu-cart-page .actions .coupon input.input-text:is(:focus, :focus-visible),
body.fcsu-cart-page .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]):is(:focus, :focus-visible) {
	border-color: var(--fc-field-accent);
	box-shadow: 0 0 0 2px var(--fc-field-ring);
	outline: 0;
}

body.fcsu-cart-page .actions .coupon input.input-text:is([aria-invalid="true"], .has-error),
body.fcsu-cart-page .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]):is([aria-invalid="true"], .has-error) {
	border-color: var(--fc-field-danger);
}

body.fcsu-cart-page .actions .coupon input.input-text:is([aria-invalid="true"], .has-error):is(:focus, :focus-visible),
body.fcsu-cart-page .wc-block-components-text-input input:not([type="checkbox"]):not([type="radio"]):is([aria-invalid="true"], .has-error):is(:focus, :focus-visible) {
	border-color: var(--fc-field-danger);
	box-shadow: 0 0 0 2px var(--fc-field-ring-danger);
	outline: 0;
}

.fcsu-cart-page .button,
.fcsu-cart-page button.button,
.fcsu-cart-page .checkout-button,
.fcsu-cart-page .wc-block-components-button {
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--fc-brand-primary);
	border-radius: var(--fc-radius-pill);
	color: var(--fc-surface) !important;
	background: var(--fc-brand-primary) !important;
	font: inherit;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}

.fcsu-cart-page .button:hover,
.fcsu-cart-page .button:focus-visible,
.fcsu-cart-page .checkout-button:hover,
.fcsu-cart-page .checkout-button:focus-visible,
.fcsu-cart-page .wc-block-components-button:hover,
.fcsu-cart-page .wc-block-components-button:focus-visible {
	border-color: var(--fc-brand-secondary);
	background: var(--fc-brand-secondary) !important;
}

.fcsu-cart-page .button:disabled,
.fcsu-cart-page button.button:disabled,
.fcsu-cart-page button.button:disabled[disabled] {
	border-color: var(--fc-border);
	color: var(--fc-text-muted) !important;
	background: var(--fc-background) !important;
	cursor: not-allowed;
	opacity: 1;
}

.fcsu-cart-page .wc-proceed-to-checkout {
	padding: var(--fc-space-2) 0 0;
}

.fcsu-cart-page .wc-proceed-to-checkout .checkout-button,
.fcsu-cart-page .wc-block-cart__submit-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
}

.fcsu-cart-page .cart_totals table.shop_table th,
.fcsu-cart-page .cart_totals table.shop_table td {
	padding-inline: 0;
}

.fcsu-cart-page .cart_totals table.shop_table td {
	text-align: right;
}

.fcsu-cart-page .cart_totals .order-total,
.fcsu-cart-page .wc-block-components-totals-footer-item {
	font-size: 1.125rem;
}

.fcsu-cart-page .woocommerce-shipping-methods {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fcsu-cart-page .woocommerce-shipping-methods li + li {
	margin-top: 0.5rem;
}

/* WooCommerce Cart Block. */
.fcsu-cart-page .wp-block-woocommerce-cart {
	margin: 0;
}

.fcsu-cart-page .wc-block-components-sidebar-layout {
	gap: var(--fc-space-3);
}

.fcsu-cart-page .wc-block-components-main {
	padding-right: 0;
}

.fcsu-cart-page .wc-block-cart-items {
	padding: var(--fc-space-2);
}

.fcsu-cart-page .wc-block-components-sidebar {
	padding: var(--fc-space-3);
}

.fcsu-cart-page .wc-block-cart-items__row {
	padding-block: var(--fc-space-2);
	border-bottom: 1px solid var(--fc-border);
}

.fcsu-cart-page .wc-block-cart-items__row:last-child {
	border-bottom: 0;
}

.fcsu-cart-page .wc-block-cart-item__image img {
	border-radius: var(--fc-radius-md);
	object-fit: contain;
	background: var(--fc-background);
}

.fcsu-cart-page .wc-block-components-sidebar-layout .wc-block-cart__submit-container {
	padding: 0;
}

.fcsu-cart--empty .content-entry__content > .woocommerce,
.fcsu-cart-page .wp-block-woocommerce-empty-cart-block {
	display: block;
	padding: clamp(1.5rem, 5vw, 4rem);
	border: 1px solid var(--fc-border);
	border-radius: var(--fc-radius-lg);
	background: var(--fc-surface);
	text-align: center;
}

.fcsu-cart-page .wc-block-cart__empty-cart__title,
.fcsu-cart-page .cart-empty {
	margin: 0 0 var(--fc-space-2);
	color: var(--fc-text);
	font-size: clamp(1.3rem, 3vw, 2rem);
}

.fcsu-cart-page .return-to-shop {
	margin: var(--fc-space-3) 0 0;
}

/*
 * Links, buttons, the native toggles and the quantity stepper. The coupon
 * field is deliberately absent: it carries its own single copper ring from the
 * adapter above, and a blanket `input` here painted a ring inside a ring.
 */
.fcsu-cart-page :where(a, button, input[type="checkbox"], input[type="radio"], input[type="number"]):focus-visible {
	outline: 2px solid var(--fc-brand-accent);
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.fcsu-cart--classic .content-entry__content > .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	.fcsu-cart-page .woocommerce-cart-form,
	.fcsu-cart-page .cart-collaterals {
		grid-column: 1;
	}

	.fcsu-cart-page .cart-collaterals .cart_totals {
		position: static;
	}

	.fcsu-cart-page .wc-block-components-sidebar-layout {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 700px) {
	.fcsu-cart-page .site-main {
		padding-block: var(--fc-space-3) var(--fc-space-5);
	}

	.fcsu-cart-page .woocommerce-cart-form,
	.fcsu-cart-page .cart-collaterals .cart_totals,
	.fcsu-cart-page .wc-block-cart-items,
	.fcsu-cart-page .wc-block-components-sidebar {
		border-radius: var(--fc-radius-md);
	}

	.fcsu-cart-page .woocommerce-cart-form {
		padding: 0.75rem;
	}

	.fcsu-cart-page table.shop_table thead {
		display: none;
	}

	.fcsu-cart-page table.shop_table tbody,
	.fcsu-cart-page table.shop_table tr.cart_item,
	.fcsu-cart-page table.shop_table td {
		display: block;
		width: 100%;
	}

	.fcsu-cart-page table.shop_table tr.cart_item {
		display: grid;
		grid-template-columns: 4.75rem minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"quantity quantity subtotal";
		gap: 0.75rem 1rem;
		padding-block: 1rem;
		border-bottom: 1px solid var(--fc-border);
	}

	.fcsu-cart-page table.shop_table tr.cart_item td {
		padding: 0;
		border: 0;
	}

	.fcsu-cart-page td.product-thumbnail {
		grid-area: thumb;
	}

	.fcsu-cart-page td.product-thumbnail img {
		width: 4.75rem;
	}

	.fcsu-cart-page td.product-name {
		grid-area: name;
	}

	.fcsu-cart-page td.product-remove {
		grid-area: remove;
	}

	.fcsu-cart-page td.product-price {
		grid-area: price;
	}

	.fcsu-cart-page td.product-quantity {
		grid-area: quantity;
	}

	.fcsu-cart-page td.product-subtotal {
		grid-area: subtotal;
		align-self: center;
		text-align: right;
	}

	.fcsu-cart-page td.product-price::before,
	.fcsu-cart-page td.product-subtotal::before {
		margin-right: 0.35rem;
		color: var(--fc-text-muted);
		font-size: 0.75rem;
		font-weight: 700;
		text-transform: uppercase;
	}

	.fcsu-cart-page .actions {
		display: grid !important;
		gap: var(--fc-space-2);
		padding: var(--fc-space-2) 0 0 !important;
	}

	.fcsu-cart-page .actions .coupon {
		float: none;
	}

	.fcsu-cart-page .actions .coupon .input-text,
	.fcsu-cart-page .actions .coupon .button,
	.fcsu-cart-page .actions > .button {
		width: 100% !important;
	}

	.fcsu-cart-page .wc-block-cart-items__row {
		grid-template-columns: 4.75rem minmax(0, 1fr);
	}
}

@media (max-width: 420px) {
	.fcsu-cart-page table.shop_table tr.cart_item {
		grid-template-columns: 4rem minmax(0, 1fr) 2.75rem;
		gap: 0.65rem 0.75rem;
	}

	.fcsu-cart-page td.product-thumbnail img {
		width: 4rem;
	}

	.fcsu-cart-page .quantity input.qty,
	.fcsu-cart-page .wc-block-components-quantity-selector input {
		width: 2.5rem;
	}
}
