/* =========================================================================
   Cart page — page-cart.php, woocommerce/cart/*, inc/cart.php.
   Loaded only on /cart/. Tokens come from style.css :root. Values are read off
   Cart.dc.html. "a11y" marks a deliberate change from the design's colours.
   ========================================================================= */

.ahnl-cartpage {
	color: var( --ahnl-ink );
}

/* --- Heading --------------------------------------------------------------- */
.ahnl-cart-crumbs {
	max-width: var( --ahnl-container );
	margin: 0 auto;
	padding: 11px 22px;
	font: 400 12.5px/1.4 "AH Inter", system-ui, sans-serif;
	color: #6b7265;
}

.ahnl-cart-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ahnl-cart-crumbs li {
	display: inline-flex;
	gap: 8px;
	margin: 0;
}

.ahnl-cart-crumbs li + li::before {
	content: "›";
	color: #b4b8ac;
}

.ahnl-cart-crumbs a {
	color: #6b7265;
	text-decoration: none;
}

.ahnl-cart-crumbs a:hover,
.ahnl-cart-crumbs a:focus {
	color: var( --ahnl-green );
	text-decoration: underline;
}

.ahnl-cart-crumbs [aria-current="page"] {
	color: var( --ahnl-ink );
}

.ahnl-cart-hero {
	max-width: var( --ahnl-container );
	margin: 0 auto;
	padding: clamp( 22px, 3vw, 34px ) 22px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 26px;
	align-items: flex-end;
	justify-content: space-between;
}

.ahnl-cart-hero__text {
	display: flex;
	flex-direction: column;
	gap: 9px;
	min-width: 0;
}

/* a11y: the design's #C89B3C label on the page colour is 2.3:1; the darker gold used elsewhere passes. */
.ahnl-cart-hero__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font: 600 10.5px/1 "AH Inter", system-ui, sans-serif;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #8a5a12;
}

.ahnl-cart-hero__kicker::after {
	content: "";
	width: 44px;
	height: 2px;
	border-radius: 99px;
	background: linear-gradient( 90deg, var( --ahnl-gold ), rgba( 200, 155, 60, 0 ) );
}

.ahnl-cart-hero__title {
	margin: 0;
	font: 700 clamp( 25px, 3.2vw, 38px ) / 1.16 "AH Poppins", sans-serif;
	letter-spacing: -0.015em;
	color: var( --ahnl-ink );
}

.ahnl-cart-hero__line {
	font: 400 14px/1.7 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-muted );
}

.ahnl-cart-hero__back {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 20px;
	border: 1.5px solid var( --ahnl-green );
	border-radius: 99px;
	font: 600 13px/1 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-green );
	text-decoration: none;
}

.ahnl-cart-hero__back:hover,
.ahnl-cart-hero__back:focus-visible {
	background: #f1f5ef;
	color: var( --ahnl-green );
}

/* --- Two columns ---------------------------------------------------------------- */
.ahnl-cart-wrap {
	max-width: var( --ahnl-container );
	margin: 0 auto;
	padding: clamp( 16px, 2.2vw, 24px ) 22px clamp( 44px, 5vw, 70px );
}

.ahnl-cartpage .ahnl-cart {
	display: grid;
	grid-template-columns: minmax( 0, 1fr ) minmax( 300px, 360px );
	gap: clamp( 18px, 2.4vw, 30px );
	align-items: start;
}

