/*
 * TJL UX — cart surfaces in the checkout / order-view card language.
 *
 *   1. Side cart drawer (Side Cart for WooCommerce, .xoo-wsc-*) — every page
 *   2. /cart/ page (WooCommerce Cart block)                     — cart only
 *
 * Tokens are the ones tjl-checkout uses, so the drawer, the cart page and
 * checkout read as one design. Display only.
 */

.xoo-wsc-modal,
body.woocommerce-cart .entry-content {
	--ci-ink: #2A1040;
	--ci-ink-soft: #6B6675;
	--ci-line: #E8E0F2;
	--ci-line-soft: #F1EBF8;
	--ci-wash: #FBF7FE;
	--ci-wash-2: #F7F4FA;
	--ci-gold-soft: #FBF3DF;
	--ci-gold-line: #EFDFB4;
	--ci-gold-ink: #4A3405;
	--ci-plum: #3A1259;
	--ci-magenta: #E4097F;
	--ci-radius: 14px;
	--ci-serif: "Playfair Display", Georgia, serif;
	--ci-sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The purity pill (includes/cart-item.php) — wherever a cart item name prints. */
.tjl-ci-opts {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 6px 0 0;
}

.tjl-ci-opt {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: #FBF3DF;
	border: 1px solid #EFDFB4;
	font-family: "Jost", system-ui, sans-serif;
	font-size: 11.5px;
	font-weight: 600;
	font-style: normal;
	line-height: 1.5;
	letter-spacing: .04em;
	color: #4A3405;
}

/* =========================================================== 1. side cart */

.xoo-wsc-modal .xoo-wsc-container {
	font-family: var(--ci-sans);
	color: var(--ci-ink);
	background: #FFF;
}

/* ---- header: white bar, serif title, plum icons (was a magenta slab) ---- */
.xoo-wsc-modal .xoo-wsc-container .xoo-wsc-header {
	background: #FFF;
	color: var(--ci-plum);
	border-bottom: 1px solid var(--ci-line);
	box-shadow: none;
	padding: 0;
}

.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-top {
	align-items: center;
	min-height: 64px;
	padding: 12px 20px;
}

.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-sec-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-text {
	margin: 0;
	font-family: var(--ci-serif);
	font-size: 22px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--ci-plum);
}

.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-basket {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--ci-wash);
	border: 1px solid var(--ci-line);
	color: var(--ci-plum);
}

.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-basket .xoo-wsch-bki {
	font-size: 18px;
	color: var(--ci-plum);
	margin: 0;
}

.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-items-count {
	position: absolute;
	top: -5px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ci-magenta);
	color: #FFF;
	font-size: 11px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
}

.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	font-size: 18px;
	color: var(--ci-plum);
	cursor: pointer;
	transition: background-color .15s ease;
}

@media (hover: hover) {
	.xoo-wsc-modal .xoo-wsc-header .xoo-wsch-close:hover { background: var(--ci-wash); }
}

/* ---- body: soft wash, each line a white card ---- */
.xoo-wsc-modal .xoo-wsc-container .xoo-wsc-body {
	background: var(--ci-wash-2);
	padding: 14px;
}

