/* NoteyStuff — cart, checkout and account (Phase R5).
 *
 * Presentation only. No WooCommerce template is overridden, no Woo hook is removed and no
 * checkout behaviour is touched: every rule here works against the markup WooCommerce 11.0
 * and Kadence already emit.
 *
 * Two Kadence facts drive most of the layout work below and are worth knowing before editing:
 *
 *   1. Kadence lays cart and checkout out with FLOATS, and only from 1025px. Between 720px and
 *      1024px both pages are a single full-width column, which wastes a tablet screen and pushes
 *      the totals a long way below the items. This file replaces the floats with grid from 992px.
 *   2. Kadence's responsive-table breakpoint is 719px, not the 768px WooCommerce core uses.
 *      The mobile card layouts below therefore switch at 719/720px so they never disagree with it.
 *
 * Contrast rule, unchanged: rose/lavender fills carry PLUM labels; a white label only ever sits
 * on --ns-color-cta-solid (#B23670, 5.75:1). Primary commercial actions — Proceed to checkout,
 * Place order — use that solid fill so they outrank every other button on the page.
 */

:root {
	/* The sticky header measures 105px; one space step of air beneath it. */
	--ns-sticky-offset: 7.5rem;
	--ns-panel-pad: clamp(1.125rem, 3vw, 1.75rem);
}

/* ===============================================================
 * 0. Clearfix suppression — read this before adding a grid or flex container
 *
 * Kadence clearfixes every float container with `::before, ::after { content:" "; display:table }`.
 * Inside a grid or flex parent those pseudo-elements stop being invisible and become real items:
 * the first deploy of this file put the whole cart table in the second grid column because
 * `.kadence-woo-cart-form-wrap::before` had taken the first. Anything this file switches to grid
 * or flex has to drop them, and so does anything the component layer already flexes.
 * =============================================================== */

.woocommerce-cart .kadence-woo-cart-form-wrap::before,
.woocommerce-cart .kadence-woo-cart-form-wrap::after,
.woocommerce-cart table.cart td.actions .coupon::before,
.woocommerce-cart table.cart td.actions .coupon::after,
.woocommerce-checkout form.checkout::before,
.woocommerce-checkout form.checkout::after,
.woocommerce-checkout form.checkout .col2-set::before,
.woocommerce-checkout form.checkout .col2-set::after,
.woocommerce-checkout #payment ul.payment_methods::before,
.woocommerce-checkout #payment ul.payment_methods::after,
.woocommerce-checkout #payment ul.payment_methods li:not(.woocommerce-notice)::before,
.woocommerce-checkout #payment ul.payment_methods li:not(.woocommerce-notice)::after,
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after,
.woocommerce-account .woocommerce-Addresses::before,
.woocommerce-account .woocommerce-Addresses::after,
.woocommerce form .form-row::before,
.woocommerce form .form-row::after,
.woocommerce ul.order_details::before,
.woocommerce ul.order_details::after,
.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-message::after,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-info::after,
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-error::after {
	display: none;
}

/* ===============================================================
 * 1. Transactional page shell
 *
 * Cart, checkout and account are working pages, not landing pages: the hero band is compacted
 * the same way the shop archive was in R4 so the first control is above the fold.
 * =============================================================== */

.woocommerce-cart .entry-hero,
.woocommerce-checkout .entry-hero,
.woocommerce-account .entry-hero {
	background-color: var(--ns-color-surface-warm);
}

.woocommerce-cart .entry-hero-container-inner,
.woocommerce-checkout .entry-hero-container-inner,
.woocommerce-account .entry-hero-container-inner {
	min-height: 0 !important; /* Kadence prints an inline min-height on the hero */
}

.woocommerce-cart .entry-hero .entry-header,
.woocommerce-checkout .entry-hero .entry-header,
.woocommerce-account .entry-hero .entry-header {
	padding-block: var(--ns-space-5);
	min-height: 0;
}

.woocommerce-cart .entry-hero h1,
.woocommerce-checkout .entry-hero h1,
.woocommerce-account .entry-hero h1 {
	font-size: var(--ns-h2);
	margin-bottom: 0;
}

.woocommerce-cart .content-area,
.woocommerce-checkout .content-area,
.woocommerce-account .content-area {
	margin-top: 0;
}

.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
	padding-block-start: var(--ns-space-6);
}

/* Panel — the one surface these three pages are built from. */
.ns-panel,
.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-billing-fields,
.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-account .account-navigation-wrap,
.woocommerce-account .woocommerce-Address,
.woocommerce-account .woocommerce-EditAccountForm,
.woocommerce-account .woocommerce-form-login,
.woocommerce-account .woocommerce-ResetPassword {
	background-color: var(--ns-color-surface);
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-lg);
	padding: var(--ns-panel-pad);
	box-shadow: var(--ns-shadow-sm);
}

/* Panel heading — display face, hairline rule, none of Kadence's 84px heading margin. */
.woocommerce-cart .cart_totals > h2,
.woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-additional-fields > h3,
.woocommerce-account .woocommerce-Address-title h2 {
	font-family: var(--ns-font-display);
	font-size: var(--ns-h4);
	font-weight: var(--ns-weight-display);
	line-height: var(--ns-leading-snug);
	margin: 0 0 var(--ns-space-4);
	padding-bottom: var(--ns-space-3);
	border-bottom: 1px solid var(--ns-color-border);
}

/* ===============================================================
 * 2. Cart — layout
 * =============================================================== */

.woocommerce-cart .kadence-woo-cart-form-wrap {
	display: grid;
	gap: var(--ns-space-6);
}

@media (min-width: 992px) {
	.woocommerce-cart .kadence-woo-cart-form-wrap {
		grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
		gap: var(--ns-space-7);
		align-items: start;
	}

	/* Kadence floats the form 70% / collaterals 30% from 1025px; grid replaces both, and the
	 * layout now starts at 992px so tablets get the summary beside the items too. */
	.woocommerce-cart .kadence-woo-cart-form-wrap > form,
	.woocommerce-cart .kadence-woo-cart-form-wrap .cart-collaterals {
		float: none;
		width: auto;
		padding-right: 0;
		padding-left: 0;
	}

	.woocommerce-cart .kadence-woo-cart-form-wrap .cart-collaterals {
		position: sticky;
		top: var(--ns-sticky-offset);
	}
}

/* "Cart Summary" above the item table is Kadence's heading and the only h2 in that column.
 * Kept in the accessibility tree, presented as a quiet section label. */
.woocommerce-cart .cart-summary h2 {
	font-family: var(--ns-font-body);
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-medium);
	letter-spacing: var(--ns-tracking-wide);
	text-transform: uppercase;
	color: var(--ns-color-text-muted);
	margin: 0 0 var(--ns-space-3);
}

/* ===============================================================
 * 3. Cart — item table (720px and up)
 * =============================================================== */

.woocommerce-cart table.cart {
	width: 100%;
	border: 0;
	border-collapse: collapse;
	margin: 0;
}

.woocommerce-cart table.cart thead th {
	padding: 0 var(--ns-space-3) var(--ns-space-3);
	border: 0;
	border-bottom: 1px solid var(--ns-color-border);
	font-family: var(--ns-font-body);
	font-size: var(--ns-text-xs);
	font-weight: var(--ns-weight-medium);
	letter-spacing: var(--ns-tracking-wide);
	text-transform: uppercase;
	color: var(--ns-color-text-muted);
	text-align: left;
}

.woocommerce-cart table.cart thead th.product-price,
.woocommerce-cart table.cart thead th.product-subtotal {
	text-align: right;
}

.woocommerce-cart table.cart tbody td {
	padding: var(--ns-space-4) var(--ns-space-3);
	border: 0;
	border-bottom: 1px solid var(--ns-color-border);
	background: none; /* Kadence zebra-stripes shop tables with rgba(0,0,0,.025) */
	vertical-align: middle;
}

