/**
 * Finance Calculator — front-end styles.
 *
 * Intentionally tiny: the theme already styles the legacy shmac-*/mui-* class
 * names, which this plugin's markup preserves. Only the NEW deposit £/%
 * toggle is styled here; override freely from the theme.
 */

.pmc-deposit-toggle {
	display: inline-flex;
	margin-left: 8px;
	border: 1px solid currentColor;
	border-radius: 3px;
	overflow: hidden;
	vertical-align: middle;
}

.pmc-deposit-toggle-btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.75em;
	line-height: 1;
	padding: 4px 8px;
	cursor: pointer;
}

.pmc-deposit-toggle-btn + .pmc-deposit-toggle-btn {
	border-left: 1px solid currentColor;
}

.pmc-deposit-toggle-btn.is-active {
	background: #1b2a5e;
	color: #fff;
}

/* Deposit-mode explainer: the header %/£ switch is too small to be
   discovered on its own, so the same buttons appear here full-size with
   words attached. They share .pmc-deposit-toggle-btn, so the existing
   binding drives them and keeps every copy's active state in step. */

.pmc-deposit-hint {
	margin-top: 10px;
	padding: 12px 14px;
	background: #eef4fb;
	border: 1px solid #c9d8ec;
	border-left: 4px solid #1b2a5e;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.4;
}

.pmc-deposit-hint-text {
	display: block;
	font-weight: 700;
	color: #1b2a5e;
	margin-bottom: 8px;
}

.pmc-deposit-hint-btns {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.pmc-deposit-hint .pmc-deposit-toggle-btn {
	border: 1px solid #1b2a5e;
	border-radius: 4px;
	background: #fff;
	color: #1b2a5e;
	font-size: 14px;
	font-weight: 700;
	padding: 8px 14px;
}

.pmc-deposit-hint .pmc-deposit-toggle-btn.is-active {
	background: #1b2a5e;
	color: #fff;
}

/* In-page application step (inline apply mode). Inherits the theme's
   mui-form-* styling; only the employment checkbox rows need layout. */

.pmc-apply-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 6px 0;
	cursor: pointer;
}

.pmc-apply-check input {
	margin: 0;
	flex-shrink: 0;
}

.pmc-apply-field textarea.mui-form-control {
	resize: vertical;
	min-height: 72px;
}

.pmc-apply-error {
	margin-top: 8px;
}

/* Sticky "Your Quote" panel while the long application step is on screen
   (class toggled by calculator.js). align-self stops a stretched flex/grid
   column from making the panel full-height, which would defeat sticky.
   Themes can adjust the offset via --pmc-quote-sticky-top. */

.pmc-quote-sticky .quote-details {
	position: sticky;
	position: -webkit-sticky;
	top: var(--pmc-quote-sticky-top, 24px);
	align-self: flex-start;
}

/* Compact boat-listing calculator card ([pm_boat_calculator]). Structural
   styling, plus the card's own buttons — those used to rely on the theme's
   .c-btn, but a theme that scopes those styles to its own calculator markup
   left the card with unstyled controls. Colours are custom properties so a
   theme can still take them over. */

.pmc-boat-calc {
	--pmc-btn-bg: #74a57f;
	--pmc-btn-text: #fff;
	--pmc-btn-line: rgba(0, 0, 0, 0.18);

	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	padding: 20px 22px;
	max-width: 420px;
}

.pmc-bc-eyebrow {
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.12em;
	opacity: 0.65;
	margin: 0 0 4px;
}

.pmc-bc-provenance {
	font-size: 0.85em;
	opacity: 0.8;
	margin: 0 0 10px;
}

.pmc-bc-headline {
	font-size: 1.7em;
	font-weight: 700;
	margin: 0 0 14px;
}

.pmc-bc-field {
	margin-bottom: 14px;
}

.pmc-bc-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 4px;
}

.pmc-bc-label {
	font-weight: 600;
	font-size: 0.9em;
}

.pmc-bc-value {
	font-weight: 700;
}

/* Deposit: an exact amount, and nothing is priced until Calculate is pressed. */

.pmc-bc-deposit-entry {
	display: flex;
	align-items: stretch;
	gap: 8px;
	margin-top: 6px;
}

.pmc-bc-currency {
	display: flex;
	align-items: center;
	padding-left: 10px;
	padding-right: 2px;
	border-radius: 6px 0 0 6px;
	background: var(--pmc-bc-field-bg, rgba(255, 255, 255, 0.12));
	font-weight: 700;
}

