.mcfc-ty-wrap { max-width: 640px; margin: 0 auto; padding: 40px 16px; }
.mcfc-ty-card { background: var(--mcfc-surface); border-radius: 16px; padding: 32px; margin-top: 20px; text-align: center; }
.mcfc-ty-check { width: 56px; height: 56px; border-radius: 50%; background: var(--mcfc-coral); color: #fff; font-size: 28px; line-height: 56px; margin: 0 auto 16px; }
.mcfc-ty-sub { color: var(--mcfc-muted); margin-bottom: 24px; }
.mcfc-ty-table { width: 100%; border-collapse: collapse; text-align: left; margin-bottom: 20px; }
.mcfc-ty-table th { color: var(--mcfc-muted); font-weight: 500; padding: 6px 0; width: 40%; }
.mcfc-ty-table td { padding: 6px 0; }
.mcfc-ty-items td { border-top: 1px solid rgba(255,255,255,0.08); padding: 10px 0; }
.mcfc-ty-amt { text-align: right; }
.mcfc-ty-total-row td { font-weight: 800; color: var(--mcfc-accent); border-top: 2px solid rgba(255,255,255,0.15) !important; }
.mcfc-ty-address { text-align: left; background: rgba(255,255,255,0.04); border-radius: 10px; padding: 14px; }

/* Digital downloads (thank-you page + access page) */
.mcfc-ty-downloads { text-align: left; margin: 24px 0 8px; }
.mcfc-ty-downloads h2 { font-size: 18px; margin: 0 0 12px; }
.mcfc-ty-dl-list { list-style: none; margin: 0; padding: 0; }
.mcfc-ty-dl-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.mcfc-ty-dl-list img { border-radius: 8px; object-fit: cover; }
.mcfc-ty-dl-name { flex: 1; font-weight: 600; }
.mcfc-ty-dl-btn { background: var(--mcfc-coral); color: #fff !important; text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; white-space: nowrap; }
.mcfc-ty-dl-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; max-width: 55%; }
.mcfc-ty-dl-note { color: var(--mcfc-muted); font-size: 13px; margin-top: 12px; }
.mcfc-ty-dl-note a { color: var(--mcfc-accent); word-break: break-all; }

/* ===== MarsCart thank-you / downloads: branded layout (v1.5) ===== */
.mcfc-thankyou-body { margin: 0; min-height: 100vh; }
.mcfc-ty-header { background: #050B18; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 18px 20px; text-align: center; }
.mcfc-ty-logo { height: 52px; width: auto; max-width: 70vw; display: inline-block; }
.mcfc-ty-wrap { max-width: 760px; padding: 28px 16px 40px; }
.mcfc-ty-card { padding: 40px 36px; box-shadow: 0 10px 40px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.06); margin-top: 0; }
.mcfc-ty-card h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.mcfc-ty-section { text-align: left; margin: 26px 0 0; }
.mcfc-ty-section h2, .mcfc-ty-downloads h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--mcfc-accent); margin: 0 0 12px; font-weight: 700; }
.mcfc-ty-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0 0 16px; text-align: left; background: rgba(255,255,255,0.04); border-radius: 12px; padding: 16px 18px; }
.mcfc-ty-meta dt { color: var(--mcfc-muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.mcfc-ty-meta dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.mcfc-ty-downloads { margin-top: 28px; }
.mcfc-ty-dl-list li { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.mcfc-ty-dl-btn { box-shadow: 0 2px 10px rgba(217,84,76,0.35); }
.mcfc-ty-dl-btn:hover { background: var(--mcfc-coral-2); }
.mcfc-ty-steps { list-style: none; counter-reset: ty; margin: 0; padding: 0; text-align: left; }
.mcfc-ty-steps li { counter-increment: ty; display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; }
.mcfc-ty-steps li::before { content: counter(ty); flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--mcfc-coral); color: #fff; font-weight: 700; font-size: 14px; line-height: 28px; text-align: center; }
.mcfc-ty-steps li span { padding-top: 3px; }
.mcfc-ty-callout { display: flex; gap: 16px; text-align: left; margin-top: 20px; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }
.mcfc-ty-callout h3 { margin: 0 0 6px; font-size: 17px; }
.mcfc-ty-callout p { margin: 0 0 6px; color: #d4dbe0; line-height: 1.5; }
.mcfc-ty-callout-icon { flex: 0 0 40px; height: 40px; border-radius: 50%; background: rgba(222,141,115,0.15); color: var(--mcfc-accent); font-weight: 800; font-size: 20px; line-height: 40px; text-align: center; }
.mcfc-ty-guarantee { border-color: rgba(39,158,199,0.45); }
.mcfc-ty-guarantee .mcfc-ty-callout-icon { background: rgba(39,158,199,0.18); color: var(--mcfc-teal); }
.mcfc-ty-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px !important; }
.mcfc-ty-contact a { color: #fff; background: rgba(255,255,255,0.08); padding: 7px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; word-break: break-all; }
.mcfc-ty-contact a:hover { background: rgba(255,255,255,0.14); }
.mcfc-ty-foot { text-align: center; color: var(--mcfc-muted); font-size: 12px; margin: 22px 0 0; }
@media (max-width: 560px) {
	.mcfc-ty-card { padding: 28px 18px; }
	.mcfc-ty-card h1 { font-size: 24px; }
	.mcfc-ty-meta { grid-template-columns: 1fr; }
	.mcfc-ty-dl-list li { flex-wrap: wrap; }
	.mcfc-ty-dl-btns { max-width: 100%; width: 100%; justify-content: stretch; }
	.mcfc-ty-dl-btn { flex: 1; text-align: center; }
}

/* Page background: grey (#b3acac) around the dark card (header stays brand navy for the logo) */
.mcfc-thankyou-body { background: #b3acac; color: #ffffff; }
.mcfc-ty-card { box-shadow: 0 12px 36px rgba(5,11,24,0.18); }
.mcfc-ty-foot { color: #3a3a3a; }

/* ===== MarsCart brand format (same as the emails): navy logo band, white card, coral buttons, light grey page ===== */
.mcfc-thankyou-body { background: #eef1f5; color: #1a1a1a; }
.mcfc-ty-header { width: min(728px, calc(100% - 32px)); margin: 28px auto 0; padding: 26px 24px; background: #050B18; border: 0; border-radius: 12px 12px 0 0; text-align: center; }
.mcfc-ty-logo { height: 60px; width: auto; max-width: 100%; }
.mcfc-ty-wrap { padding-top: 0; }
.mcfc-ty-card { background: #ffffff; color: #1a1a1a; border: 0; border-radius: 0 0 12px 12px; box-shadow: 0 8px 28px rgba(5,11,24,0.10); text-align: left; padding: 34px 32px 30px; }
.mcfc-ty-check { margin: 0 0 14px; }
.mcfc-ty-card h1 { color: #050B18; font-weight: 800; font-size: 28px; text-align: left; }
.mcfc-ty-sub { color: #6b7280; text-align: left; margin-bottom: 8px; }
.mcfc-ty-section h2, .mcfc-ty-downloads h2 { color: #D9544C; }
.mcfc-ty-meta { background: #f6f8fb; border: 1px solid #e5e7eb; }
.mcfc-ty-meta dt { color: #6b7280; }
.mcfc-ty-meta dd { color: #1a1a1a; }
.mcfc-ty-table td, .mcfc-ty-table th { color: #1a1a1a; }
.mcfc-ty-table th { color: #6b7280; }
.mcfc-ty-items td { border-top: 1px solid #e5e7eb; }
.mcfc-ty-total-row td { color: #050B18; border-top: 2px solid #050B18 !important; }
.mcfc-ty-dl-list li { background: #f6f8fb; border: 1px solid #e5e7eb; }
.mcfc-ty-dl-name { color: #1a1a1a; }
.mcfc-ty-dl-btn { background: #D9544C; box-shadow: none; border-radius: 8px; }
.mcfc-ty-dl-btn:hover { background: #E9685F; }
.mcfc-ty-dl-note { color: #6b7280; }
.mcfc-ty-dl-note a { color: #D9544C; }
.mcfc-ty-address { background: #f6f8fb; border: 1px solid #e5e7eb; color: #1a1a1a; }
.mcfc-ty-steps li span { color: #1a1a1a; }
.mcfc-ty-callout { background: #f6f8fb; border: 1px solid #e5e7eb; }
.mcfc-ty-callout h3 { color: #050B18; }
.mcfc-ty-callout p { color: #4b5563; }
.mcfc-ty-callout-icon { background: rgba(217,84,76,0.12); color: #D9544C; }
.mcfc-ty-guarantee { border-color: #cfe6ef; background: #f3fafd; }
.mcfc-ty-guarantee .mcfc-ty-callout-icon { background: rgba(39,158,199,0.15); color: #279EC7; }
.mcfc-ty-contact a { color: #ffffff; background: #D9544C; box-shadow: none; }
.mcfc-ty-contact a:hover { background: #E9685F; }
.mcfc-ty-foot { color: #6b7280; }
@media (max-width: 560px) {
	.mcfc-ty-card { padding: 26px 18px; }
	.mcfc-ty-logo { height: 48px; }
}
/* header band and card share exactly the same width */
.mcfc-ty-wrap { box-sizing: border-box; width: calc(100% - 32px); max-width: 728px; padding: 0 0 40px; margin: 0 auto; }
.mcfc-ty-header { box-sizing: border-box; }

/* Several downloads for one product: name on top, then one full-width button per line (left-aligned, with a PDF icon) */
.mcfc-ty-dl-list li.mcfc-ty-dl-multi { flex-wrap: wrap; align-items: center; }
.mcfc-ty-dl-multi .mcfc-ty-dl-name { flex: 1 1 0; min-width: 0; }
.mcfc-ty-dl-multi .mcfc-ty-dl-btns { flex: 0 0 100%; max-width: 100%; width: 100%; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 8px; margin-top: 6px; }
.mcfc-ty-dl-multi .mcfc-ty-dl-btn { display: flex; align-items: center; justify-content: flex-start; gap: 12px; width: 100%; text-align: left; white-space: normal; padding: 11px 16px; box-sizing: border-box; }
.mcfc-ty-pdf-icon { flex: 0 0 auto; display: block; }
.mcfc-ty-dl-label { flex: 1 1 auto; min-width: 0; }

/* Check mark in the circle: keep it centered (the card text is left-aligned) */
.mcfc-ty-check { text-align: center; display: block; }

/* Several downloads: indent the files under their product (like children), with a first-page thumbnail */
.mcfc-ty-dl-multi .mcfc-ty-dl-btns { margin: 8px 0 2px 30px; width: calc(100% - 30px); flex-basis: calc(100% - 30px); max-width: calc(100% - 30px); padding-left: 14px; border-left: 3px solid #f0c9c6; gap: 10px; box-sizing: border-box; }
.mcfc-ty-dl-multi .mcfc-ty-dl-btn { gap: 14px; padding: 9px 14px; min-height: 68px; font-size: 15px; }
.mcfc-ty-thumb { flex: 0 0 auto; width: 44px; height: 56px; display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 4px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.25); }
.mcfc-ty-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.mcfc-ty-thumb .mcfc-ty-pdf-icon { margin: 0 auto; }
@media (max-width: 560px) {
	.mcfc-ty-dl-multi .mcfc-ty-dl-btns { margin-left: 12px; width: calc(100% - 12px); flex-basis: calc(100% - 12px); max-width: calc(100% - 12px); padding-left: 10px; }
}
/* the fallback PDF icon is white, so the box itself stays transparent; the thumbnail image carries the white page look */
.mcfc-ty-thumb { background: transparent; box-shadow: none; overflow: visible; }
.mcfc-ty-thumb img { background: #ffffff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.30); }

/* guarantee link */
.mcfc-ty-callout a.mcfc-ty-guarantee-link { color: #D9544C; font-weight: 700; text-decoration: underline; }
