:root {
	--mt-omiljeni-accent: #382650;
	--mt-omiljeni-accent-contrast: #ffffff;
	--mt-omiljeni-warm: #96551f;
	--mt-omiljeni-surface: #ffffff;
	--mt-omiljeni-cream: #f0ede6;
	--mt-omiljeni-ink: #1a1a1a;
	--mt-omiljeni-muted: #6f6a66;
	--mt-omiljeni-border: rgba(26, 26, 26, 0.12);
	--mt-omiljeni-radius-sm: 8px;
	--mt-omiljeni-shadow: 0 6px 20px rgba(31, 22, 32, 0.12);
	--mt-omiljeni-gap: 24px;
}

.mt-omiljeni-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 999px;
	background: var(--mt-omiljeni-surface);
	color: var(--mt-omiljeni-ink);
	box-shadow: var(--mt-omiljeni-shadow);
	cursor: pointer;
	line-height: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.mt-omiljeni-btn--sm { width: 36px; height: 36px; }
.mt-omiljeni-btn--lg { width: 52px; height: 52px; }

.mt-omiljeni-btn--with-text {
	width: auto;
	height: auto;
	padding: 10px 18px;
	border-radius: var(--mt-omiljeni-radius-sm);
	line-height: 1.2;
	font: inherit;
	font-size: 0.95rem;
}

.mt-omiljeni-btn--float {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
}

.mt-omiljeni-btn__icon {
	display: inline-flex;
	line-height: 0;
}

.mt-omiljeni-btn .mt-omiljeni-heart {
	width: 22px;
	height: 22px;
	transition: fill 0.18s ease, transform 0.18s ease;
}

.mt-omiljeni-btn--sm .mt-omiljeni-heart { width: 18px; height: 18px; }
.mt-omiljeni-btn--lg .mt-omiljeni-heart { width: 26px; height: 26px; }
.mt-omiljeni-btn--with-text .mt-omiljeni-heart { width: 20px; height: 20px; }

.mt-omiljeni-btn:hover { transform: translateY(-1px); }
.mt-omiljeni-btn:focus-visible {
	outline: 2px solid var(--mt-omiljeni-accent);
	outline-offset: 2px;
}

.mt-omiljeni-btn.is-active {
	color: var(--mt-omiljeni-accent);
}

.mt-omiljeni-btn.is-active .mt-omiljeni-heart {
	fill: currentColor;
}

@keyframes mt-omiljeni-bump {
	0%   { transform: scale(1); }
	35%  { transform: scale(1.22); }
	70%  { transform: scale(0.94); }
	100% { transform: scale(1); }
}

.mt-omiljeni-btn.is-bumped .mt-omiljeni-heart {
	animation: mt-omiljeni-bump 0.4s ease;
}

.mt-omiljeni-header {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: inherit;
	text-decoration: none;
	line-height: 0;
}

.mt-omiljeni-header__icon { display: inline-flex; line-height: 0; }

.mt-omiljeni-header .mt-omiljeni-heart {
	width: var(--mt-omiljeni-header-icon-w, 20px);
	height: var(--mt-omiljeni-header-icon-h, 20px);
	overflow: visible;
	transition: fill 0.18s ease;
}

.mt-omiljeni-header.has-items .mt-omiljeni-heart {
	fill: var(--brand, currentColor);
	stroke: var(--brand, currentColor);
}

.mt-omiljeni-header__label {
	line-height: 1.2;
	font-size: 0.95rem;
}

