/* Annual coupon celebration — cart / checkout overlay */
.ta-fm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}
.ta-fm-overlay.is-on {
	opacity: 1;
	pointer-events: auto;
}
.ta-fm-card {
	position: relative;
	max-width: 420px;
	width: 100%;
	border-radius: 16px;
	padding: 1.75rem 1.5rem 1.5rem;
	background: linear-gradient(165deg, #fffef5 0%, #faf5ee 45%, #f0eadb 100%);
	border: 2px solid #ecc918;
	box-shadow:
		0 0 0 1px rgba(199, 33, 39, 0.12),
		0 22px 50px rgba(0, 0, 0, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.85);
	text-align: center;
	color: #0b0907;
	transform: scale(0.88) translateY(18px);
	opacity: 0;
	transition:
		transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.4s ease;
}
.ta-fm-overlay.is-on .ta-fm-card {
	transform: scale(1) translateY(0);
	opacity: 1;
}
.ta-fm-glow {
	position: absolute;
	inset: -30%;
	background: radial-gradient(circle at 50% 20%, rgba(236, 201, 24, 0.45), transparent 55%);
	pointer-events: none;
	z-index: 0;
	animation: ta-fm-glow 2.8s ease-in-out infinite;
}
@keyframes ta-fm-glow {
	0%,
	100% {
		opacity: 0.55;
		transform: scale(1);
	}
	50% {
		opacity: 0.95;
		transform: scale(1.05);
	}
}
.ta-fm-inner {
	position: relative;
	z-index: 1;
}
.ta-fm-logo-wrap {
	margin: 0 0 0.65rem;
}
.ta-fm-logo {
	display: block;
	width: min(220px, 82%);
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}
.ta-fm-eyebrow {
	font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: 0.72rem;
	color: #c72127;
	margin: 0 0 0.5rem;
}
.ta-fm-title {
	font-family: 'UnifrakturCook', 'Cinzel', Georgia, serif;
	font-weight: 700;
	font-size: clamp(1.45rem, 4.5vw, 1.95rem);
	line-height: 1.1;
	margin: 0 0 0.65rem;
	color: #000;
	text-shadow: 0 0 22px rgba(236, 201, 24, 0.35);
}
.ta-fm-sub {
	font-family: Inter, system-ui, sans-serif;
	font-size: 0.98rem;
	line-height: 1.5;
	margin: 0 0 1.25rem;
	color: #2a2a2a;
}
.ta-fm-actions {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.ta-fm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.75rem 1.35rem;
	border-radius: 8px;
	font-family: Oswald, Inter, sans-serif;
	font-weight: 800;
	font-size: 0.88rem;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	background: #ecc918;
	color: #000;
	box-shadow: 0 6px 0 #c79c0e, 0 10px 22px rgba(199, 156, 14, 0.35);
	transition:
		transform 0.15s ease,
		box-shadow 0.15s ease,
		background 0.18s ease;
}
.ta-fm-btn:hover,
.ta-fm-btn:focus-visible {
	background: #fff2a3;
	transform: translateY(-1px);
	box-shadow: 0 7px 0 #c79c0e, 0 14px 26px rgba(199, 156, 14, 0.45);
	outline: none;
}
.ta-fm-btn:active {
	transform: translateY(3px);
	box-shadow: 0 3px 0 #c79c0e, 0 6px 14px rgba(199, 156, 14, 0.3);
}
.ta-fm-spark {
	position: absolute;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #ecc918;
	opacity: 0;
	pointer-events: none;
	z-index: 2;
	animation: ta-fm-spark 1.1s ease-out forwards;
}
@keyframes ta-fm-spark {
	0% {
		opacity: 0;
		transform: scale(0.2);
	}
	20% {
		opacity: 1;
	}
	100% {
		opacity: 0;
		transform: scale(1.4) translate(var(--tx, 0), var(--ty, -28px));
	}
}
@media (prefers-reduced-motion: reduce) {
	.ta-fm-glow,
	.ta-fm-spark {
		animation: none !important;
	}
	.ta-fm-card,
	.ta-fm-overlay {
		transition: none !important;
	}
	.ta-fm-overlay.is-on .ta-fm-card {
		transform: none;
		opacity: 1;
	}
}
