.flar-shop-floating-cart {
	--flar-floating-navy: #222a3f;
	--flar-floating-blue: #2fc0ff;
	--flar-floating-teal: #50ccc0;
	--flar-floating-pink: #f720a1;
	--flar-floating-shadow: 0 14px 32px rgba(34, 42, 63, 0.22);
	align-items: flex-end;
	bottom: max(28px, calc(env(safe-area-inset-bottom) + 22px));
	display: flex;
	flex-direction: column;
	position: fixed;
	right: max(28px, calc(env(safe-area-inset-right) + 22px));
	z-index: 9998;
	font-family: Lato, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.flar-shop-floating-cart *,
.flar-shop-floating-cart *::before,
.flar-shop-floating-cart *::after {
	box-sizing: border-box;
}

.flar-shop-floating-cart__button {
	align-items: center;
	background: var(--flar-floating-navy);
	border: 2px solid transparent;
	border-radius: 999px;
	box-shadow: var(--flar-floating-shadow);
	color: #ffffff !important;
	display: inline-flex;
	height: 58px;
	isolation: isolate;
	justify-content: center;
	min-width: 58px;
	padding: 0;
	position: relative;
	text-decoration: none !important;
	transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
	width: 58px;
}

.flar-shop-floating-cart__button::before {
	background: linear-gradient(135deg, rgba(47, 192, 255, 0.72), rgba(80, 204, 192, 0.5), rgba(247, 32, 161, 0.42));
	border-radius: inherit;
	bottom: -5px;
	box-shadow: 0 0 14px rgba(47, 192, 255, 0.44), 0 0 18px rgba(247, 32, 161, 0.2);
	content: "";
	left: -5px;
	opacity: 1;
	position: absolute;
	right: -5px;
	top: -5px;
	z-index: -1;
}

.flar-shop-floating-cart__button:hover {
	background: #2c3651;
	box-shadow: 0 16px 36px rgba(34, 42, 63, 0.28);
	transform: translateY(-2px);
}

.flar-shop-floating-cart__button:hover::before {
	background: linear-gradient(135deg, rgba(247, 32, 161, 0.72), rgba(47, 192, 255, 0.48));
	box-shadow: 0 0 16px rgba(247, 32, 161, 0.5), 0 0 20px rgba(47, 192, 255, 0.22);
}

.flar-shop-floating-cart__button:focus-visible {
	border-color: #ffffff;
	box-shadow: 0 0 0 4px rgba(47, 192, 255, 0.42), var(--flar-floating-shadow);
	outline: 3px solid var(--flar-floating-pink);
	outline-offset: 3px;
}

.flar-shop-floating-cart__button.is-pulsing {
	animation: flar-shop-cart-pulse 420ms ease-out;
}

.flar-shop-floating-cart__icon {
	color: #ffffff;
	display: block;
	height: 27px;
	position: relative;
	width: 27px;
	z-index: 1;
}

.flar-shop-floating-cart__badge.flar-shop-cart-count {
	align-items: center;
	background: var(--flar-floating-pink);
	border: 2px solid #ffffff;
	border-radius: 999px;
	box-shadow: 0 6px 16px rgba(34, 42, 63, 0.22);
	color: #ffffff;
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	height: 24px;
	justify-content: center;
	line-height: 1;
	margin: 0;
	min-width: 24px;
	padding: 0 6px;
	position: absolute;
	right: -6px;
	top: -6px;
	white-space: nowrap;
	z-index: 2;
}

.flar-shop-floating-cart__badge[data-empty="true"] {
	background: #6d7485;
}

.flar-shop-floating-cart__toast {
	align-items: center;
	background: #ffffff;
	border: 1px solid rgba(34, 42, 63, 0.12);
	border-radius: 14px;
	box-shadow: 0 16px 42px rgba(34, 42, 63, 0.16);
	color: var(--flar-floating-navy);
	display: flex;
	gap: 12px;
	margin-bottom: 12px;
	max-width: min(320px, calc(100vw - 36px));
	padding: 12px 14px;
	transform-origin: bottom right;
	transition: opacity 180ms ease, transform 180ms ease;
}

.flar-shop-floating-cart__toast[hidden] {
	display: none;
}

.flar-shop-floating-cart__toast span {
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1.3;
}

.flar-shop-floating-cart__toast a {
	color: var(--flar-floating-pink);
	font-size: 0.84rem;
	font-weight: 900;
	line-height: 1;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	white-space: nowrap;
}

@keyframes flar-shop-cart-pulse {
	0% {
		transform: scale(1);
	}

	45% {
		transform: scale(1.08);
	}

	100% {
		transform: scale(1);
	}
}

@media (max-width: 640px) {
	.flar-shop-floating-cart {
		bottom: max(22px, calc(env(safe-area-inset-bottom) + 18px));
		right: max(18px, calc(env(safe-area-inset-right) + 16px));
	}

	.flar-shop-floating-cart__button {
		height: 50px;
		min-width: 50px;
		width: 50px;
	}

	.flar-shop-floating-cart__icon {
		height: 23px;
		width: 23px;
	}

	.flar-shop-floating-cart__badge.flar-shop-cart-count {
		font-size: 11px;
		height: 22px;
		min-width: 22px;
		right: -5px;
		top: -5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.flar-shop-floating-cart__button,
	.flar-shop-floating-cart__toast {
		transition: none;
	}

	.flar-shop-floating-cart__button:hover {
		transform: none;
	}

	.flar-shop-floating-cart__button.is-pulsing {
		animation: none;
	}
}