.mt-omiljeni-header__count {
	position: absolute;
	top: 0;
	right: 0;
	transform: translate(50%, -50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	width: 18px;
	height: 18px;
	padding: 0 4px;
	box-sizing: border-box;
	border-radius: 999px;
	background: var(--accent, var(--mt-omiljeni-accent));
	color: var(--text, var(--mt-omiljeni-accent-contrast));
	font-size: 10px;
	font-weight: 600;
	line-height: 1;
}

.mt-omiljeni-header__count[hidden] { display: none; }

.mt-omiljeni-toasts {
	position: fixed;
	right: 24px;
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	width: min(392px, calc(100vw - 32px));
	pointer-events: none;
}

.mt-toast {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 12px 14px 14px;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.76);
	-webkit-backdrop-filter: blur(24px) saturate(180%);
	backdrop-filter: blur(24px) saturate(180%);
	box-shadow:
		0 1px 2px rgba(56, 38, 80, 0.08),
		0 14px 36px -10px rgba(56, 38, 80, 0.32);
	overflow: hidden;
	opacity: 0;
	touch-action: pan-x;
	pointer-events: auto;
	will-change: transform, opacity;
}

.mt-toast.is-dragging {
	cursor: grabbing;
	box-shadow:
		0 1px 2px rgba(56, 38, 80, 0.1),
		0 22px 48px -12px rgba(56, 38, 80, 0.38);
}

.mt-toast::before {
	content: "";
	position: absolute;
	inset: -40% 55% 40% -10%;
	background: radial-gradient(60% 60% at 30% 70%, var(--mt-omiljeni-cream), transparent 70%);
	opacity: 0.9;
	pointer-events: none;
}

.mt-toast > * {
	position: relative;
}

.mt-toast__thumb {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background-color: var(--mt-omiljeni-cream);
	background-size: cover;
	background-position: center;
	box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.08);
}

.mt-toast__thumb[hidden] { display: none; }

.mt-toast__body { min-width: 0; }

.mt-toast__kicker {
	margin: 0;
	color: var(--mt-omiljeni-accent);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
}

.mt-toast__title {
	margin: 2px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: var(--mt-omiljeni-ink);
	font-size: 14.5px;
	line-height: 1.3;
	letter-spacing: -0.005em;
}

.mt-toast:not(.has-title) .mt-toast__kicker {
	font-size: 14.5px;
	color: var(--mt-omiljeni-ink);
	letter-spacing: -0.005em;
}

.mt-toast:not(.has-title) .mt-toast__title { display: none; }

.mt-toast__actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.mt-toast__cta {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--mt-omiljeni-accent);
	color: var(--mt-omiljeni-accent-contrast);
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: transform 110ms ease-out, opacity 110ms ease-out;
}

.mt-toast__cta:hover { opacity: 0.92; color: var(--mt-omiljeni-accent-contrast); }
.mt-toast__cta:active { transform: scale(0.96); }
.mt-toast__cta[hidden] { display: none; }

.mt-toast--muted .mt-toast__kicker { color: var(--mt-omiljeni-muted); }

.mt-toast--muted .mt-toast__cta {
	background: transparent;
	color: var(--mt-omiljeni-accent);
	box-shadow: inset 0 0 0 1px rgba(56, 38, 80, 0.25);
}

.mt-toast__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(26, 26, 26, 0.06);
	color: var(--mt-omiljeni-muted);
	cursor: pointer;
	transition: background-color 120ms ease-out, transform 110ms ease-out;
}

.mt-toast__close:hover { background: rgba(26, 26, 26, 0.11); }
.mt-toast__close:active { transform: scale(0.92); }

.mt-toast__cta:focus-visible,
.mt-toast__close:focus-visible {
	outline: 2px solid var(--mt-omiljeni-accent);
	outline-offset: 2px;
}

.mt-toast__progress {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: rgba(56, 38, 80, 0.08);
}

.mt-toast__progress i {
	display: block;
	height: 100%;
	transform-origin: left center;
	background: var(--mt-omiljeni-accent);
	opacity: 0.35;
}

.mt-toast.is-paused .mt-toast__progress i,
.mt-toast.is-dragging .mt-toast__progress i {
	animation-play-state: paused !important;
}

@keyframes mt-toast-progress {
	from { transform: scaleX(1); }
	to   { transform: scaleX(0); }
}