.ahnl-cart__main {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.ahnl-cart__side {
	position: sticky;
	top: 20px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
}

.ahnl-cart__main > .woocommerce-notices-wrapper:empty {
	display: none;
}

/* Free-shipping progress (.ahnl-ship) lives in style.css: the cart and the checkout share it. */

/* --- Items table (WooCommerce's table, laid out as grid rows) ---------------------- */
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents {
	display: block;
	width: 100%;
	margin: 0;
	background: #fff;
	border: 1px solid var( --ahnl-line );
	border-radius: 18px;
	overflow: hidden;
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead,
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents tbody {
	display: block;
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents tr {
	display: grid;
	border: 0;
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead tr,
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents tr.cart_item {
	grid-template-columns: 84px minmax( 0, 1fr ) 96px 128px 104px 40px;
	gap: 16px;
	align-items: center;
	padding: 18px 20px;
	border-bottom: 1px solid #f2f1e8;
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead tr {
	padding: 13px 20px;
	background: var( --ahnl-page );
	border-bottom: 1px solid var( --ahnl-line );
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents td,
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents th {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead th {
	font: 600 11px/1 "AH Inter", system-ui, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #6b7265;
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead th.product-remove,
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead th.product-thumbnail {
	display: none;
}

.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead th.product-name { grid-column: 1 / 3; }
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead th.product-price { grid-column: 3; }
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead th.product-quantity { grid-column: 4; }
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead th.product-subtotal { grid-column: 5; text-align: right; }

/* Column placement, independent of the order WooCommerce prints the cells in. */
.ahnl-cartpage .ahnl-cart tr.cart_item td.product-thumbnail { grid-column: 1; grid-row: 1; }
.ahnl-cartpage .ahnl-cart tr.cart_item td.product-name { grid-column: 2; grid-row: 1; }
.ahnl-cartpage .ahnl-cart tr.cart_item td.product-price { grid-column: 3; grid-row: 1; }
.ahnl-cartpage .ahnl-cart tr.cart_item td.product-quantity { grid-column: 4; grid-row: 1; }
.ahnl-cartpage .ahnl-cart tr.cart_item td.product-subtotal { grid-column: 5; grid-row: 1; text-align: right; }
.ahnl-cartpage .ahnl-cart tr.cart_item td.product-remove { grid-column: 6; grid-row: 1; display: flex; justify-content: flex-end; }

/* WooCommerce's small-screen "Price:" labels are not part of this design. */
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents td::before {
	content: none;
}

.ahnl-cartpage .ahnl-cart td.product-thumbnail a,
.ahnl-cartpage .ahnl-cart td.product-thumbnail > img {
	display: block;
	width: 84px;
	height: 84px;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient( 160deg, #f8f9f6, #f1f0e9 );
}

.ahnl-cartpage .ahnl-cart td.product-thumbnail img {
	display: block;
	width: 84px;
	height: 84px;
	max-width: none;
	padding: 6px;
	object-fit: contain;
}

.ahnl-cartpage .ahnl-cart td.product-name {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	font: 600 14px/1.45 "AH Inter", system-ui, sans-serif;
}

.ahnl-cartpage .ahnl-cart td.product-name > a:not( .ahnl-cart-cat ) {
	color: var( --ahnl-ink );
	text-decoration: none;
	text-wrap: pretty;
}

.ahnl-cartpage .ahnl-cart td.product-name > a:not( .ahnl-cart-cat ):hover {
	color: var( --ahnl-green );
	text-decoration: underline;
}

/* a11y: #C89B3C on white is 2.4:1 — same darker gold as the category card brand label. */
.ahnl-cartpage .ahnl-cart .ahnl-cart-cat {
	order: -1;
	font: 600 10.5px/1 "AH Inter", system-ui, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #8a5a12;
	text-decoration: none;
}

.ahnl-cart-stock {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font: 500 12px/1 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-green );
}

.ahnl-cart-stock::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
}

.ahnl-cart-stock.is-low { color: #a8631c; }
.ahnl-cart-stock.is-out { color: #a8371f; }

.ahnl-cartpage .ahnl-cart td.product-price {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font: 600 14px/1 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-ink );
}

.ahnl-cartpage .ahnl-cart td.product-price ins { order: -1; text-decoration: none; background: none; color: inherit; }
.ahnl-cartpage .ahnl-cart td.product-price del { font: 400 12px/1 "AH Inter", system-ui, sans-serif; color: #6b7265; opacity: 1; }

.ahnl-cartpage .ahnl-cart td.product-subtotal {
	font: 700 16px/1 "AH Poppins", sans-serif;
	color: var( --ahnl-green );
}

/* Quantity: the shared stepper (style.css), a little tighter here. */
.ahnl-cartpage .ahnl-cart .quantity {
	display: inline-flex;
	padding: 0;
	overflow: hidden;
	background: var( --ahnl-page );
}

.ahnl-cartpage .ahnl-cart .quantity .ahnl-qty__btn,
.ahnl-cartpage .ahnl-cart .quantity input.qty {
	width: 40px;
	min-width: 30px;
	height: 40px;
	border-radius: 0;
	background: transparent;
}

.ahnl-cartpage .ahnl-cart .quantity input.qty {
	width: 34px;
}

.ahnl-cartpage .ahnl-cart a.remove {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid var( --ahnl-line );
	border-radius: 50%;
	background: #fff;
	color: #6b7265;
	font: 400 18px/1 "AH Inter", system-ui, sans-serif;
	text-decoration: none;
}

.ahnl-cartpage .ahnl-cart a.remove:hover,
.ahnl-cartpage .ahnl-cart a.remove:focus-visible {
	border-color: #c0392b;
	background: #fff;
	color: #c0392b;
}

/* Coupon + update row */
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents tbody tr:not( .cart_item ) {
	display: block;
}

.ahnl-cartpage .ahnl-cart td.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	padding: 16px 20px;
	background: var( --ahnl-page );
}

.ahnl-cartpage .ahnl-cart td.actions .coupon {
	display: flex;
	gap: 8px;
	flex: 1 1 300px;
	max-width: 460px;
}

.ahnl-cartpage .ahnl-cart td.actions .coupon input.input-text {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var( --ahnl-line );
	border-radius: 11px;
	background: #fff;
	font: 500 13px/1 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-ink );
	text-transform: uppercase;
	box-shadow: none;
}

.ahnl-cartpage .ahnl-cart td.actions .coupon input.input-text:focus-visible {
	outline: 2px solid var( --ahnl-green );
	outline-offset: 2px;
}

.ahnl-cartpage .ahnl-cart td.actions .button,
.ahnl-cartpage .ahnl-cart td.actions button {
	min-height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 11px;
	background: #1f2b1e;
	color: #fff;
	font: 600 13px/1 "AH Inter", system-ui, sans-serif;
	cursor: pointer;
}

.ahnl-cartpage .ahnl-cart td.actions button[name="update_cart"] {
	background: #fff;
	color: var( --ahnl-ink );
	border: 1px solid var( --ahnl-line );
}

.ahnl-cartpage .ahnl-cart td.actions button[name="update_cart"]:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* With JS the cart updates itself; the button stays for everyone else. */
.ahnl-cart-js .ahnl-cartpage .ahnl-cart td.actions button[name="update_cart"] {
	display: none;
}

/* --- Summary ------------------------------------------------------------------------ */
.ahnl-cartpage .ahnl-cart .cart_totals {
	display: flex;
	flex-direction: column;
	gap: 14px;
	float: none;
	width: auto;
	padding: 22px;
	background: #fff;
	border: 1px solid var( --ahnl-line );
	border-radius: 20px;
	box-shadow: 0 14px 34px rgba( 31, 43, 30, 0.06 );
}

.ahnl-cartpage .ahnl-cart .cart-collaterals {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ahnl-cartpage .ahnl-cart .cart-collaterals .cart_totals {
	float: none;
	width: auto;
}

.ahnl-cartpage .ahnl-cart .cart_totals h2 {
	margin: 0;
	font: 600 13px/1 "AH Poppins", sans-serif;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var( --ahnl-ink );
}

.ahnl-cartpage .ahnl-cart .cart_totals table.shop_table {
	display: block;
	width: 100%;
	margin: 0;
	border: 0;
	background: none;
}

.ahnl-cartpage .ahnl-cart .cart_totals table.shop_table tbody {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ahnl-cartpage .ahnl-cart .cart_totals table.shop_table tr {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	align-items: baseline;
	justify-content: space-between;
	border: 0;
}

.ahnl-cartpage .ahnl-cart .cart_totals table.shop_table th,
.ahnl-cartpage .ahnl-cart .cart_totals table.shop_table td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	font: 400 13.5px/1.4 "AH Inter", system-ui, sans-serif;
	color: #4a4f46;
	text-align: left;
}

/* margin-left:auto keeps a value on the right even when its row wraps (on a
   phone the Total's tax line is wider than the space beside "Total"). */
.ahnl-cartpage .ahnl-cart .cart_totals table.shop_table td {
	margin-left: auto;
	font-weight: 600;
	color: var( --ahnl-ink );
	text-align: right;
}

.ahnl-cartpage .ahnl-cart .cart_totals table.shop_table td::before {
	content: none;
}

.ahnl-cartpage .ahnl-cart .cart_totals tr.cart-discount td,
.ahnl-cartpage .ahnl-cart .cart_totals tr.ahnl-shipping-discount td {
	color: var( --ahnl-green );
}

.ahnl-cartpage .ahnl-cart .cart_totals tr.shipping td,
.ahnl-cartpage .ahnl-cart .cart_totals tr.woocommerce-shipping-totals td {
	flex: 1 1 100%;
	text-align: left;
	font-weight: 500;
}

.ahnl-cartpage .ahnl-cart .cart_totals ul#shipping_method {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ahnl-cartpage .ahnl-cart .cart_totals ul#shipping_method li {
	margin: 0 0 6px;
	font-size: 13px;
}

.ahnl-cartpage .ahnl-cart .cart_totals tr.order-total {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid #f2f1e8;
}

.ahnl-cartpage .ahnl-cart .cart_totals tr.order-total th {
	font: 600 15px/1.3 "AH Poppins", sans-serif;
	color: var( --ahnl-ink );
}

.ahnl-cartpage .ahnl-cart .cart_totals tr.order-total td {
	font: 700 26px/1 "AH Poppins", sans-serif;
	letter-spacing: -0.01em;
	color: var( --ahnl-green );
}

.ahnl-cartpage .ahnl-cart .cart_totals tr.order-total td small {
	display: block;
	font: 400 11.5px/1.4 "AH Inter", system-ui, sans-serif;
	color: #6b7265;
}

.ahnl-cartpage .ahnl-cart .wc-proceed-to-checkout {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
}

.ahnl-cart-note {
	margin: 0;
	font: 400 12px/1.6 "AH Inter", system-ui, sans-serif;
	color: #6b7265;
}

.ahnl-cart-saving {
	align-self: flex-start;
	padding: 8px 12px;
	border-radius: 99px;
	background: #f1f5ef;
	font: 600 12px/1.2 "AH Inter", system-ui, sans-serif;
	color: #2e5e2a;
}

.ahnl-cartpage .ahnl-cart a.button.alt.ahnl-cart-checkout,
.ahnl-cartpage .ahnl-cart button.ahnl-cart-checkout {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 52px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 99px;
	background: var( --ahnl-green );
	color: #fff;
	font: 600 15px/1 "AH Inter", system-ui, sans-serif;
	text-decoration: none;
}

.ahnl-cartpage .ahnl-cart a.button.alt.ahnl-cart-checkout:hover,
.ahnl-cartpage .ahnl-cart a.button.alt.ahnl-cart-checkout:focus-visible {
	background: #256b29;
	color: #fff;
}

.ahnl-cartpage .ahnl-cart .ahnl-cart-checkout.is-disabled {
	background: #e4e6df;
	color: #6b7265;
	cursor: not-allowed;
}

.ahnl-cart-minnote {
	margin: 0;
	text-align: center;
	font: 500 12.5px/1.5 "AH Inter", system-ui, sans-serif;
	color: #a9502e;
}

.ahnl-cart-pay {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 2px 0 0;
	list-style: none;
}

.ahnl-cart-pay li {
	margin: 0;
	padding: 6px 10px;
	border: 1px solid var( --ahnl-line );
	border-radius: 8px;
	font: 500 11px/1 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-muted );
}

.ahnl-cart-assure {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 20px;
	list-style: none;
	background: var( --ahnl-page );
	border: 1px solid var( --ahnl-line );
	border-radius: 20px;
}

.ahnl-cart-assure li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0;
	font: 400 12.5px/1.6 "AH Inter", system-ui, sans-serif;
	color: #4a4f46;
}

.ahnl-cart-assure li > span:first-child {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #f1f5ef;
	color: var( --ahnl-green );
	font: 700 11px/1 "AH Inter", system-ui, sans-serif;
}

/* --- Empty cart ------------------------------------------------------------------------ */
.ahnl-cart-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: clamp( 40px, 6vw, 72px ) 24px;
	text-align: center;
	background: #fff;
	border: 1px solid var( --ahnl-line );
	border-radius: 24px;
}

.ahnl-cart-empty__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	border-radius: 50%;
	background: #f1f5ef;
}

.ahnl-cart-empty__title {
	margin: 0;
	font: 600 clamp( 20px, 2.2vw, 24px ) / 1.3 "AH Poppins", sans-serif;
	color: var( --ahnl-ink );
}

.ahnl-cart-empty__text {
	max-width: 56ch;
	margin: 0;
	font: 400 14.5px/1.7 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-muted );
	text-wrap: pretty;
}

.ahnl-cart-empty__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	padding-top: 4px;
}

.ahnl-cart-empty__primary,
.ahnl-cart-empty__secondary {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 26px;
	border-radius: 99px;
	font: 600 14px/1 "AH Inter", system-ui, sans-serif;
	text-decoration: none;
}

.ahnl-cart-empty__primary {
	background: var( --ahnl-green );
	color: #fff;
}

.ahnl-cart-empty__primary:hover,
.ahnl-cart-empty__primary:focus-visible {
	background: #256b29;
	color: #fff;
}

.ahnl-cart-empty__secondary {
	border: 1.5px solid var( --ahnl-green );
	color: var( --ahnl-green );
}

.ahnl-cart-empty__secondary:hover,
.ahnl-cart-empty__secondary:focus-visible {
	background: #f1f5ef;
}

.ahnl-cart-empty__popular {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	width: min( 100%, 640px );
	margin-top: 14px;
	padding-top: 22px;
	border-top: 1px solid #f2f1e8;
}

.ahnl-cart-empty__label {
	font: 600 11px/1 "AH Inter", system-ui, sans-serif;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a5a12;
}

.ahnl-cart-empty__chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ahnl-cart-empty__chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var( --ahnl-line );
	border-radius: 99px;
	background: var( --ahnl-page );
	font: 600 13px/1 "AH Inter", system-ui, sans-serif;
	color: #4a4f46;
	text-decoration: none;
}

