/**
 * Manufacturer intake wizard — new-mfr.php
 *
 * Deliberately self-contained: this file owns every class the page uses and
 * shares nothing with trial.css. Everything is mfr-prefixed so the two wizards
 * can never collide, even if the trial branch merges in later. Bootstrap/T4
 * utilities from _jhead_.html are the only outside styling relied on.
 *
 * @started 8-20-2026
 */

/* ---------------------------------------------------------------- tokens - */
.mfrWrap {
	--mfrAccent: #fe9d42;
	--mfrAccentDark: #e9852a;
	--mfrInk: #2b2a28;
	--mfrInkSoft: #55524c;
	--mfrInkFaint: #8a867f;
	--mfrLine: #e3dfd8;
	--mfrLineSoft: #efece6;
	--mfrPaper: #ffffff;
	--mfrGround: #f4f2ef;
	--mfrDeep: #1d4451;
	--mfrGreen: #4f9427;
	--mfrRadius: 14px;
	--mfrShadow: 0 2px 10px rgba(0, 0, 0, .05);
}

/* --------------------------------------------------------------- a11y --- */
.mfrWrap .sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* --------------------------------------------------------------- shell --- */
.mfrWrap {
	background: var(--mfrGround);
	color: var(--mfrInk);
	padding: 0 0 70px;
	width: 100%;
}

.mfrWrap * { box-sizing: border-box; }

.mfrHeader {
	max-width: 1180px;
	margin: 0 auto;
	padding: 54px 22px 26px;
	text-align: center;
}

.mfrHeaderTitle {
	font-size: 2.6em;
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 12px;
	color: var(--mfrInk);
}

.mfrHeaderAccent { color: var(--mfrAccent); }

.mfrHeaderSub {
	font-size: 1.08em;
	color: var(--mfrInkSoft);
	margin: 0;
}

.mfrBox {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 22px;
}

/* ------------------------------------------------------------ progress --- */
.mfrProgress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0 0 26px;
}

.mfrDot {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--mfrInkFaint);
	font-weight: 700;
	font-size: .95em;
	white-space: nowrap;
	/* dot 1 is a <button> so it can take you back; strip the UA chrome */
	background: none;
	border: 0;
	padding: 0;
	font-family: inherit;
}

/* clickable only once you are past that step */
button.mfrDot:disabled { cursor: default; opacity: 1; }
button.mfrDot:not(:disabled) { cursor: pointer; }
button.mfrDot:not(:disabled):hover .mfrDotNum { border-color: var(--mfrAccent); color: var(--mfrAccent); }
button.mfrDot:not(:disabled):hover { color: var(--mfrInk); }
/* no outline box -- keyboard focus shows on the numbered circle instead */
button.mfrDot:focus { outline: none; }
button.mfrDot:focus-visible .mfrDotNum { box-shadow: 0 0 0 4px rgba(254, 157, 66, .35); }

.mfrDotNum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid var(--mfrLine);
	background: var(--mfrPaper);
	font-size: .9em;
}

.mfrDot.active { color: var(--mfrInk); }

.mfrDot.active .mfrDotNum {
	border-color: var(--mfrAccent);
	color: var(--mfrAccent);
	box-shadow: 0 0 0 4px rgba(254, 157, 66, .16);
}

.mfrDot.done .mfrDotNum {
	border-color: var(--mfrGreen);
	background: var(--mfrGreen);
	color: #fff;
}

.mfrBar {
	flex: 0 1 130px;
	height: 2px;
	background: var(--mfrLine);
	margin: 0 16px;
}

/* --------------------------------------------------------------- cards --- */
.mfrCard {
	background: var(--mfrPaper);
	border-radius: var(--mfrRadius);
	box-shadow: var(--mfrShadow);
	padding: 26px 28px;
	margin-bottom: 22px;
}

.mfrEyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	text-transform: uppercase;
	letter-spacing: .14em;
	font-size: .74em;
	font-weight: 800;
	color: var(--mfrAccent);
	margin-bottom: 14px;
}

.mfrEyebrow::before {
	content: "";
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--mfrAccent);
}

.mfrH2 { font-size: 1.6em; font-weight: 800; margin: 0 0 8px; }
.mfrH3 { font-size: 1.28em; font-weight: 800; margin: 0 0 6px; }
.mfrH4 { font-size: 1.05em; font-weight: 700; margin: 0 0 6px; }

