.page-template-page-merci {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: var(--emm-black);
}

.page-template-page-merci .emm-header {
	display: none;
}

.emm-merci {
	position: relative;
	z-index: 1;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 48px 16px 32px;
}

.emm-merci__bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.emm-merci__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.emm-merci__card {
	position: relative;
	z-index: 1;
	width: 576px;
	max-width: 100%;
	min-height: 461px;
	background: var(--emm-black);
	border-radius: 16px;
	padding: 52px 56px 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
}

.emm-merci__back {
	position: absolute;
	top: 14px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	font-family: var(--emm-font);
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--emm-gold);
	opacity: 0.88;
}

.emm-merci__back:hover,
.emm-merci__back:focus-visible {
	opacity: 1;
	color: var(--emm-gold-light);
}

.emm-merci__back .emm-icon {
	display: block;
	flex-shrink: 0;
}

.emm-merci__card .emm-logo-img {
	width: 326px;
	max-width: 100%;
	height: auto;
	margin-bottom: 40px;
}

.emm-merci__card h1 {
	margin: 0;
	font-family: var(--emm-font-merci);
	font-weight: 700;
	font-size: 54.34px;
	line-height: 57.06px;
	color: var(--emm-white);
}

.emm-merci__card p,
.emm-merci__card .emm-richtext {
	margin: 12px 0 0;
	font-family: var(--emm-font-merci);
	font-size: 18px;
	line-height: 25.2px;
	color: var(--emm-white);
	max-width: 464px;
}

.emm-merci__card .emm-richtext p {
	margin: 0 0 0.75em;
	font: inherit;
	color: inherit;
}

.emm-merci__card .emm-richtext p:last-child {
	margin-bottom: 0;
}

.emm-merci__card .emm-btn {
	margin-top: 48px;
	width: auto;
	min-width: 240px;
	height: 56px;
	padding: 14px 28px;
	border-radius: 10px;
	background: var(--emm-gold);
	background-image: none;
	color: var(--emm-white);
	font-size: 18px;
	line-height: 24px;
	letter-spacing: 0.02em;
	gap: 10px;
}

.emm-merci-footer {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	background: var(--emm-gold);
	padding: 16px var(--emm-gutter);
}

.emm-merci-footer__inner {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 24px;
	min-height: 40px;
	max-width: var(--emm-content-wide);
	margin: 0 auto;
	width: 100%;
}

.emm-merci-footer p {
	margin: 0;
	font-size: 13.1px;
	line-height: 20px;
	color: var(--emm-white);
	text-align: right;
}

.emm-body .emm-merci-footer .emm-footer__apchq-img,
.emm-merci-footer .emm-footer__apchq-img {
	display: block;
	width: auto;
	max-width: 180px;
	height: 40px;
	max-height: 40px;
	object-fit: contain;
	object-position: left center;
}

@media (max-width: 640px) {
	.emm-merci {
		padding: 32px 16px 24px;
	}

	.emm-merci__card {
		padding: 44px 20px 32px;
		min-height: 0;
		border-radius: 12px;
	}

	.emm-merci__card h1 {
		font-size: clamp(32px, 10vw, 40px);
		line-height: 1.1;
	}

	.emm-merci__card .emm-btn {
		width: 100%;
		margin-top: 36px;
	}

	.emm-merci-footer__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.emm-merci-footer p {
		text-align: left;
	}
}
