/* QA-002 staging acceptance polish: presentation-only spacing fixes. */

/*
 * Pending/failed orders can expose WooCommerce Pay + Cancel actions again.
 * Keep the actions visually distinct without changing their hrefs or behavior.
 */
body.fcsu-order-received-page .woocommerce-order .button + .button {
	margin-inline-start: var(--fc-space-1);
}

/*
 * Cart summary subtotal: the live cart is WooCommerce Blocks, not the classic
 * cart table. Keep the classic fallback, but give the block subtotal the same
 * breathing room below the divider above it.
 */
body.fcsu-cart-page .cart-collaterals .cart_totals table.shop_table tr.cart-subtotal th,
body.fcsu-cart-page .cart-collaterals .cart_totals table.shop_table tr.cart-subtotal td {
	padding-top: 1rem;
}

body.fcsu-cart-page .wp-block-woocommerce-cart-order-summary-subtotal-block,
body.fcsu-cart-page .wc-block-components-sidebar .wp-block-woocommerce-cart-order-summary-subtotal-block {
	padding-top: 0.8rem !important;
}

body.fcsu-cart-page .wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item {
	padding-top: 0 !important;
}

/*
 * Checkout coupon toggle: WooCommerce leaves an extra gap after the product
 * summary divider, which makes the row sit low between its two hairlines.
 * Pull only the coupon row upward so its visual centre matches the separators.
 */
body.fcsu-checkout-page .wc-block-components-totals-coupon {
	padding-block: 0.35rem !important;
	transform: translateY(-0.25rem);
}

body.fcsu-checkout-page .wc-block-components-totals-coupon .wc-block-components-panel__button {
	display: flex;
	min-height: 2rem;
	align-items: center;
	line-height: 1.35;
}

@media (max-width: 480px) {
	body.fcsu-order-received-page .woocommerce-order .button + .button {
		margin-top: var(--fc-space-1);
		margin-inline-start: 0;
	}
}
