/* ==========================================================================
   CART — Pulse CI (layout 7642)
   Dark title bar + compact table; #212121 / gold on light ground.
   ========================================================================== */

body.woocommerce-cart,
body.woocommerce-cart .pulse-cart {
	--pulse-ink: #212121;
	--pulse-gold: #b89d6b;
	--pulse-text: #3b3f44;
	--pulse-muted: #6b7280;
	--pulse-line: #e6e0d6;
	--pulse-bg: #faf8f5;
	--pulse-card: #ffffff;
}

body.woocommerce-cart .wd-page-content {
	background: var(--pulse-bg, #faf8f5);
}

body.woocommerce-cart .wd-content-layout,
body.woocommerce-cart .content-layout-wrapper {
	padding-top: 0 !important;
}

/* WoodMart shortens every pulse-cart-* blockId to .wd-pulse-ca, so border/padding/
   margin/font-size from one block leak onto the title, notices, table, totals and carousel. */
body.woocommerce-cart.wd .wd-pulse-ca {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	font-size: 14px !important;
}

body.woocommerce-cart .wd-page-title-el,
body.woocommerce-cart.wd .wd-page-title-el.wd-pulse-ca {
	margin: 0 0 32px !important;
	padding: 0 !important;
	border: 0 !important;
}

body.woocommerce-cart.wd .wd-wc-notices.wd-pulse-ca {
	margin: 0 0 16px !important;
}

body.woocommerce-cart.wd .wd-cart-table.wd-pulse-ca {
	background: #fff;
	border: 1px solid var(--pulse-line, #e6e0d6) !important;
	overflow-x: auto;
}

body.woocommerce-cart.wd .wd-cart-table.wd-pulse-ca table.shop_table {
	margin: 0 !important;
	border: 0 !important;
}

body.woocommerce-cart.wd .pulse-cart-products.wd-pulse-ca {
	margin-top: 48px !important;
}

body.woocommerce-cart .wd-page-title,
body.woocommerce-cart .wd-page-title.color-scheme-light {
	background: #212121 !important;
	background-color: #212121 !important;
	background-image: none !important;
	border: 0 !important;
	color: #fff !important;
	text-align: center !important;
	padding: 22px 16px !important;
}

body.woocommerce-cart .wd-page-title .entry-title,
body.woocommerce-cart .wd-page-title .title {
	display: none !important; /* steps are the title; hide duplicate Cart h1 if present */
}

body.woocommerce-cart .pulse-cart {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px 48px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.45;
	color: var(--pulse-text, #3b3f44);
}

body.woocommerce-cart .wd-pulse-cart-row,
body.woocommerce-cart .pulse-cart .wp-block-wd-row {
	align-items: start;
	gap: 24px;
}

@media (min-width: 1025px) {
	body.woocommerce-cart .wd-pulse-cart-row > .wd-pulse-cart-main {
		flex: 1 1 auto !important;
		min-width: 0 !important;
	}

	body.woocommerce-cart .wd-pulse-cart-row > .wd-pulse-cart-aside {
		flex: 0 0 380px !important;
		width: 380px !important;
		max-width: 380px !important;
		min-width: 0 !important;
	}
}

/* Stack cart + totals below desktop — WoodMart was keeping 50/50 at ~900px */
@media (max-width: 1024px) {
	body.woocommerce-cart .wd-pulse-cart-row,
	body.woocommerce-cart .pulse-cart .wp-block-wd-row {
		display: flex !important;
		flex-direction: column !important;
		flex-wrap: nowrap !important;
	}

	body.woocommerce-cart .wd-pulse-cart-main,
	body.woocommerce-cart .wd-pulse-cart-aside,
	body.woocommerce-cart .wd-pulse-cart-row > .wp-block-wd-column {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 auto !important;
		--wd-col-lg: 12 !important;
		--wd-col-md: 12 !important;
		--wd-col-sm: 12 !important;
	}
}

/* Shipping progress */
body.woocommerce-cart .wd-shipping-progress-bar,
body.woocommerce-cart .wd-free-progress-bar {
	background: #fff;
	border-color: rgba(33, 33, 33, 0.15) !important;
	color: var(--pulse-text, #3b3f44);
	font-size: 14px !important;
}

/* —— Cart table —— */
body.woocommerce-cart table.shop_table,
body.woocommerce-cart table.shop_table.cart {
	width: 100% !important;
	table-layout: auto;
	border-collapse: collapse;
	border-color: var(--pulse-line, #e6e0d6) !important;
	background: #fff;
	margin: 0 0 16px !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
	border-color: var(--pulse-line, #e6e0d6) !important;
	color: var(--pulse-ink, #212121) !important;
	padding: 12px 10px !important;
	vertical-align: middle !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table thead th.product-name,
body.woocommerce-cart table.shop_table thead th.product-price,
body.woocommerce-cart table.shop_table thead th.product-quantity,
body.woocommerce-cart table.shop_table thead th.product-subtotal {
	font-family: var(--wd-text-font), Poppins, Arial, sans-serif !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	white-space: nowrap;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pulse-muted, #6b7280) !important;
}

body.woocommerce-cart table.shop_table.cart .product-remove {
	width: 36px;
}

body.woocommerce-cart table.shop_table.cart .product-remove {
	width: 36px !important;
	min-width: 0 !important;
	padding-left: 4px !important;
	padding-right: 4px !important;
}

body.woocommerce-cart.wd table.shop_table.cart td.product-thumbnail img {
	min-width: 0 !important;
	width: 56px !important;
	max-width: 56px !important;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail {
	width: 76px !important;
	min-width: 0 !important;
}

body.woocommerce-cart table.shop_table.cart td.product-name {
	min-width: 120px;
	overflow-wrap: anywhere;
}

body.woocommerce-cart table.shop_table.cart .product-thumbnail img {
	max-width: 56px !important;
	width: 56px !important;
	height: auto !important;
}

body.woocommerce-cart table.shop_table.cart td.product-name,
body.woocommerce-cart table.shop_table.cart td.product-name a {
	font-family: var(--wd-title-font), Georgia, "Times New Roman", serif !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	color: var(--pulse-ink, #212121) !important;
}

body.woocommerce-cart table.shop_table.cart .product-name .variation,
body.woocommerce-cart table.shop_table.cart .product-name dl {
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	color: var(--pulse-muted, #6b7280) !important;
	margin: 4px 0 0 !important;
}

body.woocommerce-cart table.shop_table.cart td.product-price,
body.woocommerce-cart table.shop_table.cart td.product-subtotal,
body.woocommerce-cart table.shop_table.cart .amount {
	font-size: 14px !important;
	font-weight: 600 !important;
	white-space: nowrap;
}

body.woocommerce-cart table.shop_table.cart .product-quantity {
	width: 110px;
}

body.woocommerce-cart table.shop_table.cart .quantity {
	margin: 0 !important;
}

body.woocommerce-cart table.shop_table.cart .quantity input.qty {
	min-height: 36px !important;
	width: 48px !important;
	font-size: 14px !important;
}

body.woocommerce-cart table.shop_table a {
	color: var(--pulse-ink, #212121) !important;
	text-decoration: none !important;
}

body.woocommerce-cart table.shop_table a:hover {
	color: var(--pulse-gold, #b89d6b) !important;
}

/* Mobile stacked table — keep labels compact, no giant type */
@media (max-width: 768px) {
	body.woocommerce-cart.wd .wd-cart-table.wd-pulse-ca {
		background: transparent;
		border: 0 !important;
	}

	body.woocommerce-cart table.shop_table_responsive.cart tr {
		display: block;
		margin: 0 0 16px;
		padding: 12px;
		border: 1px solid var(--pulse-line, #e6e0d6) !important;
		background: #fff;
	}

	body.woocommerce-cart table.shop_table_responsive.cart td {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		width: 100% !important;
		padding: 8px 0 !important;
		border: 0 !important;
		border-bottom: 1px solid var(--pulse-line, #e6e0d6) !important;
		font-size: 14px !important;
		text-align: right !important;
	}

	body.woocommerce-cart table.shop_table_responsive.cart td::before {
		content: attr(data-title);
		flex: 0 0 auto;
		font-size: 11px !important;
		font-weight: 700 !important;
		letter-spacing: 0.08em;
		text-transform: uppercase;
		color: var(--pulse-muted, #6b7280) !important;
		text-align: left;
	}

	body.woocommerce-cart table.shop_table_responsive.cart td.product-thumbnail,
	body.woocommerce-cart table.shop_table_responsive.cart td.product-remove {
		justify-content: flex-start;
		border-bottom: 0 !important;
	}

	body.woocommerce-cart table.shop_table_responsive.cart td.product-thumbnail::before,
	body.woocommerce-cart table.shop_table_responsive.cart td.product-remove::before {
		display: none;
	}

	body.woocommerce-cart table.shop_table_responsive.cart .product-name {
		font-size: 15px !important;
		text-align: left !important;
		justify-content: flex-start;
	}

	body.woocommerce-cart table.shop_table_responsive.cart .product-name::before {
		display: none;
	}
}

/* Coupon / update */
body.woocommerce-cart .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

body.woocommerce-cart table.shop_table.cart td.actions .cart-actions {
	flex-wrap: wrap;
	gap: 12px;
	min-width: 0;
}

body.woocommerce-cart table.shop_table.cart td.actions .coupon .input-text {
	flex: 1 1 160px;
	min-width: 0;
	width: auto !important;
}

body.woocommerce-cart .coupon .input-text {
	min-height: 40px;
	font-size: 14px !important;
	border: 1px solid var(--pulse-line, #e6e0d6) !important;
	border-radius: 4px;
	background: #f5f8fc;
}

body.woocommerce-cart .coupon .button,
body.woocommerce-cart button[name="apply_coupon"] {
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--pulse-gold, #b89d6b) !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	min-height: 40px;
}

body.woocommerce-cart .coupon .button:hover,
body.woocommerce-cart button[name="apply_coupon"]:hover {
	background: var(--pulse-ink, #212121) !important;
}

body.woocommerce-cart button[name="update_cart"] {
	border: 1px solid var(--pulse-ink, #212121) !important;
	border-radius: 4px !important;
	background: transparent !important;
	color: var(--pulse-ink, #212121) !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	min-height: 40px;
}

body.woocommerce-cart button[name="update_cart"]:hover {
	background: var(--pulse-ink, #212121) !important;
	color: #fff !important;
}

/* Totals panel — one card; heading sits inside the padding */
body.woocommerce-cart .wd-pulse-cart-aside {
	background: #fff;
	border: 1px solid var(--pulse-line, #e6e0d6);
	padding: 20px 24px !important;
	box-sizing: border-box;
	font-size: 14px;
}

body.woocommerce-cart .cart_totals {
	background: transparent;
	font-size: 14px;
}

body.woocommerce-cart .cart_totals table {
	margin: 0 0 16px !important;
}

body.woocommerce-cart .wc-proceed-to-checkout {
	margin: 0 !important;
	padding: 0 !important;
}

body.woocommerce-cart .wd-pulse-cart-totals-title,
body.woocommerce-cart .cart_totals > h2,
body.woocommerce-cart .wd-pulse-cart-aside .title {
	font-family: var(--wd-title-font), Georgia, "Times New Roman", serif !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	color: var(--pulse-ink, #212121) !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
	margin: 0 0 12px !important;
}

body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td {
	font-size: 14px !important;
	padding: 10px 0 !important;
}

body.woocommerce-cart .cart_totals table th {
	font-family: var(--wd-text-font), Poppins, Arial, sans-serif !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--pulse-muted, #6b7280) !important;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wd-pulse-cart-aside .checkout-button {
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--pulse-ink, #212121) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-align: center;
}

body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background: var(--pulse-gold, #b89d6b) !important;
	color: #fff !important;
}

/* Cross-sells */
body.woocommerce-cart .pulse-cart-products .title,
body.woocommerce-cart .wd-pulse-cart-interest-title {
	font-family: var(--wd-title-font), Georgia, "Times New Roman", serif !important;
	font-size: 20px !important;
	font-weight: 500 !important;
	color: var(--pulse-ink, #212121) !important;
	text-transform: none !important;
}

body.woocommerce-cart .pulse-cart-products .wd-product .button,
body.woocommerce-cart .pulse-cart-products .add_to_cart_button {
	border-radius: 4px !important;
	background: var(--pulse-ink, #212121) !important;
	color: #fff !important;
	font-size: 11px !important;
}

body.woocommerce-cart .pulse-cart-products .wd-product .button:hover {
	background: var(--pulse-gold, #b89d6b) !important;
}

/* Empty cart */
body.woocommerce-cart .pulse-empty-cart,
body.woocommerce-cart .wd-empty-page,
body.woocommerce-cart .cart-empty {
	color: var(--pulse-ink, #212121);
	text-align: center;
}

body.woocommerce-cart .return-to-shop .button,
body.woocommerce-cart .wd-empty-page .button,
body.woocommerce-cart .cart-empty + .return-to-shop a {
	border: 0 !important;
	border-radius: 4px !important;
	background: var(--pulse-ink, #212121) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.woocommerce-cart .return-to-shop .button:hover,
body.woocommerce-cart .wd-empty-page .button:hover {
	background: var(--pulse-gold, #b89d6b) !important;
	color: #fff !important;
}

body.woocommerce-cart .wd-pulse-empty-interest-title {
	font-family: var(--wd-title-font), Georgia, "Times New Roman", serif !important;
	font-weight: 500 !important;
	color: var(--pulse-ink, #212121) !important;
	text-transform: none !important;
}