.woocommerce-cart table.cart td.product-remove {
	width: 3rem;
	padding-inline-start: 0;
}

.woocommerce-cart table.cart td.product-thumbnail {
	width: 104px;
}

.woocommerce-cart table.cart td.product-thumbnail img {
	display: block;
	width: 88px;
	height: 88px;
	max-width: none;
	object-fit: cover;
	border-radius: var(--ns-radius-md);
	background-color: var(--ns-color-surface-warm);
}

/* The name column absorbs the leftover width; everything else is sized to its content so a
 * three-line product title cannot squeeze the price out of the table. */
.woocommerce-cart table.cart th.product-name,
.woocommerce-cart table.cart td.product-name {
	width: 99%;
	font-weight: var(--ns-weight-medium);
}

.woocommerce-cart table.cart th.product-price,
.woocommerce-cart table.cart th.product-quantity,
.woocommerce-cart table.cart th.product-subtotal,
.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-quantity,
.woocommerce-cart table.cart td.product-subtotal {
	width: 1%;
	white-space: nowrap;
}

.woocommerce-cart table.cart td.product-name a {
	font-family: var(--ns-font-display);
	font-size: var(--ns-text-lg);
	line-height: var(--ns-leading-snug);
	color: var(--ns-color-text);
	text-decoration: none;
}

.woocommerce-cart table.cart td.product-name a:hover {
	color: var(--ns-color-link);
}

.woocommerce-cart table.cart td.product-price,
.woocommerce-cart table.cart td.product-subtotal {
	text-align: right;
	white-space: nowrap;
}

.woocommerce-cart table.cart td.product-price {
	color: var(--ns-color-text-muted);
}

.woocommerce-cart table.cart td.product-subtotal {
	font-family: var(--ns-font-display);
	font-weight: var(--ns-weight-display);
	color: var(--ns-color-text);
}

/* Remove control — Woo ships a bare red multiplication sign with no hit area at all. */
.woocommerce-cart table.cart td.product-remove a.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ns-tap-min);
	height: var(--ns-tap-min);
	border: 1px solid transparent;
	border-radius: 50%;
	background: none;
	color: var(--ns-color-text-muted);
	font-size: 1.375rem;
	line-height: 1;
	text-decoration: none;
	color: var(--ns-color-text-muted) !important; /* WooCommerce core: a.remove { color: red !important } */
	transition: background-color var(--ns-transition), color var(--ns-transition),
		border-color var(--ns-transition);
}

.woocommerce-cart table.cart td.product-remove a.remove:hover,
.woocommerce-cart table.cart td.product-remove a.remove:focus-visible {
	color: var(--ns-color-danger) !important; /* same core rule */
	background-color: var(--ns-color-danger-wash);
	border-color: var(--ns-color-danger);
	color: var(--ns-color-danger);
}

/* Quantity — the stepper component in woocommerce.css now supplies the pill, the border and the
 * minus/plus buttons for every quantity field on the site, so the cart only sets what is specific
 * to a table cell. The border used to live on the input here and on the wrapper on the product
 * page; with buttons inside the wrapper, only the wrapper version can hold the three together. */
.woocommerce-cart table.cart td.product-quantity .quantity {
	vertical-align: middle;
}

/* ===============================================================
 * 4. Cart — item cards (719px and down)
 *
 * Kadence turns every shop table into stacked "Label: value" rows below 720px, which reads as a
 * receipt rather than a cart and puts the thumbnail on its own line. These rules rebuild the row
 * as a three-column card. The !importants below all override
 * `.woocommerce table.shop_table_responsive tr td { display:block; text-align:right !important }`
 * and its `td::before { content: attr(data-title) ": " }` label, neither of which can be beaten
 * on specificity alone.
 * =============================================================== */

@media (max-width: 719px) {
	.woocommerce-cart table.cart thead {
		display: none;
	}

	.woocommerce-cart table.cart tbody,
	.woocommerce-cart table.cart tr {
		display: block;
		width: 100%;
	}

	.woocommerce-cart table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 76px minmax(0, 1fr) auto;
		grid-template-areas:
			"thumb name  remove"
			"thumb price price"
			"thumb qty   subtotal";
		column-gap: var(--ns-space-3);
		row-gap: var(--ns-space-2);
		align-items: center;
		padding-block: var(--ns-space-4);
		border-bottom: 1px solid var(--ns-color-border);
	}

	.woocommerce-cart table.cart tr.cart_item td {
		display: block;
		width: auto; /* the desktop table sizes these columns to content */
		padding: 0;
		border: 0;
		text-align: left !important; /* Kadence: shop_table_responsive tr td */
		background: none !important; /* Kadence: shop_table_responsive tr:nth-child(2n) td */
	}

	.woocommerce-cart table.cart tr td::before {
		display: none !important; /* Kadence: td::before { content: attr(data-title) ": " } */
	}

	.woocommerce-cart table.cart td.product-thumbnail {
		grid-area: thumb;
		align-self: start;
		width: auto;
	}

	.woocommerce-cart table.cart td.product-thumbnail img {
		width: 76px;
		height: 76px;
	}

	.woocommerce-cart table.cart td.product-name {
		grid-area: name;
		align-self: start;
	}

	.woocommerce-cart table.cart td.product-name a {
		font-size: var(--ns-text-base);
	}

	/* R6: the row's thumbnail is the larger equivalent target, but the title is the one people
	 * aim at, so give it a real height too. */
	.woocommerce-cart table.cart td.product-name a {
		display: inline-block;
		padding-block: var(--ns-space-2);
	}

	.woocommerce-cart table.cart td.product-price {
		grid-area: price;
		font-size: var(--ns-text-sm);
	}

	.woocommerce-cart table.cart td.product-quantity {
		grid-area: qty;
	}

	.woocommerce-cart table.cart td.product-subtotal {
		grid-area: subtotal;
		text-align: right !important; /* Kadence: shop_table_responsive tr td */
	}

	.woocommerce-cart table.cart td.product-remove {
		grid-area: remove;
		width: auto;
		justify-self: end;
	}

	/* The card layout gives the quantity its own grid area with room for the full stepper. */
	.woocommerce-cart table.cart td.product-quantity input.qty {
		width: 3rem;
	}
}

/* ===============================================================
 * 5. Cart — coupon and update row
 *
 * This cell carries `colspan="6"`, and colspan only survives while the cell keeps
 * `display: table-cell`. Flexing or blocking it — the obvious way to lay out a coupon field
 * beside an update button — drops it back into the first column and drags that column out to
 * the width of its contents: the first deploy of this file left a 270px empty gutter beside
 * every product thumbnail. So the cell stays a cell, and its children lay themselves out.
 * =============================================================== */

@media (min-width: 720px) {
	.woocommerce-cart table.cart td.actions {
		display: table-cell;
		width: auto;
		padding: var(--ns-space-5) 0 0;
		border: 0;
		background: none;
		text-align: left;
	}

	.woocommerce-cart table.cart td.actions .coupon {
		display: inline-flex;
		gap: var(--ns-space-2);
		float: none;
		width: min(26rem, 100%);
		padding-bottom: 0;
		vertical-align: middle;
	}

	.woocommerce-cart table.cart td.actions button[name="update_cart"] {
		float: right;
	}
}

@media (max-width: 719px) {
	.woocommerce-cart table.cart td.actions {
		padding: var(--ns-space-5) 0 0;
		border: 0;
		background: none;
		text-align: left !important; /* Kadence: shop_table_responsive tr td */
	}

	.woocommerce-cart table.cart td.actions .coupon {
		display: flex;
		gap: var(--ns-space-2);
		float: none;
		width: 100%;
		padding-bottom: var(--ns-space-3);
	}

	.woocommerce-cart table.cart td.actions button[name="update_cart"] {
		width: 100%;
	}
}

/* Kadence forces 38px controls in this row (`table.cart td.actions .coupon .input-text`),
 * which is below the 44px tap minimum this design system commits to. */
