/**
 * Instant Quote — styles.
 *
 * Deliberately scoped to .mrf-iq and built on the site's own mrf-* palette
 * variables where they exist, with literal fallbacks so the tool still looks
 * right if it is dropped on a page the theme styles differently.
 */

/* A display value on a component beats the browser's [hidden] rule, so say it
   again louder. Without this the lead form shows before it is asked for, and
   the dismissed how-to keeps covering the Add corner button.
   The map stage is listed separately because it is moved out to the body
   while full screen, where a .mrf-iq descendant selector no longer reaches. */
.mrf-iq [hidden],
.mrf-iq__mapstage [hidden] {
	display: none !important;
}

.mrf-iq {
	--iq-oxide: var( --mrf-oxide, #c85f32 );
	--iq-oxide-light: #e8956b;
	--iq-charcoal: var( --mrf-charcoal, #161a1d );
	--iq-graphite: var( --mrf-graphite, #343a3e );
	--iq-bone: var( --mrf-bone, #f3f1ea );
	--iq-line: rgba( 22, 26, 29, 0.14 );

	max-width: 62rem;
	margin: 0 auto;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var( --iq-charcoal );
}

.mrf-iq--off p {
	margin: 0;
}

/* Steps ------------------------------------------------------------------ */

.mrf-iq__steps {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var( --iq-graphite );
}

.mrf-iq__steps li {
	position: relative;
	padding-left: 1.6rem;
	opacity: 0.55;
}

.mrf-iq__steps li::before {
	content: counter( list-item );
	position: absolute;
	left: 0;
	top: -0.1em;
	display: grid;
	place-items: center;
	width: 1.2rem;
	height: 1.2rem;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 0.6875rem;
}

.mrf-iq__steps li.is-current {
	opacity: 1;
	color: var( --iq-oxide );
	font-weight: 600;
}

.mrf-iq__steps li.is-done {
	opacity: 0.85;
}

/* Panels ----------------------------------------------------------------- */

.mrf-iq__panel h2 {
	margin: 0 0 0.5rem;
	font-size: clamp( 1.4rem, 3vw, 1.9rem );
	line-height: 1.15;
}

.mrf-iq__panel > p {
	margin: 0 0 1.25rem;
	max-width: 42em;
	line-height: 1.55;
}

/* Address ---------------------------------------------------------------- */

.mrf-iq__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.mrf-iq__row input[type="text"] {
	flex: 1 1 18rem;
	min-width: 0;
	padding: 0.85rem 1rem;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: inherit;
}

/* Map -------------------------------------------------------------------- */

.mrf-iq__map {
	width: 100%;
	aspect-ratio: 16 / 10;
	min-height: 320px;
	background: var( --iq-bone );
	border: 1px solid var( --iq-line );
	border-radius: 2px;
}

.mrf-iq__maptools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin: 0.75rem 0 1.5rem;
}

.mrf-iq__area {
	font-variant-numeric: tabular-nums;
	font-size: 0.9375rem;
	color: var( --iq-graphite );
}

/* Fields ----------------------------------------------------------------- */

.mrf-iq__fields {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat( auto-fit, minmax( 16rem, 1fr ) );
	margin-bottom: 1.5rem;
}

.mrf-iq__field {
	margin: 0;
}

.mrf-iq__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.mrf-iq__field select,
.mrf-iq__field input,
.mrf-iq__field textarea {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: inherit;
}

.mrf-iq__field textarea {
	resize: vertical;
}

/* The honeypot is for scripts, not people: off-screen rather than hidden,
   so a screen reader can still find and skip it. */
.mrf-iq__field--hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons ---------------------------------------------------------------- */

.mrf-iq__btn {
	display: inline-block;
	padding: 0.8rem 1.4rem;
	border: 1px solid var( --iq-oxide );
	border-radius: 2px;
	background: var( --iq-oxide );
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.mrf-iq__btn:hover,
.mrf-iq__btn:focus-visible {
	background: #a8431f;
	border-color: #a8431f;
}

.mrf-iq__btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.mrf-iq__btn--quiet {
	background: transparent;
	color: var( --iq-graphite );
	border-color: var( --iq-line );
	padding: 0.5rem 0.9rem;
	font-weight: 500;
	font-size: 0.875rem;
}

.mrf-iq__btn--quiet:hover,
.mrf-iq__btn--quiet:focus-visible {
	background: var( --iq-bone );
	color: var( --iq-charcoal );
	border-color: var( --iq-graphite );
}

.mrf-iq__btn--primary {
	font-size: 1.0625rem;
	padding: 0.95rem 1.8rem;
}

/* Result ----------------------------------------------------------------- */

.mrf-iq__price {
	margin: 0 0 0.4rem;
	font-size: clamp( 2rem, 6vw, 3.25rem );
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
}

.mrf-iq__tax {
	margin: 0 0 1.1rem;
	font-size: 0.875rem;
	letter-spacing: 0.03em;
	color: var( --iq-graphite );
}

.mrf-iq__includes {
	margin: 0 0 0.35rem;
	max-width: 42em;
	font-size: 1.0625rem;
	line-height: 1.5;
	font-weight: 600;
}

.mrf-iq__basis {
	margin: 0 0 1.75rem;
	max-width: 42em;
	font-size: 0.9375rem;
	color: var( --iq-graphite );
	line-height: 1.5;
}

/* The two asks. Deliberately the loudest thing under the price. */
.mrf-iq__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0 0 2rem;
}

.mrf-iq__btn--secondary {
	background: transparent;
	color: var( --iq-charcoal );
	border-color: var( --iq-charcoal );
	font-size: 1.0625rem;
	padding: 0.95rem 1.8rem;
}

.mrf-iq__btn--secondary:hover,
.mrf-iq__btn--secondary:focus-visible {
	background: var( --iq-charcoal );
	color: #fff;
	border-color: var( --iq-charcoal );
}

/* Quiet by default: it is there for the person who goes looking. */
.mrf-iq__excluded {
	margin: 0 0 2rem;
	border-top: 1px solid var( --iq-line );
	border-bottom: 1px solid var( --iq-line );
	padding: 0.25rem 0;
}

.mrf-iq__excluded summary {
	padding: 0.85rem 0;
	cursor: pointer;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var( --iq-graphite );
	list-style: none;
}

.mrf-iq__excluded summary::-webkit-details-marker {
	display: none;
}

.mrf-iq__excluded summary::after {
	content: '+';
	float: right;
	font-weight: 400;
	font-size: 1.1rem;
	line-height: 1;
}

.mrf-iq__excluded[open] summary::after {
	content: '–';
}

.mrf-iq__excluded ul {
	margin: 0 0 0.75rem;
	padding-left: 1.2rem;
	columns: 2;
	column-gap: 2rem;
	font-size: 0.9375rem;
	line-height: 1.7;
	color: var( --iq-graphite );
}

.mrf-iq__excluded > p {
	margin: 0 0 1rem;
	font-size: 0.9375rem;
	color: var( --iq-graphite );
	max-width: 42em;
}

.mrf-iq__footnote {
	margin: 2rem 0 0;
	font-size: 0.875rem;
	color: var( --iq-graphite );
	max-width: 42em;
}

/* Lead form -------------------------------------------------------------- */

.mrf-iq__form {
	display: grid;
	gap: 1rem;
	max-width: 34rem;
}

.mrf-iq__form h3 {
	margin: 0;
	font-size: 1.25rem;
}

.mrf-iq__form > p {
	margin: 0;
}

.mrf-iq__consent {
	margin: 0;
}

.mrf-iq__consent label {
	display: flex;
	gap: 0.6rem;
	align-items: flex-start;
	font-size: 0.9375rem;
	line-height: 1.45;
	cursor: pointer;
}

.mrf-iq__consent input {
	margin-top: 0.2rem;
	flex: 0 0 auto;
}

.mrf-iq__privacy {
	margin: 0;
	font-size: 0.875rem;
}

.mrf-iq__form .mrf-iq__btn {
	justify-self: start;
}

.mrf-iq__done h3 {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.mrf-iq__done p {
	margin: 0;
	max-width: 40em;
	line-height: 1.55;
}

/* Errors ----------------------------------------------------------------- */

.mrf-iq__error {
	margin: 0.75rem 0 0;
	padding: 0.7rem 0.9rem;
	background: #fdf1ec;
	border-left: 3px solid #a8431f;
	color: #7d2f14;
	font-size: 0.9375rem;
}

/* Phone ------------------------------------------------------------------ */

@media ( max-width: 480px ) {
	.mrf-iq__map {
		aspect-ratio: 4 / 5;
	}

	.mrf-iq__btn--primary,
	.mrf-iq__btn--secondary {
		width: 100%;
		text-align: center;
	}

	.mrf-iq__cta {
		flex-direction: column;
	}

	.mrf-iq__excluded ul {
		columns: 1;
	}
}

/* Tracing ---------------------------------------------------------------- */

.mrf-iq__hint {
	margin: -0.75rem 0 1.25rem;
	font-size: 0.9375rem;
	color: var( --iq-graphite );
}

.mrf-iq__mapstage {
	position: relative;
	margin-bottom: 0.75rem;
	--iq-oxide: #c85f32;
	--iq-oxide-light: #e8956b;
	--iq-charcoal: #161a1d;
	--iq-graphite: #343a3e;
	--iq-bone: #f3f1ea;
	--iq-line: rgba( 22, 26, 29, 0.14 );
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The crosshair never moves. The map moves under it, which is the only way
   to place a corner accurately with a finger. */
.mrf-iq__crosshair {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	pointer-events: none;
	z-index: 3;
}

.mrf-iq__crosshair::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 14px;
	height: 14px;
	margin: -7px 0 0 -7px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.55 );
}

.mrf-iq__crosshair span {
	position: absolute;
	background: #fff;
	box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.45 );
}

.mrf-iq__crosshair span:first-child {
	top: 50%;
	left: 0;
	right: 0;
	height: 2px;
	margin-top: -1px;
}

.mrf-iq__crosshair span:last-child {
	left: 50%;
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
}

.mrf-iq__tracebar {
	margin-top: 0.75rem;
}

.mrf-iq__tracebtns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.mrf-iq__btn--add {
	flex: 1 1 12rem;
	font-size: 1.0625rem;
	padding: 0.95rem 1.4rem;
	text-align: center;
}

.mrf-iq__btn--done {
	background: var( --iq-charcoal );
	border-color: var( --iq-charcoal );
	padding: 0.95rem 1.4rem;
}

.mrf-iq__btn--done:hover:not( :disabled ),
.mrf-iq__btn--done:focus-visible:not( :disabled ) {
	background: #000;
	border-color: #000;
}

.mrf-iq__warning {
	margin: 0.5rem 0;
	padding: 0.6rem 0.8rem;
	background: #fdece8;
	border-left: 3px solid #d43d2a;
	color: #7d2f14;
	font-size: 0.9375rem;
	font-weight: 600;
}

.mrf-iq__exit {
	display: none;
}

.mrf-iq-iw button {
	font: inherit;
	font-weight: 600;
	padding: 0.45rem 0.8rem;
	border: 1px solid #d43d2a;
	background: #fff;
	color: #a8431f;
	border-radius: 2px;
	cursor: pointer;
}

/* How-to and sanity check ------------------------------------------------ */

.mrf-iq__howto {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba( 22, 26, 29, 0.96 );
}

.mrf-iq__howto-inner {
	max-width: 22rem;
	color: #fff;
}

/* The theme styles h3 on its own, and that beats a colour inherited from the
   parent, so say it here or the heading is dark text on a dark overlay. */
.mrf-iq__howto-inner h3 {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	color: #fff;
}

.mrf-iq__howto-inner ol,
.mrf-iq__howto-inner li {
	color: #eef1f2;
}

.mrf-iq__howto-inner ol {
	margin: 0 0 1.25rem;
	padding-left: 1.2rem;
	line-height: 1.55;
}

.mrf-iq__howto-inner li {
	margin-bottom: 0.5rem;
}

.mrf-iq__howto-inner strong {
	color: var( --iq-oxide-light );
}

.mrf-iq__sanity {
	margin: 0 0 1.5rem;
	padding: 1rem 1.1rem;
	background: var( --iq-bone );
	border-left: 3px solid var( --iq-oxide );
}

.mrf-iq__sanity p {
	margin: 0 0 0.85rem;
	font-weight: 600;
}

/* Full screen on a phone ------------------------------------------------- */

body.mrf-iq-noscroll {
	overflow: hidden;
}

body.mrf-iq-noscroll .mrf-iq__mapstage {
	position: fixed;
	inset: 0;
	z-index: 99999;
	margin: 0;
	display: flex;
	flex-direction: column;
	background: var( --iq-charcoal );
	padding-bottom: env( safe-area-inset-bottom, 0px );
}

body.mrf-iq-noscroll .mrf-iq__map {
	flex: 1 1 auto;
	height: auto;
	aspect-ratio: auto;
	min-height: 0;
	border: 0;
	border-radius: 0;
}

body.mrf-iq-noscroll .mrf-iq__crosshair {
	top: 50%;
	z-index: 5;
}

body.mrf-iq-noscroll .mrf-iq__tracebar {
	flex: 0 0 auto;
	margin: 0;
	padding: 0.75rem 0.9rem 1rem;
	background: var( --iq-charcoal );
	color: #fff;
}

body.mrf-iq-noscroll .mrf-iq__area {
	color: #d8dde0;
	margin: 0 0 0.5rem;
}

body.mrf-iq-noscroll .mrf-iq__exit {
	display: block;
	position: absolute;
	top: calc( env( safe-area-inset-top, 0px ) + 0.6rem );
	right: 0.6rem;
	z-index: 5;
	padding: 0.5rem 0.9rem;
	border: 0;
	border-radius: 2px;
	background: rgba( 22, 26, 29, 0.82 );
	color: #fff;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
}

.mrf-iq__tracebtns--minor {
	margin-top: 0.5rem;
}

body.mrf-iq-noscroll .mrf-iq__tracebtns--minor .mrf-iq__btn--quiet {
	color: #d8dde0;
	border-color: rgba( 255, 255, 255, 0.28 );
	background: transparent;
}

body.mrf-iq-noscroll .mrf-iq__tracebtns--minor .mrf-iq__btn--quiet:disabled {
	opacity: 0.45;
}

.mrf-iq__edithint {
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	color: var( --iq-graphite );
}

body.mrf-iq-noscroll .mrf-iq__edithint {
	color: #b9c2c7;
}

/* Once corners are being edited the crosshair has nothing left to aim at. */
.mrf-iq--editing .mrf-iq__crosshair {
	display: none;
}

/* Choice cards ----------------------------------------------------------- */

.mrf-iq__subhead {
	margin: 1.75rem 0 0.75rem;
	font-size: 1.0625rem;
}

.mrf-iq__cards {
	display: grid;
	gap: 0.6rem;
	grid-template-columns: repeat( auto-fit, minmax( 13rem, 1fr ) );
	margin-bottom: 0.5rem;
}

.mrf-iq__card {
	display: block;
	position: relative;
	padding: 0.85rem 0.95rem;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	background: #fff;
	cursor: pointer;
}

.mrf-iq__card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.mrf-iq__card-title {
	display: block;
	font-weight: 700;
	margin-bottom: 0.15rem;
}

.mrf-iq__card-hint {
	display: block;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var( --iq-graphite );
}

.mrf-iq__card:has( input:checked ) {
	border-color: var( --iq-oxide );
	box-shadow: inset 3px 0 0 var( --iq-oxide );
	background: #fdf6f2;
}

.mrf-iq__card:has( input:focus-visible ) {
	outline: 2px solid var( --iq-charcoal );
	outline-offset: 2px;
}

/* Side by side ----------------------------------------------------------- */

.mrf-iq__compare {
	display: grid;
	gap: 0.75rem;
	grid-template-columns: repeat( auto-fit, minmax( 14rem, 1fr ) );
	margin: 0 0 1.75rem;
}

.mrf-iq__compare-item {
	padding: 1rem 1.1rem;
	background: var( --iq-bone );
	border-left: 3px solid var( --iq-oxide );
}

.mrf-iq__compare-item h3 {
	margin: 0 0 0.3rem;
	font-size: 0.9375rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var( --iq-graphite );
}

.mrf-iq__compare-price {
	margin: 0 0 0.35rem;
	font-size: 1.375rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

.mrf-iq__compare-note {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var( --iq-graphite );
}

/* Add-ons ---------------------------------------------------------------- */

.mrf-iq__addons {
	margin: 0 0 2rem;
}

.mrf-iq__addons h3 {
	margin: 0 0 0.75rem;
	font-size: 1.0625rem;
}

.mrf-iq__addon {
	display: flex;
	gap: 0.7rem;
	align-items: flex-start;
	padding: 0.75rem 0.9rem;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	margin-bottom: 0.5rem;
	cursor: pointer;
	background: #fff;
}

.mrf-iq__addon:has( input:checked ) {
	border-color: var( --iq-oxide );
	background: #fdf6f2;
}

.mrf-iq__addon input {
	margin-top: 0.25rem;
	flex: 0 0 auto;
}

.mrf-iq__addon-title {
	display: block;
	font-weight: 600;
}

.mrf-iq__addon-price {
	display: block;
	font-variant-numeric: tabular-nums;
	color: var( --iq-oxide );
	font-weight: 700;
}

.mrf-iq__addon-note {
	display: block;
	font-size: 0.8125rem;
	color: var( --iq-graphite );
	line-height: 1.45;
}

/* Kit contents ----------------------------------------------------------- */

.mrf-iq__materials {
	margin: 0 0 1.5rem;
}

.mrf-iq__materials h4 {
	margin: 0.9rem 0 0.35rem;
	font-size: 0.9375rem;
}

.mrf-iq__matlist {
	display: grid;
	grid-template-columns: minmax( 8rem, auto ) 1fr;
	gap: 0.2rem 1rem;
	margin: 0;
	font-size: 0.9375rem;
}

.mrf-iq__matlist dt {
	color: var( --iq-graphite );
}

.mrf-iq__matlist dd {
	margin: 0;
	font-variant-numeric: tabular-nums;
}

/* Magnifier, escape hatch, v3 ------------------------------------------- */

.mrf-iq__loupe {
	position: absolute;
	top: 14%;
	left: 50%;
	width: 132px;
	height: 132px;
	margin-left: -66px;
	border-radius: 50%;
	overflow: hidden;
	border: 3px solid #fff;
	box-shadow: 0 6px 18px rgba( 0, 0, 0, 0.45 );
	pointer-events: none;
	z-index: 7;
}

/* A crosshair in the middle of the magnifier, so it is obvious what is
   being placed rather than just what is nearby. */
.mrf-iq__loupe::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba( 0, 0, 0, 0.6 );
	pointer-events: none;
}

.mrf-iq__escape {
	margin: 0.6rem 0 0;
}

.mrf-iq__link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	font-size: 0.875rem;
	color: var( --iq-oxide );
	text-decoration: underline;
	cursor: pointer;
}

body.mrf-iq-noscroll .mrf-iq__link {
	color: #e8956b;
}

/* Automatic outline, v4 -------------------------------------------------- */

/* Why the customer is looking at the drag-a-box tool instead. Friendly, not
   an error: nothing went wrong that they need to fix. */
.mrf-iq__notice {
	margin: -0.5rem 0 1.25rem;
	padding: 0.75rem 0.95rem;
	max-width: 42em;
	background: var( --iq-bone );
	border-left: 3px solid var( --iq-graphite );
	font-size: 0.9375rem;
	line-height: 1.5;
}

.mrf-iq__confirm {
	margin: 0.25rem 0 0.75rem;
}

.mrf-iq__facts {
	margin: 0 0 1rem;
	max-width: 42em;
	font-size: 1.0625rem;
	line-height: 1.5;
	font-weight: 600;
}

.mrf-iq__confirmbtns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.mrf-iq__tapnote {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	color: var( --iq-graphite );
}

.mrf-iq__confirmed p {
	margin: 0.25rem 0 0.5rem;
	padding: 0.7rem 0.95rem;
	max-width: 42em;
	background: #fdf6f2;
	border-left: 3px solid var( --iq-oxide );
	font-weight: 600;
}

.mrf-iq__confirmed .mrf-iq__link {
	margin-left: 0.4rem;
	font-weight: 500;
}

.mrf-iq__datanote {
	margin: 0.5rem 0 0.25rem;
	max-width: 42em;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var( --iq-graphite );
}

/* The licence attribution: there, readable, and out of the way. */
.mrf-iq__credits {
	margin: 0 0 1rem;
	max-width: 48em;
	font-size: 0.75rem;
	line-height: 1.45;
	color: #5c6468;
}

.mrf-iq__credits a {
	color: inherit;
}

.mrf-iq__lines {
	margin: 0 0 0.6rem;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
	color: var( --iq-graphite );
}

#mrf-iq-result-note {
	margin: -1.25rem 0 1.75rem;
}