.ahnl-cart-empty__chip:hover,
.ahnl-cart-empty__chip:focus-visible {
	border-color: var( --ahnl-green-accent );
	color: var( --ahnl-green );
}

/* --- Tablet / phone ------------------------------------------------------------------------ */
@media ( max-width: 1059px ) {
	.ahnl-cartpage .ahnl-cart {
		grid-template-columns: minmax( 0, 1fr );
	}

	.ahnl-cart__side {
		position: static;
	}
}

@media ( max-width: 719px ) {
	.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents thead {
		display: none;
	}

	.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents tr.cart_item {
		grid-template-columns: 84px minmax( 0, 1fr ) auto;
		grid-template-areas:
			"thumb name remove"
			"thumb price price"
			"thumb qty sub";
		gap: 8px 14px;
		padding: 16px;
	}

	/* Kadence right-aligns every cell of a responsive table (with !important). */
	.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents tr.cart_item td {
		text-align: left !important;
	}

	.ahnl-cartpage .ahnl-cart tr.cart_item td.product-thumbnail { grid-area: thumb; }
	.ahnl-cartpage .ahnl-cart tr.cart_item td.product-name { grid-area: name; }
	.ahnl-cartpage .ahnl-cart tr.cart_item td.product-price { grid-area: price; flex-direction: row; align-items: baseline; gap: 8px; font-weight: 500; font-size: 12.5px; }
	.ahnl-cartpage .ahnl-cart tr.cart_item td.product-quantity { grid-area: qty; }
	.ahnl-cartpage .ahnl-cart tr.cart_item td.product-subtotal { grid-area: sub; align-self: center; text-align: right !important; }
	.ahnl-cartpage .ahnl-cart tr.cart_item td.product-remove { grid-area: remove; align-self: start; }

	.ahnl-cartpage .ahnl-cart tr.cart_item td.product-price ins { order: 0; }
	.ahnl-cartpage .ahnl-cart a.remove { width: 34px; height: 34px; }

	.ahnl-cartpage .ahnl-cart td.actions .coupon {
		flex-basis: 100%;
		max-width: none;
	}
}