.mfrSub { color: var(--mfrInkSoft); margin: 0 0 6px; }

.mfrHint {
	color: var(--mfrInkFaint);
	font-size: .88em;
	margin: 4px 0 0;
}

.mfrQ { margin-bottom: 34px; }
.mfrQ:last-child { margin-bottom: 0; }

/* --------------------------------------------------------- how it works --- */
.mfrHowRow {
	display: flex;
	align-items: flex-start;
	gap: 18px;
}

.mfrHowCol { flex: 1 1 0; }

.mfrHowTitle {
	font-weight: 800;
	margin-bottom: 6px;
	color: var(--mfrInk);
}

.mfrHowCol p {
	color: var(--mfrInkSoft);
	font-size: .93em;
	margin: 0;
}

.mfrHowArrow {
	flex: 0 0 auto;
	color: var(--mfrLine);
	padding-top: 2px;
	font-size: 1.1em;
}

/* ------------------------------------------------------- large radio tiles */
.mfrTypeGrid,
.mfrYesNo {
	display: grid;
	gap: 12px;
	border: 0;
	padding: 0;
	margin: 0;
}

.mfrTypeGrid { grid-template-columns: repeat(5, 1fr); }
.mfrYesNo    { grid-template-columns: repeat(2, 1fr); }

.mfrTile {
	display: block;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
}

.mfrTileInput {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.mfrTileInner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 4px;
	height: 100%;
	padding: 20px 14px 18px;
	border: 2px solid var(--mfrLine);
	border-radius: var(--mfrRadius);
	background: var(--mfrPaper);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mfrTile:hover .mfrTileInner {
	border-color: #d3cdc3;
	transform: translateY(-1px);
}

.mfrTileInput:checked + .mfrTileInner {
	border-color: var(--mfrInk);
	box-shadow: 0 0 0 4px rgba(43, 42, 40, .12);
}

.mfrTileInput:focus-visible + .mfrTileInner {
	outline: 2px solid var(--mfrInk);
	outline-offset: 2px;
}

.mfrTileCheck {
	position: absolute;
	top: -10px;
	right: -10px;
	display: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--mfrInk);
	color: #fff;
	font-size: .72em;
}

.mfrTileInput:checked + .mfrTileInner .mfrTileCheck { display: inline-flex; }

.mfrTileIcon {
	font-size: 1.5em;
	color: var(--mfrInk);
	margin-bottom: 2px;
}

.mfrTileName { font-weight: 800; font-size: 1em; }

.mfrTileDesc {
	color: var(--mfrInkFaint);
	font-size: .84em;
	line-height: 1.35;
}

.mfrYesNo .mfrTileInner { text-align: left; align-items: flex-start; }

/* Q1 left blank while they answer the rest. Accent tint rather than the red
   error outline: it's the step they skipped, not a mistake. mfrNudgeType() */
.mfrQ.is-needed .mfrTileInner { border-color: rgba(254, 157, 66, .55); }
.mfrQ.is-needed .mfrTypeHint { color: var(--mfrAccentDark); font-weight: 700; }

/* one soft glow when Continue or the totals link sends them back up here */
.mfrQ.is-pulsing .mfrTileInner { animation: mfrNudge 1.1s ease 2; }

/* -------------------------------------------------------------- slider --- */
.mfrSliderRow {
	display: flex;
	align-items: flex-end;
	gap: 24px;
}

.mfrSlider {
	position: relative;
	flex: 1 1 auto;
	padding-top: 44px;
}

.mfrSlider input[type="range"] {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	margin: 0;
	border-radius: 3px;
	background: var(--mfrLineSoft);
	outline: none;
	cursor: pointer;
}

.mfrSlider input[type="range"]::-webkit-slider-runnable-track {
	height: 6px;
	border-radius: 3px;
	background: transparent;
}

.mfrSlider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	margin-top: -9px;
	border: 0;
	border-radius: 50%;
	background: var(--mfrAccent);
	box-shadow: 0 0 0 5px rgba(254, 157, 66, .2);
	cursor: grab;
}

.mfrSlider input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }

