.cl-fav[hidden], #cl-fav-notice[hidden], #cl-fav-notice [hidden], #cl-favorites [hidden] { display: none !important; }
button.cl-fav, button.cl-fav:is(:hover, :focus, :active, :disabled) { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--cl-ink, #263c33); cursor: pointer; }
.cl-fav svg { fill: none; stroke: currentColor; color: var(--cl-leaf); stroke-width: 2.2; stroke-linejoin: round; }
#cl-favorites .products a { --has-link-decoration: var(--false); }
.products figure { position: relative; }
.products figure .cl-fav { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; padding: 0; z-index: 3; }
.products figure .cl-fav[aria-pressed=false] svg { stroke-opacity: .8; }
@media (hover: hover) {
	.products figure .cl-fav[aria-pressed=false]:not([data-favorite-pending]):hover svg {
		fill: currentColor;
		fill-opacity: .9;
	}
	button.cl-fav.cl-product-fav:hover { background: var(--cl-leaf-tint); }
}
.cl-fav[aria-pressed=true] svg { fill: currentColor; }
.products figure .cl-fav[aria-pressed=true] svg { filter: drop-shadow(0 0 1px white); }
.cl-fav:focus-visible, .cl-fav-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Область нажатия совпадает по высоте с кнопкой Яндекс Чекаута. */
button.cl-fav.cl-product-fav {
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px var(--cl-leaf);
	transition: background-color 0.15s ease;
}
button.cl-fav.cl-product-fav:is(:focus-visible, :active) { background: var(--cl-leaf-tint); }
.cl-product-fav[aria-pressed=false] svg { fill: var(--cl-paper); }
.cl-product-fav path { vector-effect: non-scaling-stroke; stroke-width: 1px; }
.ct-cart-actions > #yastore-checkout-button:has(~ .cl-product-fav:not([hidden])) {
	width: calc(100% - 58px); /* 48 px сердечка и отступ 10 px в группе Blocksy. */
}
.ct-cart-actions > #yastore-checkout-button ~ .cl-product-fav { margin-block-start: 10px; }

#cl-fav-notice {
	position: fixed;
	bottom: calc(5rem + env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	z-index: 9999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
	width: max-content;
	max-width: calc(100% - 2 * var(--cl-gutter));
	padding: 10px 16px;
	background: var(--cl-paper);
	color: var(--cl-ink);
	border: 1px solid var(--cl-thread);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(31, 43, 39, .16);
	font: 500 14px/1.45 var(--cl-sans);
}
#cl-fav-notice .cl-button { min-height: 40px; padding: 0 22px; font: inherit; }
/* В одном ряду с 15-пиксельными значками кабинета и корзины Blocksy. */
#header [data-device="desktop"] .cl-fav-header,
#header [data-device="desktop"] .cl-fav-header + [data-id="cart"] {
	margin-inline-start: 2px;
}
.cl-fav-header {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--cl-ink);
}
.cl-fav-header::before { content: ""; position: absolute; inset: 0 -5px; }
.cl-fav-header svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	/* У сердца есть внутренние поля в SVG. Масштабируем рисунок внутри ряда. */
	transform: scale(1.25);
	stroke-width: 2;
	stroke-linejoin: round;
}
.cl-fav-header:is(:hover, :focus-visible) { color: var(--cl-leaf); }