@media ( max-width: 480px ) {
	.mrf-iq__confirmbtns {
		flex-direction: column;
	}
}

/* Shorter map while the customer is only being asked "is this it?", so the
   answer buttons are in view without scrolling. */
.mrf-iq--confirming .mrf-iq__map {
	aspect-ratio: 16 / 9;
	max-height: 56vh;
	min-height: 260px;
}

@media ( max-width: 480px ) {
	.mrf-iq--confirming .mrf-iq__map {
		aspect-ratio: 1 / 1;
		max-height: 48vh;
	}
}

/* The fallback or adjust message, repeated under the map for when full
   screen on a phone has covered the one on the page. */
.mrf-iq__stagenote {
	display: none;
}

body.mrf-iq-noscroll .mrf-iq__stagenote {
	display: block;
	margin: 0 0 0.6rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #eef1f2;
}

/* Full screen, the bar under the map is charcoal too, so a charcoal Done
   button vanished into it and read as plain text. Make it the main action. */
body.mrf-iq-noscroll .mrf-iq__btn--done {
	flex: 1 1 100%;
	background: var( --iq-oxide );
	border-color: var( --iq-oxide );
	text-align: center;
}

body.mrf-iq-noscroll .mrf-iq__btn--done:hover:not( :disabled ),
body.mrf-iq-noscroll .mrf-iq__btn--done:focus-visible:not( :disabled ) {
	background: #a8431f;
	border-color: #a8431f;
}