.woocommerce-cart table.cart td.actions .coupon .input-text {
	flex: 1 1 auto;
	float: none;
	width: auto;
	height: auto;
	min-height: var(--ns-tap-min);
	margin: 0;
}

.woocommerce-cart table.cart td.actions .coupon .button,
.woocommerce-cart table.cart td.actions .button {
	display: inline-flex;
	float: none;
	width: auto;
	height: auto;
	min-height: var(--ns-tap-min);
	padding: var(--ns-space-3) var(--ns-space-5);
	line-height: 1.2;
}

.woocommerce-cart table.cart td.actions .coupon .button,
.woocommerce-cart table.cart td.actions button[name="update_cart"] {
	flex: 0 0 auto;
	background-color: transparent;
	border: 1px solid var(--ns-color-border-strong);
	color: var(--ns-color-text);
}

.woocommerce-cart table.cart td.actions .coupon .button:hover,
.woocommerce-cart table.cart td.actions button[name="update_cart"]:hover:not(:disabled) {
	background-color: var(--ns-color-surface-accent);
	border-color: var(--ns-color-accent-ink);
	color: var(--ns-color-text);
}

.woocommerce-cart table.cart td.actions .button:disabled {
	background-color: transparent;
	border-color: var(--ns-color-border);
	color: var(--ns-color-text-muted);
	opacity: 0.7;
	transform: none;
	box-shadow: none;
}

/* ===============================================================
 * 6. Cart — totals panel
 * =============================================================== */

.woocommerce-cart .cart_totals table.shop_table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.woocommerce-cart .cart_totals table.shop_table th,
.woocommerce-cart .cart_totals table.shop_table td {
	width: auto;
	padding: var(--ns-space-3) 0;
	border: 0;
	border-top: 1px solid var(--ns-color-border);
	background: none;
	vertical-align: top;
	font-size: var(--ns-text-base);
}

.woocommerce-cart .cart_totals table.shop_table tr:first-child th,
.woocommerce-cart .cart_totals table.shop_table tr:first-child td {
	padding-top: 0;
	border-top: 0;
}

.woocommerce-cart .cart_totals table.shop_table th {
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-text-muted);
	text-align: left;
}

.woocommerce-cart .cart_totals table.shop_table td {
	text-align: right;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
	padding-top: var(--ns-space-4);
	font-size: var(--ns-text-lg);
	color: var(--ns-color-text);
}

.woocommerce-cart .cart_totals .order-total td strong {
	font-family: var(--ns-font-display);
	font-weight: var(--ns-weight-display);
}

.woocommerce-cart .cart_totals ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-cart .cart_totals ul#shipping_method li {
	display: flex;
	justify-content: flex-end;
	gap: var(--ns-space-2);
	margin: 0 0 var(--ns-space-1);
	padding: 0;
	text-align: right;
}

.woocommerce-cart .cart_totals ul#shipping_method label {
	font-size: var(--ns-text-base);
	font-weight: var(--ns-weight-body);
	color: var(--ns-color-text);
}

.woocommerce-cart .cart_totals .woocommerce-shipping-destination {
	margin: var(--ns-space-2) 0 0;
	font-size: var(--ns-text-sm);
	color: var(--ns-color-text-muted);
}

.woocommerce-cart .cart_totals .shipping-calculator-button {
	display: inline-block;
	margin-top: var(--ns-space-2);
	padding-block: var(--ns-space-3); /* R6: 24px tall without it */
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-link);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.woocommerce-cart .cart_totals .shipping-calculator-form {
	margin-top: var(--ns-space-3);
	padding-top: var(--ns-space-3);
	border-top: 1px dashed var(--ns-color-border);
	text-align: left;
}

.woocommerce-cart .cart_totals .shipping-calculator-form .form-row {
	margin-bottom: var(--ns-space-3);
}

.woocommerce-cart .cart_totals .shipping-calculator-form label {
	display: block;
	margin-bottom: var(--ns-space-1);
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-medium);
}

.woocommerce-cart .cart_totals .shipping-calculator-form .button {
	width: 100%;
}

/* Below 720px Kadence stacks this table and labels each value from `data-title`. That reads
 * well enough — it just arrives with a bold label, a trailing colon and a zebra stripe that
 * belong to a different design. */
@media (max-width: 719px) {
	.woocommerce-cart .cart_totals table.shop_table td {
		padding-block: var(--ns-space-3);
		background: none !important; /* Kadence: shop_table_responsive tr:nth-child(2n) td */
	}

	.woocommerce-cart .cart_totals table.shop_table td::before {
		content: attr(data-title); /* Kadence appends ": " */
		font-weight: var(--ns-weight-medium);
		color: var(--ns-color-text-muted);
	}

	.woocommerce-cart .cart_totals table.shop_table tr.order-total td::before {
		color: var(--ns-color-text);
	}
}

/* Proceed to checkout — the strongest action on the page. */
.woocommerce-cart .wc-proceed-to-checkout {
	padding: var(--ns-space-5) 0 0;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	display: flex;
	width: 100%;
	min-height: 52px;
	margin-bottom: 0;
	padding: var(--ns-space-3) var(--ns-space-5);
	background-color: var(--ns-color-cta-solid);
	color: var(--ns-color-text-inverse);
	font-size: var(--ns-text-lg);
	font-weight: var(--ns-weight-medium);
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
	background-color: var(--ns-color-cta-solid-hover);
	color: var(--ns-color-text-inverse);
}

/* Payment reassurance under the totals — rendered by ns_cart_payment_note(). */
.ns-cart-note {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--ns-space-1) var(--ns-space-3);
	margin: var(--ns-space-4) 0 0;
	font-size: var(--ns-text-sm);
	color: var(--ns-color-text-muted);
	text-align: center;
}

.ns-cart-note__item {
	display: inline-flex;
	align-items: center;
	gap: var(--ns-space-1);
}

.ns-cart-note__item svg {
	width: 0.9em;
	height: 0.9em;
	flex: none;
	color: var(--ns-color-accent-ink);
}

/* ===============================================================
 * 7. Free-delivery progress — rendered by ns_cart_free_delivery_progress()
 *
 * The threshold is read from the WooCommerce free-shipping method itself, so the copy cannot
 * drift away from what the cart actually charges.
 * =============================================================== */

.ns-ship-progress {
	margin: 0 0 var(--ns-space-5);
	padding: var(--ns-space-4) var(--ns-space-5);
	background-color: var(--ns-color-surface-warm);
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-lg);
}

.ns-ship-progress__text {
	margin: 0 0 var(--ns-space-3);
	font-size: var(--ns-text-sm);
	color: var(--ns-color-text);
}

.ns-ship-progress__text strong {
	font-weight: var(--ns-weight-display);
}

.ns-ship-progress__track {
	height: 8px;
	overflow: hidden;
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-pill);
	background-color: var(--ns-white);
}

.ns-ship-progress__fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background-color: var(--ns-color-cta);
	transition: width var(--ns-transition);
}

.ns-ship-progress.is-complete .ns-ship-progress__fill {
	background-color: var(--ns-color-success);
}

.ns-ship-progress.is-complete .ns-ship-progress__text {
	font-weight: var(--ns-weight-medium);
}

/* ===============================================================
 * 8. Empty cart
 * =============================================================== */

.woocommerce-cart .wc-empty-cart-message {
	margin: 0;
}

.woocommerce-cart .wc-empty-cart-message .cart-empty {
	display: block;
	margin-bottom: 0; /* the component layer gives every .woocommerce-info a bottom margin */
	padding: var(--ns-space-8) var(--ns-space-5) var(--ns-space-5);
	border: 0;
	border-radius: var(--ns-radius-lg) var(--ns-radius-lg) 0 0;
	background-color: var(--ns-color-surface-quiet);
	font-family: var(--ns-font-display);
	font-size: var(--ns-h3);
	font-weight: var(--ns-weight-display);
	color: var(--ns-color-text);
	text-align: center;
}

