/*
 * Shubh Laabh Arts — "Your Sacred Cart": the header Mini-Cart drawer.
 *
 * Styles WooCommerce's own Mini-Cart block drawer (the site's single cart:
 * real WooCommerce cart state, Store API quantity/remove controls, live
 * badge) — no markup or behaviour of its own. Copy (title, button labels,
 * empty state) comes from the theme's parts/mini-cart.html template part.
 * Everything is scoped to the drawer's own classes, so nothing outside the
 * drawer is affected. Loaded wherever the header renders (inc/shop.php),
 * because the drawer is global.
 *
 * Colour system: ivory/cream field, peacock navy type, champagne gold
 * detailing — and each cart line carries its product's Shop button colour
 * (--sla-item-accent: gold · green · maroon · rust · teal) as small accents
 * only: a 4px edge, a faint wash, the price diamond, the quantity pill and
 * the remove icon. Set by rules generated from the same central
 * position-based sequence as the Shop buttons (sla_shop_card_variant()) —
 * see sla_mini_cart_accent_css() in inc/shop.php.
 */

.wc-block-mini-cart__drawer {
	--sla-variant-1: #c79a45; /* gold */
	--sla-variant-2: #2e6f52; /* green */
	--sla-variant-3: #7a2a3b; /* maroon */
	--sla-variant-4: #9a4f40; /* rust */
	--sla-variant-5: #1f6f74; /* teal */
	--sla-item-accent: var( --sla-champagne-gold );
	--sla-cart-line: color-mix( in srgb, var( --sla-champagne-gold ) 40%, var( --sla-ivory-dark ) );
}

/* Backdrop — deep peacock veil. */
.wc-block-components-drawer__screen-overlay:has( .wc-block-mini-cart__drawer ) {
	background-color: rgba( 6, 47, 58, 0.48 );
}

/* Panel — 420px on desktop, ~90vw on phones; never wider than the viewport. */
.wc-block-mini-cart__drawer.wc-block-components-drawer {
	width: min( 420px, 92vw );
	max-width: 92vw;
	background: var( --sla-warm-cream );
	box-shadow: -24px 0 60px -24px rgba( 6, 47, 58, 0.45 );
	font-family: var( --sla-font-body );
	color: var( --sla-peacock-navy );
}

@media ( max-width: 767px ) {
	.wc-block-mini-cart__drawer.wc-block-components-drawer {
		width: 90vw;
	}
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__content {
	position: relative;
	isolation: isolate;
	/* Faint gold mandala watermark at the foot of the panel. */
	background: url( '../images/decorative/footer-mandala-280w.webp' ) no-repeat right -40px bottom 90px / 150px auto;
}

/* WooCommerce paints the contents block solid white (its default
 * contentsBackgroundColor), hiding the ivory panel and watermark. */
.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-contents {
	background-color: transparent !important;
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__content::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient( 180deg, rgba( 251, 248, 241, 0.88 ), rgba( 251, 248, 241, 0.94 ) );
	pointer-events: none;
}

/* Close — a quiet ivory circle with a gold ring. */
.wc-block-mini-cart__drawer .wc-block-components-drawer__close-wrapper {
	position: absolute;
	top: 1.2rem;
	right: 1.2rem;
	z-index: 3;
}

.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 40px;
	/* WooCommerce gives every drawer button min-height: 3em — keep a circle. */
	height: 40px !important;
	min-height: 0 !important;
	padding: 0;
	background: #fff !important;
	color: var( --sla-peacock-navy );
	border: 1px solid color-mix( in srgb, var( --sla-champagne-gold ) 60%, var( --sla-ivory-dark ) );
	border-radius: 50%;
	box-shadow: 0 6px 14px -10px rgba( 7, 59, 76, 0.55 );
	opacity: 1;
	transition: border-color 200ms ease, color 200ms ease, background-color 200ms ease;
}