/* Kadence paints WooCommerce buttons in its accent blue with a rule that out-ranks the general
   button rule above; the coupon button gets its own, more specific selector. */
.ahnl-cartpage .ahnl-cart td.actions button.button[name="apply_coupon"] {
	background: #1f2b1e;
	color: #fff;
}

.ahnl-cartpage .ahnl-cart td.actions button.button[name="apply_coupon"]:hover,
.ahnl-cartpage .ahnl-cart td.actions button.button[name="apply_coupon"]:focus-visible {
	background: #33453a;
	color: #fff;
}

/* --- Shipping calculator ("Change address") --------------------------------------------
   India-only store: no Country row, native State select (no selectWoo), PIN row moved first by
   js/pincode.js, which fills Town / City and State from it. Fields match the coupon input; the
   Update button is the brand green, not Kadence's accent blue (decided 2026-09-28). */
.ahnl-cartpage .ahnl-cart .shipping-calculator-form {
	margin-top: 10px;
	text-align: left; /* the totals cell it sits in is right-aligned */
}

.ahnl-cartpage .ahnl-cart .shipping-calculator-form .form-row {
	margin: 0 0 10px;
	padding: 0;
}

.ahnl-cartpage .ahnl-cart .shipping-calculator-form label {
	display: block;
	margin: 0 0 4px;
	font: 600 12px/1.4 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-ink );
}