.woocommerce-cart .return-to-shop {
	margin: 0;
	padding: 0 var(--ns-space-5) var(--ns-space-8);
	border-radius: 0 0 var(--ns-radius-lg) var(--ns-radius-lg);
	background-color: var(--ns-color-surface-quiet);
	text-align: center;
}

/* Rendered by ns_empty_cart_help(), between the message and the Return to shop button. */
.woocommerce-cart .ns-empty-help {
	margin: 0;
	padding: 0 var(--ns-space-5) var(--ns-space-5);
	background-color: var(--ns-color-surface-quiet);
	color: var(--ns-color-text-muted);
	text-align: center;
}

.woocommerce-cart .return-to-shop .button {
	background-color: var(--ns-color-cta-solid);
	color: var(--ns-color-text-inverse);
}

.woocommerce-cart .return-to-shop .button:hover {
	background-color: var(--ns-color-cta-solid-hover);
	color: var(--ns-color-text-inverse);
}

/* ===============================================================
 * 9. Checkout — layout
 *
 * `#customer_details`, `#order_review_heading` and `#order_review` are siblings inside
 * form.checkout, which makes a proper two-column checkout a pure grid job: the form on the left,
 * a sticky order summary on the right. Kadence floats all three at 50% from 1025px, so every
 * float, width and padding it sets has to be unwound — ids beat its class selectors comfortably.
 * =============================================================== */

@media (min-width: 992px) {
	.woocommerce-checkout form.checkout {
		display: grid;
		grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
		grid-template-rows: auto auto 1fr;
		/* The notice row exists so WooCommerce's validation summary — which its JS prepends to
		 * the form — lands at the top of the checkout instead of being auto-placed into the
		 * first free cell, which is the bottom of the left column. It collapses to nothing
		 * when there is no notice. */
		grid-template-areas:
			"notice notice"
			"details review-heading"
			"details review";
		column-gap: var(--ns-space-7);
		align-items: start;
	}

	.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup {
		grid-area: notice;
	}

	.woocommerce-checkout form.checkout #customer_details {
		float: none;
		width: auto;
		padding: 0;
		grid-area: details;
	}

	.woocommerce-checkout form.checkout #order_review_heading {
		float: none;
		width: auto;
		padding: 0;
		grid-area: review-heading;
	}

	.woocommerce-checkout form.checkout #order_review {
		float: none;
		width: auto;
		padding: var(--ns-panel-pad);
		grid-area: review;
		align-self: start;
		position: sticky;
		top: var(--ns-sticky-offset);
	}
}

/* WooCommerce 11 prints per-field validation text as `p.checkout-inline-error-message`. */
.woocommerce-checkout .checkout-inline-error-message {
	margin: var(--ns-space-1) 0 0;
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-danger);
}

/* The billing / shipping / notes columns always stack: at this width a 48% column would put
 * two 200px form fields side by side. */
.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
	float: none;
	width: 100%;
	padding: 0;
}

.woocommerce-checkout form.checkout #customer_details .col-2 {
	margin-top: var(--ns-space-5);
}

.woocommerce-checkout .woocommerce-shipping-fields,
.woocommerce-checkout .woocommerce-additional-fields {
	margin-top: var(--ns-space-5);
}

.woocommerce-checkout #order_review_heading {
	font-family: var(--ns-font-display);
	font-size: var(--ns-h4);
	font-weight: var(--ns-weight-display);
	margin: var(--ns-space-6) 0 var(--ns-space-3);
}

@media (min-width: 992px) {
	.woocommerce-checkout #order_review_heading {
		margin: 0 0 var(--ns-space-3);
	}
}

/* ===============================================================
 * 10. Checkout — form fields
 * =============================================================== */

.woocommerce-checkout form .form-row,
.woocommerce-account form .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--ns-space-2);
	float: none;
	width: 100%;
	margin: 0 0 var(--ns-space-4);
	padding: 0;
}

.woocommerce-checkout form .form-row label,
.woocommerce-account form .form-row label {
	display: block;
	margin: 0;
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-text);
}

.woocommerce-checkout form .form-row .woocommerce-input-wrapper,
.woocommerce-account form .form-row .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.woocommerce form .form-row label .required,
.woocommerce form .form-row label abbr.required {
	color: var(--ns-color-danger);
	text-decoration: none;
	border: 0;
}

.woocommerce form .form-row label .optional {
	font-weight: var(--ns-weight-body);
	color: var(--ns-color-text-muted);
}

/* WooCommerce hides `.description` and reveals it as a floating tooltip on focus. Field help is
 * more use as permanent text under the control, so it is flattened back into the flow. The
 * aria-hidden Woo puts on the tooltip is stripped in ns_expose_field_description(). */
.woocommerce-checkout .woocommerce form .form-row .description,
.woocommerce-account .woocommerce form .form-row .description,
.woocommerce form .form-row span em {
	/* On checkout, WooCommerce's address-i18n.js writes `style="display:none"` onto the element
	 * itself and slides it open only while the field has focus, so an inline style is the only
	 * thing there is to beat. The store sells to one country, so the description is always the
	 * right one to show. */
	display: block !important;
	position: static;
	width: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-size: var(--ns-text-sm);
	font-style: normal;
	font-weight: var(--ns-weight-body);
	line-height: var(--ns-leading-snug);
	color: var(--ns-color-text-muted);
}

/* Woo draws a speech-bubble arrow on the tooltip with `position:absolute; top:-3px; left:50%`.
 * Once the tooltip is flattened to static text that arrow has no positioned ancestor left, so it
 * escapes to the top of the page — a stray blue triangle over the page header. The body-class
 * prefix is needed because WooCommerce's stylesheet loads after this one and would otherwise
 * win the tie. */
.woocommerce-checkout .woocommerce form .form-row .description::before,
.woocommerce-checkout .woocommerce form .form-row .description::after,
.woocommerce-account .woocommerce form .form-row .description::before,
.woocommerce-account .woocommerce form .form-row .description::after {
	content: none;
	display: none;
}

/* Two fields per row once there is room for them to stay usable. */
@media (min-width: 560px) {
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
	.woocommerce-account form.woocommerce-EditAccountForm,
	.woocommerce-account form.edit-account,
	.woocommerce-address-fields__field-wrapper {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--ns-space-4);
	}

	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row,
	.woocommerce-account form.woocommerce-EditAccountForm > .form-row,
	.woocommerce-address-fields__field-wrapper > .form-row,
	.woocommerce-account form.woocommerce-EditAccountForm > fieldset,
	.woocommerce-account form.woocommerce-EditAccountForm > p:last-of-type {
		grid-column: 1 / -1;
	}

	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-first,
	.woocommerce-account form.woocommerce-EditAccountForm > .form-row-first,
	.woocommerce-address-fields__field-wrapper > .form-row-first {
		grid-column: 1;
	}

	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .form-row-last,
	.woocommerce-account form.woocommerce-EditAccountForm > .form-row-last,
	.woocommerce-address-fields__field-wrapper > .form-row-last {
		grid-column: 2;
	}

	/* Woo's float clearfixes have nothing to clear inside a grid. */
	.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .clear,
	.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper > .clear,
	.woocommerce-account form.woocommerce-EditAccountForm > .clear,
	.woocommerce-address-fields__field-wrapper > .clear {
		display: none;
	}
}

/* Country is a single-option select in a Pakistan-only store: shown, but presented as settled
 * information rather than a decision the customer has to make. */
.woocommerce-checkout #billing_country_field select,
.woocommerce-checkout #shipping_country_field select {
	background-color: var(--ns-color-surface-quiet);
	border-color: var(--ns-color-border);
	color: var(--ns-color-text-muted);
}

/* Validation states. Woo adds these classes as the customer types. */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select,
.woocommerce form .form-row.woocommerce-invalid .select2-selection {
	border-color: var(--ns-color-danger);
	background-color: var(--ns-color-danger-wash);
}