.mfrSlider input[type="range"]::-moz-range-track {
	height: 6px;
	border-radius: 3px;
	background: var(--mfrLineSoft);
}

.mfrSlider input[type="range"]::-moz-range-progress {
	height: 6px;
	border-radius: 3px;
	background: var(--mfrAccent);
}

.mfrSlider input[type="range"]::-moz-range-thumb {
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: var(--mfrAccent);
	box-shadow: 0 0 0 5px rgba(254, 157, 66, .2);
	cursor: grab;
}

.mfrSlider input[type="range"]:focus-visible {
	outline: 2px solid var(--mfrAccent);
	outline-offset: 6px;
}

/* value callout — left is set from the value in JS */
.mfrSliderBubble {
	position: absolute;
	top: 0;
	transform: translateX(-50%);
	padding: 5px 12px;
	border-radius: 8px;
	background: var(--mfrInk);
	color: #fff;
	font-weight: 800;
	font-size: .92em;
	white-space: nowrap;
	pointer-events: none;
}

.mfrSliderBubble::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -5px;
	transform: translateX(-50%);
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 6px solid var(--mfrInk);
}

.mfrSliderTicks {
	position: relative;
	height: 22px;
	margin-top: 10px;
}

.mfrTick {
	position: absolute;
	transform: translateX(-50%);
	font-size: .78em;
	color: var(--mfrInkFaint);
	white-space: nowrap;
}

.mfrTick::before {
	content: "";
	position: absolute;
	left: 50%;
	top: -9px;
	width: 1px;
	height: 5px;
	background: var(--mfrLine);
}

/* the end ticks would hang off the track, so anchor them inward */
.mfrTick.is-first { transform: none; }
.mfrTick.is-first::before { left: 0; }
.mfrTick.is-last { transform: translateX(-100%); }
.mfrTick.is-last::before { left: 100%; }

.mfrCountBox { flex: 0 0 130px; }

.mfrCountInput {
	width: 100%;
	padding: 11px 12px;
	border: 2px solid var(--mfrLine);
	border-radius: 10px;
	background: var(--mfrPaper);
	font-size: 1.05em;
	font-weight: 800;
	text-align: center;
	color: var(--mfrInk);
}

.mfrCountInput:focus {
	border-color: var(--mfrAccent);
	outline: none;
}

/* ------------------------------------------------------------ page one --- */
.mfrPanelSplit {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.mfrRightRail { position: sticky; top: 20px; }

/* ------------------------------------------------------- tier carousel --- */
.mfrTierViewport {
	overflow: hidden;
	padding: 6px 0 22px;
}

.mfrTierTrack {
	display: flex;
	gap: 0;
	transition: transform .35s cubic-bezier(.22, .61, .36, 1);
	will-change: transform;
}

.mfrTierCard {
	flex: 0 0 100%;
	border-radius: var(--mfrRadius);
	background: var(--mfrPaper);
	border: 2px solid var(--mfrAccent);
	box-shadow: 0 6px 22px rgba(254, 157, 66, .22);
	padding: 24px 24px 26px;
}

.mfrTierBadge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(254, 157, 66, .14);
	color: var(--mfrAccentDark);
	font-size: .72em;
	font-weight: 800;
	letter-spacing: .1em;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.mfrTierName {
	font-size: 1.35em;
	font-weight: 800;
	margin: 0 0 6px;
}

.mfrTierDesc {
	color: var(--mfrInkSoft);
	font-size: .92em;
	margin: 0 0 16px;
}

.mfrTierFeat {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}

.mfrTierFeat li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 0;
	font-size: .92em;
	color: var(--mfrInkSoft);
}

.mfrTierFeat i {
	flex: 0 0 auto;
	margin-top: 3px;
	color: var(--mfrGreen);
	font-size: .85em;
}

.mfrTierPriceRow {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	padding-top: 16px;
	border-top: 1px solid var(--mfrLineSoft);
}

.mfrTierPrice { font-size: 2.1em; font-weight: 800; }
.mfrTierPer { color: var(--mfrInkFaint); font-weight: 700; }

/* the Custom tier has no number to show */
.mfrTierPriceQuote { font-size: 1.6em; color: var(--mfrAccent); }