/* 4.0.1 ------------------------------------------------------------------ */

/* Asked before a quick "Yes" on an outline that looks like part of a roof. */
.mrf-iq__nudge {
	margin: 1rem 0 0.75rem;
	padding: 1rem 1.1rem;
	max-width: 42em;
	background: #fdf6f2;
	border-left: 3px solid var( --iq-oxide );
}

.mrf-iq__nudge p {
	margin: 0 0 0.85rem;
	font-weight: 600;
	line-height: 1.5;
}

/* The roof the price is built on, under the price. */
.mrf-iq__roofline {
	margin: -0.6rem 0 1.1rem;
	font-size: 0.9375rem;
	color: var( --iq-graphite );
}

.mrf-iq__roofline .mrf-iq__link {
	font-size: inherit;
}

/* What the pitches look like: tap one to choose it. */
.mrf-iq__pitchpics {
	display: grid;
	grid-template-columns: repeat( 4, minmax( 0, 1fr ) );
	gap: 0.4rem;
	margin-top: 0.5rem;
}

.mrf-iq__pitchpic {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.1rem;
	padding: 0.4rem 0.25rem 0.45rem;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	background: #fff;
	color: var( --iq-charcoal );
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.mrf-iq__pitchpic svg {
	width: 100%;
	max-width: 60px;
	height: auto;
}

.mrf-iq__pitchroof {
	fill: var( --iq-oxide-light );
	stroke: var( --iq-oxide );
	stroke-width: 1.5;
	stroke-linejoin: round;
}

.mrf-iq__pitchwall {
	fill: var( --iq-bone );
	stroke: var( --iq-graphite );
	stroke-width: 1.2;
}

.mrf-iq__pitchname {
	font-size: 0.8125rem;
	font-weight: 700;
}

.mrf-iq__pitchhint {
	font-size: 0.75rem;
	color: var( --iq-graphite );
	text-align: center;
}

.mrf-iq__pitchpic[aria-pressed="true"] {
	border-color: var( --iq-oxide );
	background: #fdf6f2;
	box-shadow: inset 0 -3px 0 var( --iq-oxide );
}

.mrf-iq__pitchpic:focus-visible {
	outline: 2px solid var( --iq-charcoal );
	outline-offset: 2px;
}

/* The pitch question has its pictures under it, so it takes the whole row
   rather than a third of one. */
.mrf-iq__field:has( .mrf-iq__pitchpics ) {
	grid-column: 1 / -1;
}

.mrf-iq__field:has( .mrf-iq__pitchpics ) select,
.mrf-iq__pitchpics {
	max-width: 34rem;
}

.mrf-iq__field:has( .mrf-iq__pitchpics ) {
	order: -1;
}


/* 4.0.2 ------------------------------------------------------------------ */

/* Address suggestions: big rows, right under the box. */
.mrf-iq__row--address {
	position: relative;
}

.mrf-iq__suggestions {
	position: absolute;
	top: calc( 100% + 4px );
	left: 0;
	right: 0;
	z-index: 20;
	margin: 0;
	padding: 0.25rem 0;
	list-style: none;
	background: #fff;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	box-shadow: 0 10px 28px rgba( 22, 26, 29, 0.16 );
}

.mrf-iq__suggestion {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 0.6rem 0.9rem;
	border: 0;
	background: none;
	text-align: left;
	font: inherit;
	color: var( --iq-charcoal );
	cursor: pointer;
}

.mrf-iq__suggestions li[aria-selected="true"] .mrf-iq__suggestion,
.mrf-iq__suggestion:hover {
	background: #fdf6f2;
}

.mrf-iq__suggestion-main {
	display: block;
	font-weight: 600;
}

.mrf-iq__suggestion-sub {
	display: block;
	font-size: 0.875rem;
	color: var( --iq-graphite );
}

/* One big yes. "No" is there, but quieter. */
.mrf-iq__btn--big {
	display: block;
	width: 100%;
	max-width: 26rem;
	min-height: 56px;
	font-size: 1.125rem;
	text-align: center;
}

.mrf-iq__confirmalt {
	margin: 0.75rem 0 0;
}

.mrf-iq__confirmalt .mrf-iq__link {
	font-size: 1rem;
	padding: 0.5rem 0;
}

/* Which roof: a three-way toggle above the price. */
.mrf-iq__toggle {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	max-width: 30rem;
	margin: 0 0 1rem;
	border: 1px solid var( --iq-charcoal );
	border-radius: 2px;
	overflow: hidden;
}

.mrf-iq__toggle button {
	min-height: 48px;
	padding: 0.5rem 0.4rem;
	border: 0;
	border-left: 1px solid var( --iq-charcoal );
	background: #fff;
	color: var( --iq-charcoal );
	font: inherit;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.2;
	cursor: pointer;
}

.mrf-iq__toggle button:first-child {
	border-left: 0;
}

.mrf-iq__toggle button[aria-checked="true"] {
	background: var( --iq-charcoal );
	color: #fff;
}

.mrf-iq__toggle button:focus-visible {
	outline: 3px solid var( --iq-oxide );
	outline-offset: -3px;
}

/* The price, while a change is being worked out. */
.mrf-iq__result.is-updating .mrf-iq__price {
	opacity: 0.4;
	transition: opacity 0.15s;
}

/* What the price assumes, as tap-to-change chips. */
.mrf-iq__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
}