.xoo-wsc-modal .xoo-wsc-body .xoo-wsc-products {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.xoo-wsc-modal .xoo-wsc-body .xoo-wsc-product {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 14px;
	background: #FFF;
	border: 1px solid var(--ci-line);
	border-radius: var(--ci-radius);
	box-shadow: none;
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-img-col {
	flex: 0 0 76px;
	width: 76px;
	max-width: 76px;
	align-self: flex-start;
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-img-col img {
	display: block;
	width: 76px;
	height: 76px;
	max-width: 100%;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--ci-line-soft);
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-sum-col {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	padding: 0;
	justify-content: flex-start;
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-sm-info {
	display: block;
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-sm-left {
	padding: 0;
	min-width: 0;
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-pname,
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-pname a {
	display: block;
	padding: 0 34px 0 0;
	font-family: var(--ci-serif);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ci-plum);
	text-decoration: none;
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-pname a { padding: 0; }

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-pname .tjl-ci-opts { margin-top: 8px; }

/* Advance / Balance: two quiet rows instead of bold italics */
.xoo-wsc-modal .xoo-wsc-product dl.variation {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 2px 12px;
	margin: 10px 0 0;
	padding: 8px 10px;
	background: var(--ci-wash);
	border: 1px solid var(--ci-line-soft);
	border-radius: 10px;
	font-size: 12.5px;
	line-height: 1.5;
}

.xoo-wsc-modal .xoo-wsc-product dl.variation dt,
.xoo-wsc-modal .xoo-wsc-product dl.variation dd {
	float: none;
	clear: none;
	margin: 0;
	padding: 0;
	font-family: var(--ci-sans);
	font-size: 12.5px;
	font-style: normal;
}

.xoo-wsc-modal .xoo-wsc-product dl.variation dt {
	font-weight: 400;
	color: var(--ci-ink-soft);
}

.xoo-wsc-modal .xoo-wsc-product dl.variation dd {
	text-align: right;
	font-weight: 600;
	color: var(--ci-ink);
}

.xoo-wsc-modal .xoo-wsc-product dl.variation dd p,
.xoo-wsc-modal .xoo-wsc-product dl.variation dd .amount {
	margin: 0;
	font-style: normal;
	font-size: inherit;
}

/* "1 X ₹54,476.73 = ₹54,476.73 (₹… payable in deposit)" → "Qty 1 ……… ₹54,476.73" */
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px;
	margin: 10px 0 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--ci-ink-soft);
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span { font-size: 13px; }
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span:first-child::before { content: "Qty "; }
/* unit price drops out: one line, Qty left, line total right (unit price is on /cart/) */
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span:nth-child(2),
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span:nth-child(3),
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span:nth-child(4) { display: none; }

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span:nth-child(5) {
	margin-left: auto;
	font-size: 16px;
	font-weight: 600;
	color: var(--ci-plum);
}

/* the deposit figure is already the Advance row above */
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span:nth-child(5) br,
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-qty-price > span:nth-child(5) small { display: none; }

/* delete: a small round control top-right, not a black bin mid-card */
.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-sm-right {
	position: absolute;
	top: -4px;
	right: -4px;
	padding: 0;
	margin: 0;
}

.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-smr-del {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 14px;
	color: var(--ci-ink-soft);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

@media (hover: hover) {
	.xoo-wsc-modal .xoo-wsc-product .xoo-wsc-smr-del:hover {
		background: #FDEAF4;
		color: var(--ci-magenta);
	}
}

/* empty drawer */
.xoo-wsc-modal .xoo-wsc-empty-cart {
	padding: 32px 16px;
	font-family: var(--ci-sans);
	color: var(--ci-ink-soft);
	text-align: center;
}

.xoo-wsc-modal .xoo-wsc-empty-cart > span {
	display: block;
	margin: 0 0 14px;
	font-family: var(--ci-serif);
	font-size: 20px;
	color: var(--ci-plum);
}

/* ---- footer: one subtotal row, one primary action ---- */
.xoo-wsc-modal .xoo-wsc-container .xoo-wsc-footer {
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
	background: #FFF;
	border-top: 1px solid var(--ci-line);
	box-shadow: 0 -10px 24px -18px rgba(42, 16, 64, .35);
	color: var(--ci-ink);
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-totals {
	margin: 0;
	padding: 0;
	border: 0;
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-amt {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 0;
	font-family: var(--ci-sans);
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-amt-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ci-ink-soft);
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-amt-value,
.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-amt-value .amount {
	font-size: 20px;
	font-weight: 600;
	color: var(--ci-plum);
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-totals::after {
	content: "Taxes and advance payment are shown at checkout.";
	display: block;
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--ci-ink-soft);
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 14px 0 0;
	padding: 0;
	grid-template-columns: none;
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 20px;
	border-radius: 999px;
	font-family: var(--ci-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout {
	order: 1;
	background: var(--ci-magenta);
	border: 1px solid var(--ci-magenta);
	color: #FFF;
	box-shadow: 0 8px 20px -10px rgba(228, 9, 127, .9);
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-cart {
	order: 2;
	background: #FFF;
	border: 1px solid var(--ci-line);
	color: var(--ci-plum);
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-continue {
	order: 3;
	min-height: 36px;
	padding: 6px 12px;
	background: transparent;
	border: 0;
	color: var(--ci-ink-soft);
	font-weight: 500;
	font-size: 14px;
}

@media (hover: hover) {
	.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-checkout:hover { background: #C00870; border-color: #C00870; }
	.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-cart:hover { border-color: var(--ci-plum); }
	.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn-continue:hover { color: var(--ci-plum); text-decoration: underline; }
}

.xoo-wsc-modal .xoo-wsc-footer .xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn:focus-visible {
	outline: 2px solid var(--ci-plum);
	outline-offset: 3px;
}

/* ============================================================ 2. /cart/ */

body.woocommerce-cart .entry-content .wp-block-woocommerce-cart {
	font-family: var(--ci-sans);
	color: var(--ci-ink);
}

/* ---- line items: one card ---- */
body.woocommerce-cart .wp-block-woocommerce-cart table.wc-block-cart-items {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	margin: 0;
	background: #FFF;
	border: 1px solid var(--ci-line);
	border-radius: var(--ci-radius);
	overflow: hidden;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__header th {
	padding: 12px 18px;
	background: var(--ci-wash);
	border-bottom: 1px solid var(--ci-line-soft);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ci-plum);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row td {
	padding-top: 18px;
	padding-bottom: 18px;
	border-top: 1px solid var(--ci-line-soft);
	vertical-align: top;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row:first-child td { border-top: 0; }
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row td:first-child { padding-left: 18px; }
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row td:last-child { padding-right: 18px; }

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image img {
	width: 88px;
	height: 88px;
	max-width: 100%;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid var(--ci-line-soft);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__product a.wc-block-components-product-name {
	display: inline-block;
	margin: 0 0 4px;
	font-family: var(--ci-serif);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ci-plum);
	text-decoration: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__prices {
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--ci-ink-soft);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__prices .wc-block-components-product-price__value {
	font-size: 13px;
	font-weight: 500;
	color: var(--ci-ink-soft);
}

/* the product excerpt adds three lines of copy to every line item */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-metadata__description { display: none; }

body.woocommerce-cart .wp-block-woocommerce-cart ul.wc-block-components-product-details {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 14px;
	max-width: 320px;
	margin: 0 0 12px;
	padding: 8px 12px;
	list-style: none;
	background: var(--ci-wash);
	border: 1px solid var(--ci-line-soft);
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
}

body.woocommerce-cart .wp-block-woocommerce-cart ul.wc-block-components-product-details li {
	display: contents;
	margin: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-details__name {
	font-weight: 400;
	color: var(--ci-ink-soft);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-details__value {
	text-align: right;
	font-weight: 600;
	color: var(--ci-ink);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-product-details__value p { margin: 0; }

/* quantity: one rounded control */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__quantity {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: stretch;
	width: auto;
	min-width: 0;
	height: 40px;
	margin: 0;
	border: 1px solid var(--ci-line);
	border-radius: 999px;
	background: #FFF;
	overflow: hidden;
}

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

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input {
	width: 40px;
	min-width: 40px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--ci-sans);
	font-size: 15px;
	font-weight: 600;
	color: var(--ci-ink);
	text-align: center;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector button.wc-block-components-quantity-selector__button {
	width: 38px;
	min-width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 18px;
	line-height: 1;
	color: var(--ci-plum);
	opacity: 1;
	cursor: pointer;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector button.wc-block-components-quantity-selector__button:disabled {
	color: #C9BFD6;
	cursor: default;
}

@media (hover: hover) {
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-quantity-selector button.wc-block-components-quantity-selector__button:not(:disabled):hover { background: var(--ci-wash); }
}

body.woocommerce-cart .wp-block-woocommerce-cart button.wc-block-cart-item__remove-link {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--ci-sans);
	font-size: 13px;
	font-weight: 500;
	color: var(--ci-ink-soft);
	text-decoration: none;
	cursor: pointer;
}

@media (hover: hover) {
	body.woocommerce-cart .wp-block-woocommerce-cart button.wc-block-cart-item__remove-link:hover {
		color: var(--ci-magenta);
		text-decoration: underline;
	}
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
	font-size: 16px;
	font-weight: 600;
	color: var(--ci-plum);
}

/* ---- totals: same card, wash header ---- */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
	padding: 0 20px 4px;
	background: #FFF;
	border: 1px solid var(--ci-line);
	border-radius: var(--ci-radius);
	overflow: hidden;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-cart__totals-title {
	display: block;
	margin: 0 -20px;
	padding: 12px 20px;
	background: var(--ci-wash);
	border-bottom: 1px solid var(--ci-line-soft);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--ci-plum);
	text-align: left;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
	border-top: 1px solid var(--ci-line-soft);
	padding: 14px 0;
}

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

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item {
	font-size: 14px;
	color: var(--ci-ink);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-item__label { color: var(--ci-ink-soft); }

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
	font-family: var(--ci-serif);
	font-size: 18px;
	font-weight: 500;
	color: var(--ci-plum);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	font-size: 22px;
	font-weight: 600;
	color: var(--ci-plum);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button {
	font-size: 14px;
	font-weight: 500;
	color: var(--ci-plum);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__submit-container { margin-top: 16px; }

/* ---- empty cart: a quiet icon, not a 200px crying face ---- */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__empty-cart__title {
	margin: 8px 0 28px;
	font-family: var(--ci-serif);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.25;
	color: var(--ci-plum);
	text-align: center;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before {
	width: 72px;
	height: 72px;
	margin: 0 auto 18px;
	background-color: #C9B5DE;
	-webkit-mask-size: contain;
	mask-size: contain;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block hr.wp-block-separator {
	margin: 0 auto 28px;
	border: 0;
	border-top: 1px solid var(--ci-line);
	max-width: 100%;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block hr.wp-block-separator::before { display: none; }

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title) {
	margin: 0 0 18px;
	font-family: var(--ci-serif);
	font-size: 24px;
	font-weight: 500;
	color: var(--ci-plum);
	text-align: left;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__products {
	gap: 16px 0;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img {
	border-radius: var(--ci-radius);
	border: 1px solid var(--ci-line-soft);
	aspect-ratio: 1;
	object-fit: cover;
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title {
	margin: 10px 0 4px;
	font-family: var(--ci-serif);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--ci-plum);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price {
	margin: 0 0 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--ci-ink);
}

body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 6px 18px;
	border: 1px solid var(--ci-line);
	border-radius: 999px;
	background: #FFF;
	font-family: var(--ci-sans);
	font-size: 13px;
	font-weight: 600;
	color: var(--ci-plum);
	text-decoration: none;
}

@media (hover: hover) {
	body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart a.wp-block-button__link:hover { border-color: var(--ci-plum); }
}

/* Narrow layout (the block's own container classes, not a media query):
   it is a 4-column grid with the line total in its own column, which left
   the product 171px wide at 390. Total moves under the product instead. */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) table.wc-block-cart-items tr.wc-block-cart-items__row {
	grid-template-columns: 86px minmax(0, 1fr);
	padding: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) tr.wc-block-cart-items__row td.wc-block-cart-item__image {
	grid-column: 1;
	grid-row: 1 / span 2;
}

/* the block gives every cell margin-bottom:40px here — 80px of air per line */
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) tr.wc-block-cart-items__row td {
	margin-bottom: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) .wc-block-components-quantity-selector {
	margin-bottom: 0;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) tr.wc-block-cart-items__row td.wc-block-cart-item__product {
	grid-column: 2;
	grid-row: 1;
	padding-right: 14px;
	padding-bottom: 6px;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) tr.wc-block-cart-items__row td.wc-block-cart-item__total {
	grid-column: 2;
	grid-row: 2;
	padding: 0 14px 18px 0;
	border-top: 0;
	text-align: left;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) tr.wc-block-cart-items__row td.wc-block-cart-item__total::before {
	content: "Line total";
	margin-right: 8px;
	font-size: 12px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ci-ink-soft);
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) .wc-block-cart-item__total .wc-block-cart-item__total-price-and-sale-badge-wrapper {
	display: inline-flex;
	align-items: baseline;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) ul.wc-block-components-product-details {
	grid-template-columns: 1fr auto;
	max-width: none;
}

body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-components-sidebar-layout:not(.is-large) .wc-block-cart-item__quantity {
	flex-wrap: nowrap;
}

@media (max-width: 767px) {
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row td:first-child { padding-left: 14px; }
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items .wc-block-cart-items__row td:last-child { padding-right: 14px; }
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__image img { width: 72px; height: 72px; }
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-item__product a.wc-block-components-product-name { font-size: 16px; }
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__sidebar { margin-top: 18px; }
	body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart__empty-cart__title { font-size: 22px; }
}
