/**
 * FunnelKit Cart (fkcart) slide-in — line item layout.
 *
 * First pass at bringing the slide-in items in line with the checkout
 * mini-cart cards (checkout-mini-cart-layout.css). Same shape, same values:
 *
 *     ┌──────────────────────────────────────────┐
 *     │ ┌────┐  Product title …            (x)   │
 *     │ │ img│                                   │
 *     │ └────┘  − 1 +              $41.57 $37.03 │
 *     └──────────────────────────────────────────┘
 *
 * Same approach as the checkout: CSS Grid with named areas on .fkcart--item,
 * and `display: contents` on the plugin's intermediate wrappers so their
 * grandchildren become direct grid items. The real DOM nests them as
 *
 *     .fkcart--item
 *       .fkcart-thumb-wrap        → a.fkcart-image-wrapper, .fkcart-remove-item
 *       .fkcart-item-info
 *         .fkcart-item-meta       → .fkcart-item-title-price, .fkcart-qty-wrap
 *         .fkcart-item-misc       → .fkcart-item-price, .fkcart-discounted-price
 *
 * so .fkcart-item-info and .fkcart-item-meta are the two that get flattened.
 *
 * Values are taken from the checkout card rather than re-picked, so the two
 * carts stay in step: #121420, 12px radius, 85px thumb at 8px radius.
 */

#fkcart-modal .fkcart--item {
	display: grid !important;
	grid-template-columns: auto minmax(0, 1fr) auto !important;
	grid-template-areas:
		"thumb title title"
		"thumb .     ."
		"thumb qty   price" !important;
	/* The empty middle row takes the only 1fr, so a thumbnail taller than the
	   text collects its slack there: title hugs the top, quantity and price sit
	   on the bottom edge. Same reasoning as the checkout card. */
	grid-template-rows: auto 1fr auto !important;
	column-gap: 10px !important;
	row-gap: 4px !important;
	align-items: center !important;
	position: relative !important;
	background: #121420 !important;
	border-radius: 12px !important;
	padding: 11px 10px 5px !important;
	margin-bottom: 12px !important;
	width: 100% !important;
}

/* Flatten the plugin's wrappers so the grandchildren land in the grid. */
#fkcart-modal .fkcart-item-info,
#fkcart-modal .fkcart-item-meta {
	display: contents !important;
}

/* ── thumbnail ───────────────────────────────────────────────────────── */
#fkcart-modal .fkcart-thumb-wrap {
	grid-area: thumb !important;
	width: 50px !important;
	max-width: 50px !important;
	align-self: start !important;
	/* Must not be the offset parent — the remove control is positioned
	   against the card, not against the thumbnail. */
	position: static !important;
}

/* height:auto is load-bearing. The plugin pins this wrapper to a fixed 60px
   (`#fkcart-modal .fkcart-item-wrap .fkcart--item .fkcart-image-wrapper`),
   while the image inside is height:auto and comes out ~70px at this width
   once the aspect ratio is preserved — so the image overflowed its own box by
   10px. A two-line title made the card tall enough to hide that; a one-line
   title did not, and the image spilled out of the bottom of the card.

   Letting both boxes size to the image means the grid sizes its rows to the
   spanning thumbnail, so the card is always at least as tall as the image
   whatever the title does. Measured: single-line card 76px (image overflowing)
   before, 86px with the image fully inside after. */
#fkcart-modal .fkcart-image-wrapper {
	display: block !important;
	width: 100% !important;
	height: auto !important;
}

#fkcart-modal .fkcart-thumb-wrap {
	height: auto !important;
}

#fkcart-modal img.fkcart-image {
	width: 100% !important;
	height: auto !important;
	max-width: none !important;
	border-radius: 8px !important;
	display: block !important;
	object-fit: initial !important;
}

/* The plugin puts a 1px #dedfea border on the thumbnail, which reads as a
   white hairline against the dark card. */
#fkcart-modal img.fkcart-image,
#fkcart-modal .fkcart-image-wrapper {
	border: 0 !important;
	outline: 0 !important;
	box-shadow: none !important;
}