.mrf-iq__chip {
	min-height: 44px;
	padding: 0.45rem 0.85rem;
	border: 1px solid var( --iq-line );
	border-radius: 999px;
	background: #fff;
	color: var( --iq-charcoal );
	font: inherit;
	font-size: 0.9375rem;
	cursor: pointer;
}

.mrf-iq__chip::after {
	content: ' \25BE';
	color: var( --iq-graphite );
}

.mrf-iq__chip-key {
	color: var( --iq-graphite );
}

.mrf-iq__chip-val {
	font-weight: 700;
}

.mrf-iq__chip[aria-expanded="true"] {
	border-color: var( --iq-oxide );
	background: #fdf6f2;
}

.mrf-iq__chooser {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 6.5rem, 1fr ) );
	gap: 0.5rem;
	max-width: 36rem;
	margin: 0 0 1.25rem;
	padding: 0.75rem;
	background: var( --iq-bone );
	border-radius: 2px;
}

.mrf-iq__option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.15rem;
	min-height: 56px;
	padding: 0.5rem 0.4rem;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	background: #fff;
	color: var( --iq-charcoal );
	font: inherit;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}

.mrf-iq__option svg {
	width: 52px;
	height: auto;
}

.mrf-iq__option-label {
	font-weight: 700;
	font-size: 0.9375rem;
}