.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close:hover,
.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close:focus-visible {
	background: color-mix( in srgb, var( --sla-variant-5 ) 7%, #fff ) !important;
	border-color: var( --sla-champagne-gold );
	color: var( --sla-variant-5 );
}

.wc-block-mini-cart__drawer .wc-block-components-drawer__close:focus-visible {
	outline: 2px solid var( --sla-champagne-gold );
	outline-offset: 2px;
}

/* WooCommerce's × icon draws very small: a crisp CSS cross instead (the
 * button keeps its accessible "Close" label). */
.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close svg {
	display: none;
}

.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close::before,
.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close::after {
	content: '';
	position: absolute;
	width: 15px;
	height: 1.5px;
	border-radius: 1px;
	background: currentColor;
	transform: rotate( 45deg );
}

.wc-block-mini-cart__drawer .wc-block-components-button.wc-block-components-drawer__close::after {
	transform: rotate( -45deg );
}

/* Title — lotus crest, display serif, gold line-diamond rule. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.15rem 0.55rem;
	margin: 0;
	padding: 1.6rem 4.5rem 1.35rem 1.5rem;
	font-family: var( --sla-font-display );
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.1;
	color: var( --sla-peacock-navy );
	mask-image: none;
	-webkit-mask-image: none;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title::before {
	content: '';
	flex: 0 0 100%;
	width: 30px;
	height: 19px;
	max-width: 30px;
	margin-bottom: 0.45rem;
	background: url( "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path stroke='%231F6F74' d='M32 4c5.5 8 6.5 19 0 29-6.5-10-5.5-21 0-29Z'/><g stroke='%23C79A45'><path d='M31 33C24 30 17 22 15 12c8 2 14 10 16 21Z'/><path d='M33 33c7-3 14-11 16-21-8 2-14 10-16 21Z'/><path d='M30 35C21 35 11 30 5 22c10-2 19 4 25 13Z'/><path d='M34 35c9 0 19-5 25-13-10-2-19 4-25 13Z'/><path d='M20 38.5h24'/></g></svg>" ) no-repeat left center / contain;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__title::after {
	content: '';
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 0;
	height: 1px;
	background: linear-gradient( 90deg, var( --sla-champagne-gold ), color-mix( in srgb, var( --sla-champagne-gold ) 25%, transparent ) 70%, transparent );
}

.wc-block-mini-cart__drawer .wp-block-woocommerce-mini-cart-title-items-counter-block {
	font-family: var( --sla-font-body );
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: color-mix( in srgb, var( --sla-antique-gold ) 85%, var( --sla-muted-blue ) );
}

/* Items — each line a small ivory card with its product's accent edge. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__items {
	position: relative;
	padding: 1.1rem 1.25rem 0.5rem;
}

/* Small gold diamond where the header rule begins. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__items::before {
	content: '';
	position: absolute;
	top: -3px;
	left: calc( 1.5rem - 3px );
	width: 6px;
	height: 6px;
	background: var( --sla-champagne-gold );
	transform: rotate( 45deg );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__products-table {
	margin: 0;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items,
.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items tbody {
	display: block;
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax( 0, 1fr ) auto;
	box-sizing: border-box;
	width: 100%;
	align-items: start;
	gap: 0 0.9rem;
	margin: 0 0 0.75rem;
	padding: 0.8rem 0.9rem 0.8rem 1rem;
	background: linear-gradient( 90deg, color-mix( in srgb, var( --sla-item-accent ) 7%, #fff ) 0%, #fff 42% );
	border: 1px solid color-mix( in srgb, var( --sla-item-accent ) 16%, var( --sla-ivory-dark ) );
	border-radius: 12px;
	box-shadow: 0 10px 22px -20px rgba( 7, 59, 76, 0.55 );
	transition: border-color 200ms ease, box-shadow 200ms ease;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row:hover {
	border-color: color-mix( in srgb, var( --sla-item-accent ) 42%, var( --sla-ivory-dark ) );
	box-shadow: 0 14px 26px -20px color-mix( in srgb, var( --sla-item-accent ) 55%, rgba( 7, 59, 76, 0.6 ) );
}

/* Explicit placement — WooCommerce pins these cells to its own tracks. */
.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
	grid-column: 1;
	grid-row: 1 / span 2;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
	grid-column: 2;
	grid-row: 1;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
	grid-column: 3;
	grid-row: 1;
}