.woocommerce form .form-row.woocommerce-invalid label {
	color: var(--ns-color-danger);
}

.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select,
.woocommerce form .form-row.woocommerce-validated .select2-selection {
	border-color: var(--ns-color-success);
}

/* selectWoo (select2) replaces the city select. Match the plain inputs exactly, including the
 * 44px minimum and the 16px font iOS needs to not zoom the viewport. */
.select2-container--default .select2-selection--single {
	display: flex;
	align-items: center;
	height: auto;
	min-height: var(--ns-tap-min);
	padding: var(--ns-space-2) var(--ns-space-4);
	border: 1px solid var(--ns-color-border-strong);
	border-radius: var(--ns-radius-md);
	background-color: var(--ns-color-surface);
	transition: border-color var(--ns-transition), box-shadow var(--ns-transition);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	padding: 0;
	padding-inline-end: var(--ns-space-6);
	font-family: var(--ns-font-body);
	font-size: var(--ns-text-base);
	line-height: 1.4;
	color: var(--ns-color-text);
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: var(--ns-color-text-muted);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	top: 0;
	height: 100%;
	inset-inline-end: var(--ns-space-3);
}

/* select2's default caret is a pale grey that all but disappears on this ground. */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-top-color: var(--ns-color-text);
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
	border-bottom-color: var(--ns-color-text);
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
	border-color: var(--ns-color-focus);
	box-shadow: 0 0 0 3px rgb(45 33 53 / 0.12);
}

.select2-dropdown {
	border: 1px solid var(--ns-color-border-strong);
	border-radius: var(--ns-radius-md);
	background-color: var(--ns-color-surface);
	box-shadow: var(--ns-shadow-md);
	overflow: hidden;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	min-height: 40px;
	padding: var(--ns-space-2) var(--ns-space-3);
	border: 1px solid var(--ns-color-border-strong);
	border-radius: var(--ns-radius-sm);
	font-size: var(--ns-text-base);
}

.select2-container--default .select2-results__option {
	padding: var(--ns-space-2) var(--ns-space-4);
	font-size: var(--ns-text-base);
	color: var(--ns-color-text);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background-color: var(--ns-color-cta-solid); /* white label on #B23670 measures 5.75:1 */
	color: var(--ns-color-text-inverse);
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
	background-color: var(--ns-color-surface-warm);
	color: var(--ns-color-text);
}

/* ===============================================================
 * 11. Checkout — ship-to-different-address, notes, coupon
 * =============================================================== */

.woocommerce-checkout .woocommerce-shipping-fields > h3,
.woocommerce-checkout #ship-to-different-address {
	margin: 0;
	font-size: var(--ns-text-base);
}

.woocommerce-checkout #ship-to-different-address label {
	display: flex;
	align-items: center;
	gap: var(--ns-space-3);
	min-height: var(--ns-tap-min);
	margin: 0;
	font-family: var(--ns-font-display);
	font-size: var(--ns-h4);
	font-weight: var(--ns-weight-display);
	color: var(--ns-color-text);
	cursor: pointer;
}

.woocommerce-checkout .shipping_address {
	margin-top: var(--ns-space-4);
	padding-top: var(--ns-space-4);
	border-top: 1px solid var(--ns-color-border);
}

.woocommerce-checkout .woocommerce-additional-fields textarea {
	min-height: 6rem;
}

.woocommerce-checkout .woocommerce-form-coupon-toggle .woocommerce-info {
	margin-bottom: var(--ns-space-4);
	font-size: var(--ns-text-sm);
}

.woocommerce-checkout form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ns-space-3);
	align-items: flex-end;
	margin: 0 0 var(--ns-space-5);
	padding: var(--ns-panel-pad);
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-lg);
	background-color: var(--ns-color-surface);
}

.woocommerce-checkout form.checkout_coupon .form-row {
	float: none;
	width: auto;
	margin: 0;
}

.woocommerce-checkout form.checkout_coupon .form-row-first {
	flex: 1 1 16rem;
}

.woocommerce-checkout form.checkout_coupon .clear {
	display: none;
}

/* ===============================================================
 * 12. Checkout — order review
 * =============================================================== */