/* ── remove ──────────────────────────────────────────────────────────── */
/* The plugin anchors this from the left, and a stale `left` beats a `right`
   that has nothing to resolve against — clear both edges it might hold. */
#fkcart-modal .fkcart-remove-item {
	position: absolute !important;
	/* Centred on the title's FIRST line, not on the card's top edge. With the
	   card padding at 11px top, that line's centre falls 24px down; the control
	   keeps its 28px hit area, so top = 24 - 14 = 10px and the glyph is centred
	   inside it. Measured after: glyph centre 24.0 against a line centre of
	   24.0 on both cards, delta 0.

	   This value is tied to the card's top padding and the title's size — both
	   were changed once already and this had to move with them. Re-measure if
	   either changes again. */
	top: 10px !important;
	/* 4px, not 10 — nudged 6px further right, still 20px clear of where the
	   title text can reach given its 42px right padding. */
	right: 4px !important;
	left: auto !important;
	bottom: auto !important;
	margin: 0 !important;
	z-index: 2 !important;
	/* centres the ::before glyph within the larger hit area */
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

/* ── title ───────────────────────────────────────────────────────────── */
#fkcart-modal .fkcart-item-title-price {
	grid-area: title !important;
	align-self: start !important;
	/* 22px clears the remove control in the same corner, plus 20px to pull the
	   wrapping point in — the title breaks to the next line that much sooner. */
	padding-right: 42px !important;
}

#fkcart-modal a.fkcart-item-title,
#fkcart-modal .fkcart-item-title-price a {
	text-decoration: none !important;
	line-height: 1.35 !important;
	font-size: 13px !important;
}

/* The same hover the product loop title uses.

   This is a literal rather than a token on purpose. WoodMart generates
   `html .wd-product .wd-entities-title a:hover { color: rgb(251,218,224) }`
   from the theme settings, and that rule beats the token-based one, so the
   loop never actually shows the token's value. Both candidate tokens resolve
   to something else inside this panel — --wd-link-color-hover to #FFF and
   --wd-entities-title-color-hover to rgba(255,255,255,.8) — which is why
   earlier attempts produced a hover with no visible change. */
#fkcart-modal a.fkcart-item-title:hover,
#fkcart-modal .fkcart-item-title-price a:hover {
	color: rgb(251, 218, 224) !important;
}

/* ── quantity and price ──────────────────────────────────────────────── */
/* The bottom-left cell carries the item-type label as well as the stepper:
   evov_fkcart_digital_product_meta() prints into fkcart_before_item_quantity,
   which fires inside this wrapper. Stretching the cell and laying it out as a
   row puts the label hard left and the stepper against the price, which is how
   the checkout card reads. */
#fkcart-modal .fkcart-qty-wrap {
	grid-area: qty !important;
	align-self: end !important;
	justify-self: stretch !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
}

/* Its margin is for stacking under the title; on this row it is not wanted. */
#fkcart-modal .fkcart-qty-wrap .evov-mini-cart-item-meta {
	margin-top: 0 !important;
}

#fkcart-modal .fkcart-item-misc {
	grid-area: price !important;
	align-self: end !important;
	justify-self: end !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-end !important;
	gap: 2px !important;
}

/* Struck original then current price on one line, as on the checkout card. */
/* nowrap is load-bearing. With wrapping allowed the `auto` grid column had no
   firm max-content width to resolve to and collapsed to 45px — narrower than
   the two prices together — so the struck and current prices stacked. Measured
   45px wrapping, 95px with nowrap and both on one line. */
#fkcart-modal .fkcart-item-price {
	display: flex !important;
	align-items: baseline !important;
	justify-content: flex-end !important;
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
	gap: 6px !important;
}

#fkcart-modal .fkcart-item-misc,
#fkcart-modal .fkcart-item-price del,
#fkcart-modal .fkcart-item-price ins {
	white-space: nowrap !important;
}

#fkcart-modal .fkcart-item-price del {
	order: 1 !important;
	opacity: 1 !important;
}

#fkcart-modal .fkcart-item-price ins {
	order: 2 !important;
	text-decoration: none !important;
}