.pmc-bc-deposit-input {
	flex: 1 1 auto;
	min-width: 0; /* or a long figure pushes the button off the card */
	margin: 0;
	padding: 9px 10px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: var(--pmc-bc-field-bg, rgba(255, 255, 255, 0.12));
	color: inherit;
	font: inherit;
	font-variant-numeric: tabular-nums;
}

/* The spinners step by 0.01 here, which is useless and makes the field
   narrower for no gain. */
.pmc-bc-deposit-input::-webkit-outer-spin-button,
.pmc-bc-deposit-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pmc-bc-deposit-input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

.pmc-bc-calculate {
	flex: 0 0 auto;
	padding: 9px 16px;
	border: 0;
	border-radius: 6px;
	background: var(--pmc-btn-bg, #74a57f);
	color: var(--pmc-btn-text, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.pmc-bc-calculate:hover { filter: brightness(1.1); }
.pmc-bc-calculate:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.pmc-bc-slider-bounds {
	display: flex;
	justify-content: space-between;
	font-size: 0.75em;
	opacity: 0.7;
}

.pmc-bc-terms {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 4px 0 6px;
}

.pmc-bc-term-btn {
	flex: 1 1 0;
	min-width: 48px;
	border: 1px solid currentColor;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.85em;
	font-weight: 600;
	border-radius: 6px;
	padding: 6px 0;
	cursor: pointer;
}

.pmc-bc-term-btn.is-active {
	background: #1b2a5e;
	border-color: #1b2a5e;
	color: #fff;
}

.pmc-bc-term-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pmc-bc-term-note {
	font-size: 0.78em;
	opacity: 0.7;
	margin: 0;
}

.pmc-bc-error {
	font-size: 0.8em;
	margin: 4px 0 0;
	color: #b32d2e;
}

.pmc-bc-error:empty {
	display: none;
}

.pmc-bc-figures {
	list-style: none;
	margin: 14px 0;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.pmc-bc-figures li {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	font-size: 0.9em;
}

.pmc-bc-figures li span:last-child {
	font-weight: 700;
}

/* Card buttons. Shaped here rather than left to the theme, so the card looks
   deliberate wherever it is placed. */
.pmc-boat-calc .pmc-bc-apply,
.pmc-boat-calc .pmc-bc-email-toggle,
.pmc-boat-calc .pmc-bc-email-send {
	display: inline-block;
	border: 1px solid transparent;
	border-radius: 6px;
	padding: 11px 20px;
	font: inherit;
	font-weight: 600;
	font-size: 0.95em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	background: var(--pmc-btn-bg);
	color: var(--pmc-btn-text);
}

.pmc-boat-calc .pmc-bc-apply:hover,
.pmc-boat-calc .pmc-bc-email-toggle:hover,
.pmc-boat-calc .pmc-bc-email-send:hover {
	filter: brightness(1.08);
	color: var(--pmc-btn-text);
}

/* The secondary action is the same shape, hollow — it must not compete with
   Apply, but it still has to read as a button. */
.pmc-boat-calc .pmc-bc-email-toggle {
	background: transparent;
	color: inherit;
	border-color: var(--pmc-btn-line);
}

.pmc-boat-calc .pmc-bc-email-toggle:hover {
	background: transparent;
	color: inherit;
	border-color: currentColor;
	filter: none;
}

.pmc-boat-calc .pmc-bc-apply:focus-visible,
.pmc-boat-calc .pmc-bc-email-toggle:focus-visible,
.pmc-boat-calc .pmc-bc-email-send:focus-visible {
	outline: 2px solid var(--pmc-btn-bg);
	outline-offset: 2px;
}

.pmc-bc-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 14px 0;
}

.pmc-bc-email-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	margin-bottom: 14px;
}

.pmc-bc-email-form .pmc-bc-email-send,
.pmc-bc-email-status {
	grid-column: 1 / -1;
	margin: 0;
}

.pmc-bc-input {
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 6px;
	padding: 8px 10px;
	font: inherit;
	width: 100%;
}

.pmc-bc-rep {
	font-size: 0.75em;
	line-height: 1.5;
	opacity: 0.75;
	margin: 0;
}

.pmc-boat-calc--enquire .pmc-bc-enquire-text {
	margin: 6px 0 14px;
}

/* Representative Example block ([pm_representative_example]). Layout only —
   colours and typefaces inherit from the theme. */

.pmc-rep-example {
	max-width: 760px;
	margin: 0 auto;
	text-align: center;
}

.pmc-rep-example-heading {
	margin-bottom: 0.75em;
}

.pmc-rep-example-payments {
	margin-bottom: 0.25em;
	font-weight: 600;
}

.pmc-rep-example-price {
	font-size: 2.4em;
	font-weight: 700;
	line-height: 1.15;
	margin: 0 0 0.4em;
}

.pmc-rep-example-apr {
	font-weight: 700;
	margin-bottom: 1.2em;
}

.pmc-rep-example-note {
	margin: 0.2em 0;
	opacity: 0.75;
}

.pmc-rep-example-subheading {
	margin: 1.6em 0 0.5em;
}

.pmc-rep-example-description {
	opacity: 0.85;
}

.pmc-rep-example-action {
	margin-top: 1.4em;
}

/* Explains a term the engine shortened — the cap belongs to the loan band, so
   it changes with the deposit and is otherwise invisible. */
.pmc-term-note {
	margin: 4px 0 0;
	font-size: 0.8em;
	opacity: 0.75;
}

.pmc-term-note:empty { display: none; }

/* Deposit shortfall, shown with the deposit control it refers to. */
.pmc-bc-deposit-notice {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
	padding: 11px 13px;
	border: 1px solid #f0d9a8;
	border-left: 3px solid #d59b1e;
	border-radius: 6px;
	background: #fdf8ee;
	font-size: 0.82em;
	line-height: 1.45;
	color: #5c4a1e;
}

.pmc-bc-deposit-notice[hidden] { display: none; }

.pmc-bc-deposit-fix {
	flex: none;
	border: 0;
	border-radius: 6px;
	padding: 8px 14px;
	background: #16233f;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.pmc-bc-deposit-fix:hover { filter: brightness(1.15); }
.pmc-bc-deposit-fix:focus-visible { outline: 2px solid #16233f; outline-offset: 2px; }

/* --- recalculating -------------------------------------------------------
   Dragging the slider fires a request per pause, and until one lands the card
   shows the previous deposit's figures beside the new slider position. Cover
   them rather than letting numbers and controls visibly disagree.

   The controls stay crisp: the visitor is holding the slider, and dimming what
   they are dragging would feel unresponsive. Static, not animated — the card
   can refresh several times in one drag. */

.pmc-boat-calc.is-loading { position: relative; }

.pmc-bc-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	line-height: 0;
	pointer-events: none;
}

.pmc-boat-calc.is-loading .pmc-bc-loading { display: block; }

.pmc-bc-loading img {
	display: block;
	width: auto;
	max-width: 140px;
	height: auto;
	opacity: .55;
	filter: grayscale(1);
}

/* Only the figures fade — never the slider or the term buttons. */
.pmc-boat-calc.is-loading .pmc-bc-headline,
.pmc-boat-calc.is-loading .pmc-bc-figures,
.pmc-boat-calc.is-loading .pmc-bc-term-note,
.pmc-boat-calc.is-loading .pmc-bc-rep,
.pmc-boat-calc.is-loading .pmc-bc-value {
	opacity: .12;
}

/* --- field tooltips ------------------------------------------------------
   The ⓘ markup existed but nothing ever displayed it — it relied on styling
   the old theme provided. Built here so the calculator explains itself
   wherever it is placed.

   CSS only, deliberately: a tooltip that needs JavaScript is a tooltip that
   fails when JavaScript does, and there is no behaviour here worth scripting.

   Shown on :focus as well as :hover, not :focus-visible — a tap gives focus
   but not focus-visible, so on a touch device the ceiling would otherwise be
   unreachable entirely. */

.shmac-tip {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 1;
	cursor: help;
	vertical-align: middle;
}

.shmac-tip .shmac-info {
	font-size: 0.9em;
	opacity: 0.65;
}

.shmac-tip:hover .shmac-info,
.shmac-tip:focus .shmac-info {
	opacity: 1;
}

.shmac-tip::after {
	content: attr(data-title);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	z-index: 20;

	/* Wide enough to read, narrow enough not to cover the field it explains. */
	width: max-content;
	max-width: 240px;
	padding: 8px 10px;
	border-radius: 6px;
	background: #16233f;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	white-space: normal;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

/* The arrow, drawn as a rotated square tucked under the bubble. */
.shmac-tip::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 4px);
	left: 50%;
	z-index: 21;
	width: 8px;
	height: 8px;
	transform: translateX(-50%) rotate(45deg);
	background: #16233f;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.shmac-tip:hover::after,
.shmac-tip:focus::after,
.shmac-tip:hover::before,
.shmac-tip:focus::before {
	opacity: 1;
	visibility: visible;
}

.shmac-tip:focus-visible {
	outline: 2px solid #16233f;
	outline-offset: 2px;
	border-radius: 50%;
}

/* Near the left edge the bubble would overflow the card; pin it inside. */
.shmac-amount .shmac-tip::after,
.shmac-down .shmac-tip::after,
.shmac-term .shmac-tip::after {
	left: 0;
	transform: none;
}

.shmac-amount .shmac-tip::before,
.shmac-down .shmac-tip::before,
.shmac-term .shmac-tip::before {
	left: 8px;
	transform: rotate(45deg);
}

/*
 * The rule that hides .quote-details on a direct application link is emitted
 * inline by templates/calculator.php, not here. See the note there: these sites
 * merge stylesheets into a hashed bundle, and a stale bundle would drop it.
 *
 * The pmc-apply-direct layout rules below are safe in this file: if the bundle
 * is behind, the form renders single column, which is merely less pretty.
 */

/* ---------------------------------------------------------------- *
 * Application form layout
 *
 * Numbered sections, and fields that pair up only when there is room.
 * With the Your Quote panel beside the form the theme gives the form
 * about half the page, so the fields stay in one column; when the panel
 * is absent (a direct application link, or the standalone [pm_application]
 * page) the form has the full width and they pair up.
 *
 * Widths are neutralised rather than the theme classes removed: the fields
 * keep o-grid__item and mui-form-group so anything else the theme hangs off
 * them still applies, and only the layout properties are overridden.
 * ---------------------------------------------------------------- */

.pmc-apply-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 4px 20px;
	align-items: start;
}

.pmc-apply-grid > .pmc-apply-field {
	width: auto;
	max-width: none;
	flex: none;
	padding-left: 0;
	padding-right: 0;
	margin-left: 0;
	margin-right: 0;
	min-width: 0; /* a grid item will not shrink below its content without this */
}

@media (min-width: 700px) {
	.pmc-apply-direct .pmc-apply-grid,
	.pmc-application .pmc-apply-grid {
		grid-template-columns: 1fr 1fr;
	}
}

.pmc-apply-grid > .pmc-apply-field--full {
	grid-column: 1 / -1;
}

/* Section headings ------------------------------------------------ */

.pmc-apply-section {
	margin-top: 28px;
}

.pmc-apply-section-title {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--pmc-apply-rule, rgba(0, 0, 0, 0.12));
	font-size: 1.15em;
}

.pmc-apply-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	background: var(--pmc-apply-accent, #123a6d);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	line-height: 1;
}

/* Pushed to the far end on a wide heading, wraps underneath when narrow. */
.pmc-apply-section-note {
	margin-left: auto;
	font-size: 0.8rem;
	font-weight: 400;
	opacity: 0.7;
}

.pmc-apply-lede {
	margin: 0 0 8px;
}

.pmc-apply-consent,
.pmc-apply-note,
.pmc-apply-reassure {
	font-size: 0.85rem;
	opacity: 0.75;
	margin: 6px 0 0;
}

.pmc-apply-consent {
	margin-bottom: 0;
}

/* Employment checkboxes ------------------------------------------- */

.pmc-apply-checks {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 8px;
}

@media (min-width: 700px) {
	.pmc-apply-direct .pmc-apply-checks,
	.pmc-application .pmc-apply-checks {
		grid-template-columns: 1fr 1fr;
	}
}

.pmc-apply-checks .pmc-apply-check {
	margin: 0;
	padding: 10px 12px;
	border-radius: 6px;
	background: var(--pmc-apply-field-bg, rgba(18, 58, 109, 0.06));
	cursor: pointer;
}

/* Joint applicant toggle ------------------------------------------ */

.pmc-apply-toggle-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.pmc-apply-toggle {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border-radius: 6px;
	background: var(--pmc-apply-field-bg, rgba(18, 58, 109, 0.06));
	cursor: pointer;
}

.pmc-apply-toggle-text {
	display: block;
}

.pmc-apply-toggle-title {
	display: block;
	font-weight: 600;
}

.pmc-apply-toggle-hint {
	display: block;
	font-size: 0.85rem;
	opacity: 0.75;
}

.pmc-apply-switch {
	position: relative;
	flex: 0 0 46px;
	width: 46px;
	height: 26px;
	margin-left: auto;
	border-radius: 13px;
	background: rgba(0, 0, 0, 0.25);
	transition: background 0.15s ease-in-out;
}

.pmc-apply-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease-in-out;
}