.woocommerce-checkout table.woocommerce-checkout-review-order-table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead {
	display: none; /* "Product / Subtotal" repeats what each row already says */
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table td,
.woocommerce-checkout table.woocommerce-checkout-review-order-table th {
	padding: var(--ns-space-3) 0;
	border: 0;
	background: none;
	font-size: var(--ns-text-base);
	vertical-align: top;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td {
	border-bottom: 1px solid var(--ns-color-border);
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name {
	padding-inline-end: var(--ns-space-3);
	color: var(--ns-color-text);
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .product-quantity {
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-text-muted);
	white-space: nowrap;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
	text-align: right;
	white-space: nowrap;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th {
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-text-muted);
	text-align: left;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total td {
	padding-top: var(--ns-space-4);
	border-top: 1px solid var(--ns-color-border);
	font-size: var(--ns-text-lg);
	color: var(--ns-color-text);
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot tr.order-total strong {
	font-family: var(--ns-font-display);
	font-weight: var(--ns-weight-display);
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table ul#shipping_method li {
	display: flex;
	justify-content: flex-end;
	gap: var(--ns-space-2);
	margin: 0;
	padding: 0;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table ul#shipping_method label {
	font-size: var(--ns-text-base);
	font-weight: var(--ns-weight-body);
	color: var(--ns-color-text);
}

/* ===============================================================
 * 13. Checkout — payment methods
 *
 * Kadence hides the real radio (clip + position:absolute !important above 768px) and draws a
 * 10px circle with label::before instead. That loses the focus ring and gives keyboard users
 * nothing to see, so the real control is restored and the whole row becomes the selectable card.
 * =============================================================== */

.woocommerce-checkout #payment {
	margin-top: var(--ns-space-5);
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.woocommerce-checkout #payment ul.payment_methods {
	display: grid;
	gap: var(--ns-space-3);
	margin: 0 0 var(--ns-space-5);
	padding: 0;
	border: 0;
	list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	column-gap: var(--ns-space-3);
	margin: 0;
	padding: var(--ns-space-4);
	border: 1px solid var(--ns-color-border-strong);
	border-radius: var(--ns-radius-md);
	background-color: var(--ns-color-surface);
	transition: border-color var(--ns-transition), background-color var(--ns-transition),
		box-shadow var(--ns-transition);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input:checked) {
	border-color: var(--ns-color-accent-ink);
	background-color: var(--ns-color-surface-warm);
	box-shadow: inset 0 0 0 1px var(--ns-color-accent-ink);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input[type="radio"] {
	position: static !important; /* Kadence: clip + position:absolute !important above 768px */
	clip: auto !important; /* same rule */
	width: 1.15rem;
	height: 1.15rem;
	min-height: 0;
	margin: 0;
	accent-color: var(--ns-color-cta-solid);
	cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
	display: flex;
	align-items: center;
	min-height: var(--ns-tap-min);
	margin: 0;
	padding: 0;
	border: 0; /* Kadence draws a 5px left bar on the label */
	background: none;
	font-family: var(--ns-font-body);
	font-size: var(--ns-text-base);
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-text);
	cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label::before {
	display: none !important; /* Kadence's fake 10px radio, replaced by the real control */
}

/* Kadence's selected state — a 5px bar and a fill on the label — is drawn by
 * `#payment ul.wc_payment_methods li.wc_payment_method input:checked + label`, which outranks the
 * rule above. The card itself carries the selected state here, so the label stays plain. */
.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label:hover,
.woocommerce-checkout
	#payment
	ul.payment_methods
	li.wc_payment_method
	> input[type="radio"]:checked
	+ label {
	border: 0;
	background: none;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box {
	grid-column: 2;
	width: auto;
	margin: var(--ns-space-1) 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: var(--ns-text-sm);
	color: var(--ns-color-text-muted);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box::before {
	display: none; /* Woo draws a speech-bubble arrow on the description box */
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box p {
	margin: 0;
}

/* Terms and privacy — the required gate before Place order. */
.woocommerce-checkout #payment .place-order {
	margin: 0;
	padding: 0;
}

.woocommerce-checkout .woocommerce-privacy-policy-text p {
	margin-bottom: var(--ns-space-4);
	font-size: var(--ns-text-sm);
	color: var(--ns-color-text-muted);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row.validate-required {
	margin-bottom: var(--ns-space-4);
	padding: var(--ns-space-2) var(--ns-space-4);
	border: 1px solid var(--ns-color-border-strong);
	border-radius: var(--ns-radius-md);
	background-color: var(--ns-color-surface-warm);
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper .form-row.woocommerce-invalid {
	border-color: var(--ns-color-danger);
	background-color: var(--ns-color-danger-wash);
}

.woocommerce-checkout .woocommerce-terms-and-conditions {
	margin-bottom: var(--ns-space-4);
	padding: var(--ns-space-4);
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-md);
	background-color: var(--ns-color-surface-quiet);
	font-size: var(--ns-text-sm);
}

.woocommerce-checkout .woocommerce-terms-and-conditions h2 {
	font-size: var(--ns-text-base);
	margin: var(--ns-space-4) 0 var(--ns-space-1);
}

.woocommerce form .woocommerce-form__label-for-checkbox,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label.checkbox {
	display: flex;
	align-items: flex-start;
	gap: var(--ns-space-3);
	min-height: var(--ns-tap-min);
	padding-block: var(--ns-space-2);
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-body);
	cursor: pointer;
}

.woocommerce form .woocommerce-form__input-checkbox,
.woocommerce-checkout input#terms {
	width: 1.15rem;
	height: 1.15rem;
	min-height: 0;
	margin: 0.2rem 0 0;
	flex: none;
	accent-color: var(--ns-color-cta-solid);
	cursor: pointer;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-checkbox-text {
	font-weight: var(--ns-weight-medium);
}

.woocommerce-checkout #place_order {
	display: flex;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: var(--ns-space-3) var(--ns-space-5);
	background-color: var(--ns-color-cta-solid);
	color: var(--ns-color-text-inverse);
	font-size: var(--ns-text-lg);
	font-weight: var(--ns-weight-medium);
	float: none;
}

.woocommerce-checkout #place_order:hover {
	background-color: var(--ns-color-cta-solid-hover);
	color: var(--ns-color-text-inverse);
}

/* Woo's blockUI overlay while the order posts. */
.woocommerce .blockUI.blockOverlay {
	border-radius: var(--ns-radius-lg);
}

/* ===============================================================
 * 14. Order received / thank you
 * =============================================================== */

.woocommerce-order .woocommerce-thankyou-order-received {
	margin: 0 0 var(--ns-space-5);
	padding: var(--ns-space-6) var(--ns-panel-pad);
	border: 1px solid var(--ns-color-success);
	border-radius: var(--ns-radius-lg);
	background-color: var(--ns-color-success-wash);
	font-family: var(--ns-font-display);
	font-size: var(--ns-h3);
	font-weight: var(--ns-weight-display);
	line-height: var(--ns-leading-snug);
	color: var(--ns-color-text);
	text-align: center;
}

.woocommerce ul.order_details {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: var(--ns-space-3);
	margin: 0 0 var(--ns-space-6);
	padding: 0;
	list-style: none;
}

.woocommerce ul.order_details li {
	float: none;
	margin: 0;
	padding: var(--ns-space-4);
	border: 1px solid var(--ns-color-border);
	border-right: 1px solid var(--ns-color-border); /* Kadence uses a dashed divider instead */
	border-radius: var(--ns-radius-md);
	background-color: var(--ns-color-surface);
	font-size: var(--ns-text-xs);
	font-weight: var(--ns-weight-medium);
	letter-spacing: var(--ns-tracking-wide);
	text-transform: uppercase;
	color: var(--ns-color-text-muted);
	line-height: 1.4;
}

.woocommerce ul.order_details li strong {
	display: block;
	margin-top: var(--ns-space-1);
	font-family: var(--ns-font-display);
	font-size: var(--ns-text-lg);
	font-weight: var(--ns-weight-display);
	letter-spacing: normal;
	text-transform: none;
	color: var(--ns-color-text);
}

/* Bank transfer instructions. The wording is WooCommerce's and the account details are the
 * store's — presentation only, never rewritten. */
.woocommerce .woocommerce-bacs-bank-details,
.woocommerce .wc-bacs-bank-details-account-name {
	margin: 0 0 var(--ns-space-6);
	padding: 0;
	list-style: none;
}

.woocommerce .wc-bacs-bank-details-heading {
	font-family: var(--ns-font-display);
	font-size: var(--ns-h4);
	margin-bottom: var(--ns-space-3);
}

/* The account name is a label for the details below it, not a section heading; WooCommerce
 * prints it as an h3, which would otherwise outshout "Our bank details" above it. */
.woocommerce .wc-bacs-bank-details-account-name {
	margin: 0 0 var(--ns-space-2);
	font-family: var(--ns-font-body);
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-medium);
	letter-spacing: var(--ns-tracking-wide);
	text-transform: uppercase;
	color: var(--ns-color-text-muted);
}

.woocommerce ul.wc-bacs-bank-details {
	padding: var(--ns-panel-pad);
	border: 1px solid var(--ns-color-info);
	border-radius: var(--ns-radius-lg);
	background-color: var(--ns-color-info-wash);
}

.woocommerce ul.wc-bacs-bank-details li {
	margin: 0 0 var(--ns-space-2);
	padding: 0;
	list-style: none;
	font-size: var(--ns-text-base);
}

.woocommerce ul.wc-bacs-bank-details li:last-child {
	margin-bottom: 0;
}

.woocommerce .woocommerce-order-details,
.woocommerce .woocommerce-customer-details,
.woocommerce .woocommerce-order-downloads {
	margin-bottom: var(--ns-space-6);
}

.woocommerce .woocommerce-order-details__title,
.woocommerce .woocommerce-column__title,
.woocommerce .woocommerce-customer-details h2 {
	font-family: var(--ns-font-display);
	font-size: var(--ns-h4);
	margin-bottom: var(--ns-space-4);
}

.woocommerce table.woocommerce-table--order-details,
.woocommerce table.order_details {
	width: 100%;
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-lg);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background-color: var(--ns-color-surface);
}

.woocommerce table.woocommerce-table--order-details th,
.woocommerce table.woocommerce-table--order-details td {
	padding: var(--ns-space-3) var(--ns-space-4);
	border: 0;
	border-bottom: 1px solid var(--ns-color-border);
	background: none;
	text-align: left;
	font-size: var(--ns-text-base);
}

.woocommerce table.woocommerce-table--order-details td.product-total,
.woocommerce table.woocommerce-table--order-details th.product-total,
.woocommerce table.woocommerce-table--order-details tfoot td {
	text-align: right;
}

.woocommerce table.woocommerce-table--order-details thead th {
	font-size: var(--ns-text-xs);
	font-weight: var(--ns-weight-medium);
	letter-spacing: var(--ns-tracking-wide);
	text-transform: uppercase;
	color: var(--ns-color-text-muted);
	background-color: var(--ns-color-surface-warm);
}

.woocommerce .woocommerce-customer-details address {
	padding: var(--ns-panel-pad);
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-lg);
	background-color: var(--ns-color-surface);
	font-style: normal;
	line-height: var(--ns-leading-body);
}

/* ===============================================================
 * 15. My Account — layout
 * =============================================================== */

/* The page shell deliberately removes landing-page padding. Account endpoints
 * need their own top AND bottom rhythm, including the logged-out forms. */
.woocommerce-account .site-main {
	padding-block: clamp(2rem, 4vw, 3rem);
}

.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-content) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--ns-space-5);
	align-items: start;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-account .woocommerce-MyAccount-content > *,