/* ── panel ───────────────────────────────────────────────────────────────
   The slide-in's own body is #121420 — the same value as the card — so the
   cards were invisible against it. The checkout gets its separation from the
   page background behind the cards, so the same relationship is restored
   here rather than inventing a third shade. */
#fkcart-modal .fkcart-preview-ui,
#fkcart-modal .fkcart-slider-body {
	background-color: var(--wd-main-bgcolor, #0B0D14) !important;
}

/* ── remove: trash, not a circled X ──────────────────────────────────────
   Same treatment as the checkout mini cart: hide the plugin's inline <svg>
   and draw the trash glyph as a mask over background-color: currentColor, so
   the existing colour and hover states keep working. */
/* The plugin wraps its <svg> in a <span> carrying a light filled circle
   (#dedfea at 50% radius). Hiding only the svg left that disc showing under
   the trash glyph as a white blob, so the whole span goes. */
#fkcart-modal .fkcart-remove-item svg,
#fkcart-modal .fkcart-remove-item > span {
	display: none !important;
}

/* Hover matches the product title's, and uses the same token so the two
   cannot drift apart. The glyph is painted with background-color:
   currentColor, so colouring the control repaints the icon — no second
   declaration on the pseudo needed. */
#fkcart-modal .fkcart-remove-item:hover {
	color: rgb(251, 218, 224) !important;
}

#fkcart-modal .fkcart-remove-item::before {
	content: '' !important;
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	background-color: currentColor !important;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6a1 1 0 0 1 1 1v1h4a1 1 0 1 1 0 2h-1v12a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V7H4a1 1 0 0 1 0-2h4V4a1 1 0 0 1 1-1zm1 2h4V5h-4zM7 7v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7zm3 3a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1zm4 0a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / contain no-repeat !important;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6a1 1 0 0 1 1 1v1h4a1 1 0 1 1 0 2h-1v12a3 3 0 0 1-3 3H8a3 3 0 0 1-3-3V7H4a1 1 0 0 1 0-2h4V4a1 1 0 0 1 1-1zm1 2h4V5h-4zM7 7v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V7zm3 3a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1zm4 0a1 1 0 0 1 1 1v6a1 1 0 1 1-2 0v-6a1 1 0 0 1 1-1z'/%3E%3C/svg%3E") center / contain no-repeat !important;
	font-size: 0 !important;
}


/* ── list padding ────────────────────────────────────────────────────────
   Breathing room down both edges so the cards are not flush to the panel. */
#fkcart-modal .fkcart-slider-body {
	padding-left: 10px !important;
	padding-right: 10px !important;
}

/* ── quantity stepper ────────────────────────────────────────────────────
   The plugin draws a 1px ring with box-shadow (inset-like, 0 0 0 1px) on both
   the selector and the input, which the checkout stepper does not have. Both
   are cleared so the control reads as bare − n + like the checkout card. */
#fkcart-modal .fkcart-quantity-selector,
#fkcart-modal .fkcart-quantity__input {
	box-shadow: none !important;
	border: 0 !important;
	background: transparent !important;
}

/* The quantity FIELD only — never the group.
   This started life inside the shared rule above, which meant the container
   got the fill, the radius and the 28px width too: the row read as one solid
   block instead of a number in a well, and the group collapsed to 28px so the
   - and + spilled out of it and the price landed on top of the "+". The two
   need different treatment, so they get different rules. */
#fkcart-modal .fkcart-quantity__input {
	background: #0B0D14 !important;
	border-radius: 6px !important;
	width: 28px !important;
	min-width: 28px !important;
	flex: 0 0 auto !important;
	text-align: center !important;
}

#fkcart-modal .fkcart-quantity-selector {
	border-radius: 0 !important;
	/* Sized by its three children, not by any one of them. */
	width: auto !important;
	flex: 0 0 auto !important;
}

/* ── stepper glyph weight ────────────────────────────────────────────────
   The plugin's + and - are SVG paths filled with currentColor (stroke: none,
   10x10 rendered from a 20x20 viewBox), not text — font-weight does nothing
   to them whatever it is set to. Adding a stroke in the same colour is the
   equivalent control: it thickens the drawn shape outward from the fill.
   paint-order keeps the stroke behind the fill so the corners stay clean.

   1.5 is in viewBox units, so at a 10px render it adds roughly 0.75px. */