.wc-block-mini-cart__drawer .wc-block-cart-items__row::before {
	content: '';
	position: absolute;
	top: 12px;
	bottom: 12px;
	left: -1px;
	width: 4px;
	border-radius: 0 4px 4px 0;
	background: linear-gradient( 180deg, color-mix( in srgb, var( --sla-item-accent ) 70%, #fff ), var( --sla-item-accent ) 35%, color-mix( in srgb, var( --sla-item-accent ) 80%, #000 ) );
}

.wc-block-mini-cart__drawer .wc-block-cart-items__row > td {
	padding: 0;
	border: 0;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image img[hidden] {
	display: none;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__image img:not( [hidden] ) {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 9px;
	border: 1px solid color-mix( in srgb, var( --sla-item-accent ) 22%, var( --sla-ivory-dark ) );
}

.wc-block-mini-cart__drawer .wc-block-cart-item__product {
	min-width: 0;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.3rem;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name {
	font-family: var( --sla-font-display );
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.15;
	color: var( --sla-peacock-navy );
	text-decoration: none;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name:hover,
.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name:focus-visible {
	color: color-mix( in srgb, var( --sla-item-accent ) 75%, var( --sla-peacock-navy ) );
}

.wc-block-mini-cart__drawer .wc-block-cart-item__prices,
.wc-block-mini-cart__drawer .wc-block-cart-item__prices .wc-block-components-product-price {
	font-size: 0.78rem;
	font-weight: 500;
	color: color-mix( in srgb, var( --sla-item-accent ) 40%, var( --sla-peacock-navy ) );
}

.wc-block-mini-cart__drawer .wc-block-cart-item__prices {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__prices::before {
	content: '';
	flex: 0 0 auto;
	width: 5px;
	height: 5px;
	background: var( --sla-item-accent );
	transform: rotate( 45deg );
}

.wc-block-mini-cart__drawer .wc-block-components-product-metadata {
	display: none;
}

/* Quantity + remove on one line. */
.wc-block-mini-cart__drawer .wc-block-cart-item__quantity {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.75rem;
	margin-top: 0.25rem;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector {
	display: inline-flex;
	align-items: stretch;
	width: auto;
	height: 34px;
	margin: 0;
	background: color-mix( in srgb, var( --sla-item-accent ) 4%, var( --sla-warm-cream ) );
	border: 1px solid color-mix( in srgb, var( --sla-item-accent ) 60%, var( --sla-ivory-dark ) );
	border-radius: 999px;
	overflow: hidden;
	transition: border-color 150ms ease;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector:hover,
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector:focus-within {
	border-color: var( --sla-item-accent );
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector::after {
	display: none;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button {
	min-width: 32px;
	width: 32px;
	padding: 0;
	font-size: 1rem;
	font-weight: 600;
	color: color-mix( in srgb, var( --sla-item-accent ) 80%, var( --sla-peacock-navy ) );
	background: transparent;
	border: 0;
	opacity: 1;
	cursor: pointer;
	transition: background-color 150ms ease;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button:hover:not( :disabled ),
.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button:focus-visible {
	background: color-mix( in srgb, var( --sla-item-accent ) 14%, transparent );
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__button:disabled {
	color: color-mix( in srgb, var( --sla-peacock-navy ) 30%, transparent );
	cursor: default;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__input {
	width: 2.1rem;
	min-width: 0;
	padding: 0;
	font-family: var( --sla-font-body );
	font-size: 0.875rem;
	font-weight: 700;
	color: var( --sla-peacock-navy );
	text-align: center;
	background: transparent;
	border: 0;
	box-shadow: none;
	-moz-appearance: textfield;
}

.wc-block-mini-cart__drawer .wc-block-components-quantity-selector__input:focus {
	outline: 2px solid color-mix( in srgb, var( --sla-item-accent ) 50%, transparent );
	outline-offset: -2px;
}

.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__quantity .wc-block-cart-item__remove-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.2rem 0;
	font-family: var( --sla-font-body );
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var( --sla-muted-blue );
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	transition: color 150ms ease;
	white-space: nowrap;
	width: auto;
	height: auto;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
	color: color-mix( in srgb, var( --sla-item-accent ) 80%, var( --sla-peacock-navy ) );
	transition: color 150ms ease;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link::after {
	content: 'Remove';
}

.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:hover,
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:focus-visible,
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:hover svg,
.wc-block-mini-cart__drawer .wc-block-cart-item__remove-link:focus-visible svg {
	color: var( --sla-wine );
}

/* Line total — top right. */
.wc-block-mini-cart__drawer .wc-block-cart-item__total {
	text-align: right;
	white-space: nowrap;
}

.wc-block-mini-cart__drawer .wc-block-cart-item__total .wc-block-components-product-price {
	font-size: 0.95rem;
	font-weight: 800;
	color: var( --sla-peacock-navy );
}

/* Footer — subtotal + actions on an ivory panel under a gold hairline. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
	position: relative;
	padding: 1.25rem 1.5rem calc( 1.25rem + env( safe-area-inset-bottom, 0px ) );
	background: var( --sla-ivory );
	border-top: 0;
	box-shadow: 0 -18px 30px -26px rgba( 7, 59, 76, 0.45 );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient( 90deg, transparent, var( --sla-champagne-gold ), transparent );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer::after {
	content: '';
	position: absolute;
	top: -4px;
	left: calc( 50% - 4px );
	width: 8px;
	height: 8px;
	background: var( --sla-champagne-gold );
	transform: rotate( 45deg );
}

/* The Shop's five button colours, as one short hairline under the diamond. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal::before {
	content: '';
	position: absolute;
	top: 10px;
	left: calc( 50% - 30px );
	width: 60px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient( 90deg, var( --sla-variant-1 ) 0 20%, var( --sla-variant-2 ) 20% 40%, var( --sla-variant-3 ) 40% 60%, var( --sla-variant-4 ) 60% 80%, var( --sla-variant-5 ) 80% 100% );
	opacity: 0.8;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	margin: 0 0 1rem;
	padding: 0;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var( --sla-peacock-navy );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__value {
	font-family: var( --sla-font-display );
	font-size: 1.6rem;
	font-weight: 700;
	color: var( --sla-antique-gold );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-subtotal .wc-block-components-totals-item__description {
	flex: 1 0 100%;
	margin-top: 0.2rem;
	font-size: 0.72rem;
	color: var( --sla-muted-blue );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button,
.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 0 1rem;
	font-family: var( --sla-font-body );
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 8px;
	box-shadow: none;
	transition: filter 250ms ease, transform 250ms ease, box-shadow 250ms ease, background-color 250ms ease, border-color 250ms ease;
}

/* Explore Collection (empty cart) — the brass primary, same finish as the
 * Shop's gold ADD TO CART. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button {
	background-color: #c79a45;
	background-image:
		repeating-linear-gradient( 90deg, rgba( 255, 255, 255, 0.035 ) 0 1px, transparent 1px 3px ),
		linear-gradient( 180deg, #ddbd7c 0%, #c79a45 52%, #a97e32 100% );
	color: var( --sla-peacock-navy );
	border: 1px solid #9a7229;
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.32 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.14 ), 0 10px 18px -12px rgba( 140, 106, 43, 0.6 );
	position: relative;
	isolation: isolate;
	overflow: hidden;
	text-shadow: 0 1px 0 rgba( 255, 255, 255, 0.28 );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button:hover,
.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button:focus-visible {
	color: var( --sla-peacock-navy );
	filter: brightness( 1.06 ) saturate( 1.05 );
	transform: translateY( -1px );
	box-shadow: inset 0 1px 0 rgba( 255, 255, 255, 0.38 ), inset 0 -1px 0 rgba( 0, 0, 0, 0.14 ), 0 14px 22px -12px rgba( 140, 106, 43, 0.7 );
}

/* Cart action buttons — enamel-and-brass, in the Shop's five-colour button
 * palette (gold · green · maroon · rust · teal; the same values as the
 * Shop's ADD TO CART variants). Fixed assignment:
 *   Proceed to Checkout → peacock teal (primary)
 *   View Cart           → maroon / wine (secondary)
 * Further cart actions would continue the sequence gold → green → maroon →
 * rust → teal. Each button sets its colour stops below; the finish (brushed
 * grain, gold hairline border, top highlight, light sweep, hover) is shared.
 * Ivory text on each base: teal 5.3:1, maroon 8.5:1. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout {
	order: -1;
	--sla-cbtn-light: #2f8388;
	--sla-cbtn-base: #1f6f74;
	--sla-cbtn-deep: #175559;
	--sla-cbtn-glow: rgba( 23, 85, 89, 0.6 );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart {
	--sla-cbtn-light: #93404f;
	--sla-cbtn-base: #7a2a3b;
	--sla-cbtn-deep: #5e1f2d;
	--sla-cbtn-glow: rgba( 94, 31, 45, 0.6 );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-checkout,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-cart {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	white-space: nowrap;
	background-color: var( --sla-cbtn-base );
	background-image:
		repeating-linear-gradient( 90deg, rgba( 255, 255, 255, 0.035 ) 0 1px, transparent 1px 3px ),
		linear-gradient( 180deg, var( --sla-cbtn-light ) 0%, var( --sla-cbtn-base ) 52%, var( --sla-cbtn-deep ) 100% );
	color: var( --sla-ivory );
	border: 1px solid color-mix( in srgb, var( --sla-champagne-gold ) 55%, var( --sla-cbtn-deep ) );
	box-shadow:
		inset 0 1px 0 rgba( 255, 255, 255, 0.22 ),
		inset 0 -1px 0 rgba( 0, 0, 0, 0.18 ),
		0 10px 18px -12px var( --sla-cbtn-glow );
	text-shadow: 0 1px 0 rgba( 0, 0, 0, 0.18 );
}

/* Hover: a slightly brighter, richer finish and a deeper glow — no movement. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-checkout:hover,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-checkout:focus-visible,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-cart:hover,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions .wc-block-components-button.wc-block-mini-cart__footer-cart:focus-visible {
	color: var( --sla-ivory );
	background-color: var( --sla-cbtn-base );
	border-color: var( --sla-champagne-gold );
	filter: brightness( 1.1 ) saturate( 1.06 );
	box-shadow:
		inset 0 1px 0 rgba( 255, 255, 255, 0.3 ),
		inset 0 -1px 0 rgba( 0, 0, 0, 0.18 ),
		0 14px 24px -12px var( --sla-cbtn-glow );
}

/* "Polished brass catching light" — the same soft sweep as the Shop's
 * ADD TO CART buttons: every ~7s (View Cart a beat after Checkout), and
 * once more on hover. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout::before,
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart::before,
.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button::before {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	background: linear-gradient( 100deg, rgba( 255, 255, 255, 0 ) 0%, rgba( 255, 255, 255, 0.06 ) 30%, rgba( 255, 255, 255, 0.28 ) 50%, rgba( 255, 255, 255, 0.06 ) 70%, rgba( 255, 255, 255, 0 ) 100% );
	transform: translateX( -120% ) skewX( -18deg );
	pointer-events: none;
	animation: sla-cart-brass-sweep 7s cubic-bezier( 0.45, 0, 0.25, 1 ) 1.4s infinite;
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart::before {
	animation-delay: 1.9s;
}

@keyframes sla-cart-brass-sweep {
	0% {
		transform: translateX( -120% ) skewX( -18deg );
	}

	18%,
	100% {
		transform: translateX( 380% ) skewX( -18deg );
	}
}

@keyframes sla-cart-brass-sweep-once {
	from {
		transform: translateX( -120% ) skewX( -18deg );
	}

	to {
		transform: translateX( 380% ) skewX( -18deg );
	}
}

@media ( hover: hover ) {
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout:hover::before,
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart:hover::before,
	.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button:hover::before {
		animation: sla-cart-brass-sweep-once 900ms cubic-bezier( 0.45, 0, 0.25, 1 ) 1;
	}
}

@media ( hover: none ) {
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout::before,
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart::before,
	.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button::before {
		animation-duration: 9s;
		animation-iteration-count: 2;
	}
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button:focus-visible,
.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button:focus-visible {
	outline: 2px solid var( --sla-champagne-gold );
	outline-offset: 2px;
}

/* Empty state — centred: lotus, title, one line, Explore Collection. */
.wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100%;
	padding: 3.5rem 2rem;
	text-align: center;
}

.wc-block-mini-cart__drawer .sla-cart-empty__title {
	margin: 0 0 0.6rem;
	font-family: var( --sla-font-display );
	font-size: 1.75rem;
	font-weight: 600;
	line-height: 1.15;
	color: var( --sla-peacock-navy );
}

.wc-block-mini-cart__drawer .sla-cart-empty__title::before {
	content: '';
	display: block;
	width: 52px;
	height: 33px;
	margin: 0 auto 1rem;
	background: url( "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 40' fill='none' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'><path stroke='%231F6F74' d='M32 4c5.5 8 6.5 19 0 29-6.5-10-5.5-21 0-29Z'/><g stroke='%23C79A45'><path d='M31 33C24 30 17 22 15 12c8 2 14 10 16 21Z'/><path d='M33 33c7-3 14-11 16-21-8 2-14 10-16 21Z'/><path d='M30 35C21 35 11 30 5 22c10-2 19 4 25 13Z'/><path d='M34 35c9 0 19-5 25-13-10-2-19 4-25 13Z'/><path d='M20 38.5h24'/></g></svg>" ) no-repeat center / contain;
}

.wc-block-mini-cart__drawer .sla-cart-empty__title::after {
	content: '';
	display: block;
	width: 92px;
	height: 8px;
	margin: 0.9rem auto 0;
	background: url( "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 8'><defs><linearGradient id='l' x1='0' x2='1'><stop offset='0' stop-color='%23C79A45' stop-opacity='0'/><stop offset='1' stop-color='%23C79A45'/></linearGradient><linearGradient id='r' x1='1' x2='0'><stop offset='0' stop-color='%23C79A45' stop-opacity='0'/><stop offset='1' stop-color='%23C79A45'/></linearGradient></defs><rect x='0' y='3.5' width='38' height='1' fill='url(%23l)'/><rect x='54' y='3.5' width='38' height='1' fill='url(%23r)'/><rect x='43' y='1' width='6' height='6' fill='%231F6F74' transform='rotate(45 46 4)'/></svg>" ) no-repeat center / contain;
}

.wc-block-mini-cart__drawer .sla-cart-empty__text {
	max-width: 26ch;
	margin: 0 auto 1.6rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var( --sla-muted-blue );
}

.wc-block-mini-cart__drawer .wc-block-mini-cart__empty-cart-wrapper .wp-block-button {
	width: 100%;
	max-width: 260px;
}

/* Phones: slightly tighter. */
@media ( max-width: 480px ) {
	.wc-block-mini-cart__drawer .wc-block-mini-cart__title {
		padding: 1.3rem 4rem 1.1rem 1.1rem;
		font-size: 1.5rem;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__title::after {
		left: 1.1rem;
		right: 1.1rem;
	}

	.wc-block-mini-cart__drawer .wc-block-components-drawer__close-wrapper {
		top: 1rem;
		right: 1rem;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__items {
		padding: 0.9rem 0.85rem 0.4rem;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__items::before {
		left: calc( 1.1rem - 3px );
	}

	.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row {
		grid-template-columns: 58px minmax( 0, 1fr );
		gap: 0 0.7rem;
		padding: 0.7rem 0.7rem 0.7rem 0.85rem;
	}

	.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
		grid-column: 2;
		grid-row: 2;
		margin-top: 0.45rem;
		text-align: left;
	}

	.wc-block-mini-cart__drawer .wc-block-cart-item__image img:not( [hidden] ) {
		width: 58px;
		height: 58px;
	}

	.wc-block-mini-cart__drawer.wc-block-components-drawer table.wc-block-cart-items .wc-block-cart-items__row a.wc-block-components-product-name {
		font-size: 1.1rem;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer {
		padding: 1.1rem 1.1rem calc( 1.1rem + env( safe-area-inset-bottom, 0px ) );
	}
}

/* Reduced motion: no slide — the drawer and backdrop simply appear. */
@media ( prefers-reduced-motion: reduce ) {
	.wc-block-components-drawer__screen-overlay:has( .wc-block-mini-cart__drawer ),
	.wc-block-mini-cart__drawer.wc-block-components-drawer {
		animation: none !important;
		transition: none !important;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout::before,
	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-cart::before,
	.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button::before {
		display: none;
		animation: none;
	}

	.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-checkout:hover,
	.wc-block-mini-cart__drawer .wc-block-mini-cart__shopping-button:hover {
		transform: none;
	}
}