.woocommerce-account #customer_login > div {
	min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
	overflow-wrap: anywhere;
}

@media (min-width: 900px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-content) {
		display: grid;
		grid-template-columns: 16rem minmax(0, 1fr);
		gap: var(--ns-space-7);
		align-items: start;
	}

	.woocommerce-account .account-navigation-wrap {
		position: sticky;
		top: var(--ns-sticky-offset);
	}
}

/* Kadence floats this column, and a floated box shrink-to-fits inside its grid track — the
 * sidebar rendered 77px wide with one letter per line until the float was released. */
.woocommerce-account .account-navigation-wrap {
	float: none;
	width: 100%;
	padding: var(--ns-space-4);
}

.woocommerce-account .account-navigation-wrap .kadence-account-avatar {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--ns-space-2);
	padding: var(--ns-space-3) var(--ns-space-2) var(--ns-space-4);
	margin-bottom: var(--ns-space-3);
	border-bottom: 1px solid var(--ns-color-border);
	text-align: left;
}

.woocommerce-account .account-navigation-wrap .kadence-customer-image {
	position: static;
	width: 64px;
	flex: 0 0 64px;
}

.woocommerce-account .account-navigation-wrap .kadence-customer-image img {
	position: static;
	display: block;
	width: 64px;
	height: 64px;
	min-width: 64px;
	max-width: 64px;
	border-radius: 50%;
	border: 2px solid var(--ns-color-border);
	object-fit: cover;
}

.woocommerce-account .account-navigation-wrap .kadence-customer-name {
	padding: 0;
	min-width: 0;
	overflow-wrap: anywhere;
	font-family: var(--ns-font-display);
	font-size: var(--ns-text-lg);
	font-weight: var(--ns-weight-display);
	color: var(--ns-color-text);
}

.woocommerce-account .woocommerce-MyAccount-navigation {
	float: none;
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: flex;
	align-items: center;
	min-height: var(--ns-tap-min);
	padding: var(--ns-space-2) var(--ns-space-3);
	border-radius: var(--ns-radius-md);
	font-size: var(--ns-text-base);
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-text-muted);
	text-decoration: none;
	transition: background-color var(--ns-transition), color var(--ns-transition);
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background-color: var(--ns-color-surface-accent);
	color: var(--ns-color-text);
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
	background-color: var(--ns-color-surface-warm);
	color: var(--ns-color-text);
	box-shadow: inset 3px 0 0 var(--ns-color-cta);
}

.woocommerce-account .woocommerce-MyAccount-navigation li--customer-logout a,
.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
	margin-top: var(--ns-space-2);
	padding-top: var(--ns-space-3);
	border-top: 1px solid var(--ns-color-border);
	border-radius: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
	float: none;
	width: 100%;
}

.woocommerce-account .woocommerce-MyAccount-content > p:first-of-type {
	font-size: var(--ns-text-lg);
}

@media (max-width: 899px) {
	.woocommerce-account .account-navigation-wrap { position: static; }
	.woocommerce-account .account-navigation-wrap .kadence-customer-image {
		width: 48px;
		flex-basis: 48px;
	}
	.woocommerce-account .account-navigation-wrap .kadence-customer-image img {
		width: 48px; height: 48px; min-width: 48px; max-width: 48px;
	}
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--ns-space-2);
	}
	.woocommerce-account .woocommerce-MyAccount-navigation li a {
		height: 100%;
		font-size: var(--ns-text-sm);
	}
	.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a {
		margin-top: 0;
		padding-block: var(--ns-space-2);
		border-top: 0;
		border-radius: var(--ns-radius-md);
	}
}

@media (min-width: 640px) and (max-width: 899px) {
	.woocommerce-account .woocommerce-MyAccount-navigation ul {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ===============================================================
 * 16. My Account — login, orders, addresses
 * =============================================================== */

.woocommerce-account .woocommerce > h2,
.woocommerce-account .woocommerce-MyAccount-content h2,
.woocommerce-account .woocommerce-MyAccount-content h3 {
	font-family: var(--ns-font-display);
	font-size: var(--ns-h4);
	margin: 0 0 var(--ns-space-4);
}

/* Login and register.
 *
 * With registration enabled WooCommerce renders `#customer_login` as a two-column `col2-set`:
 * Login on the left, Register on the right. Kadence floats those columns at 48% and clears them
 * to full width below 720px. Grid instead — and the panel treatment moves onto the two columns
 * so each form reads as its own card with its own heading, rather than one long stack.
 */
.woocommerce-account #customer_login {
	display: grid;
	gap: var(--ns-space-5);
	width: 100%;
	max-width: 62rem;
	margin-inline: auto;
}

@media (min-width: 860px) {
	.woocommerce-account #customer_login {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--ns-space-6);
		align-items: start;
	}
}

.woocommerce-account #customer_login::before,
.woocommerce-account #customer_login::after {
	display: none; /* Kadence clearfixes .col2-set; inside a grid those become items */
}

.woocommerce-account #customer_login > .col-1,
.woocommerce-account #customer_login > .col-2 {
	float: none;
	width: 100%;
	padding: var(--ns-panel-pad);
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-lg);
	background-color: var(--ns-color-surface);
	box-shadow: var(--ns-shadow-sm);
}

.woocommerce-account #customer_login > .col-2 {
	background-color: var(--ns-color-surface-warm);
}

.woocommerce-account #customer_login h2 {
	margin: 0 0 var(--ns-space-4);
	padding-bottom: var(--ns-space-3);
	border-bottom: 1px solid var(--ns-color-border);
}

/* Inside the two-column layout the forms fill their card; on the lost-password page the form
 * stands alone and is centred instead. */
.woocommerce-account #customer_login .woocommerce-form-login,
.woocommerce-account #customer_login .woocommerce-form-register {
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
}

.woocommerce-account .woocommerce-form-register button[type="submit"] {
	width: 100%;
	background-color: var(--ns-color-cta-solid);
	color: var(--ns-color-text-inverse);
}

.woocommerce-account .woocommerce-form-register button[type="submit"]:hover {
	background-color: var(--ns-color-cta-solid-hover);
	color: var(--ns-color-text-inverse);
}

.woocommerce-account .woocommerce-privacy-policy-text p {
	margin-bottom: var(--ns-space-4);
	font-size: var(--ns-text-sm);
	color: var(--ns-color-text-muted);
}

/* The register submit sat hard against the privacy sentence above it. */
.woocommerce-account .woocommerce-form-register .woocommerce-form-row + p,
.woocommerce-account .woocommerce-form-register button[type="submit"] {
	margin-top: var(--ns-space-4);
}

.woocommerce-account .woocommerce-ResetPassword {
	max-width: 30rem;
	margin-inline: auto;
}

.woocommerce-account .woocommerce-form-login .woocommerce-form-login__rememberme,
.woocommerce-account .woocommerce-form-login .woocommerce-form__label-for-checkbox {
	margin-bottom: var(--ns-space-3);
}

.woocommerce-account .woocommerce-form-login button[name="login"],
.woocommerce-account .woocommerce-ResetPassword button.button {
	width: 100%;
	background-color: var(--ns-color-cta-solid);
	color: var(--ns-color-text-inverse);
}

.woocommerce-account .woocommerce-form-login button[name="login"]:hover,
.woocommerce-account .woocommerce-ResetPassword button.button:hover {
	background-color: var(--ns-color-cta-solid-hover);
	color: var(--ns-color-text-inverse);
}

.woocommerce-account .woocommerce-LostPassword {
	margin: var(--ns-space-4) 0 0;
	font-size: var(--ns-text-sm);
	text-align: center;
}

/* Orders table */
.woocommerce-account table.woocommerce-orders-table,
.woocommerce-account table.shop_table {
	width: 100%;
	margin: 0;
	border: 1px solid var(--ns-color-border);
	border-radius: var(--ns-radius-lg);
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	background-color: var(--ns-color-surface);
}