#fkcart-modal .fkcart-quantity-button svg {
	width: 8px !important;
	height: 8px !important;
}

#fkcart-modal .fkcart-quantity__input {
	font-size: 12px !important;
	font-weight: 600 !important;
}

#fkcart-modal .fkcart-quantity-button svg path {
	stroke: currentColor !important;
	stroke-width: 1.5 !important;
	paint-order: stroke fill !important;
}

/* Stepper glyphs take the primary colour on hover.

   The colour has to be set on the <svg>, not on the button. The plugin
   declares `color: var(--fkcart-primary-text-color)` on the svg itself, which
   breaks inheritance: the path's fill="currentColor" then resolves against the
   svg's own colour, so recolouring the button left the glyph white. Measured
   that way round — button rgb(255,15,123), glyph still rgb(255,255,255).
   Setting it on the svg carries both the fill and the stroke added above. */
#fkcart-modal .fkcart-quantity-button:hover svg {
	color: var(--wd-primary-color, #ff0f7b) !important;
}

/* The buttons are the spacing. The gap between each button and the number is
   only 1px (a margin); what reads as space is the button box itself carrying a
   much smaller glyph. Narrowing them from 28px to 18px takes 10px off each
   side of the control — glyph-to-number goes 16px -> 6px, total 90px -> 70px.
   Height is untouched, so the vertical hit area is unchanged. */
#fkcart-modal .fkcart-quantity-selector .fkcart-quantity-button {
	width: 18px !important;
	min-width: 18px !important;
	flex: 0 0 18px !important;
}

/* The plugin fills each button with rgba(228,228,228,.5) on hover, which
   flashes a pale block on the dark card. The control keeps its pointer
   cursor, so the affordance is not lost. */
#fkcart-modal .fkcart-quantity-selector .fkcart-quantity-button.fkcart-quantity-up:hover,
#fkcart-modal .fkcart-quantity-selector .fkcart-quantity-button.fkcart-quantity-down:hover,
#fkcart-modal .fkcart-quantity-button:hover {
	background-color: transparent !important;
	background: transparent !important;
}

/* ── thumbnail aspect ────────────────────────────────────────────────────
   Companion to the fkcart_item_image_size filter in functions.php, which
   swaps the plugin's hard-cropped 150x150 square for WordPress's uncropped
   "medium" — the same swap evov_mini_cart_item_image() makes on the checkout.
   height:auto with no object-fit keeps the source ratio, so portrait covers
   stay portrait instead of being squashed into a square. */
#fkcart-modal img.fkcart-image {
	aspect-ratio: auto !important;
}

/* ── slide-in header ─────────────────────────────────────────────────────
   Replicates WoodMart's side-panel header (.wd-heading, as used by the Sign
   in / side cart panels) so the two slide-ins read as one system. Values are
   measured from it rather than chosen: 20px 15px padding, 66px tall, a 1px
   rgba(255,255,255,.15) rule beneath and a heavy 16.9px/800 white title. The
   close control is the account panel's round button (.evov-acct__x in
   account-panel.css): 32px circle, faint fill, thin 15px cross. FunnelKit's
   own cross is a filled glyph, so it is hidden and the thin one is drawn
   with a mask on ::after, inside the existing click target.

   EVERY rule here is scoped to .fkcart-slider-heading. .fkcart-modal-close is
   used three times in the panel — the header, the empty-cart "Shop Now"
   button and the "Continue Shopping" link — and unscoped rules put the word
   "Close" next to the bottom two as well (seen live). */
#fkcart-modal .fkcart-slider-heading {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 10px !important;
	padding: 20px 15px !important;
	min-height: 66px !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
	box-sizing: border-box !important;
}

#fkcart-modal .fkcart-slider-heading .fkcart-title {
	font-size: 16.9px !important;
	font-weight: 800 !important;
	color: #fff !important;
	line-height: 1.4 !important;
}