@keyframes mt-toast-pulse {
	0%   { box-shadow: 0 1px 2px rgba(56, 38, 80, 0.08), 0 14px 36px -10px rgba(56, 38, 80, 0.32); }
	40%  { box-shadow: 0 1px 2px rgba(56, 38, 80, 0.12), 0 20px 44px -10px rgba(56, 38, 80, 0.42); }
	100% { box-shadow: 0 1px 2px rgba(56, 38, 80, 0.08), 0 14px 36px -10px rgba(56, 38, 80, 0.32); }
}

.mt-toast.is-pulsed { animation: mt-toast-pulse 420ms ease-out; }

@media (max-width: 575px) {
	.mt-omiljeni-toasts {
		right: 16px;
		left: 16px;
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: auto;
	}

	.mt-toast {
		border-radius: 14px;
		gap: 12px;
		padding: 10px 12px 12px;
	}

	.mt-toast__thumb { width: 42px; height: 42px; border-radius: 11px; }

	
	.mt-toast__actions {
		flex-direction: column-reverse;
		align-items: flex-end;
		gap: 6px;
	}

	.mt-toast__cta { padding: 7px 12px; font-size: 12px; }
	.mt-toast__close { width: 24px; height: 24px; }
	.mt-toast__kicker { font-size: 11.5px; }
	.mt-toast__title { font-size: 14px; }
}

.mt-omiljeni-fly {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10001;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	color: var(--mt-omiljeni-accent);
	pointer-events: none;
	opacity: 0.95;
	transition: opacity 150ms ease-out;
}

.mt-omiljeni-fly .mt-omiljeni-heart {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.mt-omiljeni-fly.is-done { opacity: 0; }

@keyframes mt-omiljeni-count-bump {
	0%   { transform: translate(50%, -50%) scale(1); }
	45%  { transform: translate(50%, -50%) scale(1.35); }
	100% { transform: translate(50%, -50%) scale(1); }
}

.mt-omiljeni-header__count.is-bumped {
	animation: mt-omiljeni-count-bump 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.woocommerce-notices-wrapper[data-mt-omiljeni-notices]:empty { display: none; }

.woocommerce-notices-wrapper[data-mt-omiljeni-notices] {
	margin-bottom: var(--mt-omiljeni-gap);
}

.mt-omiljeni-remove-link {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.mt-omiljeni-remove-link:hover { opacity: 0.75; }

.mt-omiljeni-remove-link:focus-visible {
	outline: 2px solid var(--mt-omiljeni-accent);
	outline-offset: 2px;
}

.mt-omiljeni-item {
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.mt-omiljeni-item.is-leaving {
	opacity: 0;
	transform: scale(0.96);
	pointer-events: none;
}

.mt-omiljeni-item.is-entering {
	opacity: 0;
	transform: scale(0.96);
}

.mt-omiljeni-js .mt-omiljeni-empty-state:not(.is-visible),
.mt-omiljeni-js .mt-omiljeni-has-items:not(.is-visible) {
	display: none !important;
}

.mt-omiljeni-empty-state[hidden],
.mt-omiljeni-has-items[hidden] {
	display: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.mt-omiljeni-btn,
	.mt-omiljeni-item,
	.mt-omiljeni-heart {
		transition: none !important;
	}

	.mt-omiljeni-btn.is-bumped .mt-omiljeni-heart,
	.mt-omiljeni-header__count.is-bumped,
	.mt-toast.is-pulsed {
		animation: none !important;
	}

	
	.mt-toast {
		transform: none !important;
		transition: opacity 180ms ease;
	}

	.mt-toast.is-in { opacity: 1; }
}

@media (prefers-reduced-transparency: reduce) {
	.mt-toast {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-color: var(--mt-omiljeni-border);
	}

	.mt-toast::before { display: none; }
}

@media (prefers-contrast: more) {
	.mt-toast {
		background: #fff;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border: 1px solid var(--mt-omiljeni-ink);
	}

	.mt-toast__kicker { color: var(--mt-omiljeni-ink); }
}
