/* Floating Cart V5 — compact mini chip */

.floating-cart-widget-v5 {
	position: fixed;
	bottom: 12px;
	z-index: 999;
	animation: fcart-v5-pop 0.28s ease-out;
}

.fcart-v5--anchor-start {
	left: 12px;
	right: auto;
}

.fcart-v5--anchor-end {
	right: 12px;
	left: auto;
}

@keyframes fcart-v5-pop {
	from {
		opacity: 0;
		transform: scale(0.88);
	}

	to {
		opacity: 1;
		transform: scale(1);
	}
}

.fcart-v5__chip {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 54px;
	height: 54px;
	padding: 6px 4px 4px;
	text-decoration: none;
	color: var(--sc-floating-cart-v5-fcart-v5-chip-text, var(--primary-button-text-color));
	background: linear-gradient(
		145deg,
		color-mix(in srgb, var(--primary-brand-color) 92%, #fff 8%),
		color-mix(in srgb, var(--secondary-brand-color) 86%, #000 14%)
	);
	border-radius: 14px;
	border: 1px solid var(--sc-floating-cart-v5-fcart-v5-chip-border, color-mix(in srgb, var(--primary-button-text-color) 16%, transparent));
	box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-brand-color) 32%, transparent);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fcart-v5__chip:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px color-mix(in srgb, var(--primary-brand-color) 38%, transparent);
}

.fcart-v5__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	line-height: 1;
	opacity: 0.95;
}

.fcart-v5__badge {
	position: absolute;
	top: -5px;
	inset-inline-end: -5px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sc-floating-cart-v5-fcart-v5-badge-bg, var(--discount-badge-background-color));
	color: var(--sc-floating-cart-v5-fcart-v5-badge-text, var(--discount-badge-text-color));
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	border: 2px solid var(--sc-floating-cart-v5-fcart-v5-badge-border, var(--primary-background-color));
}

.fcart-v5--anchor-start .fcart-v5__badge {
	inset-inline-end: -5px;
	inset-inline-start: auto;
}

.fcart-v5--anchor-end .fcart-v5__badge {
	inset-inline-end: auto;
	inset-inline-start: -5px;
}

.fcart-v5__total {
	max-width: 46px;
	font-size: 9px;
	font-weight: 800;
	line-height: 1.1;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	letter-spacing: -0.02em;
}

.floating-cart-widget-v5.push-up-65 {
	bottom: 65px !important;
	transition: bottom 0.3s ease;
}

.floating-cart-widget-v5.push-up {
	bottom: 95px !important;
	transition: bottom 0.3s ease;
}

@media (max-width: 768px) {
	.floating-cart-widget-v5 {
		bottom: 72px;
	}

	.fcart-v5--anchor-start {
		left: 10px;
	}

	.fcart-v5--anchor-end {
		right: 10px;
	}

	.floating-cart-widget-v5.push-up {
		bottom: 105px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.floating-cart-widget-v5 {
		animation: none;
	}

	.fcart-v5__chip {
		transition: none;
	}
}

/* === theme colour controls: inherited values (generated) === */
.fcart-v5__icon {
	color: var(--sc-floating-cart-v5-fcart-v5-icon-text, inherit);
}

.fcart-v5__total {
	color: var(--sc-floating-cart-v5-fcart-v5-total-text, inherit);
}
/* === end theme colour controls === */