#fkcart-modal .fkcart-slider-heading .fkcart-modal-close {
	display: grid !important;
	place-items: center !important;
	flex: 0 0 32px !important;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.04) !important;
	color: rgba(255, 255, 255, 0.7) !important;
	cursor: pointer !important;
	transition: background 0.2s ease, color 0.2s ease;
}

#fkcart-modal .fkcart-slider-heading .fkcart-modal-close:hover {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
}

#fkcart-modal .fkcart-slider-heading .fkcart-modal-close svg.fkcart-icon-close {
	display: none !important;
}

#fkcart-modal .fkcart-slider-heading .fkcart-modal-close::after {
	content: '' !important;
	display: block;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* WoodMart's modals (wishlist group picker and its "added" step, quick view,
   size guide: .wd-popup-wrap > .wd-popup-close + .wd-popup) get the same close
   button, moved from above the card's corner (WoodMart offsets it -50px /
   -15px) to inside it. Lives here so both copies of the button change
   together; this file loads site-wide (not on the checkout, which has no
   WoodMart modals). */
.wd-popup-wrap {
	position: relative;
}

.wd-popup-wrap > .wd-popup-close {
	top: 14px;
	inset-inline-end: 14px;
	width: 32px;
	height: 32px;
	z-index: 101;
}

.wd-popup-wrap > .wd-popup-close > a {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
	color: rgba(255, 255, 255, 0.7);
	transition: background 0.2s ease, color 0.2s ease;
}

.wd-popup-wrap > .wd-popup-close > a:hover,
.wd-popup-wrap > .wd-popup-close > a:focus-visible {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.wd-popup-wrap > .wd-popup-close .wd-action-icon {
	display: none;
}

.wd-popup-wrap > .wd-popup-close > a::after {
	content: '';
	display: block;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* The wishlist group picker's radios, drawn like the archive sort options
   (product-loop.css, SORT BY WIDGET): 16px ring, primary fill that scales
   in, primary label when chosen. WoodMart marks the choice with
   li.wd-current (the input is only checked once something is clicked), so
   that is what the chosen state keys off. */
.wd-wishlist-group-list li {
	gap: 8px;
}

.wd-wishlist-group-list input[type="radio"] {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 16px;
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.wd-wishlist-group-list input[type="radio"]::after {
	content: '';
	position: absolute;
	left: 2px;
	top: 2px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--wd-primary-color, #ff0f7b);
	transform: scale(0);
	opacity: 0;
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s ease;
}

.wd-wishlist-group-list label {
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.15s ease;
}

.wd-wishlist-group-list li:hover label {
	color: #fff;
}

.wd-wishlist-group-list li:hover input[type="radio"] {
	border-color: rgba(255, 255, 255, 0.4);
}

/* :hover outranks a class, so the chosen state repeats it to stay primary. */
.wd-wishlist-group-list li.wd-current label,
.wd-wishlist-group-list li.wd-current:hover label {
	color: var(--wd-primary-color, #ff0f7b);
}

.wd-wishlist-group-list li.wd-current input[type="radio"],
.wd-wishlist-group-list li.wd-current:hover input[type="radio"] {
	border-color: var(--wd-primary-color, #ff0f7b);
}

.wd-wishlist-group-list li.wd-current input[type="radio"]::after {
	transform: scale(1);
	opacity: 1;
}

.wd-wishlist-group-list input[type="radio"]:focus-visible {
	outline: 2px solid var(--wd-primary-color, #ff0f7b);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.wd-wishlist-group-list input[type="radio"]::after {
		transition: none;
	}
}

/* ── region badge ────────────────────────────────────────────────────────
   Printed by evov_fkcart_region_badge() on fkcart_after_item_meta at
   priority 9, so it lands above the "Digital product" row. Mirrors the loop
   card's .evov-region-badge: uppercase, 700, letter-spaced.

   The colour is NOT set here. ARM wraps the region name in its own
   <span style="color:…"> carrying the per-region colour from its settings, so
   leaving colour alone keeps the cart in step with the loop automatically.
   That inline style also sets font-size and line-height, which is why both
   are restated with !important on the span — otherwise the badge renders at
   ARM's 11px/25px, far too large for a 50px-thumbnail row. */
#fkcart-modal .evov-region-badge {
	margin-top: 3px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: .8px !important;
}

#fkcart-modal .evov-region-badge,
#fkcart-modal .evov-region-badge span {
	font-size: 9px !important;
	line-height: 13px !important;
}

/* ── "Digital product" meta row ──────────────────────────────────────────
   Injected by evov_fkcart_digital_product_meta() on fkcart_after_item_meta,
   which puts it inside .fkcart-item-title-price — so it sits under the title
   in the grid's title cell rather than being its own grid item. That differs
   from the checkout card, where it occupies the bottom-left beside the
   quantity; this panel is much narrower and its bottom row already carries
   the quantity and price grouped right.

   Values match the checkout's own meta row so the two read identically. */
#fkcart-modal .evov-mini-cart-item-meta {
	display: flex !important;
	align-items: center !important;
	gap: 6px !important;
	flex-wrap: nowrap !important;
	white-space: nowrap !important;
	margin-top: 4px !important;
}

/* Each span needs its own size and colour: theme rules force spans inside the
   cart to a larger size and full-strength white. */
#fkcart-modal .evov-mini-cart-item-meta,
#fkcart-modal .evov-mini-cart-item-meta span {
	font-size: 12px !important;
	line-height: 1.4 !important;
	color: rgba(255, 255, 255, .45) !important;
	font-weight: 400 !important;
}

/* One extra class of specificity, or the rule above drags the glyph back up
   to 12px and it no longer fits its circle. */
#fkcart-modal .evov-mini-cart-item-meta span.evov-mini-cart-item-meta-info {
	font-size: 10px !important;
	line-height: 1 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	width: 14px !important;
	height: 14px !important;
	border-radius: 50% !important;
	border: 1px solid currentColor !important;
	/* help, not default: hover shows the tooltip, click shows it immediately */
	cursor: help !important;
}

