/*
 * FirstChoice cart presentation
 * Scoped to WooCommerce cart only.
 * Visual direction: HTFW-inspired two-column basket with warm neutral cards,
 * burgundy primary actions and compact quantity controls.
 */

body.woocommerce-cart {
	--fc-cart-ink: #242124;
	--fc-cart-muted: #6f6a67;
	--fc-cart-border: #ded8d2;
	--fc-cart-soft: #f7f4ef;
	--fc-cart-soft-2: #fbfaf8;
	--fc-cart-burgundy: #7a1f2b;
	--fc-cart-burgundy-dark: #651821;
	--fc-cart-gold: #b18a56;
	--fc-cart-radius: 8px;
	background: #fff;
}

body.woocommerce-cart .site-content {
	background: #fff;
}

body.woocommerce-cart .site-content > .col-full {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
	box-sizing: border-box;
}

body.woocommerce-cart .content-area {
	width: 100% !important;
	float: none !important;
	margin-right: 0 !important;
}

body.woocommerce-cart .widget-area {
	display: none !important;
}

body.woocommerce-cart .hentry {
	margin-bottom: 48px;
}

body.woocommerce-cart .entry-header {
	margin: 0 0 28px !important;
	padding: 0 !important;
	border: 0 !important;
}

body.woocommerce-cart .entry-title {
	color: var(--fc-cart-ink);
	font-size: clamp(30px, 3vw, 42px);
	line-height: 1.08;
	font-weight: 600;
	letter-spacing: -0.025em;
	margin: 0;
}

body.woocommerce-cart .entry-content {
	font-size: 16px;
}

body.woocommerce-cart .entry-content > .wp-block-woocommerce-cart {
	margin-top: 0;
}

/* HTFW-like two-column cart */
body.woocommerce-cart .wc-block-cart {
	display: grid !important;
	grid-template-columns: minmax(0, 1.85fr) minmax(320px, .9fr);
	gap: 34px;
	align-items: start;
	margin: 0;
}

body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

body.woocommerce-cart .wc-block-cart__main {
	padding: 0 !important;
	min-width: 0;
}

body.woocommerce-cart .wc-block-cart__sidebar {
	padding: 22px !important;
	border: 1px solid var(--fc-cart-border);
	border-radius: var(--fc-cart-radius);
	background: var(--fc-cart-soft-2);
	box-shadow: none;
	position: sticky;
	top: 24px;
}

/* Basket table */
body.woocommerce-cart table.wc-block-cart-items {
	margin: 0;
	border: 0;
	border-collapse: collapse;
	background: transparent;
}

body.woocommerce-cart table.wc-block-cart-items thead {
	border: 0;
}

body.woocommerce-cart table.wc-block-cart-items thead th {
	padding: 0 0 12px;
	border: 0;
	color: var(--fc-cart-muted);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	background: transparent;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
	border-top: 1px solid var(--fc-cart-border);
	border-bottom: 0;
	background: #fff;
}

body.woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row:last-child {
	border-bottom: 1px solid var(--fc-cart-border);
}

body.woocommerce-cart table.wc-block-cart-items td {
	padding-top: 24px !important;
	padding-bottom: 24px !important;
	background: #fff !important;
	vertical-align: middle;
}

body.woocommerce-cart .wc-block-cart-item__image {
	width: 118px;
	padding-left: 0 !important;
	padding-right: 20px !important;
}

body.woocommerce-cart .wc-block-cart-item__image img {
	width: 96px !important;
	height: 132px !important;
	object-fit: contain;
	object-position: center;
	margin: 0 auto;
	border-radius: 0;
	background: #fff;
}

body.woocommerce-cart .wc-block-cart-item__product {
	padding-left: 0 !important;
}

body.woocommerce-cart .wc-block-components-product-name {
	color: var(--fc-cart-ink);
	font-size: 17px;
	line-height: 1.38;
	font-weight: 650;
	text-decoration: none !important;
	margin-bottom: 7px;
}

body.woocommerce-cart .wc-block-components-product-name:hover {
	color: var(--fc-cart-burgundy);
}