.woocommerce-account table.woocommerce-orders-table thead th {
	padding: var(--ns-space-3) var(--ns-space-4);
	border: 0;
	border-bottom: 1px solid var(--ns-color-border);
	background-color: var(--ns-color-surface-warm);
	font-size: var(--ns-text-xs);
	font-weight: var(--ns-weight-medium);
	letter-spacing: var(--ns-tracking-wide);
	text-transform: uppercase;
	color: var(--ns-color-text-muted);
	text-align: left;
}

.woocommerce-account table.woocommerce-orders-table tbody th,
.woocommerce-account table.woocommerce-orders-table tbody td {
	padding: var(--ns-space-4);
	border: 0;
	border-bottom: 1px solid var(--ns-color-border);
	background: none;
	font-size: var(--ns-text-base);
	font-weight: var(--ns-weight-body);
	text-align: left;
	vertical-align: middle;
}

.woocommerce-account table.woocommerce-orders-table tbody tr:last-child th,
.woocommerce-account table.woocommerce-orders-table tbody tr:last-child td {
	border-bottom: 0;
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a {
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-link);
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-button {
	min-height: 40px;
	padding: var(--ns-space-2) var(--ns-space-4);
	font-size: var(--ns-text-sm);
	background-color: transparent;
	border: 1px solid var(--ns-color-border-strong);
	color: var(--ns-color-text);
}

.woocommerce-account table.woocommerce-orders-table .woocommerce-button:hover {
	background-color: var(--ns-color-surface-accent);
	border-color: var(--ns-color-accent-ink);
	color: var(--ns-color-text);
}

/* Below 720px Kadence stacks these rows and hides `tbody th` outright, which drops the order
 * number — the one cell that identifies the row. Rebuilt as a card with the number restored. */
@media (max-width: 719px) {
	.woocommerce-account table.woocommerce-orders-table thead {
		display: none;
	}

	.woocommerce-account table.woocommerce-orders-table tbody,
	.woocommerce-account table.woocommerce-orders-table tr {
		display: block;
	}

	.woocommerce-account table.woocommerce-orders-table tbody tr {
		padding: var(--ns-space-4);
		border-bottom: 1px solid var(--ns-color-border);
	}

	.woocommerce-account table.woocommerce-orders-table tbody tr:last-child {
		border-bottom: 0;
	}

	.woocommerce-account table.woocommerce-orders-table tbody th,
	.woocommerce-account table.woocommerce-orders-table tbody td {
		display: block;
		padding: var(--ns-space-1) 0;
		border: 0;
		text-align: right !important; /* Kadence: shop_table_responsive tr td */
		background: none !important; /* Kadence: shop_table_responsive tr:nth-child(2n) td */
	}

	.woocommerce-account table.woocommerce-orders-table tbody th {
		display: block; /* Kadence hides tbody th entirely, losing the order number */
		margin-bottom: var(--ns-space-2);
		font-family: var(--ns-font-display);
		font-size: var(--ns-text-lg);
		font-weight: var(--ns-weight-display);
		text-align: left !important; /* same Kadence rule */
	}

	/* The label floats left of its value, so a multi-part value such as
	 * "Rs 350 for 1 item" stays together instead of being split across the row. */
	.woocommerce-account table.woocommerce-orders-table tbody td::before {
		content: attr(data-title);
		font-weight: var(--ns-weight-medium);
		color: var(--ns-color-text-muted);
	}

	.woocommerce-account table.woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions {
		display: block;
		margin-top: var(--ns-space-3);
	}

	.woocommerce-account
		table.woocommerce-orders-table
		tbody
		td.woocommerce-orders-table__cell-order-actions::before {
		display: none;
	}

	.woocommerce-account table.woocommerce-orders-table .woocommerce-button {
		width: 100%;
	}
}

/* Addresses */
.woocommerce-account .woocommerce-Addresses {
	display: grid;
	gap: var(--ns-space-5);
	width: 100%;
}

@media (min-width: 640px) {
	.woocommerce-account .woocommerce-Addresses {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.woocommerce-account .woocommerce-Addresses .woocommerce-Address {
	float: none;
	width: 100%;
}

.woocommerce-account .woocommerce-Address-title {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--ns-space-3);
}

.woocommerce-account .woocommerce-Address-title h2 {
	margin: 0 0 var(--ns-space-4);
	padding-bottom: var(--ns-space-3);
	flex: 1;
}

.woocommerce-account .woocommerce-Address-title a.edit {
	font-size: var(--ns-text-sm);
	font-weight: var(--ns-weight-medium);
	color: var(--ns-color-link);
}

.woocommerce-account .woocommerce-Address address {
	font-style: normal;
	line-height: var(--ns-leading-body);
	color: var(--ns-color-text);
}

/* Account details form */
.woocommerce-account .woocommerce-EditAccountForm fieldset {
	margin: var(--ns-space-5) 0 0;
	padding: var(--ns-space-5) 0 0;
	border: 0;
	border-top: 1px solid var(--ns-color-border);
}

.woocommerce-account .woocommerce-EditAccountForm legend {
	font-family: var(--ns-font-display);
	font-size: var(--ns-h4);
	font-weight: var(--ns-weight-display);
	padding: 0;
	margin-bottom: var(--ns-space-4);
}

.woocommerce-account .woocommerce-EditAccountForm button[type="submit"],
.woocommerce-account form.edit-address button[type="submit"] {
	background-color: var(--ns-color-cta-solid);
	color: var(--ns-color-text-inverse);
}

.woocommerce-account .woocommerce-EditAccountForm button[type="submit"]:hover,
.woocommerce-account form.edit-address button[type="submit"]:hover {
	background-color: var(--ns-color-cta-solid-hover);
	color: var(--ns-color-text-inverse);
}

.woocommerce-account form.edit-address,
.woocommerce-account form.woocommerce-address-fields {
	max-width: 40rem;
}

/* Downloads and any other empty account panel. */
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-info,
.woocommerce-account .woocommerce-MyAccount-content .woocommerce-message {
	align-items: center;
	flex-wrap: wrap;
}

/* Woo puts the action button before the sentence that explains it. Reading order wins. */
.woocommerce .woocommerce-info > .button,
.woocommerce .woocommerce-message > .button {
	order: 2;
	flex: none;
	margin-inline-start: auto;
	min-height: 40px;
	padding: var(--ns-space-2) var(--ns-space-4);
	font-size: var(--ns-text-sm);
	background-color: transparent;
	border: 1px solid var(--ns-color-border-strong);
	color: var(--ns-color-text);
}

.woocommerce .woocommerce-info > .button:hover,
.woocommerce .woocommerce-message > .button:hover {
	background-color: var(--ns-color-surface);
	border-color: var(--ns-color-accent-ink);
	color: var(--ns-color-text);
}
/* Main departments and card occasions are distinct levels of browsing. */
.ns-shop-filters.ns-card-occasions {
	display: block;
	padding: 16px 20px;
	margin-block: 0 24px;
	background: #f5f0f9;
	border-left: 3px solid #c8b6e2;
	border-radius: 0 12px 12px 0;
}
.ns-occasion-label {
	display: block;
	font-weight: 600;
	font-size: 13px;
	margin-bottom: 10px;
	color: var(--ns-color-text-muted);
}
.ns-occasion-options { display: flex; flex-wrap: wrap; gap: 8px; }
.ns-card-occasions .ns-chip { background: #fff; font-size: 13px; }
.ns-card-occasions .ns-chip.is-active { background: var(--ns-color-cta); }
@media (max-width: 599px) {
	.ns-shop-filters.ns-card-occasions { padding: 12px; }
}
.cart_totals .ns-delivery-address-help {
	font-size: var(--ns-text-sm);
	line-height: 1.6;
	margin-block: 12px;
}