.ahnl-cartpage .ahnl-cart .shipping-calculator-form input.input-text,
.ahnl-cartpage .ahnl-cart .shipping-calculator-form select {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var( --ahnl-line );
	border-radius: 11px;
	background-color: #fff;
	font: 500 13px/1.2 "AH Inter", system-ui, sans-serif;
	color: var( --ahnl-ink );
	box-shadow: none;
}

.ahnl-cartpage .ahnl-cart .shipping-calculator-form input.input-text:focus-visible,
.ahnl-cartpage .ahnl-cart .shipping-calculator-form select:focus-visible {
	outline: 2px solid var( --ahnl-green );
	outline-offset: 2px;
}

.ahnl-cartpage .ahnl-cart .shipping-calculator-form button.button[name="calc_shipping"] {
	min-height: 44px;
	padding: 0 22px;
	border: 0;
	border-radius: 11px;
	background: var( --ahnl-green );
	color: #fff;
	font: 600 13px/1 "AH Inter", system-ui, sans-serif;
	cursor: pointer;
}

.ahnl-cartpage .ahnl-cart .shipping-calculator-form button.button[name="calc_shipping"]:hover,
.ahnl-cartpage .ahnl-cart .shipping-calculator-form button.button[name="calc_shipping"]:focus-visible {
	background: #256b29;
	color: #fff;
}