/* ── stacking: overlays must clear the slide-in ──────────────────────────
   FunnelKit gives #fkcart-modal z-index 2147483647 — the top of the signed
   32-bit range — so nothing can be raised above it, and both the shared
   tooltip and the toast stack rendered behind the open panel. Raising them to
   the same value does not help either: equal z-index falls back to DOM order
   and the modal is appended later (body child 142 vs the tooltip's 96).

   So the modal comes down a little instead. 2147483000 is still far above
   every other overlay on the site (WoodMart's own sit near 9999), while
   leaving headroom for the two things that must appear over the cart. */
#fkcart-modal {
	z-index: 2147483000 !important;
}

#evov-title-tooltip {
	z-index: 2147483646 !important;
}

/* ── platform label on the thumbnail ─────────────────────────────────────
   Injected by evov_fkcart_thumbnail_platform_label() into the thumbnail
   markup, so it lands inside .fkcart-image-wrapper alongside the <img>.
   Mirrors the loop card's label: 10px/600 at rgba(255,255,255,.92) on a
   blurred rgba(5,5,5,.65) bar across the bottom of the image. The loop card
   overhangs the image edge; here it is flush, since the thumbnail is only
   50px wide and there is no room to bleed. */
#fkcart-modal .fkcart-image-wrapper {
	position: relative !important;
}

#fkcart-modal .evov-platform-label {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	padding: 2px 4px !important;
	background-color: rgba(5, 5, 5, .65) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	backdrop-filter: blur(12px) !important;
	border-bottom-left-radius: 8px !important;
	border-bottom-right-radius: 8px !important;
	pointer-events: none !important;
}

#fkcart-modal .evov-platform-label,
#fkcart-modal .evov-platform-label .evov-platform-name {
	font-size: 8px !important;
	font-weight: 600 !important;
	line-height: 12px !important;
	color: rgba(255, 255, 255, .92) !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

#fkcart-modal .evov-platform-label .evov-platform-icon {
	display: inline-flex !important;
	align-items: center !important;
	flex: 0 0 auto !important;
}

#fkcart-modal .evov-platform-label .evov-platform-icon img {
	width: 10px !important;
	height: 10px !important;
	border: 0 !important;
	border-radius: 0 !important;
	display: block !important;
}

