/* "Other" master tool: the notice under the WAPF select, and its dialog. */

.at-mlr-notice {
	margin: 8px 0 0;
	padding: 9px 12px;
	background: #fffbea;
	border: 1px solid #f3dc7a;
	border-radius: 6px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #4a3b00;
}

.at-mlr-notice__link {
	font-weight: 700;
	color: #0f172a;
	text-decoration: underline;
}

.at-mlr-notice__link:hover,
.at-mlr-notice__link:focus {
	color: #0f172a;
	text-decoration: none;
	background: #FFEE00;
}

/* ---------- dialog ---------- */

body.at-mlr-open {
	overflow: hidden;
}

.at-mlr {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.at-mlr[hidden] {
	display: none;
}

.at-mlr__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 8, 8, 0.62);
}

.at-mlr__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	border-radius: 14px;
	padding: 24px 22px 20px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.at-mlr__x {
	position: absolute;
	top: 10px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px 8px;
}

.at-mlr__x:hover {
	color: #0f172a;
}

.at-mlr__title {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.25;
	color: #0f172a;
}

.at-mlr__lead {
	margin: 0 0 16px;
	font-size: 13px;
	line-height: 1.55;
	color: #64748b;
}

.at-mlr__row {
	display: block;
	margin: 0 0 12px;
}

.at-mlr__row > span {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: #334155;
}

.at-mlr__row input,
.at-mlr__row textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 11px;
	border: 1px solid #cbd5e1;
	border-radius: 7px;
	font-size: 14px;
	font-family: inherit;
	color: #0f172a;
	background: #fff;
}

.at-mlr__row input:focus,
.at-mlr__row textarea:focus {
	outline: 2px solid #FFEE00;
	outline-offset: 0;
	border-color: #0b0b0b;
}

/* Off-screen rather than display:none — a bot reading the DOM still sees it. */
.at-mlr__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.at-mlr__captcha {
	margin: 4px 0 12px;
}

.at-mlr__msg {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.5;
	min-height: 1em;
	color: #475569;
}

.at-mlr__msg--error {
	color: #b42318;
	font-weight: 600;
}

.at-mlr__msg--ok {
	color: #15803d;
	font-weight: 600;
}

.at-mlr__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	align-items: center;
}

.at-mlr__cancel {
	border: 1px solid #cbd5e1;
	background: #fff;
	color: #334155;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
}

.at-mlr__send {
	border: 0;
	background: #FFEE00;
	color: #0b0b0b;
	font-weight: 800;
	padding: 11px 20px;
	border-radius: 999px;
	cursor: pointer;
	font-size: 14px;
}

.at-mlr__send[disabled] {
	opacity: 0.6;
	cursor: default;
}

@media (max-width: 480px) {
	.at-mlr__dialog {
		padding: 20px 16px 16px;
	}

	.at-mlr__actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}
}