/* PIN status: spinner / tick inside the input's right edge, message under it (as on the checkout). */
.ahnl-cartpage .ahnl-pin-wrap {
	position: relative;
	display: block;
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin-icon {
	position: absolute;
	top: 13px;
	right: 12px;
	display: none;
	box-sizing: border-box;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	pointer-events: none;
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin--busy .ahnl-pin-icon {
	display: block;
	border: 2px solid var( --ahnl-line );
	border-top-color: var( --ahnl-green );
	animation: ahnl-cart-pin-spin 0.7s linear infinite;
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin--ok .ahnl-pin-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var( --ahnl-green );
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin--ok .ahnl-pin-icon::before {
	content: "";
	width: 4px;
	height: 8px;
	margin-top: -2px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate( 45deg );
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin-note {
	display: block;
	margin-top: 4px;
	font: 500 12px/1.5 "AH Inter", system-ui, sans-serif;
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin-note:empty {
	display: none;
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin--ok .ahnl-pin-note {
	color: #2e7d32;
}

.ahnl-cartpage .shipping-calculator-form .ahnl-pin--bad .ahnl-pin-note {
	color: #c0392b;
}

@keyframes ahnl-cart-pin-spin {
	to {
		transform: rotate( 360deg );
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.ahnl-cartpage .shipping-calculator-form .ahnl-pin--busy .ahnl-pin-icon {
		animation: none;
	}
}

/* Kadence tints a hovered table row; the items here are cards. */
.ahnl-cartpage .ahnl-cart .woocommerce-cart-form__contents tr:hover td {
	background: none;
}

/* --- Quantity-discount note on a cart/checkout line (inc/quantity-discount.php) --- */
.ahnl-qtydeal-note {
	margin-top: 4px;
	font: 600 11.5px/1.3 "AH Inter", system-ui, sans-serif;
	color: #2e7d32;
}

/* Cart page "You may be interested in…" rail (inc/cart.php, ahnl_cart_suggestions()). */
.ahnl-cart-more {
	margin-top: 36px;
}

@media ( max-width: 767px ) {
	.ahnl-cart-more .ahnl-rail__item {
		flex-basis: 46%;
	}
}
