/**
 * MARKET — WPC SMART WISHLIST VISUAL CONTROL.
 *
 * The WooSW element remains the clickable layer. The Market icon is a stable
 * visual layer, so plugin text changes cannot alter card geometry.
 */
.vm-market-wishlist {
	position: absolute;
	z-index: 8;
	top: 10px;
	right: 10px;
	display: grid;
	width: 30px;
	height: 30px;
	place-items: center;
	color: color-mix(in srgb, var(--e-global-color-text, #262223) 72%, transparent);
}

.vm-market-wishlist > .woosw-btn,
.vm-market-wishlist > button,
.vm-market-wishlist > a,
.vm-market-wishlist .woosw-btn {
	position: absolute !important;
	inset: 0 !important;
	z-index: 2;
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	height: 100% !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
	opacity: 0.001;
	cursor: pointer;
}

.vm-market-wishlist__icon {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	pointer-events: none;
}

.vm-market-wishlist__icon svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: transparent;
	stroke: currentColor;
	stroke-width: 1.55;
	transition:
		color 180ms ease,
		fill 180ms ease,
		transform 180ms ease;
}

.vm-market-wishlist:hover .vm-market-wishlist__icon svg,
.vm-market-wishlist:focus-within .vm-market-wishlist__icon svg {
	color: var(--e-global-color-accent, #ae1d27);
	transform: scale(1.06);
}

.vm-market-wishlist:has(.woosw-added) {
	color: var(--e-global-color-accent, #ae1d27);
}

.vm-market-wishlist:has(.woosw-added) .vm-market-wishlist__icon svg {
	fill: currentColor;
}

@media (max-width: 767px) {
	.vm-market-wishlist {
		top: 8px;
		right: 8px;
		width: 26px;
		height: 26px;
	}

	.vm-market-wishlist__icon svg {
		width: 18px;
		height: 18px;
	}
}
