/* MyHotips Lead Magnet Popup - uses the MyHotips theme's own CSS variables, with fallbacks. */
.mht-lm {
	--mht-navy: var(--color-dark, #2e3b55);
	--mht-text: var(--color-text, #2e3b55);
	--mht-muted: var(--color-text-muted, #6a7788);
	--mht-soft: var(--color-soft-muted, #f4f7fb);
	--mht-soft2: var(--color-surface-soft, #e8eef7);
	--mht-surface: var(--color-surface, #ffffff);
	--mht-gold: var(--mht-accent, var(--color-accent, #d4af37));
	--mht-gold-hover: #f4dc82;
	--mht-border: var(--border-color-light, rgba(106, 119, 136, 0.22));
	--mht-r-sm: var(--radius-sm, 10px);
	--mht-r-lg: var(--radius-lg, 18px);
	--mht-font: var(--font-body, Montserrat, Arial, sans-serif);
	--mht-display: var(--font-display, "Playfair Display", Georgia, serif);

	position: fixed;
	inset: 0;
	z-index: 2147483646;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: var(--mht-font);
	color: var(--mht-text);
	-webkit-font-smoothing: antialiased;
}
.mht-lm[hidden] { display: none; }
.mht-lm *, .mht-lm *::before, .mht-lm *::after { box-sizing: border-box; }

/* Faded + blurred site behind */
.mht-lm__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(46, 59, 85, 0.55);
	-webkit-backdrop-filter: blur(6px) saturate(0.85);
	backdrop-filter: blur(6px) saturate(0.85);
	opacity: 0;
	transition: opacity 0.45s ease;
}
.mht-lm.is-open .mht-lm__backdrop { opacity: 1; }

.mht-lm .mht-lm__dialog {
	position: relative;
	display: grid;
	grid-template-columns: 0.82fr 1.18fr;
	width: 100%;
	max-width: 720px;
	max-height: calc(100vh - 32px);
	overflow: hidden;
	background: var(--mht-surface);
	border-radius: var(--mht-r-lg);
	box-shadow: 0 30px 80px rgba(22, 34, 53, 0.35);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 0.4s ease 0.05s, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s;
	outline: none;
}
.mht-lm.is-open .mht-lm__dialog { opacity: 1; transform: none; }

.mht-lm .mht-lm__close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 30px;
	height: 30px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--mht-muted);
	font: 400 22px/1 var(--mht-font);
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.mht-lm .mht-lm__close:hover, .mht-lm .mht-lm__close:focus-visible { background: var(--mht-soft2); color: var(--mht-navy); }

/* Left: guide art */
.mht-lm .mht-lm__art {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 26px 22px;
	background:
		radial-gradient(circle at 78% 18%, rgba(212, 175, 55, 0.38), rgba(212, 175, 55, 0) 55%),
		var(--mht-navy);
	color: #fff;
}
.mht-lm .mht-lm__tag {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--mht-gold-hover);
}
.mht-lm .mht-lm__art .mht-lm__art-logo {
	align-self: flex-start;
	width: 136px;
	max-width: 75%;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	transform: none;
}
.mht-lm .mht-lm__art img:not(.mht-lm__art-logo) {
	display: block;
	width: 72%;
	max-width: 190px;
	height: auto;
	border-radius: 4px;
	box-shadow: 10px 14px 26px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
	transform: rotate(-3deg);
}
.mht-lm .mht-lm__price {
	align-self: flex-start;
	font-size: 11px;
	font-weight: 600;
	color: var(--mht-gold);
}

/* Right: copy + form */
.mht-lm .mht-lm__body {
	padding: 28px 28px 20px;
	overflow-y: auto;
}
.mht-lm .mht-lm__logo { display: none; height: 24px; width: auto; max-width: 180px; margin: 0 0 16px; }
.mht-lm .mht-lm__logo-text { margin: 0 0 18px; font-weight: 700; font-size: 15px; color: var(--mht-navy); }
.mht-lm .mht-lm__kicker {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #9b7b14;
}
.mht-lm .mht-lm__kicker::before { content: ""; width: 20px; height: 2px; background: var(--mht-gold); }
.mht-lm .mht-lm__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--mht-display);
	font-size: clamp(21px, 2.5vw, 27px);
	font-weight: 700;
	line-height: 1.12;
	color: var(--mht-navy);
	outline: none;
}
.mht-lm .mht-lm__title em { display: block; font-style: italic; font-weight: 500; color: #9b7b14; }
.mht-lm .mht-lm__sub { margin: 0 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--mht-muted); }

.mht-lm .mht-lm__list { list-style: none; margin: 0 0 14px; padding: 0; }
.mht-lm .mht-lm__list li {
	position: relative;
	margin: 0 0 5px;
	padding-left: 23px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--mht-text);
}
.mht-lm .mht-lm__list li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 1px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--mht-soft2);
	color: var(--mht-navy);
	font-size: 9px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.mht-lm .mht-lm__form { display: grid; gap: 8px; margin: 0; }
.mht-lm .mht-lm__row { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 8px; }
.mht-lm .mht-lm__check span { font-size: 12px; line-height: 1.45; }
.mht-lm .mht-lm__check em { font-style: normal; color: var(--mht-navy); font-weight: 600; }
.mht-lm .mht-lm__fine { line-height: 1.5; }
.mht-lm .mht-lm__consent {
	margin: 0;
	padding: 7px 10px;
	border-left: 3px solid var(--mht-gold);
	border-radius: 0 6px 6px 0;
	background: var(--mht-soft);
	font-size: 10.5px;
	line-height: 1.45;
	color: var(--mht-text);
}
.mht-lm .mht-lm__skip {
	display: block;
	width: 100%;
	margin: 4px 0 0;
	padding: 6px;
	border: 0;
	background: none;
	color: var(--mht-muted);
	font: 600 12px/1.4 var(--mht-font);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.mht-lm .mht-lm__skip:hover, .mht-lm .mht-lm__skip:focus-visible { color: var(--mht-navy); }
.mht-lm .mht-lm__input {
	width: 100%;
	min-height: 40px;
	height: auto;
	margin: 0;
	padding: 8px 12px;
	border: 1px solid var(--mht-border);
	border-radius: var(--mht-r-sm);
	background: var(--mht-soft);
	color: var(--mht-navy);
	font: 500 13.5px/1.4 var(--mht-font);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.mht-lm .mht-lm__input::placeholder { color: var(--mht-muted); opacity: 0.85; }
.mht-lm .mht-lm__input:focus {
	outline: none;
	background: var(--mht-surface);
	border-color: var(--mht-gold);
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
}
.mht-lm .mht-lm__input[aria-invalid="true"] { border-color: #c0392b; }

.mht-lm .mht-lm__check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--mht-muted);
	cursor: pointer;
}
.mht-lm .mht-lm__check input { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--mht-navy); flex: none; }

.mht-lm .mht-lm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 10px 16px;
	border: 0;
	border-radius: var(--mht-r-sm);
	background: var(--mht-gold);
	color: var(--mht-navy);
	font: 700 13.5px/1.2 var(--mht-font);
	text-decoration: none;
	cursor: pointer;
	box-shadow: var(--button-shadow, 0 4px 10px rgba(22, 34, 53, 0.08));
	transition: background 0.2s, transform 0.15s;
}
.mht-lm .mht-lm__btn:hover, .mht-lm .mht-lm__btn:focus-visible { background: var(--mht-gold-hover); color: var(--mht-navy); }
.mht-lm .mht-lm__btn:focus-visible { outline: 2px solid var(--mht-navy); outline-offset: 2px; }
.mht-lm .mht-lm__btn:active { transform: translateY(1px); }
.mht-lm .mht-lm__btn[disabled] { opacity: 0.7; cursor: progress; }