/* ── price loading state ─────────────────────────────────────────────────
   FunnelKit adds .fkcart-loading to .fkcart-item-price during a quantity
   update and paints a 16px spinner over it. That is replaced with the site's
   own skeleton — the same treatment the evov cards use (.evov-skel in
   transitions.css), so the cart matches the product cards.

   HOW THIS DIFFERS FROM THE CHECKOUT MASK, AND WHY IT MATTERS
   ----------------------------------------------------------
   checkout-shimmer.css paints an OPAQUE bar over text that stays visible —
   it has to, because FunnelKit's checkout markup gives it nothing else. The
   card system works the other way round: the element itself becomes the
   skeleton (translucent white fill, text hidden with color:transparent and
   visibility:hidden on children) and ::after is only a translucent sweep.

   Porting the checkout's approach here failed for exactly that reason: the
   price text was never hidden, so the white price rendered on top of the mask
   and read as a solid white block no matter what colour, gradient or
   animation the mask carried.

   Values come from the shared tokens, so this tracks the cards automatically:
   --evov-skel-bg, --evov-skel-shimmer, --evov-skel-duration, and the theme's
   --wd-brd-radius. */
#fkcart-modal .fkcart-item-price.fkcart-loading {
	position: relative !important;
	overflow: hidden !important;
	background-color: var(--evov-skel-bg, rgba(255, 255, 255, .06)) !important;
	border-radius: var(--wd-brd-radius, 4px) !important;
	color: transparent !important;
	pointer-events: none !important;
}

/* The amount is a nested <span>; color:transparent on the parent does not
   reach it, so children are hidden outright, exactly as .evov-skel does. */
#fkcart-modal .fkcart-item-price.fkcart-loading > * {
	visibility: hidden !important;
}

/* The sweep. Every geometry property is restated because the plugin sizes
   this same pseudo as a 16px spinner puck (width/height/border/offsets), and
   `display` in particular is load-bearing — the plugin leaves it at
   display:none here, which silently kills the whole rule. */
#fkcart-modal .fkcart-item-price.fkcart-loading::after {
	content: '' !important;
	display: block !important;
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	left: 0 !important;
	width: auto !important;
	height: auto !important;
	border: 0 !important;
	border-radius: inherit !important;
	background-color: transparent !important;
	background-image: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0) 0%,
		var(--evov-skel-shimmer, rgba(255, 255, 255, .30)) 50%,
		rgba(255, 255, 255, 0) 100%
	) !important;
	background-size: auto !important;
	animation: evovSkeletonShimmer var(--evov-skel-duration, 1.4s) ease-in-out infinite !important;
}


/* ── thumbnail loading state ─────────────────────────────────────────────
   fkcart's own treatment is a white disc with a blur behind a small ring:

       .fkcart-loading::before { background:#fff; backdrop-filter:blur(3px);
                                 width:32px; height:32px; border-radius:50% }
       .fkcart-loading::after  { 16px ring, animation: fkcartSpinAround }

   A white disc on a dark panel is the wrong side of the theme, and the ring is
   the plugin's rather than the site's. Both pseudo-elements are restyled rather
   than replaced, so fkcart keeps deciding WHEN they show (it toggles
   .fkcart-loading-active alongside .fkcart-loading) and this only decides how
   they look.

   The overlay is WoodMart's own rgba(0,0,0,.7) — the value behind its side
   panels, so a thumbnail dims exactly the way the page does behind the sticky
   nav. It covers the whole thumbnail rather than sitting as a disc in the
   middle, and takes the image's 8px radius so the corners stay square with it.

   The spinner is the site's .evov-spinner-ring recipe from transitions.css —
   primary colour on top, the same at 18% for the track, evovSpinnerRotate —
   scaled to 22px to sit inside a 50px thumbnail. */