/* pushed to the far end of the price row; wraps under the price when it can't fit */
.mfrTierDetails {
	margin-left: auto;
	color: var(--mfrAccent);
	font-size: .9em;
	font-weight: 700;
	text-decoration: none;
}

.mfrTierDetails:hover,
.mfrTierDetails:focus { color: var(--mfrAccentDark); text-decoration: underline; }

/* -------------------------------------------------------------- totals --- */
.mfrTotals {
	background: var(--mfrPaper);
	border-radius: var(--mfrRadius);
	box-shadow: var(--mfrShadow);
	padding: 22px 24px;
}

.mfrTotalsRow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px solid var(--mfrLineSoft);
	font-size: .94em;
}

.mfrTotalsRow span { color: var(--mfrInkSoft); }
.mfrTotalsRow strong { white-space: nowrap; }
.mfrTotalsRow small { display: block; color: var(--mfrInkFaint); font-size: .86em; }

/* content creation with no Q1 answer yet -- mfrPaintTotals() */
.mfrTotalsAsk { color: var(--mfrAccent); font-weight: 700; text-decoration: none; }
.mfrTotalsAsk:hover,
.mfrTotalsAsk:focus { color: var(--mfrAccentDark); text-decoration: underline; }

#mfrTotalsCustom .mfrTotalsGrand { justify-content: flex-start; }

.mfrTotalsGrand {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	padding: 15px 0 4px;
	font-size: 1.14em;
	font-weight: 800;
}

.mfrTotalsNote {
	color: var(--mfrInkFaint);
	font-size: .84em;
	margin: 6px 0 0;
}

/* ------------------------------------------------------- file requirements */
.mfrFileReqs {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 10px;
	background: rgba(254, 157, 66, .09);
	border: 1px solid rgba(254, 157, 66, .3);
	font-size: .9em;
	color: var(--mfrInkSoft);
}

.mfrFileReqs i { color: var(--mfrAccent); margin-top: 2px; }
.mfrFileReqs strong { display: block; color: var(--mfrInk); margin-bottom: 2px; }

/* ------------------------------------------------------- optional add-ons */
/* set apart from the required questions above by a dashed rule and the pill */
.mfrAddons {
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px dashed var(--mfrLine);
}

.mfrAddonsHead {
	display: flex;
	align-items: center;
	gap: 10px;
}

.mfrAddonsHead .mfrH3 { margin: 0; }

.mfrAddonPill {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--mfrLineSoft);
	color: var(--mfrInkSoft);
	font-size: .72em;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mfrAddonList {
	display: grid;
	gap: 12px;
	margin-top: 16px;
}

.mfrAddon {
	border: 2px solid var(--mfrLine);
	border-radius: var(--mfrRadius);
	background: var(--mfrPaper);
	transition: border-color .15s ease, box-shadow .15s ease;
}

.mfrAddon[hidden],
.mfrAddonBody[hidden] { display: none; }

