/* MP Lookup for Elementor Forms. Inherits the site's font and text colour. */

.mpl-hidden-textarea {
	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;
	border: 0 !important;
	opacity: 0 !important;
}

/* Editor */
.mpl-editor {
	width: 100%;
	border: 1px solid #c4c4c4;
	border-radius: 4px;
	background: #fff;
	color: #1f1f1f;
	overflow: hidden;
}
.mpl-editor:focus-within {
	border-color: #4a4a4a;
	box-shadow: 0 0 0 2px rgba(74, 74, 74, 0.15);
}
.mpl-editor.mpl-invalid {
	border-color: #c62828;
}

.mpl-editor .mpl-toolbar {
	display: flex;
	gap: 4px;
	padding: 6px;
	border-bottom: 1px solid #e3e3e3;
	background: #f6f6f6;
}

/* High specificity so Elementor kit button styles don't take over. */
.elementor-form .mpl-editor .mpl-toolbar button.mpl-btn,
.mpl-editor .mpl-toolbar button.mpl-btn {
	box-sizing: border-box;
	width: 34px;
	height: 32px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 1px solid transparent;
	border-radius: 3px;
	background: transparent;
	color: #1f1f1f;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 16px;
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.elementor-form .mpl-editor .mpl-toolbar button.mpl-btn:hover {
	background: #e8e8e8;
	color: #1f1f1f;
}
.elementor-form .mpl-editor .mpl-toolbar button.mpl-btn:focus-visible {
	outline: 2px solid #1f1f1f;
	outline-offset: 1px;
}
.elementor-form .mpl-editor .mpl-toolbar button.mpl-btn[aria-pressed="true"] {
	background: #1f1f1f;
	border-color: #1f1f1f;
	color: #fff;
}
.mpl-btn-bold { font-weight: 700 !important; }
.mpl-btn-italic { font-style: italic !important; }
.mpl-btn-underline { text-decoration: underline !important; }

.mpl-editor-area {
	min-height: 240px;
	max-height: 60vh;
	overflow-y: auto;
	padding: 12px 14px;
	line-height: 1.6;
	outline: none;
	word-wrap: break-word;
}
.mpl-editor-area p { margin: 0 0 1em; }
.mpl-editor-area p:last-child { margin-bottom: 0; }

/* MP banner */
.mpl-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 20px;
	padding: 12px 16px;
	border-left: 4px solid #9e9e9e;
	border-radius: 4px;
	background: #f4f4f4;
	color: #1f1f1f;
}
.mpl-banner > div {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.mpl-banner img {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	object-fit: cover;
}
.mpl-banner .mpl-label { font-size: 0.85em; opacity: 0.75; }
.mpl-banner .mpl-name { font-size: 1.15em; }
.mpl-banner .mpl-meta { font-size: 0.95em; }
.mpl-banner a { color: inherit; text-decoration: underline; }

.mpl-found { border-left-color: #2e7d32; background: #eef6ee; }
.mpl-error { border-left-color: #c62828; background: #fdecea; }
.mpl-error > div { display: block; }
.mpl-loading { font-style: italic; }

/* Default-message source widget: hidden from visitors, still visible while editing in Elementor. */
body:not(.elementor-editor-active) .mpl-default-message {
	display: none !important;
}

/* Single-page steps (hidden only on the live page, never in the Elementor editor). */
body:not(.elementor-editor-active) .mpl-step-hidden {
	display: none !important;
}
/* Avoid a flash of the message step before the script has run. */
body:not(.elementor-editor-active):not(.mpl-steps-init) .mpl-step-message {
	display: none !important;
}
/* The postcode form's "sent successfully" message isn't needed. */
.mpl-step-postcode .elementor-message-success {
	display: none !important;
}
.mpl-banner .mpl-change {
	margin-left: auto;
	font-size: 0.9em;
	white-space: nowrap;
}
