/**
 * Letters From Haven — thank you page (scoped).
 */

.lfh-thank-you {
	--lfh-ty-cream: #fff8f0;
	--lfh-ty-soft-pink: #f4c2c2;
	--lfh-ty-blush: #f9e4e4;
	--lfh-ty-lavender: #e6d7f1;
	--lfh-ty-soft-yellow: #fff3cd;
	--lfh-ty-mint: #d4edda;
	--lfh-ty-sky: #d6eaf8;
	--lfh-ty-warm-brown: #8b6f5e;
	--lfh-ty-dark-brown: #5d4037;
	--lfh-ty-coral: #e8836b;
	--lfh-ty-deep-coral: #d4654e;
	--lfh-ty-text-dark: #4a3728;
	--lfh-ty-text-soft: #7a6555;
	--lfh-ty-envelope-tan: #d2b48c;
	--lfh-ty-white: #fff;
	--lfh-ty-border: #e8ddd3;
	--lfh-ty-success-green: #6aaf6e;

	box-sizing: border-box;
	font-family: "Quicksand", sans-serif;
	background: var(--lfh-ty-cream);
	color: var(--lfh-ty-text-dark);
	min-height: 60vh;
	overflow-x: hidden;
	position: relative;
	padding-bottom: 2rem;
}

.lfh-thank-you *,
.lfh-thank-you *::before,
.lfh-thank-you *::after {
	box-sizing: border-box;
}

.lfh-thank-you::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
	pointer-events: none;
	z-index: 0;
}

.lfh-thank-you #confetti-canvas {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 100;
}

.lfh-thank-you .ty-header {
	text-align: center;
	padding: 1.5rem;
	border-bottom: 2px dashed var(--lfh-ty-soft-pink);
	position: relative;
	z-index: 1;
}

.lfh-thank-you .ty-header a {
	font-family: "Caveat", cursive;
	font-size: 1.6rem;
	color: var(--lfh-ty-dark-brown);
	text-decoration: none;
}

.lfh-thank-you .ty-hero {
	text-align: center;
	padding: 4rem 2rem 3rem;
	background: linear-gradient(180deg, var(--lfh-ty-blush) 0%, var(--lfh-ty-cream) 100%);
	position: relative;
	z-index: 1;
}

.lfh-thank-you .ty-hero::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(180deg, transparent, var(--lfh-ty-cream));
}

.lfh-thank-you .check-circle {
	width: 90px;
	height: 90px;
	margin: 0 auto 1.5rem;
	position: relative;
}

.lfh-thank-you .check-circle svg {
	width: 90px;
	height: 90px;
}

.lfh-thank-you .check-circle .circle-bg {
	fill: none;
	stroke: var(--lfh-ty-success-green);
	stroke-width: 3;
	stroke-dasharray: 260;
	stroke-dashoffset: 260;
	animation: lfhTyDrawCircle 0.8s ease 0.3s forwards;
}

.lfh-thank-you .check-circle .check-mark {
	fill: none;
	stroke: var(--lfh-ty-success-green);
	stroke-width: 4;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 50;
	stroke-dashoffset: 50;
	animation: lfhTyDrawCheck 0.4s ease 1s forwards;
}