.mfrAddon:hover { border-color: #d3cdc3; }

.mfrAddon.is-on {
	border-color: var(--mfrInk);
	box-shadow: 0 0 0 4px rgba(43, 42, 40, .12);
}

.mfrAddonHead {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 16px 18px;
	cursor: pointer;
	font-weight: 400;
}

.mfrAddonToggle {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.mfrAddonBox {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border: 2px solid var(--mfrLine);
	border-radius: 6px;
	background: var(--mfrPaper);
	color: transparent;
	font-size: .7em;
}

.mfrAddonToggle:checked + .mfrAddonBox {
	background: var(--mfrInk);
	border-color: var(--mfrInk);
	color: #fff;
}

.mfrAddonToggle:focus-visible + .mfrAddonBox {
	outline: 2px solid var(--mfrInk);
	outline-offset: 2px;
}

.mfrAddonText {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mfrAddonName { font-weight: 800; color: var(--mfrInk); }

.mfrAddonDesc {
	color: var(--mfrInkFaint);
	font-size: .84em;
	line-height: 1.35;
}

.mfrAddonPrice { flex: 0 0 auto; font-weight: 800; white-space: nowrap; }
.mfrAddonPrice small { color: var(--mfrInkFaint); font-weight: 700; font-size: .86em; }

/* lines up under the name, clear of the checkbox */
.mfrAddonBody { padding: 0 18px 18px 54px; }

.mfrAddonTopics {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
	min-width: 0;
}

.mfrAddonTopics legend {
	width: auto;
	border: 0;
	margin-bottom: 4px;
	font-size: .92em;
}

.mfrAddonTopicList {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
}

.mfrAddonTopicList .mfrInlineCheck { margin: 0; }

/* detail creation's "do you have content?" tiles, a size down from the page's */
.mfrAddonChoice { margin: 0 0 16px; }
.mfrAddonChoice .mfrLabel { margin-bottom: 10px; }
.mfrAddonChoice .mfrTileInner { padding: 14px 14px 12px; }

.mfrStepperRow {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 14px;
}

.mfrStepperRow .mfrLabel { margin: 0; }

.mfrStepper {
	display: inline-flex;
	align-items: stretch;
	border: 2px solid var(--mfrLine);
	border-radius: 10px;
	overflow: hidden;
	background: var(--mfrPaper);
}

.mfrStepper:focus-within {
	border-color: var(--mfrAccent);
	box-shadow: 0 0 0 3px rgba(254, 157, 66, .14);
}

.mfrStepperBtn {
	width: 38px;
	border: 0;
	background: #faf9f7;
	color: var(--mfrInk);
	font-size: 1.1em;
	font-weight: 700;
	cursor: pointer;
}

.mfrStepperBtn:hover { background: var(--mfrLineSoft); }
.mfrStepperBtn:disabled { color: var(--mfrLine); cursor: default; background: #faf9f7; }

.mfrStepperInput {
	width: 56px;
	padding: 8px 0;
	border: 0;
	background: transparent;
	color: var(--mfrInk);
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.mfrStepperInput::-webkit-outer-spin-button,
.mfrStepperInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.mfrStepperInput:focus { outline: none; }

.mfrAddonSubtotal { color: var(--mfrInkSoft); font-size: .9em; font-weight: 700; }


/* ------------------------------------------------------- form controls --- */
.mfrLabel {
	display: block;
	font-weight: 700;
	font-size: .92em;
	margin-bottom: 6px;
	color: var(--mfrInk);
}

.mfrField { margin-bottom: 18px; }

.mfrInput,
.mfrSelect {
	width: 100%;
	padding: 12px 14px;
	border: 2px solid var(--mfrLine);
	border-radius: 10px;
	background: var(--mfrPaper);
	color: var(--mfrInk);
	font-size: .98em;
	line-height: 1.3;
}

.mfrSelect { cursor: pointer; }

.mfrInput:focus,
.mfrSelect:focus {
	border-color: var(--mfrAccent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(254, 157, 66, .14);
}

.mfrInput::placeholder { color: #b8b3aa; }

.mfrTextarea { resize: vertical; min-height: 120px; line-height: 1.5; }

.mfrOptional { font-weight: 400; color: var(--mfrInkFaint); }

.mfrMissing,
.mfrMissing:focus {
	border-color: #d9534f !important;
	box-shadow: 0 0 0 3px rgba(217, 83, 79, .15) !important;
}

.mfrSplit {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.mfrInlineCheck {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	font-weight: 400;
	font-size: .88em;
	color: var(--mfrInkSoft);
	cursor: pointer;
}

.mfrInlineCheck input { margin: 0; }

/* --------------------------------------------------------- account box --- */
.mfrAccountBox {
	display: block;
	padding: 22px 24px;
	margin-bottom: 24px;
	border: 1px solid var(--mfrLine);
	border-radius: var(--mfrRadius);
	background: #faf9f7;
}

.mfrAccountHead {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 18px;
}

.mfrAccountIcon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(254, 157, 66, .16);
	color: var(--mfrAccent);
}

.mfrAccountNote {
	margin-top:0px !important;
	margin: 0;
	font-size: .93em;
	color: var(--mfrInkSoft);
}

.mfrAccountNote a { color: var(--mfrAccent); font-weight: 700; }

/* -------------------------------------------------------- payment block --- */
.mfrCardForm { margin-top: 22px; }

/* PayPal renders each hosted field into these containers as an iframe; they need
   a real height reserved or the iframe collapses before it loads. */
#card-name-field-container,
#card-number-field-container,
#card-expiry-field-container,
#card-cvv-field-container {
	min-height: 52px;
	margin-bottom: 12px;
}

.mfrPayInput {
	width: 100%;
	padding: 13px 14px;
	border: 1px solid var(--mfrLine);
	border-radius: 8px;
	background: var(--mfrPaper);
	color: var(--mfrInk);
	font-size: .98em;
}

.mfrPayInput:focus {
	border-color: var(--mfrAccent);
	outline: none;
}

select.mfrPayInput { cursor: pointer; }

/* wire-transfer explainer, same shape as the file-requirements callout */
.mfrWireNote {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 16px 18px;
	border-radius: 10px;
	background: rgba(254, 157, 66, .09);
	border: 1px solid rgba(254, 157, 66, .3);
	font-size: .92em;
	color: var(--mfrInkSoft);
}

.mfrWireNote i { color: var(--mfrAccent); margin-top: 3px; }
.mfrWireNote strong { display: block; color: var(--mfrInk); margin-bottom: 3px; }

/* the PayPal SDK didn't give us usable card fields -- mfrCardOffline() in mfr.js */
.mfrCardOfflineNote {
	margin: 12px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(217, 83, 79, .08);
	border: 1px solid rgba(217, 83, 79, .3);
	font-size: .9em;
	color: var(--mfrInkSoft);
}

/* the card tile, when there is nothing behind it */
.mfrTileDisabled { cursor: not-allowed; }
.mfrTileDisabled .mfrTileInner { opacity: .45; }
.mfrTileDisabled:hover .mfrTileInner { border-color: inherit; transform: none; }

.mfrBillingBlock { margin-top: 20px; }
.mfrBillingBlock > div { margin-bottom: 12px; }

.mfrBillingLabel {
	display: block;
	font-size: .84em;
	font-weight: 700;
	color: var(--mfrInkSoft);
	margin-bottom: 5px;
}

#card-field-submit-button,
#mfrWireSubmitButton,
#mfrCustomSubmitButton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	padding: 15px 34px;
	border: 0;
	border-radius: 10px;
	background: var(--mfrGreen);
	color: #fff;
	font-size: 1.02em;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s ease;
}

#card-field-submit-button:hover,
#mfrWireSubmitButton:hover,
#mfrCustomSubmitButton:hover { background: #438020; }

#card-field-submit-button:disabled,
#mfrWireSubmitButton:disabled { opacity: .55; cursor: not-allowed; }

/* [hidden] loses to the buttons' display:inline-flex without this */
#mfrCardFields[hidden],
#mfrWireNote[hidden],
#card-field-submit-button[hidden],
#mfrWireSubmitButton[hidden] { display: none; }

/* ----------------------------------------------------- checkout summary --- */
.mfrTwoCol {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 22px;
	align-items: start;
}

.mfrOrderBox {
	position: sticky;
	/* clears the site header, same allowance mfrGoto() uses when it scrolls */
	top: 120px;
	border-radius: var(--mfrRadius);
	background: var(--mfrDeep);
	color: #fff;
	padding: 28px 28px 30px;
}

/* the template sets its own h2 colour, which beats the white inherited from
   .mfrOrderBox -- state it explicitly so the heading stays legible on the dark panel */
.mfrOrderTitle {
	font-size: 1.5em;
	font-weight: 800;
	margin: 0 0 20px;
	color: #fff;
}

.mfrOrderRow {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0 14px 14px;
	border-left: 3px solid var(--mfrAccent);
	margin-bottom: 10px;
}

.mfrOrderRow small {
	display: block;
	color: rgba(255, 255, 255, .62);
	font-size: .84em;
	margin-top: 3px;
}

.mfrOrderRow strong { white-space: nowrap; }

.mfrOrderTotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba(255, 255, 255, .28);
	font-size: 1.22em;
	font-weight: 800;
}

.mfrOrderNote {
	margin: 14px 0 0;
	font-size: .84em;
	color: rgba(255, 255, 255, .62);
}

/* ----------------------------------------------------------- nav + btns --- */
.mfrNavRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
}

.mfrNavRow.mfrNavEnd { justify-content: flex-end; }

.mfrPanelTop { margin-bottom: 14px; }

/* the Continue button lives at the bottom of the totals box, not in a nav row */
.mfrBtnBlock { display: flex; width: 100%; margin-top: 18px; }
a.mfrBtn { text-decoration: none; }
a.mfrBtnPrimary:hover { color: #fff; }

#mfrTotalsPriced[hidden],
#mfrTotalsCustom[hidden],
#mfrPaymentSection[hidden],
#mfrCustomNoteSection[hidden],
#mfrOrderTotalRow[hidden],
#mfrOrderCustomRow[hidden],
#mfrCustomSubmitButton[hidden] { display: none; }

.mfrBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 30px;
	border-radius: 10px;
	border: 2px solid transparent;
	font-size: 1em;
	font-weight: 800;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.mfrBtnPrimary {
	background: var(--mfrAccent);
	color: #fff;
}

.mfrBtnPrimary:hover { background: var(--mfrAccentDark); color: #fff; }

.mfrBtnGhost {
	background: transparent;
	border-color: var(--mfrLine);
	color: var(--mfrInkSoft);
}

.mfrBtnGhost:hover { border-color: #c9c4bb; color: var(--mfrInk); }

/* --------------------------------------------------------------- misc ---- */
.mfrLegal {
	margin: 18px 0 0;
	font-size: .8em;
	color: var(--mfrInkFaint);
	text-align: center;
}

.mfrLegal a { color: var(--mfrInkFaint); text-decoration: underline; }

/* CSS-only spinner — the site's gears.svg is not in this repo */
/* reCAPTCHA sits directly above the submit buttons. The widget is a fixed-width
   iframe, so centre it and let it shrink out of the way on narrow screens. */
.mfrCaptcha {
	display: flex;
	justify-content: center;
	margin: 18px 0 4px;
	min-height: 78px;
}

.mfrSpinner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 14px 0;
	color: var(--mfrInkSoft);
	font-weight: 700;
}

.mfrSpinner::before {
	content: "";
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 3px solid var(--mfrLine);
	border-top-color: var(--mfrAccent);
	animation: mfrSpin .8s linear infinite;
}

@keyframes mfrSpin { to { transform: rotate(360deg); } }

@keyframes mfrNudge {
	0%, 100% { box-shadow: 0 0 0 0 rgba(254, 157, 66, 0); }
	50%      { box-shadow: 0 0 0 5px rgba(254, 157, 66, .25); }
}

@media (prefers-reduced-motion: reduce) {
	.mfrTierTrack,
	.mfrTileInner { transition: none; }
	.mfrQ.is-pulsing .mfrTileInner { animation: none; }
		.mfrTileInner,
	.mfrAddon { transition: none; }
	.mfrSpinner::before { animation-duration: 2s; }
}

/* --------------------------------------------------------- responsive --- */
@media screen and (max-width: 1100px) {
	.mfrTypeGrid { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 991px) {
	.mfrHeaderTitle { font-size: 2em; }
	.mfrHeader { padding: 36px 18px 20px; }
	.mfrBox { padding: 0 14px; }

	.mfrPanelSplit,
	.mfrTwoCol { grid-template-columns: minmax(0, 1fr); }

	.mfrRightRail,
	.mfrOrderBox { position: static; }

	.mfrHowRow { flex-direction: column; gap: 20px; }
	.mfrHowArrow { display: none; }

	.mfrDotLabel { display: none; }
	.mfrBar { flex-basis: 60px; margin: 0 10px; }

	.mfrCard { padding: 22px 18px; }
	.mfrSliderRow { flex-direction: column; align-items: stretch; gap: 18px; }
	.mfrCountBox { flex: 1 1 auto; }
	.mfrSplit { grid-template-columns: 1fr; }
	.mfrNavRow { flex-direction: column-reverse; align-items: stretch; }
	.mfrBtn { width: 100%; }
}

@media screen and (max-width: 560px) {
	.mfrTypeGrid { grid-template-columns: repeat(2, 1fr); }
	.mfrYesNo { grid-template-columns: 1fr; }

	/* price drops under the name; the body loses its checkbox indent */
	.mfrAddonHead { flex-wrap: wrap; }
	.mfrAddonText { flex-basis: calc(100% - 36px); }
	.mfrAddonPrice { margin-left: 36px; }
	.mfrAddonBody { padding-left: 18px; }
}
