/*
 * v2 S-010 Confirmation.
 *
 * Declarations COPIED from the P1 prototype (freshmart-p1-srs_6.html,
 * scr_success + the .tl/.note rules it uses), not approximated.
 *
 * SELECTOR MAP — prototype → theme:
 *
 *   .card (success hero)  → .mgk-confirm__hero
 *   (the 56px circle)     → .mgk-confirm__check
 *   h1                    → .mgk-confirm__h
 *   p.mut                 → .mgk-confirm__msg
 *   .row (button row)     → .mgk-confirm__acts
 *   .two                  → .mgk-two + .mgk-confirm__two
 *   b.jk                  → .mgk-confirm__ch
 *   .tl                   → .mgk-confirm__tl
 *   .tl li.done           → .mgk-confirm__tl li.is-done
 *   .tl li.now            → .mgk-confirm__tl li.is-current
 *   .tl b / .tl .tm       → .mgk-confirm__tl b / .mgk-confirm__tl span
 *   .note .note-i/.note-s → .mgk-confirm__note / --info / --ok
 *   .sum + .r + .r.tot    → reused as-is from mgk-summary.css
 *   .row.between.sm       → .mgk-confirm__item
 *   .xs.mut (footnote)    → .mgk-confirm__reg
 */

/* ── success hero ──────────────────────────────────────────────────────── */

/* Prototype inlines these four on the .card: text-align, padding, a tinted
   background and a green-leaning border that the neutral .mgk-card lacks. */
.mgk-confirm__hero {
	text-align: center;
	padding: 34px 20px;
	background: var(--mgk-green-tint-2);
	border-color: #CBE5D6;
}

.mgk-confirm__check {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--mgk-green);
	display: grid;
	place-items: center;
	margin: 0 auto 14px;
}

.mgk-confirm__h { font-size: 25px; margin: 0; }

.mgk-confirm__msg { margin: 8px 0 0; color: var(--mgk-ink-3); }

.mgk-confirm__acts {
	display: flex;
	justify-content: center;
	gap: 9px;
	margin-top: 16px;
	flex-wrap: wrap;
}

/* ── "what happens next" + receipt ─────────────────────────────────────── */

.mgk-confirm__two { margin-top: 22px; }

/* Prototype: b.jk with display:block and a 12px gap under it. */
.mgk-confirm__ch {
	font-family: var(--mgk-font-display);
	display: block;
	margin-bottom: 12px;
}

.mgk-confirm__tl {
	position: relative;
	padding-left: 30px;
	margin: 0;
	list-style: none;
}

.mgk-confirm__tl::before {
	content: '';
	position: absolute;
	left: 9px;
	top: 6px;
	bottom: 14px;
	width: 2px;
	background: var(--mgk-line);
}

.mgk-confirm__tl li { position: relative; padding: 0 0 20px; }

.mgk-confirm__tl li::before {
	content: '';
	position: absolute;
	left: -30px;
	top: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid var(--mgk-line);
	background: var(--mgk-paper);
}

.mgk-confirm__tl li.is-done::before { border-color: var(--mgk-green); background: var(--mgk-green); }

/* Prototype calls this state `.now`; core's timeline calls it `current`. */
.mgk-confirm__tl li.is-current::before {
	border-color: var(--mgk-green);
	background: var(--mgk-paper);
	box-shadow: inset 0 0 0 3px var(--mgk-green);
}

.mgk-confirm__tl b { font-family: var(--mgk-font-display); font-size: 13.5px; display: block; }
.mgk-confirm__tl span { font-size: 12px; color: var(--mgk-ink-3); }

/* The last row's 20px tail would otherwise push the note away from the list. */
.mgk-confirm__tl li:last-child { padding-bottom: 4px; }

.mgk-confirm__note {
	border-radius: var(--mgk-radius-b);
	padding: 11px 14px;
	font-size: 12.5px;
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin-top: 14px;
}

.mgk-confirm__note b { font-weight: 700; }
.mgk-confirm__note--info { background: var(--mgk-blue-tint); color: #1B4C82; }
.mgk-confirm__note--ok   { background: var(--mgk-green-tint); color: var(--mgk-green-hover); }

/* Receipt line items — prototype .row.between.sm with padding:4px 0;gap:10px. */
.mgk-confirm__item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: 4px 0;
	gap: 10px;
	font-size: 12.5px;
}

.mgk-confirm__item small { font-size: 11.5px; color: var(--mgk-ink-3); }

.mgk-confirm__rule { border-top: 1px solid var(--mgk-line); margin: 10px 0 4px; }

.mgk-confirm__reg { font-size: 11.5px; color: var(--mgk-ink-3); margin: 10px 0 0; }

/* ── empty state ───────────────────────────────────────────────────────── */

/* No order in context, or someone else's. Core answers with the same payload
   for both, so this renders identically either way — no leak by difference. */
.mgk-confirm__none { max-width: 460px; margin: 40px auto; text-align: center; padding: 34px 24px; }
.mgk-confirm__none h1 { font-size: 21px; margin: 0 0 8px; }
.mgk-confirm__none p { color: var(--mgk-ink-3); font-size: 13.5px; margin: 0 0 18px; }

@media (max-width: 720px) {
	.mgk-confirm__h { font-size: 21px; }
	.mgk-confirm__hero { padding: 26px 16px; }
	/* Three buttons stack rather than wrap into a ragged 2+1. */
	.mgk-confirm__acts .mgk-btn { width: 100%; }
}
