/* public (demand test): out-of-stock notify panel (cart, checkout) and the
   privacy-policy removal form. Colours come from the storefront tokens
   (mo-storefronts prints --mo-sf-* and remaps the theme presets). */
.mo-notify {
	margin: var(--wp--preset--spacing--lg, 24px) auto;
	max-width: 760px;
	padding-inline: 16px;
	box-sizing: border-box;
}
/* MO-317: product-page placement sits in the hero buy box, full column width. */
.mo-hero__buy .mo-notify {
	margin: 16px 0 0;
	max-width: none;
	padding-inline: 0;
}
.mo-notify__inner {
	border: 1px solid var(--mo-sf-cabin-line, var(--wp--preset--color--border, #33415a));
	border-top: 3px solid var(--mo-sf-accent, var(--wp--preset--color--accent-cobalt, #f4a93a));
	background: var(--wp--preset--color--surface-elevated, var(--wp--preset--color--surface, transparent));
	padding: clamp(20px, 4vw, 36px);
}
.mo-notify__eyebrow {
	margin: 0 0 8px;
	font-size: 0.8125rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mo-sf-accent, var(--wp--preset--color--accent-cobalt));
	font-weight: 700;
}
.mo-notify__title {
	margin: 0 0 10px;
	font-size: clamp(1.4rem, 3.4vw, 2rem);
	line-height: 1.15;
	color: var(--wp--preset--color--text-primary, inherit);
}
.mo-notify__text {
	margin: 0 0 20px;
	color: var(--wp--preset--color--text-secondary, inherit);
	max-width: 60ch;
}
.mo-notify__label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-primary, inherit);
}
.mo-notify__field {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.mo-notify__input {
	flex: 1 1 240px;
	min-height: 48px;
	padding: 0 14px;
	font: inherit;
	font-size: 1rem;
	color: var(--wp--preset--color--text-primary, inherit);
	background: var(--mo-sf-night-deep, var(--wp--preset--color--surface, #fff));
	border: 1px solid var(--mo-sf-cabin-line, var(--wp--preset--color--border, #888));
	border-radius: 0;
	box-sizing: border-box;
}
.mo-notify__input:focus-visible {
	outline: 2px solid var(--mo-sf-accent, var(--wp--preset--color--accent-cobalt));
	outline-offset: 2px;
}
.mo-notify__input[aria-invalid="true"] {
	border-color: var(--wp--preset--color--error, #e5484d);
}
.mo-notify__submit {
	flex: 0 0 auto;
	min-height: 48px;
	min-width: 140px;
}
.mo-notify__form.is-busy .mo-notify__submit {
	opacity: 0.7;
	pointer-events: none;
}
.mo-notify__check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 14px 0 0;
	min-height: 44px;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-secondary, inherit);
	cursor: pointer;
}
.mo-notify__check input {
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--mo-sf-accent, currentColor);
}
.mo-notify__msg {
	margin: 8px 0 0;
	min-height: 1.4em;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text-secondary, inherit);
}
.mo-notify__msg.is-error {
	color: var(--wp--preset--color--error-text, #ff8a8a);
	font-weight: 600;
}
.mo-notify__fine {
	margin: 6px 0 0;
	font-size: 0.8125rem;
	color: var(--wp--preset--color--text-muted, inherit);
}
.mo-notify__fine a,
.mo-notify__done-link {
	color: inherit;
	text-decoration: underline;
}
.mo-notify__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.mo-notify__done:focus {
	outline: none;
}
.mo-notify__done-title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--mo-sf-accent, var(--wp--preset--color--text-primary));
}
.mo-notify__done-text {
	margin: 0 0 12px;
	color: var(--wp--preset--color--text-secondary, inherit);
}
.mo-notify__form--remove {
	margin: 12px 0 24px;
	max-width: 560px;
}
@media (max-width: 480px) {
	.mo-notify__submit {
		flex: 1 1 100%;
	}
}
/* MO-318 r11 (Daniel: r10's home box was "long, tedious, not pretty"): the
   home_hero and home_final placements drop the card entirely and sit
   directly on the page. The product-page placement (.mo-hero__buy) is
   untouched -- it keeps the boxed look above. */
.mo-notify[data-mo-notify-placement="home_hero"],
.mo-notify[data-mo-notify-placement="home_final"] {
	max-width: 520px;
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__inner,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__inner {
	border: 0;
	background: transparent;
	padding: clamp(24px, 5vw, 48px) 0;
	text-align: center;
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__eyebrow,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__eyebrow {
	display: none;
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__title,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__title {
	font-size: clamp(1.15rem, 2.6vw, 1.5rem);
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__text,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__text {
	margin: 0 auto 18px;
	font-size: 0.9375rem;
}
.mo-notify__label--sr-only {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__field,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__field {
	gap: 0;
	max-width: 420px;
	margin: 0 auto;
	flex-wrap: nowrap;
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__input,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__input {
	border-radius: var(--wp--custom--radius--md) 0 0 var(--wp--custom--radius--md);
	border-right: 0;
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__submit,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__submit {
	border-radius: 0 var(--wp--custom--radius--md) var(--wp--custom--radius--md) 0;
	min-width: auto;
}
.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__fine,
.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__fine {
	margin-top: 10px;
}
@media (max-width: 480px) {
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__field,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__field {
		flex-wrap: wrap;
		max-width: none;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__input,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__input {
		border-radius: var(--wp--custom--radius--md);
		border-right: 1px solid var(--mo-sf-cabin-line, var(--wp--preset--color--border, #888));
		flex: 1 1 100%;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__submit,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__submit {
		border-radius: var(--wp--custom--radius--md);
		flex: 1 1 100%;
	}
}
/* MO-318 r13 (owner, 2026-10-02: desktop signup "too small, out of
   proportion"): desktop-only scale-up of the two home placements. Below
   1024px nothing changes. */
@media (min-width: 1024px) {
	.mo-notify[data-mo-notify-placement="home_hero"],
	.mo-notify[data-mo-notify-placement="home_final"] {
		max-width: 680px;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__inner,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__inner {
		padding: 28px 0;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__title,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__title {
		margin-bottom: 14px;
		font-size: 2.375rem;
		line-height: 1.12;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__text,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__text {
		max-width: none;
		margin-bottom: 24px;
		font-size: 1.0625rem;
		line-height: 1.6;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__field,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__field {
		max-width: 560px;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__input,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__input,
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__submit,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__submit {
		min-height: 52px;
	}
	.mo-notify[data-mo-notify-placement="home_hero"] .mo-notify__submit,
	.mo-notify[data-mo-notify-placement="home_final"] .mo-notify__submit {
		min-width: 150px;
	}
}
/* MO-317: lead mode, a product outside the pilot (no price, no form) and a
   cart with nothing to sign up for. */
.mo-closed-note {
	margin: 16px 0 0;
	padding: 16px 18px;
	border: 1px solid var(--mo-sf-cabin-line, var(--wp--preset--color--border, #33415a));
	border-left: 3px solid var(--mo-sf-accent, var(--wp--preset--color--accent-cobalt, #f4a93a));
}
.mo-closed-note__title {
	margin: 0 0 6px;
	font-weight: 700;
	color: var(--wp--preset--color--text-primary, inherit);
}
.mo-closed-note__text {
	margin: 0 0 6px;
	color: var(--wp--preset--color--text-secondary, inherit);
}
.mo-closed-note__text:last-child,
.mo-notify--closed .mo-notify__text:last-child {
	margin-bottom: 0;
}
.mo-sf-card__price--closed {
	font-size: 0.875rem;
	color: var(--wp--preset--color--text-secondary, inherit);
}