.mht-lm .mht-lm__error { min-height: 0; margin: 0; font-size: 13px; color: #c0392b; }
.mht-lm .mht-lm__error:empty { display: none; }
.mht-lm .mht-lm__fine { margin: 8px 0 0; font-size: 10.5px; color: var(--mht-muted); }
.mht-lm .mht-lm__fine a { color: var(--mht-muted); text-decoration: underline; }

.mht-lm .mht-lm__tick {
	width: 44px;
	height: 44px;
	margin: 6px 0 14px;
	border-radius: 50%;
	background: var(--mht-gold);
	color: var(--mht-navy);
	font-size: 21px;
	font-weight: 700;
	line-height: 44px;
	text-align: center;
}
.mht-lm .mht-lm__dl { margin-top: 6px; }

.mht-lm .mht-lm__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.mht-lm .mht-lm__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html.mht-lm-lock, html.mht-lm-lock body { overflow: hidden !important; }

/* Phones: bottom sheet, no cover art */
@media (max-width: 680px) {
	.mht-lm { align-items: flex-end; padding: 0; }
	.mht-lm .mht-lm__dialog {
		grid-template-columns: 1fr;
		max-height: 92vh;
		border-radius: var(--mht-r-lg) var(--mht-r-lg) 0 0;
		transform: translateY(100%);
	}
	.mht-lm .mht-lm__art { display: none; }
	.mht-lm .mht-lm__logo { display: block; }
	.mht-lm .mht-lm__body { padding: 22px 18px calc(16px + env(safe-area-inset-bottom)); }
	.mht-lm .mht-lm__title { font-size: 21px; }
	.mht-lm .mht-lm__title em { display: inline; }
	.mht-lm .mht-lm__list { display: none; }
	.mht-lm .mht-lm__row { grid-template-columns: 1fr; }
}

/* Short laptop screens: drop the bullet list and tighten up so everything fits */
@media (max-height: 700px) and (min-width: 681px) {
	.mht-lm .mht-lm__list { display: none; }
	.mht-lm .mht-lm__body { padding-top: 22px; padding-bottom: 16px; }
	.mht-lm .mht-lm__art img:not(.mht-lm__art-logo) { max-width: 160px; }
}

@media (prefers-reduced-motion: reduce) {
	.mht-lm .mht-lm__backdrop, .mht-lm .mht-lm__dialog { transition: none; }
}

/* [mht_guide_button] - a button in the article that opens the popup */
.mht-lm-button-wrap { margin: 1.2em 0; }
a.mht-lm-button,
a.mht-lm-button:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 22px;
	border-radius: var(--radius-sm, 10px);
	background: var(--color-accent, #d4af37);
	color: var(--color-dark, #2e3b55);
	font: 700 15px/1.2 var(--font-body, Montserrat, Arial, sans-serif);
	text-decoration: none;
	box-shadow: 0 4px 10px rgba(22, 34, 53, 0.12);
	transition: background 0.2s, transform 0.15s;
}
a.mht-lm-button:hover,
a.mht-lm-button:focus-visible { background: #f4dc82; color: var(--color-dark, #2e3b55); }
a.mht-lm-button:focus-visible { outline: 2px solid var(--color-dark, #2e3b55); outline-offset: 2px; }
