/* =========================================================
   Comfyo — wishlist toast (ETAP G.7.2)
   Loaded wherever comfyo-wishlist.js is (shop, categories, homepage, product page, My Account).
   Fixed position: it never pushes content (no layout shift) and never blocks the page (no overlay).
   Tokens from comfyo-site.css, with fallbacks for pages where it is not loaded.
   ========================================================= */

/* the only element announced by screen readers (role=status); visually hidden */
.comfyo-wl-live{
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.comfyo-wl-toast{
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px));
	z-index: 950; /* above the sticky mobile CTA (900), below the cart drawer / overlays */
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 1rem;
	margin: 0;
	padding: 0.85rem 3rem 0.85rem 1.1rem;
	background: var(--c-ink, #211F1B);
	color: var(--c-cream, #FAF6F1);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(33, 31, 27, 0.22);
	font-family: var(--font-sans, inherit);
	font-size: 0.9rem;
	line-height: 1.4;
	text-align: left;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease;
	pointer-events: none;
}
.comfyo-wl-toast.is-visible{
	opacity: 1;
	transform: none;
	pointer-events: auto;
}
@media (min-width: 600px){
	.comfyo-wl-toast{
		left: auto;
		right: 24px;
		bottom: 24px;
		width: max-content;
		max-width: 380px;
	}
}
/* mobile product page: keep clear of the sticky add-to-cart bar when it is shown */
body:has(.comfyo-sticky-cta.is-visible) .comfyo-wl-toast{
	bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}
@media (prefers-reduced-motion: reduce){
	.comfyo-wl-toast{ transition: opacity 0.01s linear; transform: none; }
}

.comfyo-wl-toast__msg{
	margin: 0;
	color: inherit;
	font-size: inherit;
	overflow-wrap: anywhere;
}
/* link ("Zobacz ulubione") and action ("Cofnij") look the same: an underlined text action */
.comfyo-wl-toast .comfyo-wl-toast__link,
.comfyo-wl-toast .comfyo-wl-toast__link:visited{
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	font-family: inherit;
	font-size: 0.82rem;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--c-blush, #E7CFC2);
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
	white-space: nowrap;
}
.comfyo-wl-toast .comfyo-wl-toast__link:hover{
	background: none;
	color: var(--c-white, #fff);
}
.comfyo-wl-toast .comfyo-wl-toast__close{
	position: absolute;
	top: 50%;
	right: 0.35rem;
	transform: translateY(-50%);
	translate: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 6px;
	box-shadow: none;
	color: var(--c-cream, #FAF6F1);
	cursor: pointer;
	opacity: 0.8;
}
.comfyo-wl-toast .comfyo-wl-toast__close:hover{
	background: rgba(255, 255, 255, 0.08);
	color: var(--c-white, #fff);
	opacity: 1;
}
.comfyo-wl-toast .comfyo-wl-toast__link:focus,
.comfyo-wl-toast .comfyo-wl-toast__close:focus{
	outline: none;
}
.comfyo-wl-toast .comfyo-wl-toast__link:focus-visible,
.comfyo-wl-toast .comfyo-wl-toast__close:focus-visible{
	outline: 2px solid var(--c-blush, #E7CFC2);
	outline-offset: 2px;
}