.mrf-iq__option-hint {
	font-size: 0.75rem;
	color: var( --iq-graphite );
}

.mrf-iq__option[aria-pressed="true"] {
	border-color: var( --iq-oxide );
	box-shadow: inset 0 -3px 0 var( --iq-oxide );
	background: #fdf6f2;
}

/* Outside the service area: the note and the form, nothing priced. */
.mrf-iq__outarea p {
	margin: 0 0 1.25rem;
	padding: 1rem 1.1rem;
	max-width: 40em;
	background: var( --iq-bone );
	border-left: 3px solid var( --iq-oxide );
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.5;
}

.mrf-iq--outarea .mrf-iq__excluded,
.mrf-iq--outarea .mrf-iq__addons,
.mrf-iq--outarea .mrf-iq__materials,
.mrf-iq--outarea .mrf-iq__footnote {
	display: none;
}

.mrf-iq__formnote {
	margin: 0;
	font-size: 0.875rem;
	color: var( --iq-graphite );
}

@media ( max-width: 480px ) {
	.mrf-iq__btn--big {
		max-width: none;
	}

	.mrf-iq__toggle button {
		font-size: 0.875rem;
	}
}

/* The suggestions belong under the box being typed in, not under the
   button that wraps below it on a phone. */
.mrf-iq__combo {
	position: relative;
	flex: 1 1 18rem;
	min-width: 0;
}

.mrf-iq__combo input[type="text"] {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1px solid var( --iq-line );
	border-radius: 2px;
	font-size: 1rem;
	font-family: inherit;
	background: #fff;
	color: inherit;
}

.mrf-iq__row--address {
	position: static;
}

.mrf-iq__chip {
	font-size: 0.875rem;
	min-height: 40px;
	padding: 0.4rem 0.8rem;
}

.mrf-iq ul.mrf-iq__lines {
	margin-left: 0;
	padding-left: 0;
}

/* The price, the tax line and the roof line read as one block. */
.mrf-iq__result .mrf-iq__price {
	margin: 0 0 0.15rem;
}

.mrf-iq__result .mrf-iq__tax {
	margin: 0 0 0.75rem;
}

.mrf-iq__result .mrf-iq__roofline {
	margin: 0 0 1rem;
}

.mrf-iq__result .mrf-iq__cta {
	margin: 0.5rem 0 1.75rem;
}

.mrf-iq__outarea + .mrf-iq__result + .mrf-iq__materials,
.mrf-iq--outarea .mrf-iq__form {
	margin-top: 0.5rem;
}
