/* Floating Cart V4 — vertical receipt ticket tab (locale-anchored edge) */

.floating-cart-widget-v4 {
	position: fixed;
	bottom: 10px;
	z-index: 999;
}

.floating-cart-widget-v4.fcart-v4--anchor-end {
	right: 0;
	left: auto;
	animation: fcart-v4-enter-end 0.38s ease-out;
}

.floating-cart-widget-v4.fcart-v4--anchor-start {
	left: 0;
	right: auto;
	animation: fcart-v4-enter-start 0.38s ease-out;
}

@keyframes fcart-v4-enter-end {
	from {
		opacity: 0;
		transform: translateX(18px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fcart-v4-enter-start {
	from {
		opacity: 0;
		transform: translateX(-18px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

.fcart-v4__ticket {
	position: relative;
	display: grid;
	grid-template-rows: auto auto auto auto;
	justify-items: center;
	gap: 8px;
	width: 78px;
	text-decoration: none;
	color: var(--sc-floating-cart-v4-fcart-v4-ticket-text, var(--primary-text-color));
	background:
		linear-gradient(180deg, color-mix(in srgb, var(--primary-background-color) 96%, #fff) 0%, var(--primary-background-color) 100%);
	border: 1px solid var(--sc-floating-cart-v4-fcart-v4-ticket-border, color-mix(in srgb, var(--primary-brand-color) 24%, transparent));
	transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.fcart-v4--anchor-end .fcart-v4__ticket {
	padding: 14px 12px 12px 18px;
	border-right: none;
	border-radius: 16px 0 0 16px;
	box-shadow:
		-8px 10px 28px rgba(0, 0, 0, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fcart-v4--anchor-start .fcart-v4__ticket {
	padding: 14px 18px 12px 12px;
	border-left: none;
	border-radius: 0 16px 16px 0;
	box-shadow:
		8px 10px 28px rgba(0, 0, 0, 0.16),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fcart-v4--anchor-end .fcart-v4__ticket:hover {
	transform: translateX(-3px);
	box-shadow:
		-12px 14px 32px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fcart-v4--anchor-start .fcart-v4__ticket:hover {
	transform: translateX(3px);
	box-shadow:
		12px 14px 32px rgba(0, 0, 0, 0.2),
		inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.fcart-v4__perforation {
	position: absolute;
	top: 8px;
	bottom: 8px;
	width: 8px;
	pointer-events: none;
}

.fcart-v4--anchor-end .fcart-v4__perforation {
	left: 4px;
	right: auto;
	background:
		radial-gradient(circle at 0 6px, transparent 4px, color-mix(in srgb, var(--primary-brand-color) 18%, transparent) 4.5px) 0 0 / 8px 12px repeat-y;
}

.fcart-v4--anchor-start .fcart-v4__perforation {
	right: 4px;
	left: auto;
	background:
		radial-gradient(circle at 8px 6px, transparent 4px, color-mix(in srgb, var(--primary-brand-color) 18%, transparent) 4.5px) 0 0 / 8px 12px repeat-y;
}

.fcart-v4__badge {
	position: absolute;
	top: 8px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sc-floating-cart-v4-fcart-v4-badge-bg, var(--discount-badge-background-color));
	color: var(--sc-floating-cart-v4-fcart-v4-badge-text, var(--discount-badge-text-color));
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	border: 2px solid var(--sc-floating-cart-v4-fcart-v4-badge-border, var(--primary-background-color));
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.fcart-v4--anchor-end .fcart-v4__badge {
	right: 8px;
	left: auto;
}

.fcart-v4--anchor-start .fcart-v4__badge {
	left: 8px;
	right: auto;
}

.fcart-v4__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	font-size: 18px;
	color: var(--sc-floating-cart-v4-fcart-v4-icon-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%)
	);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--primary-brand-color) 28%, transparent);
}

.fcart-v4__total {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
}

.fcart-v4__total-value {
	font-size: 15px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--sc-floating-cart-v4-fcart-v4-total-value-text, var(--primary-brand-color));
	letter-spacing: -0.02em;
}

.fcart-v4__total-currency {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--sc-floating-cart-v4-fcart-v4-total-currency-text, color-mix(in srgb, var(--primary-text-color) 62%, transparent));
}

.fcart-v4__cta {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	width: 100%;
	padding-top: 8px;
	border-top: 1px dashed var(--sc-floating-cart-v4-fcart-v4-cta-border-top, color-mix(in srgb, var(--primary-text-color) 18%, transparent));
	font-size: 9px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--sc-floating-cart-v4-fcart-v4-cta-text, color-mix(in srgb, var(--primary-text-color) 72%, var(--primary-brand-color)));
}

.fcart-v4__cta i {
	font-size: 10px;
	color: var(--sc-floating-cart-v4-fcart-v4-cta-icon-text, var(--primary-brand-color));
}

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

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

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

	.fcart-v4--anchor-end .fcart-v4__ticket {
		padding: 12px 10px 10px 16px;
	}

	.fcart-v4--anchor-start .fcart-v4__ticket {
		padding: 12px 16px 10px 10px;
	}

	.fcart-v4__ticket {
		width: 72px;
		gap: 7px;
	}

	.fcart-v4__icon {
		width: 36px;
		height: 36px;
		font-size: 16px;
	}

	.fcart-v4__total-value {
		font-size: 14px;
	}

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

@media (max-width: 480px) {
	.floating-cart-widget-v4.push-up {
		bottom: 105px !important;
	}
}

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

	.fcart-v4__ticket {
		transition: none;
	}
}

/* === theme colour controls: inherited values (generated) === */
.fcart-v4__total {
	color: var(--sc-floating-cart-v4-fcart-v4-total-text, inherit);
}
/* === end theme colour controls === */