#fkcart-modal .fkcart--item .fkcart-image-wrapper.fkcart-loading:not(.fkcart-loaded)::before,
#fkcart-modal .fkcart--item .fkcart-image-wrapper.fkcart-loading:not(.fkcart-loaded)::after {
	/* SHOWN AT ALL — this is what was missing.
	   fkcart hides both pseudo-elements on the image wrapper by default and
	   only reveals them for .fkcart-loading-active:

	       .fkcart-image-wrapper.fkcart-loading::before,
	       .fkcart-image-wrapper.fkcart-loading::after { display: none }
	       …fkcart-loading-active.fkcart-loading:before/:after { display: block }

	   Sampled through a real quantity change on this store, the wrapper only
	   ever receives .fkcart-loading — -active never appears — so both stayed
	   hidden and restyling them changed nothing anyone could see. Showing them
	   from .fkcart-loading alone makes the indicator track the request itself,
	   which is the window that matters.

	   :not(.fkcart-loaded) leaves fkcart's completion checkmark alone: it
	   reuses ::after with its own animation once the request lands. */
	display: block !important;
	content: '' !important;
}

#fkcart-modal .fkcart--item .fkcart-image-wrapper.fkcart-loading::before {
	background: rgba(0, 0, 0, .7) !important;
	backdrop-filter: none !important;
	width: 100% !important;
	height: 100% !important;
	left: 0 !important;
	top: 0 !important;
	margin: 0 !important;
	border-radius: 8px !important;
}

#fkcart-modal .fkcart--item .fkcart-image-wrapper.fkcart-loading::after {
	width: 22px !important;
	height: 22px !important;
	left: calc(50% - 11px) !important;
	top: calc(50% - 11px) !important;
	border: 2px solid color-mix(in srgb, var(--wd-primary-color, #6366f1) 18%, transparent) !important;
	border-top-color: var(--wd-primary-color, #6366f1) !important;
	border-radius: 50% !important;
	animation: evovSpinnerRotate 0.7s linear infinite !important;
}

/* ── checkout button icon ────────────────────────────────────────────────
   WoodMart's cart glyph instead of fkcart's own SVG, so the button matches the
   cart icon in the header — the trolley, also used on the add-to-cart button
   (which is the same glyph carrying a "+").

   \f105 in woodmart-font, read off the live header. NOT \f126: that is the
   same slot in WoodMart's alternate icon set, which draws a shopping BAG. A
   header rendered with the wd-icon-alt class reports it, which is how the
   wrong one was picked up the first time. */
#fkcart-modal .fkcart-checkout--icon svg {
	display: none !important;
}

#fkcart-modal .fkcart-checkout--icon::before {
	content: "\f105" !important;
	font-family: "woodmart-font" !important;
	font-size: 20px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	display: inline-block !important;
}

/* Backdrop behind the cart drawer: WoodMart's overlay colour (black at 70%,
   as on its sidebars, sticky menu and popups) instead of FunnelKit's 30%. */
#fkcart-modal .fkcart-modal-backdrop {
  background-color: #000;
  opacity:          0.7;
}

/* The empty cart: the empty search's panel with a cart in its bubble
   (cart-for-woocommerce/cart/zero-item-state.php, css/search-suggestions.css
   .evov-nr), sized for the narrow drawer. */
#fkcart-modal .evov-cart-empty {
  padding: 32px 20px;
}

#fkcart-modal .evov-cart-empty .evov-nr-title {
  font-size: 22px;
}

/* Motion: the cart opens and closes like WoodMart's drawers (mobile nav, login, account panel):
   a 0.5s slide on WoodMart's curve both ways, the 70% overlay fading with it. FunnelKit switches
   #fkcart-modal's display on and off, which skipped both; the modal now stays in the page, hidden.
   Widths stay FunnelKit's own (Cart > Styling: 375px desktop, 90% mobile). */
#fkcart-modal { display: block !important; visibility: hidden; pointer-events: none; transition: visibility 0s .5s; }
#fkcart-modal.fkcart-show { visibility: visible; pointer-events: auto; transition: visibility 0s; }
#fkcart-modal .fkcart-preview-ui { transform: translateX(100%) !important; transition: transform .5s cubic-bezier(.19, 1, .22, 1) !important; }
#fkcart-modal.fkcart-show .fkcart-preview-ui { transform: none !important; }
#fkcart-modal .fkcart-modal-backdrop { opacity: 0 !important; transition: opacity .5s cubic-bezier(.19, 1, .22, 1) !important; }
#fkcart-modal.fkcart-show .fkcart-modal-backdrop { opacity: .7 !important; }