body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-metadata p,
body.woocommerce-cart .wc-block-components-product-details {
	color: var(--fc-cart-muted);
	font-size: 13px;
	line-height: 1.5;
	margin-bottom: 6px;
}

body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-components-product-price {
	color: var(--fc-cart-ink);
	font-weight: 650;
}

/* Quantity selector */
body.woocommerce-cart .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: stretch;
	min-width: 116px;
	height: 44px;
	border: 1px solid var(--fc-cart-border) !important;
	border-radius: 7px !important;
	background: #fff;
	box-shadow: none !important;
	overflow: hidden;
}

body.woocommerce-cart .wc-block-components-quantity-selector::after {
	display: none !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	width: 42px !important;
	min-width: 42px !important;
	padding: 0 !important;
	border: 0 !important;
	border-left: 1px solid var(--fc-cart-border) !important;
	border-right: 1px solid var(--fc-cart-border) !important;
	background: #fff !important;
	color: var(--fc-cart-ink);
	font-size: 14px;
	font-weight: 600;
	box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector button {
	width: 36px !important;
	min-width: 36px !important;
	height: 42px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: #fff !important;
	color: var(--fc-cart-ink) !important;
	font-size: 19px;
	font-weight: 400;
	box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-quantity-selector button:hover {
	background: var(--fc-cart-soft) !important;
	color: var(--fc-cart-burgundy) !important;
}

body.woocommerce-cart .wc-block-cart-item__remove-link {
	margin-top: 10px;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	color: #8a817d !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.woocommerce-cart .wc-block-cart-item__remove-link:hover {
	color: var(--fc-cart-burgundy) !important;
}

body.woocommerce-cart .wc-block-cart-item__total {
	color: var(--fc-cart-ink);
	font-size: 17px;
	font-weight: 700;
	white-space: nowrap;
}

/* Order summary sidebar */
body.woocommerce-cart .wc-block-cart__totals-title {
	margin: 0 0 16px !important;
	padding: 0 0 14px !important;
	border-bottom: 1px solid var(--fc-cart-border);
	color: var(--fc-cart-ink);
	font-size: 21px !important;
	font-weight: 650 !important;
	letter-spacing: -.015em;
	text-align: left !important;
	text-transform: none !important;
}

body.woocommerce-cart .wc-block-components-totals-wrapper {
	padding: 14px 0 !important;
	border-top: 1px solid var(--fc-cart-border) !important;
}

body.woocommerce-cart .wc-block-components-totals-wrapper:first-of-type {
	border-top: 0 !important;
}

body.woocommerce-cart .wc-block-components-totals-item {
	padding: 0 !important;
}

body.woocommerce-cart .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-item__value {
	color: var(--fc-cart-ink);
	font-size: 14px;
}

body.woocommerce-cart .wc-block-components-totals-item__value {
	font-weight: 700;
}

body.woocommerce-cart .wc-block-components-totals-footer-item {
	padding-top: 16px !important;
}

body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 18px;
	font-weight: 750;
}

/* Coupon */
body.woocommerce-cart .wc-block-components-totals-coupon {
	margin: 0;
}

body.woocommerce-cart .wc-block-components-totals-coupon__button {
	color: var(--fc-cart-burgundy) !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.woocommerce-cart .wc-block-components-totals-coupon__form {
	gap: 8px;
}

body.woocommerce-cart .wc-block-components-text-input input {
	min-height: 46px;
	padding: 12px 13px !important;
	border: 1px solid var(--fc-cart-border) !important;
	border-radius: 6px !important;
	background: #fff !important;
	box-shadow: none !important;
}

body.woocommerce-cart .wc-block-components-totals-coupon__form button {
	min-height: 46px;
	border: 1px solid var(--fc-cart-burgundy) !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: var(--fc-cart-burgundy) !important;
	font-weight: 700;
}

/* Shipping / delivery area */
body.woocommerce-cart .wc-block-components-totals-shipping,
body.woocommerce-cart .wc-block-components-shipping-rates-control {
	color: var(--fc-cart-ink);
}

body.woocommerce-cart .wc-block-components-totals-shipping .wc-block-components-totals-item__description {
	margin-top: 7px;
	color: var(--fc-cart-muted);
	font-size: 12px;
	line-height: 1.5;
}

body.woocommerce-cart .wc-block-components-shipping-calculator {
	margin-top: 10px;
}

body.woocommerce-cart .wc-block-components-shipping-calculator-address__button {
	color: var(--fc-cart-burgundy) !important;
	font-weight: 700;
}

/* Checkout action */
body.woocommerce-cart .wc-block-cart__submit-container {
	margin-top: 18px;
	padding: 0 !important;
	background: transparent !important;
}

body.woocommerce-cart .wc-block-cart__submit-container::before {
	display: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button.components-button,
body.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button {
	min-height: 54px;
	width: 100%;
	border: 1px solid var(--fc-cart-burgundy) !important;
	border-radius: 6px !important;
	background: var(--fc-cart-burgundy) !important;
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	letter-spacing: .035em;
	text-transform: uppercase;
	box-shadow: none !important;
}

body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .wc-block-cart__submit-button:focus {
	background: var(--fc-cart-burgundy-dark) !important;
	border-color: var(--fc-cart-burgundy-dark) !important;
	color: #fff !important;
}

/* Express payment blocks stay visually separate */
body.woocommerce-cart .wc-block-components-express-payment {
	margin-top: 12px;
}

/* Empty cart */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
	max-width: 760px;
	margin: 30px auto 70px;
	text-align: center;
}

body.woocommerce-cart .wc-block-cart__empty-cart__title {
	color: var(--fc-cart-ink);
	font-size: 28px;
	font-weight: 650;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wp-block-button__link {
	border-radius: 6px;
	background: var(--fc-cart-burgundy);
	color: #fff;
	font-weight: 700;
}

/* Legacy WooCommerce cart fallback */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart_totals {
	border: 1px solid var(--fc-cart-border);
	border-radius: var(--fc-cart-radius);
	background: #fff;
}

body.woocommerce-cart .cart_totals {
	padding: 22px;
	background: var(--fc-cart-soft-2);
}

body.woocommerce-cart .checkout-button {
	border-radius: 6px !important;
	background: var(--fc-cart-burgundy) !important;
	color: #fff !important;
	font-weight: 800 !important;
	text-transform: uppercase;
}

/* Tablet */
@media (max-width: 960px) {
	body.woocommerce-cart .wc-block-cart {
		grid-template-columns: 1fr !important;
		gap: 26px;
	}

	body.woocommerce-cart .wc-block-cart__sidebar {
		position: static;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		width: 100px;
	}

	body.woocommerce-cart .wc-block-cart-item__image img {
		width: 78px !important;
		height: 112px !important;
	}
}

/* Mobile */
@media (max-width: 600px) {
	body.woocommerce-cart .site-content > .col-full {
		padding-left: 15px;
		padding-right: 15px;
	}

	body.woocommerce-cart .entry-header {
		margin-bottom: 18px !important;
	}

	body.woocommerce-cart .entry-title {
		font-size: 30px;
	}

	body.woocommerce-cart .wc-block-cart {
		gap: 20px;
	}

	body.woocommerce-cart .wc-block-cart__sidebar {
		padding: 18px !important;
		border-radius: 6px;
	}

	body.woocommerce-cart table.wc-block-cart-items td {
		padding-top: 18px !important;
		padding-bottom: 18px !important;
	}

	body.woocommerce-cart .wc-block-cart-item__image {
		width: 78px;
		padding-right: 12px !important;
	}

	body.woocommerce-cart .wc-block-cart-item__image img {
		width: 64px !important;
		height: 92px !important;
	}

	body.woocommerce-cart .wc-block-components-product-name {
		font-size: 15px;
	}

	body.woocommerce-cart .wc-block-cart-item__total {
		font-size: 15px;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector {
		min-width: 104px;
		height: 40px;
	}

	body.woocommerce-cart .wc-block-components-quantity-selector button {
		width: 32px !important;
		min-width: 32px !important;
		height: 38px !important;
	}
}