@keyframes lfhTyDrawCircle {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes lfhTyDrawCheck {
	to {
		stroke-dashoffset: 0;
	}
}

.lfh-thank-you .ty-hero h1 {
	font-family: "Caveat", cursive;
	font-size: clamp(2.5rem, 7vw, 4rem);
	color: var(--lfh-ty-dark-brown);
	line-height: 1.1;
	margin-bottom: 0.4rem;
	opacity: 0;
	animation: lfhTyFadeUp 0.6s ease 0.6s forwards;
}

.lfh-thank-you .ty-hero h1 span {
	color: var(--lfh-ty-coral);
}

.lfh-thank-you .ty-hero .ty-subtitle {
	font-family: "Patrick Hand", cursive;
	font-size: clamp(1.1rem, 3vw, 1.4rem);
	color: var(--lfh-ty-text-soft);
	max-width: 480px;
	margin: 0 auto;
	line-height: 1.5;
	opacity: 0;
	animation: lfhTyFadeUp 0.6s ease 0.9s forwards;
}

@keyframes lfhTyFadeUp {
	from {
		opacity: 0;
		transform: translateY(15px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.lfh-thank-you .ty-content {
	max-width: 680px;
	margin: 0 auto;
	padding: 0 1.5rem 4rem;
	display: flex;
	flex-direction: column;
	gap: 2rem;
	position: relative;
	z-index: 1;
}

.lfh-thank-you .confirm-card {
	background: var(--lfh-ty-white);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 25px rgba(93, 64, 55, 0.08);
	border: 1px solid var(--lfh-ty-border);
	opacity: 0;
	animation: lfhTyFadeUp 0.6s ease 1.1s forwards;
}

.lfh-thank-you .confirm-header {
	background: var(--lfh-ty-dark-brown);
	color: var(--lfh-ty-cream);
	padding: 1rem 1.5rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.lfh-thank-you .confirm-header h3 {
	font-family: "Caveat", cursive;
	font-size: 1.4rem;
	margin: 0;
}

.lfh-thank-you .order-number {
	font-family: "Quicksand", sans-serif;
	font-size: 0.8rem;
	font-weight: 600;
	opacity: 0.7;
	letter-spacing: 0.5px;
}

.lfh-thank-you .confirm-body {
	padding: 1.5rem;
}

.lfh-thank-you .lfh-thank-you__generic-msg {
	margin: 0;
	font-size: 0.95rem;
	color: var(--lfh-ty-text-soft);
	line-height: 1.6;
}

.lfh-thank-you .confirm-row {
	display: flex;
	justify-content: space-between;
	padding: 0.65rem 0;
	border-bottom: 1px dashed var(--lfh-ty-border);
	font-size: 0.9rem;
	gap: 0.5rem;
}

.lfh-thank-you .confirm-row:last-child {
	border-bottom: none;
}

.lfh-thank-you .confirm-row .c-label {
	color: var(--lfh-ty-text-soft);
}

.lfh-thank-you .confirm-row .c-value {
	font-weight: 600;
	color: var(--lfh-ty-text-dark);
	text-align: right;
}

.lfh-thank-you .confirm-row.total-row {
	border-top: 2px solid var(--lfh-ty-dark-brown);
	border-bottom: none;
	margin-top: 0.5rem;
	padding-top: 1rem;
}

.lfh-thank-you .confirm-row.total-row .c-label {
	font-family: "Caveat", cursive;
	font-size: 1.25rem;
	color: var(--lfh-ty-dark-brown);
}

.lfh-thank-you .confirm-row.total-row .c-value {
	font-size: 1.25rem;
	color: var(--lfh-ty-coral);
	font-weight: 700;
}

.lfh-thank-you .confirm-email-note {
	margin-top: 1rem;
	background: var(--lfh-ty-soft-yellow);
	border-radius: 10px;
	padding: 0.75rem 1rem;
	font-size: 0.82rem;
	color: var(--lfh-ty-text-soft);
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	line-height: 1.5;
}

.lfh-thank-you .confirm-email-note .note-icon {
	font-size: 1rem;
	flex-shrink: 0;
	margin-top: 1px;
}

.lfh-thank-you .next-card {
	background: var(--lfh-ty-white);
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 4px 25px rgba(93, 64, 55, 0.08);
	border: 1px solid var(--lfh-ty-border);
	opacity: 0;
	animation: lfhTyFadeUp 0.6s ease 1.3s forwards;
}

.lfh-thank-you .next-card h2 {
	font-family: "Caveat", cursive;
	font-size: 1.8rem;
	color: var(--lfh-ty-dark-brown);
	text-align: center;
	margin: 0 0 2rem;
}

.lfh-thank-you .timeline {
	position: relative;
	padding-left: 3rem;
}

.lfh-thank-you .timeline::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 8px;
	bottom: 8px;
	width: 2px;
	background: repeating-linear-gradient(
		to bottom,
		var(--lfh-ty-soft-pink) 0px,
		var(--lfh-ty-soft-pink) 6px,
		transparent 6px,
		transparent 12px
	);
}

.lfh-thank-you .timeline-step {
	position: relative;
	margin-bottom: 1.75rem;
}

.lfh-thank-you .timeline-step:last-child {
	margin-bottom: 0;
}

.lfh-thank-you .timeline-dot {
	position: absolute;
	left: -2.3rem;
	top: 2px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	z-index: 2;
}

.lfh-thank-you .timeline-step:nth-child(1) .timeline-dot {
	background: var(--lfh-ty-soft-pink);
}
.lfh-thank-you .timeline-step:nth-child(2) .timeline-dot {
	background: var(--lfh-ty-lavender);
}
.lfh-thank-you .timeline-step:nth-child(3) .timeline-dot {
	background: var(--lfh-ty-mint);
}
.lfh-thank-you .timeline-step:nth-child(4) .timeline-dot {
	background: var(--lfh-ty-soft-yellow);
}

.lfh-thank-you .timeline-step h3 {
	font-family: "Caveat", cursive;
	font-size: 1.3rem;
	color: var(--lfh-ty-dark-brown);
	margin: 0 0 0.2rem;
}

.lfh-thank-you .timeline-step p {
	font-size: 0.9rem;
	color: var(--lfh-ty-text-soft);
	line-height: 1.6;
	margin: 0;
}

.lfh-thank-you .timeline-step .time-tag {
	display: inline-block;
	font-family: "Patrick Hand", cursive;
	font-size: 0.8rem;
	color: var(--lfh-ty-coral);
	background: rgba(232, 131, 107, 0.1);
	padding: 0.15rem 0.6rem;
	border-radius: 8px;
	margin-bottom: 0.3rem;
}

.lfh-thank-you .haven-note {
	position: relative;
	opacity: 0;
	animation: lfhTyFadeUp 0.6s ease 1.5s forwards;
}

.lfh-thank-you .haven-note-inner {
	background: var(--lfh-ty-white);
	border-radius: 8px;
	padding: 2rem 2rem 1.5rem;
	box-shadow: 0 4px 25px rgba(93, 64, 55, 0.08);
	position: relative;
	background-image: repeating-linear-gradient(transparent, transparent 29px, #f0e6da 29px, #f0e6da 30px);
	background-position: 0 1.2rem;
	transform: rotate(-0.8deg);
}

.lfh-thank-you .haven-note-inner::before {
	content: "";
	position: absolute;
	top: -6px;
	left: 50%;
	transform: translateX(-50%) rotate(-2deg);
	width: 70px;
	height: 22px;
	background: rgba(255, 243, 205, 0.75);
	border-radius: 3px;
	z-index: 2;
}

.lfh-thank-you .haven-note-inner p {
	font-family: "Patrick Hand", cursive;
	font-size: 1.15rem;
	color: var(--lfh-ty-text-dark);
	line-height: 1.95;
	margin: 0;
}

.lfh-thank-you .haven-note-inner .signature {
	font-family: "Caveat", cursive;
	font-size: 1.6rem;
	color: var(--lfh-ty-coral);
	margin-top: 0.75rem;
	display: block;
}

.lfh-thank-you .haven-note-inner .heart-doodles {
	position: absolute;
	bottom: 1rem;
	right: 1.5rem;
	font-size: 1.3rem;
	opacity: 0.3;
	letter-spacing: 4px;
}

.lfh-thank-you .share-section {
	text-align: center;
	padding: 2.5rem 2rem;
	background: linear-gradient(135deg, var(--lfh-ty-lavender) 0%, var(--lfh-ty-blush) 50%, var(--lfh-ty-soft-yellow) 100%);
	border-radius: 20px;
	opacity: 0;
	animation: lfhTyFadeUp 0.6s ease 1.7s forwards;
}

.lfh-thank-you .share-section h2 {
	font-family: "Caveat", cursive;
	font-size: 1.8rem;
	color: var(--lfh-ty-dark-brown);
	margin: 0 0 0.4rem;
}

.lfh-thank-you .share-section p {
	font-family: "Patrick Hand", cursive;
	font-size: 1.05rem;
	color: var(--lfh-ty-text-soft);
	max-width: 400px;
	margin: 0 auto 1.5rem;
	line-height: 1.5;
}

.lfh-thank-you .share-buttons {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.lfh-thank-you .share-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.7rem 1.4rem;
	border-radius: 50px;
	font-family: "Quicksand", sans-serif;
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.25s ease;
}

.lfh-thank-you .share-btn:hover {
	transform: translateY(-2px);
}

.lfh-thank-you .share-btn.facebook {
	background: #1877f2;
	color: #fff;
	box-shadow: 0 3px 12px rgba(24, 119, 242, 0.25);
}

.lfh-thank-you .share-btn.twitter {
	background: #1da1f2;
	color: #fff;
	box-shadow: 0 3px 12px rgba(29, 161, 242, 0.25);
}

.lfh-thank-you .share-btn.copy-link {
	background: var(--lfh-ty-white);
	color: var(--lfh-ty-dark-brown);
	border: 2px solid var(--lfh-ty-border);
	box-shadow: 0 3px 12px rgba(93, 64, 55, 0.08);
}

.lfh-thank-you .share-btn.copy-link:hover {
	border-color: var(--lfh-ty-coral);
	color: var(--lfh-ty-coral);
}

.lfh-thank-you .gift-another {
	text-align: center;
	opacity: 0;
	animation: lfhTyFadeUp 0.6s ease 1.9s forwards;
}

.lfh-thank-you .gift-another-btn {
	display: inline-block;
	background: var(--lfh-ty-coral);
	color: #fff;
	font-family: "Quicksand", sans-serif;
	font-weight: 700;
	font-size: 1.05rem;
	padding: 1rem 2.5rem;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 18px rgba(232, 131, 107, 0.3);
}

.lfh-thank-you .gift-another-btn:hover {
	background: var(--lfh-ty-deep-coral);
	transform: translateY(-2px);
	box-shadow: 0 6px 25px rgba(232, 131, 107, 0.4);
}

.lfh-thank-you .gift-another p {
	font-family: "Patrick Hand", cursive;
	font-size: 0.95rem;
	color: var(--lfh-ty-text-soft);
	margin-top: 0.75rem;
	margin-bottom: 0;
}

.lfh-thank-you .ty-footer {
	text-align: center;
	padding: 3rem 2rem;
	margin-top: 2rem;
	border-top: 2px dashed var(--lfh-ty-soft-pink);
	position: relative;
	z-index: 1;
}

.lfh-thank-you .ty-footer .logo {
	font-family: "Caveat", cursive;
	font-size: 1.5rem;
	color: var(--lfh-ty-dark-brown);
	margin-bottom: 0.3rem;
}

.lfh-thank-you .ty-footer p {
	font-size: 0.8rem;
	color: var(--lfh-ty-text-soft);
	margin: 0;
}

.lfh-thank-you .ty-footer .hearts {
	margin-top: 0.75rem;
	font-size: 1rem;
	letter-spacing: 0.5rem;
	color: var(--lfh-ty-soft-pink);
}

@media (max-width: 480px) {
	.lfh-thank-you .ty-hero {
		padding: 3rem 1.5rem 2.5rem;
	}
	.lfh-thank-you .confirm-header {
		flex-direction: column;
		gap: 0.25rem;
		text-align: center;
	}
	.lfh-thank-you .confirm-row {
		flex-direction: column;
		gap: 0.2rem;
	}
	.lfh-thank-you .confirm-row .c-value {
		text-align: left;
	}
	.lfh-thank-you .haven-note-inner {
		padding: 1.5rem;
	}
	.lfh-thank-you .share-buttons {
		flex-direction: column;
		align-items: center;
	}
	.lfh-thank-you .share-btn {
		width: 100%;
		max-width: 250px;
		justify-content: center;
	}
}
