/* =========================================================
   CoachDesk — Page de remerciement Coaching Pack
   ========================================================= */

/* Palette + page treatment (the Elementor page /merci/, scoped by body.np-thankyou):
   a grey background + a full-width navy band behind Blocksy's transparent header
   (otherwise the logo/menu float on white → an “invisible” header) + footer space. */
body.np-thankyou {
	--np-green: var(--cd-primary, #117c87);
	--np-green-d: var(--cd-primary-dark, #0e6470);
	--np-navy: var(--cd-navy, #0f1b2d);
	--np-ink: var(--cd-ink, #1f2733);
	--np-muted: var(--cd-muted, #5f6a74);
	--np-line: var(--cd-line, #e7eaee);
	--np-bg: var(--cd-bg, #f4f6f8);
}

body.np-thankyou main.site-main {
	background-color: var(--np-bg);
	/* Full-width navy behind Blocksy's transparent header, extended as far as the
	   hero (padding-top) so as to avoid the “detached” navy band + a grey ribbon
	   between the header and the hero (the navy hero then takes over). */
	background-image: linear-gradient( to bottom, var(--np-navy) 130px, transparent 130px );
	padding-top: 130px;
	padding-bottom: 64px;
}

body.np-thankyou [data-vertical-spacing*="top"] {
	padding-top: 30px;
}

.np-ty {
	--np-green: var(--cd-primary, #117c87);
	--np-green-d: var(--cd-primary-dark, #0e6470);
	--np-navy: var(--cd-navy, #0f1b2d);
	--np-navy-2: var(--cd-navy-2, #16243a);
	--np-ink: var(--cd-ink, #1f2733);
	--np-muted: var(--cd-muted, #5f6a74);
	--np-line: var(--cd-line, #e7eaee);
	--np-bg: var(--cd-bg, #f4f6f8);

	color: var(--np-ink);
	font-size: 15px;
	line-height: 1.6;

	/* A centring container at the width of the header (.ct-container). The sections
	   (hero + columns) are detached cards, no longer a single card. */
	max-width: min( var( --theme-container-width, 90vw ), var( --theme-normal-container-max-width, 1290px ) );
	margin: 0 auto;
}

.np-ty * { box-sizing: border-box; }

/* ---- Hero (a navy gradient, the same style as the coach profile) ---- */

/* The background + layout are identical to the checkout's hero (.np-co-hero):
   navy + a line motif, the content aligned left. */
.np-ty-hero {
	background-color: var(--np-navy);
	background-image: var(--np-ty-hero-bg, none);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	padding: 30px 32px;
	text-align: left;
	border-radius: 0;
}

.np-ty-kicker {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--np-green);
	background: rgba(var(--cd-primary-rgb),0.18);
	padding: 4px 12px;
	border-radius: 0;
	margin-bottom: 14px;
}

.np-ty-title {
	font-size: 28px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.2;
}

.np-ty-meta {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.72);
	margin: 0;
}

/* ---- Body: two columns (desktop) ---- */

.np-ty-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: start;
	gap: 24px;
	margin-top: 24px;
	text-align: left;
}

.np-ty-col {
	padding: 32px;
	background: #fff;
	border-radius: 0;
	box-shadow: 0 1px 2px rgba(20,40,60,.035),0 6px 18px rgba(20,40,60,.045);
}

/* Detached cards: no more separator between left and right. */
.np-ty-col--summary {
	border-right: 0;
}

.np-ty-col-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--np-muted);
	margin: 0 0 20px;
}

/* ---- Order summary ---- */

.np-ty-summary {
	box-shadow: 0 1px 2px rgba(20,40,60,.035),0 6px 18px rgba(20,40,60,.045);
	border-radius: 0;
	overflow: hidden;
	font-size: 13px;
}

.np-ty-sumrow {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 9px 12px;
	font-size: 13px;
	box-shadow: inset 0 -1px 0 var(--np-line);
}

.np-ty-sumrow:last-child {
	box-shadow: none;
}

.np-ty-sumrow span:first-child {
	color: var(--np-muted);
}

.np-ty-sumrow span:last-child {
	font-weight: 500;
}

.np-ty-sumrow--total {
	background: var(--np-navy);
	padding: 11px 12px;
}

.np-ty-sumrow--total span:first-child {
	color: rgba(255, 255, 255, 0.65);
}

.np-ty-sumrow--total span:last-child {
	color: #fff;
	font-weight: 600;
}

/* ---- Pack terms notification ---- */

.np-ty-rules {
	margin-top: 16px;
	box-shadow: inset 3px 0 0 var(--np-green);
	background: var(--np-green-wash);
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.np-ty-rules-title {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: var(--np-green);
	margin: 0 0 4px;
}

.np-ty-rule {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.np-ty-rule-icon {
	color: var(--np-green);
	font-size: 16px;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	margin-top: 1px;
}

.np-ty-rule-body {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.np-ty-rule-label {
	font-size: 12px;
	font-weight: 600;
	color: var(--np-ink);
}

.np-ty-rule-text {
	font-size: 12px;
	color: var(--np-muted);
	line-height: 1.5;
}

/* ---- Timeline ---- */

.np-ty-timeline {
	margin-bottom: 36px;
}

.np-ty-step {
	display: flex;
	gap: 18px;
}

.np-ty-indicator {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 16px;
}

.np-ty-dot {
	width: 16px;
	height: 16px;
	border-radius: 0;
	background: var(--np-line);
	flex-shrink: 0;
}

.np-ty-connector {
	flex: 1;
	width: 2px;
	background: var(--np-line);
	margin: 4px 0;
	min-height: 22px;
}

.np-ty-step-content {
	padding-bottom: 26px;
}

.np-ty-step:last-child .np-ty-step-content {
	padding-bottom: 0;
}

/* Step completed */
.np-ty-step.is-done .np-ty-dot {
	background: var(--np-green);
}

.np-ty-step.is-done .np-ty-step-label {
	color: var(--np-green);
}

/* Active step */
.np-ty-step.is-active .np-ty-dot {
	background: var(--np-navy);
	box-shadow: 0 0 0 3px rgba(var(--cd-primary-rgb),0.22);
}

.np-ty-step.is-active .np-ty-step-label {
	color: var(--np-ink);
	font-weight: 600;
}

/* Future steps */
.np-ty-step:not(.is-done):not(.is-active) .np-ty-step-label {
	color: var(--np-muted);
}

.np-ty-step-label {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 2px;
}

.np-ty-step-sub {
	font-size: 12px;
	color: var(--np-muted);
}

/* ---- CTA ---- */

.np-ty-footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

/* ---- CTA inset (concept A) ---- */

.np-ty-cta {
	background: var(--np-green-wash);
	box-shadow: 0 1px 2px rgba(20,40,60,.035),0 6px 18px rgba(20,40,60,.045);
	border-radius: 0;
	padding: 18px;
}

.np-ty-cta-title {
	font-size: 16px;
	font-weight: 600;
	color: var(--np-navy);
	margin: 0 0 4px;
}

.np-ty-cta-sub {
	font-size: 13px;
	color: var(--np-muted);
	line-height: 1.5;
	margin: 0 0 14px;
}

.np-ty-cta .np-ty-btn {
	width: 100%;
	justify-content: center;
}

.np-ty-cta-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	color: var(--np-muted);
	margin: 12px 0 0;
}

.np-ty-cta-note .dashicons {
	font-size: 15px;
	width: 15px;
	height: 15px;
}

.np-ty-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 26px;
	background: var(--np-green);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0;
	line-height: 1.2;
	transition: background 0.15s ease;
}

.np-ty-btn:hover,
.np-ty-btn:focus {
	background: var(--np-green-d);
	color: #fff;
	text-decoration: none;
}

.np-ty-btn:focus-visible {
	outline: 2px solid var(--np-green);
	outline-offset: 2px;
}

.np-ty-note {
	font-size: 13px;
	color: var(--np-muted);
	margin: 0;
}

.np-ty-error {
	color: var(--np-danger);
	font-size: 14px;
	padding: 16px 24px;
}

/* ---- Mobile ---- */

@media (max-width: 680px) {
	.np-ty-hero {
		padding: 36px 20px 32px;
	}

	.np-ty-title {
		font-size: 22px;
	}

	.np-ty-body {
		grid-template-columns: 1fr;
		margin-top: 18px;
	}

	.np-ty-col {
		padding: 24px 20px;
	}

	.np-ty-btn {
		width: 100%;
		justify-content: center;
	}
}

/* ---- An order awaiting payment on site ---- */

.np-ty-cta--await {
	background: var(--np-warning-wash);
}

.np-ty-deadline {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	margin: 14px 0;
	padding: 16px;
	background: var(--np-navy);
	border-radius: 0;
	text-align: center;
}

.np-ty-deadline-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba( 255, 255, 255, 0.6 );
}

.np-ty-countdown {
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
	color: var(--np-green);
	font-variant-numeric: tabular-nums;
}

.np-ty-countdown.is-expired {
	font-size: 18px;
	color: var(--np-danger);
}

.np-ty-deadline-date {
	font-size: 12px;
	color: rgba( 255, 255, 255, 0.7 );
}
