/* [evov] Wishlist page as a shop archive (inc/class-evov-wishlist-archive.php,
   js/wishlist-archive.js). Loaded site-wide (small, and PJAX arrivals need
   it); every rule is scoped to the page's body class or its own elements.

   Motion: transform / opacity, plus one clip-path reveal (the share bar);
   no animated layout. All of it stops under prefers-reduced-motion. */

:root {
	--evov-wl-sweep: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
	--evov-wl-dots: radial-gradient(circle 17px at 17px 50%, #000 16.5px, transparent 17px), radial-gradient(circle 17px at 59px 50%, #000 16.5px, transparent 17px), radial-gradient(circle 17px at 101px 50%, #000 16.5px, transparent 17px);
	--evov-wl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--evov-wl-pop:  cubic-bezier(0.34, 1.56, 0.64, 1);
	--evov-wl-surface: #141629;
	--evov-wl-surface-hi: #1d2040;
	--evov-wl-danger: #ff8fa3;
}

/* ── toolbar row ────────────────────────────────────────────────────────
   The bar and the bulk row are printed by the result count widget, inside
   the toolbar row's left column. That column and the widget's own wrappers
   step out of the way (display: contents): the bar (switcher, rename,
   share) and the sort / filters controls share one line, and the bulk row,
   shown only while cards are selected, takes the next. */
/* A row on every device (the layout stacks it on tablet and phone). */
.evov-wishlist-editable .e-con:has(> .e-con > .elementor-widget-wd_shop_archive_result_count) {
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	row-gap: 14px;
}

/* !important: the layout hides the result count on tablet and phone
   (Elementor's .elementor-hidden-*), and on this page it carries the bar. */
.evov-wishlist-editable .e-con:has(> .elementor-widget-wd_shop_archive_result_count),
.evov-wishlist-editable .elementor-widget-wd_shop_archive_result_count,
.evov-wishlist-editable .elementor-widget-wd_shop_archive_result_count > .elementor-widget-container {
	display: contents !important;
}

/* The toolbar's right column (filters button, per page, sort) keeps its
   own width beside the bulk row; the layout gives it a fixed one. */
.evov-wishlist-editable .e-con:has(> .elementor-widget-wd_shop_archive_orderby) {
	flex: 0 0 auto;
	width: auto;
	--width: auto;
	margin-left: auto;
}

.evov-wl-bar {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

/* The shared template, until the visitor's lists are in: placeholders for
   the switcher and the three tools in place of the controls, in the
   store's loading look (transitions.css: the #272831 surface and its
   sweeping band, as on the sort dropdown beside it). */
.evov-wl-bar.is-pending > * {
	display: none !important;
}

.evov-wl-bar.is-pending::before,
.evov-wl-bar.is-pending::after {
	content: '';
	flex: 0 0 auto;
	background: var(--evov-wl-sweep) no-repeat, var(--evov-skel-surface, #272831);
	background-size: 50% 100%, auto;
	animation: evovWlSweep 1.4s ease-in-out infinite;
}

.evov-wl-bar.is-pending::before {
	width: 202px;
	height: 42px;
	border-radius: var(--wd-form-brd-radius, 4px);
}

/* Rename, share, delete: three 34px circles, 8px apart. */
.evov-wl-bar.is-pending::after {
	width: 118px;
	height: 34px;
	-webkit-mask: var(--evov-wl-dots);
	mask: var(--evov-wl-dots);
}

/* Then, until the list is drawn (is-filling, js/wishlist-archive.js) and
   while filters load (pjax-nav.js / Flex Search: evov-filter-loading), the
   real controls under the same mask as the sort dropdown. */
.evov-wl-bar.is-filling .evov-wl-left,
.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-left {
	overflow: hidden;
	border-radius: var(--wd-form-brd-radius, 4px);
	background-color: var(--evov-skel-surface, #272831);
	pointer-events: none;
}

.evov-wl-bar.is-filling .evov-wl-left > *,
.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-left > * {
	opacity: 0;
	transition: none !important;
}

.evov-wl-bar.is-filling .evov-wl-left::before,
.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-left::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: var(--evov-wl-sweep);
	animation: evovSkeletonShimmer 1.4s ease-in-out infinite;
}

/* Phones: the count badge too. */
.evov-wl-bar.is-filling .evov-wl-left::after,
.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-left::after {
	visibility: hidden;
}

.evov-wl-bar.is-filling .evov-wl-tools :is(.evov-wl-btn.pen, .evov-share-toggle, .evov-wl-btn.trash),
.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-tools :is(.evov-wl-btn.pen, .evov-share-toggle, .evov-wl-btn.trash) {
	background: var(--evov-wl-sweep) no-repeat, var(--evov-skel-surface, #272831);
	background-size: 50% 100%, auto;
	color: transparent;
	pointer-events: none;
	transition: none;
	animation: evovWlSweep 1.4s ease-in-out infinite;
}

.evov-wl-bar.is-filling .evov-wl-sep,
.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-sep {
	visibility: hidden;
}

.evov-wishlist-template .evov-wl-bar:not(.is-pending) > * {
	animation: evovWlIn 0.25s var(--evov-wl-ease);
}

/* Empty list: the bar comes with the empty message instead (no toolbar). */
.evov-wl-bar-row {
	margin: 0 0 18px;
}

.evov-wl-left {
	position: relative;
	display: flex;
	align-items: center;
	min-width: 0;
}

/* ── switcher ───────────────────────────────────────────────────────────
   pjax-nav.js wraps it exactly like the sort dropdown
   (.evov-ordering-select2), on phones too; the count sits after the name.
   Until then (or without SelectWoo) it is a native select, drawn as the
   same pill. */
/* Counts: the header icons' count badge (primary circle, white figure),
   sized up for 14px text; two-digit counts widen into a pill. */
.evov-wl-select2 .select2-selection__rendered[data-n]:not([data-n=""])::after,
.evov-wl-dd .evov-wl-opt .n {
	content: attr(data-n);
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	min-width: 18px;
	height: 18px;
	margin-left: 8px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--wd-primary-color);
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	vertical-align: 1px;
}

.evov-wl-dd .evov-wl-opt {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.evov-wl-dd .evov-wl-opt .n {
	margin-left: 0;
}

/* The highlighted option is primary already: invert its badge. */
.evov-wl-dd .select2-results__option--highlighted .evov-wl-opt .n,
.evov-wl-dd .select2-results__option[aria-selected="true"] .evov-wl-opt .n {
	background: #fff;
	color: var(--wd-primary-color);
}

.evov-wl-dd .select2-results__option:last-child {
	color: var(--wd-primary-color);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Phones (native select): the same badge, drawn by its wrapper inside the
   pill, left of the chevron. */
.evov-wl-left:has(> select.evov-wl-switch:not(.select2-hidden-accessible))[data-n]:not([data-n=""])::after {
	content: attr(data-n);
	position: absolute;
	top: 50%;
	right: 38px;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	min-width: 18px;
	height: 18px;
	margin-top: -9px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--wd-primary-color);
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	pointer-events: none;
}

/* !important: the badge rule above is the more specific one, so the count
   showed through the name field on phones. */
.evov-wl-bar.is-naming .evov-wl-left::after {
	display: none !important;
}

select.evov-wl-switch:not(.select2-hidden-accessible) {
	-webkit-appearance: none;
	appearance: none;
	height: 42px;
	max-width: 100%;
	padding: 0 66px 0 18px;
	border: 0;
	border-radius: 30px;
	background: var(--evov-wl-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	text-overflow: ellipsis;
}

/* ── name field (create / rename) ─────────────────────────────────────── */
.evov-wl-name {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 42px;
	padding: 0 5px 0 18px;
	border-radius: 30px;
	background: var(--evov-wl-surface);
	animation: evovWlIn 0.25s var(--evov-wl-ease);
}

.evov-wl-name input {
	width: 200px;
	max-width: 46vw;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 14px;
	box-shadow: none;
}

.evov-wl-name input:focus {
	outline: 0;
	box-shadow: none;
}

.evov-wl-bar.is-naming .evov-wl-left > .select2-container,
.evov-wl-bar.is-naming select.evov-wl-switch {
	display: none !important;
}

/* A guest's one list (kept in their browser): no lists to switch, name,
   share, delete or move between. */
.evov-wl-bar.is-local,
.evov-wishlist-local .evov-wl-move-wrap {
	display: none !important;
}

/* Saving: the tick turns into the evov spinner (the header search
   button's, transitions.css). */
.evov-wl-name.is-busy {
	pointer-events: none;
}

.evov-wl-name.is-busy input {
	opacity: 0.6;
}

.evov-wl-name.is-busy .evov-wl-btn.ok::after {
	box-sizing: border-box;
	width: 16px;
	height: 16px;
	border: 1px solid color-mix(in srgb, var(--wd-primary-color, #6366f1) 18%, transparent);
	border-top-color: var(--wd-primary-color, #6366f1);
	border-radius: 50%;
	background: none;
	-webkit-mask: none;
	mask: none;
	animation: evovWlSpin 0.7s linear infinite;
}

/* ── icon buttons ───────────────────────────────────────────────────────
   Fixed square boxes with every inherited button padding / min-height
   reset, so the hover fill is a true circle (WoodMart's button styles
   stretched them into ovals). */
.evov-wl-btn {
	position: relative;
	flex: 0 0 34px;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 34px;
	height: 34px;
	min-width: 0;
	min-height: 0;
	aspect-ratio: 1;
	margin: 0;
	padding: 0 !important;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.7);
	font-size: 0;
	line-height: 0;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

/* Shown per list (the template has them all, hidden until it knows):
   the grid display above would beat the hidden attribute. */
.evov-wl-btn[hidden],
.evov-wl-sep[hidden] {
	display: none !important;
}

.evov-wl-btn::after {
	content: '';
	width: 16px;
	height: 16px;
	background: currentColor;
	transition: transform 0.25s var(--evov-wl-pop);
}

.evov-wl-btn:hover,
.evov-wl-btn:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
}

.evov-wl-btn:focus-visible {
	outline: 2px solid var(--wd-primary-color);
	outline-offset: 1px;
}

.evov-wl-btn:active::after {
	transform: scale(0.86);
}

.evov-wl-btn.trash:hover,
.evov-wl-btn.trash:focus-visible {
	background: rgba(255, 83, 112, 0.1);
	color: var(--evov-wl-danger);
}

.evov-wl-btn.ok { color: var(--wd-primary-color); }
.evov-wl-btn.copied { color: #7cf0b4; }

.evov-wl-btn.pen::after    { -webkit-mask: var(--evov-wl-i-pen) center / contain no-repeat;    mask: var(--evov-wl-i-pen) center / contain no-repeat; }
.evov-wl-btn.share::after  { -webkit-mask: var(--evov-wl-i-share) center / contain no-repeat;  mask: var(--evov-wl-i-share) center / contain no-repeat; }
.evov-wl-btn.trash::after  { -webkit-mask: var(--evov-wl-i-trash) center / contain no-repeat;  mask: var(--evov-wl-i-trash) center / contain no-repeat; }
.evov-wl-btn.ok::after     { -webkit-mask: var(--evov-wl-i-tick) center / contain no-repeat;   mask: var(--evov-wl-i-tick) center / contain no-repeat; }
.evov-wl-btn.cancel::after,
.evov-wl-btn.close::after  { -webkit-mask: var(--evov-wl-i-x) center / contain no-repeat;      mask: var(--evov-wl-i-x) center / contain no-repeat; width: 14px; height: 14px; }
.evov-wl-btn.fb::after     { -webkit-mask: var(--evov-wl-i-fb) center / contain no-repeat;     mask: var(--evov-wl-i-fb) center / contain no-repeat; }
.evov-wl-btn.xx::after     { -webkit-mask: var(--evov-wl-i-xx) center / contain no-repeat;     mask: var(--evov-wl-i-xx) center / contain no-repeat; width: 14px; height: 14px; }
.evov-wl-btn.wa::after     { -webkit-mask: var(--evov-wl-i-wa) center / contain no-repeat;     mask: var(--evov-wl-i-wa) center / contain no-repeat; }
.evov-wl-btn.tg::after     { -webkit-mask: var(--evov-wl-i-tg) center / contain no-repeat;     mask: var(--evov-wl-i-tg) center / contain no-repeat; }
.evov-wl-btn.mail::after   { -webkit-mask: var(--evov-wl-i-mail) center / contain no-repeat;   mask: var(--evov-wl-i-mail) center / contain no-repeat; }
.evov-wl-btn.link::after   { -webkit-mask: var(--evov-wl-i-link) center / contain no-repeat;   mask: var(--evov-wl-i-link) center / contain no-repeat; }

/* Tooltips: pointer devices only. */
@media (hover: hover) and (pointer: fine) {
	.evov-wl-btn[data-tip]::before {
		content: attr(data-tip);
		position: absolute;
		bottom: calc(100% + 8px);
		left: 50%;
		padding: 5px 9px;
		border-radius: 6px;
		background: #22263a;
		color: #fff;
		font-size: 11px;
		font-weight: 600;
		line-height: 1.2;
		white-space: nowrap;
		pointer-events: none;
		opacity: 0;
		transform: translate(-50%, 4px);
		transition: opacity 0.15s ease, transform 0.15s var(--evov-wl-ease);
	}

	.evov-wl-btn[data-tip]:hover::before {
		opacity: 1;
		transform: translate(-50%, 0);
	}
}

.evov-wl-sep {
	flex: 0 0 1px;
	width: 1px;
	height: 18px;
	margin: 0 3px;
	background: rgba(255, 255, 255, 0.08);
}

/* ── list tools ─────────────────────────────────────────────────────────── */
.evov-wl-tools {
	position: relative;
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 2px;
	height: 42px;
	padding: 0 4px;
	border-radius: 30px;
	background: var(--evov-wl-surface);
}

/* ── expanding share (inc/class-evov-share.php) ────────────────────────
   The bar grows out of the toggle: its clip starts as a window over the
   toggle (--from-l / --from-r, measured on open) and opens to the full
   bar, toward the side with room (--end: leftward, --start: rightward). */
.evov-share {
	position: relative;
	display: inline-flex;
	vertical-align: middle;
}

/* On its own (product page): the toggle is a 42px pill. */
.evov-share:not(.evov-share--tools) > .evov-share-toggle {
	flex-basis: 42px;
	width: 42px;
	height: 42px;
	background: var(--evov-wl-surface);
}

.evov-share:not(.evov-share--tools) > .evov-share-toggle:hover,
.evov-share:not(.evov-share--tools) > .evov-share-toggle:focus-visible {
	background: var(--evov-wl-surface-hi);
}

.evov-share-bar {
	position: absolute;
	top: 50%;
	right: 0;
	z-index: 20;
	/* Anchored to the (narrow) toggle: size to the links, not to it. */
	width: max-content;
	display: flex;
	align-items: center;
	gap: 2px;
	height: 42px;
	margin-top: -21px;
	padding: 0 4px;
	border-radius: 30px;
	background: #1b1e33;
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
	white-space: nowrap;
	clip-path: inset(4px var(--from-r, 0px) 4px var(--from-l, calc(100% - 42px)) round 30px);
	opacity: 0;
	visibility: hidden;
	transition: clip-path 0.38s var(--evov-wl-ease), opacity 0.2s ease, visibility 0s linear 0.38s;
}

.evov-share--start > .evov-share-bar {
	right: auto;
	left: 0;
}

/* Open: above the bar's neighbours in its own section. */
.evov-share.is-open { z-index: 30; }

.evov-share.is-open > .evov-share-bar {
	clip-path: inset(0 0 0 0 round 30px);
	opacity: 1;
	visibility: visible;
	transition: clip-path 0.38s var(--evov-wl-ease), opacity 0.2s ease, visibility 0s;
}

/* WoodMart's share links, as the bar's icon buttons (its icon font). */
.evov-share-bar > * {
	flex-shrink: 0;
}

.evov-share-bar .wd-social-icons {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	--wd-social-size: 34px;
}

.evov-share-bar .wd-social-icons .wd-label { display: none; }

/* No !important on display: WoodMart's .wd-hide-lg / .wd-hide-md keep
   choosing its desktop or mobile WhatsApp link. */
.evov-share-bar .wd-social-icon {
	display: grid;
	place-items: center;
	flex: 0 0 34px;
	width: 34px !important;
	height: 34px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: rgba(255, 255, 255, 0.7) !important;
	box-shadow: none !important;
	line-height: 0;
	transition: color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease, transform 0.3s var(--evov-wl-ease);
}

.evov-share-bar .wd-social-icon .wd-icon {
	font-size: 15px !important;
	line-height: 1;
}

.evov-share-bar .wd-social-icon:hover,
.evov-share-bar .wd-social-icon:focus-visible {
	background: rgba(255, 255, 255, 0.07) !important;
	color: #fff !important;
}

/* Icons slide in one after another. */
.evov-share-bar .wd-social-icon,
.evov-share-bar > .evov-wl-btn {
	opacity: 0;
	transform: translateX(10px);
}

.evov-share--start > .evov-share-bar .wd-social-icon,
.evov-share--start > .evov-share-bar > .evov-wl-btn {
	transform: translateX(-10px);
}

.evov-share-bar > .evov-wl-btn {
	transition: opacity 0.2s ease, transform 0.3s var(--evov-wl-ease), color 0.2s ease, background-color 0.2s ease;
}

.evov-share.is-open .evov-share-bar .wd-social-icon,
.evov-share.is-open .evov-share-bar > .evov-wl-btn {
	opacity: 1;
	transform: none;
}

.evov-share.is-open .wd-social-icon:nth-child(2) { transition-delay: 60ms; }
.evov-share.is-open .wd-social-icon:nth-child(3) { transition-delay: 85ms; }
.evov-share.is-open .wd-social-icon:nth-child(4) { transition-delay: 110ms; }
.evov-share.is-open .wd-social-icon:nth-child(5) { transition-delay: 135ms; }
.evov-share.is-open .wd-social-icon:nth-child(6) { transition-delay: 160ms; }
.evov-share.is-open .wd-social-icon:nth-child(7) { transition-delay: 185ms; }
.evov-share.is-open .wd-social-icon:nth-child(8) { transition-delay: 210ms; }
.evov-share.is-open .evov-share-bar > .evov-wl-btn { transition-delay: 230ms; }

/* Delete confirmation, over the tools. */
.evov-wl-confirm {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 4;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 42px;
	padding: 0 4px 0 16px;
	border-radius: 30px;
	background: #1b1e33;
	box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 13px;
	white-space: nowrap;
	animation: evovWlIn 0.22s var(--evov-wl-ease);
}

.evov-wl-confirm[hidden],
.evov-wl-name[hidden] {
	display: none;
}

/* ── bulk row ─────────────────────────────────────────────────────────────
   Below the bar, and only while something is selected. */
/* Collapsed to nothing (and pulled up over the toolbar's 14px row gap)
   until something is selected, then it slides down into place. */
.evov-wl-bulk {
	order: 1;
	display: flex;
	align-items: center;
	flex: 0 0 100%;
	gap: 14px;
	min-width: 0;
	height: 0;
	margin-top: -14px;
	opacity: 0;
	transform: translateY(-8px);
	visibility: hidden;
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	white-space: nowrap;
	transition: height 0.3s var(--evov-wl-ease), margin-top 0.3s var(--evov-wl-ease), opacity 0.18s ease, transform 0.3s var(--evov-wl-ease), visibility 0s linear 0.3s;
}

.evov-wl-bulk.has-sel {
	height: 42px;
	margin-top: 0;
	opacity: 1;
	transform: none;
	visibility: visible;
	transition: height 0.3s var(--evov-wl-ease), margin-top 0.3s var(--evov-wl-ease), opacity 0.22s ease 0.05s, transform 0.3s var(--evov-wl-ease), visibility 0s;
}

/* "Select all": in lists of three or more only. */
.evov-wl-all {
	display: none;
	align-items: center;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	transition: color 0.2s ease;
}

.evov-wl-bulk.has-many .evov-wl-all { display: inline-flex; }

.evov-wl-all:hover { color: #fff; }

.evov-wl-actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	transform: translateX(-8px);
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.3s var(--evov-wl-ease);
}

.evov-wl-bulk.has-sel .evov-wl-actions {
	opacity: 1;
	transform: none;
	pointer-events: auto;
}

.evov-wl-count {
	display: inline-flex;
	align-items: baseline;
	gap: 4px;
	padding-right: 4px;
	color: #fff;
	font-weight: 600;
	overflow: hidden;
}

.evov-wl-count .num {
	display: inline-block;
	min-width: 1ch;
	color: var(--wd-primary-color);
}

.evov-wl-count .num.bump {
	animation: evovWlNum 0.3s var(--evov-wl-pop);
}

.evov-wl-chip {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	box-sizing: border-box;
	height: 34px;
	min-height: 0;
	margin: 0;
	padding: 0 14px !important;
	border: 0;
	border-radius: 30px;
	background: var(--evov-wl-surface);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.evov-wl-chip::before {
	content: '';
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	background: currentColor;
}

.evov-wl-chip.move::before   { -webkit-mask: var(--evov-wl-i-move) center / contain no-repeat;  mask: var(--evov-wl-i-move) center / contain no-repeat; }
.evov-wl-chip.remove::before { -webkit-mask: var(--evov-wl-i-trash) center / contain no-repeat; mask: var(--evov-wl-i-trash) center / contain no-repeat; }

.evov-wl-chip:hover,
.evov-wl-chip:focus-visible {
	background: var(--evov-wl-surface-hi);
	color: #fff;
}

.evov-wl-chip.remove:hover,
.evov-wl-chip.remove:focus-visible {
	background: rgba(255, 83, 112, 0.14);
	color: var(--evov-wl-danger);
}

.evov-wl-chip:disabled { opacity: 0.55; cursor: default; }

/* Move menu */
.evov-wl-move-wrap { position: relative; }

.evov-wl-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 30;
	display: flex;
	flex-direction: column;
	min-width: 190px;
	padding: 6px;
	border-radius: 14px;
	background: #1b1e33;
	box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.7);
	opacity: 0;
	transform: translateY(-6px) scale(0.98);
	transform-origin: top left;
	transition: opacity 0.16s ease, transform 0.2s var(--evov-wl-ease);
}

.evov-wl-menu.is-open {
	opacity: 1;
	transform: none;
}

.evov-wl-menu[hidden] { display: none; }

.evov-wl-menu button {
	display: block;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 9px 12px !important;
	border: 0;
	border-radius: 9px;
	background: transparent;
	box-shadow: none;
	color: rgba(255, 255, 255, 0.85);
	font-size: 13px;
	font-weight: 500;
	text-align: left;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.evov-wl-menu button:hover,
.evov-wl-menu button:focus-visible {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.evov-wl-menu button.is-new {
	color: var(--wd-primary-color);
}

/* ── checkboxes: the filter checkbox (product-loop.css §26) ───────────────
   Also the product page's "Only with images" review filter. */
.wd-with-image {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.wd-with-image > label {
	margin: 0;
	cursor: pointer;
}

:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"]) {
	-webkit-appearance: none;
	appearance: none;
	position: relative;
	flex: 0 0 auto;
	box-sizing: content-box;
	width: 14px;
	height: 14px;
	margin: 0;
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 5px;
	background: transparent;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"]):hover { border-color: rgba(255, 255, 255, 0.35); }

:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"])::after {
	content: '';
	position: absolute;
	inset: 0;
	background: #fff;
	-webkit-mask: var(--evov-wl-i-check) center / 10px no-repeat;
	mask: var(--evov-wl-i-check) center / 10px no-repeat;
	transform: scale(0);
	transition: transform 0.22s var(--evov-wl-pop);
}

:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"]):checked,
:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"]):indeterminate {
	border-color: var(--wd-primary-color);
	background: var(--wd-primary-color);
}

:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"]):checked::after { transform: scale(1); }

:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"]):indeterminate::after {
	-webkit-mask: none;
	mask: none;
	inset: 6px 3px;
	border-radius: 1px;
	transform: scale(1);
}

:is(input.evov-wl-cb, .wd-with-image > input[type="checkbox"]):focus-visible {
	outline: 2px solid var(--wd-primary-color);
	outline-offset: 2px;
}

/* ── cards ──────────────────────────────────────────────────────────────── */
.evov-wishlist-editable .wd-product {
	position: relative;
}

/* Centred on the same line as the X (top 8 + 32/2 = 24). Over artwork the
   box gets a brighter edge, a faint dark fill and a shadow to stay visible. */
.evov-wl-card-cb {
	position: absolute;
	top: 15px;
	left: 15px;
	z-index: 11;
	margin: 0;
	line-height: 0;
	cursor: pointer;
}

.evov-wl-card-cb input.evov-wl-cb {
	border-color: rgba(255, 255, 255, 0.75);
	background-color: rgba(10, 12, 22, 0.35);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.evov-wl-card-cb input.evov-wl-cb:checked {
	border-color: var(--wd-primary-color);
	background-color: var(--wd-primary-color);
}

.evov-wishlist-editable .wd-product .wd-product-wrapper {
	transition: box-shadow 0.2s ease;
}

.evov-wishlist-editable .wd-product.evov-wl-selected .wd-product-wrapper {
	box-shadow: 0 0 0 2px var(--wd-primary-color);
}

/* Loading look (the template, filtering): the checkbox goes with the rest
   of the card's content (pjax-nav.js / the template's skeleton classes). */
.wd-product:has(.evov-skel-thumb) .evov-wl-card-cb {
	visibility: hidden;
}

/* The X draws its icon as a masked ::after, the pseudo-element the button
   skeleton fills with its shimmer (product-loop.css): without this the
   shimmer took the X's shape and size. */
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t.evov-skel-wishlist .evov-wl-x > a::after {
	width: auto;
	height: auto;
	-webkit-mask: none;
	mask: none;
	transform: none;
	transition: none;
}

/* The template shows every filter the store has, masked, until the list's
   own are in: a few rows of each, so the sidebar does not shrink a screen
   at once when they arrive. */
.evov-wishlist-template .wd-content-layout:has(.wd-products[data-flex-shell]) .woodmart-woocommerce-layered-nav li:nth-child(n+5) {
	display: none;
}

/* The template's pagination counts the store's pages (its placeholder
   query): none until the list's own, drawn by Flex Search. */
body.evov-wishlist-template:has(.wd-products[data-flex-shell]) .woocommerce-pagination {
	display: none !important;
}

/* Remove X, in the heart's place (the 32px circle comes from the card's
   top-right button styles, product-loop.css §9). */
.evov-wl-x > a .wd-action-text { display: none; }

.evov-wl-x > a::after {
	content: '';
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: var(--evov-wl-i-x) center / contain no-repeat;
	mask: var(--evov-wl-i-x) center / contain no-repeat;
	transition: transform 0.3s var(--evov-wl-pop);
}

.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t .evov-wl-x > a:hover,
.wd-product.wd-hover-buttons-on-hover .wd-buttons.wd-pos-r-t .evov-wl-x > a:focus-visible {
	background-color: rgba(255, 83, 112, 0.85);
	color: #fff;
}

.evov-wl-x > a:hover::after { transform: rotate(90deg); }
.evov-wl-x > a.loading { opacity: 0.5; pointer-events: none; }

/* Remove / move on its way: the card dims and its cover gets the evov
   spinner, the same look as the mini cart's thumbnails. */
.wd-product.evov-wl-busy { pointer-events: none; }
.wd-product.evov-wl-busy .product-element-top ~ * { opacity: 0.5; transition: opacity 0.2s ease; }
.wd-product.evov-wl-busy .product-element-top { position: relative; }
.evov-wl-busy-mask {
	position: absolute;
	inset: 0;
	z-index: 5;
	border-radius: inherit;
	background: rgba(0, 0, 0, 0.7);
	animation: evovWlMaskIn 0.2s ease both;
}
.evov-wl-busy-mask::after {
	content: '';
	position: absolute;
	top: calc(50% - 15px);
	left: calc(50% - 15px);
	width: 30px;
	height: 30px;
	box-sizing: border-box;
	border: 3px solid color-mix(in srgb, var(--wd-primary-color, #6366f1) 18%, transparent);
	border-top-color: var(--wd-primary-color, #6366f1);
	border-radius: 50%;
	animation: evovWlSpin 0.7s linear infinite;
}
@keyframes evovWlMaskIn { from { opacity: 0; } }

.wd-product.evov-wl-leaving {
	opacity: 0;
	transform: scale(0.94);
	transition: opacity 0.22s ease, transform 0.26s var(--evov-wl-ease);
	pointer-events: none;
}

/* ── empty list ─────────────────────────────────────────────────────────── */
.evov-wl-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 56px 20px;
	text-align: center;
	animation: evovWlIn 0.35s var(--evov-wl-ease);
}

/* The empty search's panel (css/search-suggestions.css .evov-nr-page)
   draws it; without its illustration, the plain heart. */
.evov-wl-empty.evov-nr {
	gap: 0;
	padding: 56px 20px 64px;
}

.evov-wl-empty.no-art::before {
	content: '';
	width: 56px;
	height: 56px;
	margin-bottom: 10px;
	background: rgba(255, 255, 255, 0.18);
	-webkit-mask: var(--evov-wl-i-heart) center / contain no-repeat;
	mask: var(--evov-wl-i-heart) center / contain no-repeat;
}

/* Nothing to filter: the sidebar's empty panel goes too, its column with it,
   and the content column takes the full width so the panel sits centred. */
body:is(.evov-wishlist-page, .evov-waitlist-page) .wd-content-layout:has(.evov-wl-empty) .widget-area,
body:is(.evov-wishlist-page, .evov-waitlist-page) :is(.e-con, .e-con-inner):has(> .elementor-element .evov-wl-empty) > [class*="wd-col-offcanvas"] {
	display: none !important;
}

body:is(.evov-wishlist-page, .evov-waitlist-page) [class*="wd-col-content"]:has(.evov-wl-empty) {
	--width: 100%;
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
}

/* ── motion ─────────────────────────────────────────────────────────────── */
@keyframes evovWlIn {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: none; }
}

/* The band across a placeholder's own background (pseudo-elements and
   buttons, which cannot hold transitions.css's sweeping child). */
@keyframes evovWlSweep {
	from { background-position: -100% 0, 0 0; }
	to   { background-position: 200% 0, 0 0; }
}

@keyframes evovWlSpin {
	to { transform: rotate(360deg); }
}

@keyframes evovWlNum {
	from { opacity: 0; transform: translateY(-55%); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.evov-share-bar,
	.evov-share-bar .wd-social-icon,
	.evov-share-bar > .evov-wl-btn,
	.evov-wl-actions,
	.evov-wl-bulk,
	.evov-wl-menu,
	.evov-wl-btn::after,
	.evov-wl-btn::before,
	input.evov-wl-cb::after,
	.evov-wl-x > a::after,
	.wd-product.evov-wl-leaving {
		transition: none !important;
	}

	.evov-wl-count .num.bump,
	.evov-wl-name,
	.evov-wl-confirm,
	.evov-wl-bulk.has-sel,
	.evov-wl-bar.is-pending::before,
	.evov-wl-bar.is-pending::after,
	.evov-wl-bar.is-filling .evov-wl-left::before,
	.evov-wl-bar.is-filling .evov-wl-tools *,
	.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-left::before,
	.wd-content-layout.evov-filter-loading .evov-wl-bar .evov-wl-tools *,
	.evov-wishlist-template .evov-wl-bar:not(.is-pending) > *,
	.evov-wl-empty {
		animation: none;
	}
}

/* ── phones ─────────────────────────────────────────────────────────────── */
@media (max-width: 768.98px) {
	.evov-wl-bar { gap: 8px; }
	.evov-wl-left { flex: 1 1 auto; }
	select.evov-wl-switch:not(.select2-hidden-accessible) { width: 100%; }
	.evov-wl-left > .evov-wl-select2 { width: 100% !important; }
	.evov-wl-name { flex: 1 1 auto; }
	.evov-wl-name input { width: 100%; max-width: none; }

	.evov-wl-confirm { right: 0; }
}

@media (max-width: 480px) {
	.evov-wl-bulk { gap: 10px; }

	/* Chips go icon-only; the names stay for screen readers. */
	.evov-wl-chip {
		width: 34px;
		padding: 0 !important;
		justify-content: center;
	}

	.evov-wl-chip > span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}

	.evov-wl-count { padding-right: 0; }
	.evov-wl-menu { left: auto; right: 0; transform-origin: top right; }
}

/* ── icons (CSS masks: no requests) ─────────────────────────────────────── */
:root {
	--evov-wl-i-x:     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.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E");
	--evov-wl-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--evov-wl-i-tick:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	--evov-wl-i-pen:   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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E");
	--evov-wl-i-share: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.6'/%3E%3Ccircle cx='6' cy='12' r='2.6'/%3E%3Ccircle cx='18' cy='19' r='2.6'/%3E%3Cpath d='M8.4 13.3l7.2 4.3M15.6 6.4l-7.2 4.3'/%3E%3C/svg%3E");
	--evov-wl-i-trash: 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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 12a2 2 0 002 2h6a2 2 0 002-2l1-12M9 7V4h6v3'/%3E%3C/svg%3E");
	--evov-wl-i-move:  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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--evov-wl-i-link:  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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 005.7 0l3-3a4 4 0 00-5.7-5.7l-1 1'/%3E%3Cpath d='M14 10a4 4 0 00-5.7 0l-3 3a4 4 0 005.7 5.7l1-1'/%3E%3C/svg%3E");
	--evov-wl-i-mail:  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.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2.5'/%3E%3Cpath d='M3.5 7l8.5 6 8.5-6'/%3E%3C/svg%3E");
	--evov-wl-i-fb:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M14 8h3V4h-3a4 4 0 00-4 4v2H7v4h3v8h4v-8h3l1-4h-4V8z'/%3E%3C/svg%3E");
	--evov-wl-i-xx:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.5 3h3.3l-7.2 8.2L22 21h-6.6l-5.2-6.8L4.3 21H1l7.7-8.8L1 3h6.8l4.7 6.2L17.5 3z'/%3E%3C/svg%3E");
	--evov-wl-i-wa:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 00-8.6 15.1L2 22l5-1.3A10 10 0 1012 2zm5.3 14.2c-.2.6-1.3 1.2-1.8 1.2-.5.1-1 .2-3.4-.7-2.8-1.1-4.6-4-4.8-4.2-.1-.2-1.1-1.5-1.1-2.9s.7-2.1 1-2.4c.3-.3.6-.3.8-.3h.6c.2 0 .4 0 .6.5l.9 2.1c.1.2.1.4 0 .6l-.4.6-.5.5c-.2.2-.3.4-.1.7.2.3.8 1.4 1.8 2.2 1.2 1.1 2.3 1.4 2.6 1.6.3.2.5.1.7-.1l.9-1.1c.2-.3.4-.2.7-.1l2 1c.3.1.5.2.5.3.1.2.1.7-.1 1.3z'/%3E%3C/svg%3E");
	--evov-wl-i-tg:    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 3.6L2.9 10.8c-1.3.5-1.2 1.2-.2 1.5l4.8 1.5 1.8 5.6c.2.6.4.8.9.8.4 0 .6-.2.8-.4l2.4-2.3 4.9 3.6c.9.5 1.5.2 1.8-.8l3.2-15c.3-1.3-.5-1.9-1.6-1.4zM8.6 13.4l9.2-5.8-7.2 6.8-.3 3-1.7-4z'/%3E%3C/svg%3E");
	--evov-wl-i-heart: 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.6' stroke-linejoin='round'%3E%3Cpath d='M12 20.5s-7.5-4.6-9.2-9.4C1.6 7.6 4 4.5 7.3 4.5c2 0 3.6 1.1 4.7 2.7 1.1-1.6 2.7-2.7 4.7-2.7 3.3 0 5.7 3.1 4.5 6.6-1.7 4.8-9.2 9.4-9.2 9.4z'/%3E%3C/svg%3E");
}

/* ── Sort & Filters button (the off-canvas sidebar opener) ──────────────
   Masked like the sort dropdown while the list or its filters load, and
   left out for an empty list (nothing to sort or filter). */
body.evov-wishlist-page .wd-content-layout:has(.evov-wl-bar.is-pending, .evov-wl-bar.is-filling) .wd-off-canvas-btn > a,
.wd-content-layout.evov-filter-loading .wd-off-canvas-btn > a {
	border-radius: var(--wd-form-brd-radius, 4px);
	background: var(--evov-wl-sweep, linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent)) no-repeat, var(--evov-skel-surface, #272831);
	background-size: 50% 100%, auto;
	color: transparent !important;
	pointer-events: none;
	animation: evovWlSweep 1.4s ease-in-out infinite;
}

body.evov-wishlist-page .wd-content-layout:has(.evov-wl-bar.is-pending, .evov-wl-bar.is-filling) .wd-off-canvas-btn > a > *,
.wd-content-layout.evov-filter-loading .wd-off-canvas-btn > a > * {
	visibility: hidden;
}

body:is(.evov-wishlist-page, .evov-waitlist-page):has(.evov-wl-empty) .wd-off-canvas-btn {
	display: none !important;
}

/* Review sorting (product page): the store sort dropdown's width (its
   longest option, "Popularity: Popular First", sets 202px there). */
.wd-reviews-tools .evov-ordering-select2 {
	width: 202px !important;
	max-width: 100%;
}

/* ── waitlist (inc/class-evov-waitlist-archive.php) ─────────────────────── */
/* Header icon (header-elements/waitlist.php): WoodMart's waitlist glyph, the
   one its empty waitlist shows (.wd-empty-wtl). */
.wd-header-waitlist {
	--wd-tools-icon: "\f186";
}

.wd-header-waitlist .wd-tools-icon:before {
	content: "\f186";
	font-family: "woodmart-font";
}