.pmc-apply-toggle-input:checked + .pmc-apply-toggle .pmc-apply-switch {
	background: var(--pmc-apply-accent, #123a6d);
}

.pmc-apply-toggle-input:checked + .pmc-apply-toggle .pmc-apply-switch::after {
	transform: translateX(20px);
}

/* Keyboard users get the same focus ring the theme gives inputs. */
.pmc-apply-toggle-input:focus-visible + .pmc-apply-toggle {
	outline: 2px solid var(--pmc-apply-accent, #123a6d);
	outline-offset: 2px;
}

/* The state itself. Hidden fields are skipped at submission, so switching
   this back off really does mean "no joint applicant". */
.pmc-apply-toggle-input:not(:checked) ~ .pmc-apply-joint {
	display: none;
}

.pmc-apply-submit {
	margin-top: 28px;
}

/*
 * Submit Application carries its own look.
 *
 * It has the theme's .c-btn c-btn--primary on it and still rendered as a bare
 * grey box, while the identically classed Continue Application button a few
 * lines above it came out green: Impreza scopes those styles to its own markup
 * and this group falls outside it. The boat card's buttons hit the same wall.
 *
 * Custom properties rather than fixed colours, so a theme that does want it can
 * still take it over without fighting specificity.
 */
.pmc-btn-apply-send {
	display: inline-block;
	padding: 14px 32px;
	border: 0;
	border-radius: 4px;
	background: var(--pmc-apply-submit-bg, #74a57f);
	color: var(--pmc-apply-submit-text, #fff);
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
	cursor: pointer;
	transition: filter 0.15s ease-in-out;
}

.pmc-btn-apply-send:hover { filter: brightness(1.08); }
.pmc-btn-apply-send:focus-visible {
	outline: 2px solid var(--pmc-apply-submit-bg, #74a57f);
	outline-offset: 3px;
}
.pmc-btn-apply-send[disabled] { opacity: 0.6; cursor: default; }

/* Radios, not checkboxes: one employment status at a time. */
.pmc-apply-checks .pmc-apply-check input[type="radio"] {
	margin: 0;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------- *
 * Compact quote summary, shown above the application where the full
 * Your Quote panel is not beside it.
 * ---------------------------------------------------------------- */

.pmc-apply-quote[hidden],
.pmc-apply-quote-risk[hidden] { display: none !important; }

.pmc-apply-quote {
	/* Breakpoints below follow the box, not the screen: the calculator can sit
	   in a narrow content column on a wide display. */
	container: pmc-apply-quote / inline-size;
	margin: 18px 0 8px;
	border-radius: 8px;
	background: var(--pmc-apply-quote-bg, #16266b);
	color: #fff;
}

/*
 * The quote itself (with a divider), then the figures in two equal columns of
 * six, values aligned to each column's right edge, with Recalculate under the
 * right-hand column. A figure column never narrows below its content, so no
 * label wraps; the box stacks (container query below) before that could bite.
 * Rules are scoped under .pmc-apply-quote so the built-in look's
 * ".pmc-calculator dl { margin-bottom }" cannot outrank them.
 */
.pmc-apply-quote .pmc-apply-quote-inner {
	display: grid;
	grid-template-columns: fit-content(280px) minmax(max-content, 1fr) minmax(max-content, 1fr);
	align-items: start;
	column-gap: 28px;
	row-gap: 16px;
	padding: 26px 30px 22px;
}

.pmc-apply-quote .pmc-apply-quote-lead {
	display: flex;
	flex-direction: column;
	align-self: stretch;
	min-width: 170px;
	padding-right: 28px;
	border-right: 1px solid rgba(255, 255, 255, 0.22);
}

/* Wider gutter between the two figure columns than beside the divider. */
.pmc-apply-quote .pmc-apply-quote-figures + .pmc-apply-quote-figures {
	margin-left: 56px;
}

.pmc-apply-quote .pmc-apply-quote-eyebrow {
	margin-bottom: 4px;
	color: var(--pmc-apply-quote-accent, #74A57E);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pmc-apply-quote .pmc-apply-quote-monthly {
	font-size: 36px;
	font-weight: 700;
	line-height: 1.1;
}

.pmc-apply-quote .pmc-apply-quote-per {
	font-size: 13px;
	opacity: 0.8;
	margin-bottom: 18px;
}

.pmc-apply-quote .pmc-apply-quote-figures {
	display: grid;
	grid-template-columns: auto auto;
	justify-content: space-between;
	column-gap: 16px;
	row-gap: 7px;
	margin: 0;
	padding: 0;
	font-size: 14px;
	line-height: 1.45;
}

.pmc-apply-quote .pmc-apply-quote-figures > div {
	display: contents;
}

/* Boat model / broker rows with nothing to show. !important because the rule
   above gives every row a display, and the browser's own [hidden] loses. */
.pmc-apply-quote .pmc-apply-quote-figures > div[hidden] {
	display: none !important;
}

/* A model name can run to 255 characters. Every other value stays on one
   line; these two wrap, and are capped so a long one cannot widen the
   column past the box. */
.pmc-apply-quote .pmc-apply-quote-figures .pmc-apply-quote-identity dd {
	max-width: 160px;
	white-space: normal;
	overflow-wrap: anywhere;
}

.pmc-apply-quote .pmc-apply-quote-figures dt {
	margin: 0;
	opacity: 0.78;
	font-weight: 400;
	white-space: nowrap;
}

.pmc-apply-quote .pmc-apply-quote-figures dd {
	margin: 0;
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

/* Under the right-hand column, flush right. */
.pmc-apply-quote .pmc-apply-quote-actions {
	grid-column: 3;
	justify-self: end;
}

.pmc-apply-quote .pmc-apply-quote-recalc {
	padding: 10px 22px;
	border: 1px solid var(--pmc-apply-quote-accent, #74A57E);
	border-radius: 2px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
}

.pmc-apply-quote .pmc-apply-quote-recalc[hidden] { display: none !important; }
.pmc-apply-quote .pmc-apply-quote-recalc:hover { background: rgba(255, 255, 255, 0.1); }

.pmc-apply-quote-risk p {
	margin: 0 0 6px;
	font-size: 0.82rem;
	opacity: 0.75;
}

/* Date of birth: three lists ------------------------------------- */

.pmc-apply-dob-parts {
	display: grid;
	grid-template-columns: 1fr 1.4fr 1fr;
	gap: 8px;
}

.pmc-apply-dob-parts select { min-width: 0; }

/* A £ that stays put while the field is typed in ----------------- */

.pmc-apply-prefixed {
	display: flex;
	align-items: stretch;
}

.pmc-apply-prefix {
	display: flex;
	align-items: center;
	padding: 0 4px 0 12px;
	border-radius: 6px 0 0 6px;
	background: var(--pmc-apply-field-bg, rgba(18, 58, 109, 0.06));
	font-weight: 600;
}

.pmc-apply-prefixed .mui-form-control {
	flex: 1 1 auto;
	min-width: 0;
	border-radius: 0 6px 6px 0;
}

/* What happens next ---------------------------------------------- */

.pmc-apply-next {
	margin: 26px 0 4px;
	padding: 16px 20px;
	border-radius: 8px;
	background: var(--pmc-apply-field-bg, rgba(18, 58, 109, 0.06));
}

.pmc-apply-next-title {
	margin: 0 0 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.78rem;
}

.pmc-apply-next-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pmc-apply-next-list li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 7px;
}

.pmc-apply-next-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--pmc-apply-accent, #123a6d);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
}

.pmc-apply-next-text strong { margin-right: 6px; }
.pmc-apply-next-text span { opacity: 0.78; }
.pmc-apply-next-link { display: inline-block; margin-top: 4px; font-size: 0.9em; text-decoration: underline; }

.pmc-apply-joint-notice {
	margin: 0 0 10px;
	padding: 10px 14px;
	border-left: 3px solid var(--pmc-apply-quote-bg, #16266b);
	background: rgba(22, 38, 107, 0.06);
	font-size: 0.9em;
}

/* Narrower: the quote across the top, the two figure columns beneath it. */
@container pmc-apply-quote (max-width: 1080px) {
	.pmc-apply-quote .pmc-apply-quote-inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: 40px;
	}
	.pmc-apply-quote .pmc-apply-quote-lead {
		grid-column: 1 / -1;
		padding: 0 0 16px;
		border-right: 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.22);
	}
	.pmc-apply-quote .pmc-apply-quote-figures + .pmc-apply-quote-figures {
		margin-left: 0;
	}
	.pmc-apply-quote .pmc-apply-quote-figures dt { white-space: normal; }
	.pmc-apply-quote .pmc-apply-quote-actions { grid-column: 1 / -1; }
}

/* Phone-sized: one column throughout. */
@container pmc-apply-quote (max-width: 560px) {
	.pmc-apply-quote .pmc-apply-quote-inner {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px 18px;
	}
	.pmc-apply-quote .pmc-apply-quote-actions { justify-self: stretch; }
	.pmc-apply-quote .pmc-apply-quote-recalc { width: 100%; }
}

/*
 * Consents Online hand-off (templates/partials/consent-handoff.php), shown in
 * place of the thank-you message once an application is in. The rules are
 * the prototype's (promarine-prototype.netlify.app/consent), renamed to
 * pmc-consent-* and prefixed with .pmc-application-success so a theme's own
 * h2, ul and a rules cannot outrank them. The font is the theme's.
 */
.pmc-application-success .pmc-consent{
	--pmc-consent-navy:#0A2872;
	--pmc-consent-green:#74A57E;
	--pmc-consent-green-dark:#5f8e69;
	--pmc-consent-field:#D5E9F8;
	--pmc-consent-ink:#424242;
	--pmc-consent-muted:#6d7a86;
	box-sizing:border-box;width:100%;max-width:976px;margin:0 auto;padding:16px 0 24px;
	color:var(--pmc-consent-ink);font-size:18px;text-align:left;
}
.pmc-application-success .pmc-consent *{box-sizing:border-box}
.pmc-application-success .pmc-consent .pmc-consent__title{font-size:35.84px;font-weight:700;letter-spacing:-1.08px;color:var(--pmc-consent-ink);margin:0 0 12px;line-height:1.15;text-transform:none}
.pmc-application-success .pmc-consent .pmc-consent__lede{max-width:62ch;margin:0 0 36px;font-size:19px;line-height:1.55}

.pmc-application-success .pmc-consent .pmc-consent__card{border:2px solid var(--pmc-consent-field);border-radius:10px;padding:32px 36px 30px;margin:0 0 28px;background:#fff}
.pmc-application-success .pmc-consent .pmc-consent__partner{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0 0 20px}
.pmc-application-success .pmc-consent .pmc-consent__logo{height:30px;width:auto;color:var(--pmc-consent-navy);display:block}
.pmc-application-success .pmc-consent .pmc-consent__partner small{font-size:13px;color:var(--pmc-consent-muted);line-height:1.4}
.pmc-application-success .pmc-consent .pmc-consent__card ul{margin:0 0 6px 2.5rem;padding:0;list-style-type:disc;max-width:70ch}
.pmc-application-success .pmc-consent .pmc-consent__card li{margin:0 0 .5rem;font-size:16px;line-height:1.5;list-style-type:disc}
.pmc-application-success .pmc-consent .pmc-consent__card li:last-child{margin-bottom:0}
.pmc-application-success .pmc-consent .pmc-consent__cta{margin-top:26px;padding-top:26px;border-top:1px solid var(--pmc-consent-field);display:flex;flex-direction:column;align-items:center;text-align:center}
.pmc-application-success .pmc-consent .pmc-consent__btn{display:inline-block;min-width:360px;text-align:center;border:0;border-radius:0;background:var(--pmc-consent-green);color:#fff;font-size:18px;font-weight:500;text-transform:uppercase;text-decoration:none;padding:18px 32px;line-height:1.2}
.pmc-application-success .pmc-consent .pmc-consent__btn:hover,
.pmc-application-success .pmc-consent .pmc-consent__btn:focus{background:var(--pmc-consent-green-dark);color:#fff}
.pmc-application-success .pmc-consent .pmc-consent__after{margin:12px 0 0;font-size:14px;color:var(--pmc-consent-muted);line-height:1.5;max-width:56ch}
.pmc-application-success .pmc-consent .pmc-consent__learn{display:inline-block;margin:14px 0 0;font-size:15px;color:var(--pmc-consent-navy);font-weight:600;text-decoration:underline;text-underline-offset:3px}

.pmc-application-success .pmc-consent .pmc-consent__asides{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin:0 0 28px}
.pmc-application-success .pmc-consent .pmc-consent__panel{border-radius:8px;padding:20px 22px;background:#f5f8fc;font-size:15.5px;line-height:1.55}
.pmc-application-success .pmc-consent .pmc-consent__panel h3{margin:0 0 6px;font-size:15px;font-weight:700;color:var(--pmc-consent-navy);text-transform:uppercase;letter-spacing:.8px;line-height:1.4}
.pmc-application-success .pmc-consent .pmc-consent__panel p{margin:0;font-size:15.5px;line-height:1.55}
.pmc-application-success .pmc-consent .pmc-consent__panel a{color:var(--pmc-consent-navy);font-weight:600;text-decoration:underline;text-underline-offset:3px}
.pmc-application-success .pmc-consent .pmc-consent__panel--help b{font-weight:700;color:var(--pmc-consent-navy);white-space:nowrap}

.pmc-application-success .pmc-consent .pmc-consent__smallprint{margin:0;font-size:13.5px;line-height:1.55;color:var(--pmc-consent-muted)}

@media (max-width:900px){
	.pmc-application-success .pmc-consent .pmc-consent__title{font-size:28px}
	.pmc-application-success .pmc-consent .pmc-consent__lede{font-size:17px;margin-bottom:28px}
	.pmc-application-success .pmc-consent .pmc-consent__card{padding:22px 20px}
	.pmc-application-success .pmc-consent .pmc-consent__btn{display:block;width:100%;min-width:0}
	.pmc-application-success .pmc-consent .pmc-consent__asides{grid-template-columns:1fr}
}
.pmc-application-success .pmc-consent .pmc-consent__panel--joint{background:#fdf3e0;color:#4a340d}
.pmc-application-success .pmc-consent .pmc-consent__panel--joint h3{color:#6b4d16}
.pmc-application-success .pmc-consent .pmc-consent__panel[hidden]{display:none}

/*
 * Joint applicant page (templates/partials/joint-fields.php). The form is the
 * main application's markup; these are the prototype's additions
 * (promarine-prototype.netlify.app/joint).
 */

/* The vessel and whose quote it is, under the monthly figure. */
.pmc-apply-quote .pmc-apply-quote-boat {
	display: block;
	margin-top: auto;
}
.pmc-apply-quote .pmc-apply-quote-boat b {
	display: block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.pmc-apply-quote .pmc-apply-quote-boat span {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	opacity: 0.68;
}

/* The address their invitation reached, shown but not editable. */
.pmc-joint .pmc-apply-input[readonly] {
	background: #e9f1f8;
	color: #5b6b7a;
	cursor: default;
}

.pmc-joint .pmc-joint-consent-check {
	align-items: flex-start;
	margin: 0;
	padding: 14px 16px;
	border-radius: 6px;
	background: var(--pmc-apply-field-bg, rgba(18, 58, 109, 0.06));
	font-size: 16.5px;
	line-height: 1.45;
}
.pmc-joint .pmc-joint-consent-check input {
	margin-top: 4px;
}

.pmc-joint .pmc-joint-notice p {
	margin: 44px 0 0;
	padding: 16px 20px;
	border: 2px solid #D5E9F8;
	border-radius: 8px;
	color: #6d7a86;
	font-size: 15px;
	line-height: 1.5;
}
.pmc-joint .pmc-joint-notice b { color: #424242; font-weight: 600; }
.pmc-joint .pmc-joint-notice a { color: #0A2872; }

/* A link we did not issue: ask for the one in their email. */
.pmc-joint .pmc-joint-prompt {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	margin: 0 0 40px;
	padding: 24px 28px;
	border: 2px solid #D5E9F8;
	border-radius: 8px;
}
.pmc-joint .pmc-joint-prompt-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #D5E9F8;
	color: #0A2872;
	font-size: 22px;
	font-weight: 700;
}
.pmc-joint .pmc-joint-prompt-text { flex: 1; min-width: 240px; }
.pmc-joint .pmc-joint-prompt-text h3 { margin: 0 0 4px; color: #0A2872; font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.pmc-joint .pmc-joint-prompt-text p { margin: 0; color: #6d7a86; font-size: 16px; line-height: 1.5; }
