/* Mauve Newsletter — pop-up display mode */
.ms-nl-popup {
	--ms-nlp-w: 560px;
	--ms-nlp-bg: #fbf8f4;
	--ms-nlp-radius: 18px;
	--ms-nlp-overlay: rgba(17, 17, 17, 0.55);
	--ms-nlp-close: currentColor;
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.ms-nl-popup[hidden] {
	display: none;
}

.ms-nl-popup.is-open {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.35s ease, visibility 0s;
}

.ms-nl-popup__overlay {
	position: absolute;
	inset: 0;
	background: var(--ms-nlp-overlay);
}

.ms-nl-popup__panel {
	position: relative;
	box-sizing: border-box;
	width: min(var(--ms-nlp-w), 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	padding: 52px 40px 30px;
	border-radius: var(--ms-nlp-radius);
	background: var(--ms-nlp-bg);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
	text-align: center;
	transform: translateY(18px) scale(0.98);
	transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ms-nl-popup.is-open .ms-nl-popup__panel {
	transform: none;
}

/* Plain controls: the kit's global button style (.elementor-kit-N button, 0-1-1)
   must not turn the × and the "later" link into filled buttons. */
.ms-nl-popup .ms-nl-popup__x,
.ms-nl-popup .ms-nl-popup__later {
	min-width: 0;
	min-height: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--ms-nlp-close);
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

/* A clear, generous × — 44px tap target. */
.ms-nl-popup .ms-nl-popup__x {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 44px;
	height: 44px;
	padding: 0;
	border-radius: 50%;
	font-size: 34px;
	font-weight: 300;
	line-height: 1;
}

.ms-nl-popup .ms-nl-popup__x:hover,
.ms-nl-popup .ms-nl-popup__x:focus-visible {
	background: rgba(0, 0, 0, 0.06);
	color: var(--ms-nlp-close);
}

.ms-nl-popup__heading {
	margin: 0 0 10px;
	font-size: 34px;
	line-height: 1.05;
}

.ms-nl-popup__body {
	margin: 0 0 22px;
}

.ms-nl-popup .ms-nl-popup__later {
	margin-top: 6px;
	padding: 6px 10px;
	border-radius: 0;
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ms-nl-popup .ms-nl-popup__later:hover,
.ms-nl-popup .ms-nl-popup__later:focus-visible {
	background: transparent;
	color: var(--ms-nlp-close);
	text-decoration-thickness: 2px;
}

.ms-nl-popup__expand {
	display: none;
}

/* Editor: rendered in place so it can be styled. */
.ms-nl-popup--editor {
	position: relative;
	inset: auto;
	z-index: auto;
	opacity: 1;
	visibility: visible;
	padding: 0;
}

.ms-nl-popup--editor .ms-nl-popup__overlay {
	display: none;
}

.ms-nl-popup--editor .ms-nl-popup__panel {
	transform: none;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

/* Phones: a small bar that slides up from the bottom, expands to the form. */
@media (max-width: 767px) {
	.ms-nl-popup--mobile-bar:not(.ms-nl-popup--editor) {
		inset: auto 0 0 0;
		padding: 0;
		align-items: flex-end;
	}

	.ms-nl-popup--mobile-bar:not(.ms-nl-popup--editor) .ms-nl-popup__overlay {
		display: none;
	}

	.ms-nl-popup--mobile-bar:not(.ms-nl-popup--editor) .ms-nl-popup__panel {
		width: 100%;
		max-height: 85vh;
		padding: 14px 56px 14px 16px;
		border-radius: var(--ms-nlp-radius) var(--ms-nlp-radius) 0 0;
		text-align: left;
		box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
		transform: translateY(105%);
	}

	.ms-nl-popup--mobile-bar.is-open:not(.ms-nl-popup--editor) .ms-nl-popup__panel {
		transform: none;
	}

	.ms-nl-popup--mobile-bar:not(.ms-nl-popup--editor) .ms-nl-popup__x {
		top: 50%;
		margin-top: -22px;
	}

	.ms-nl-popup--mobile-bar.is-expanded:not(.ms-nl-popup--editor) .ms-nl-popup__x {
		top: 8px;
		margin-top: 0;
	}

	.ms-nl-popup--mobile-bar:not(.ms-nl-popup--editor) .ms-nl-popup__heading {
		margin: 0;
		font-size: 20px;
	}

	.ms-nl-popup--mobile-bar:not(.ms-nl-popup--editor) .ms-nl-popup__expand {
		display: inline-block;
		margin-top: 8px;
		padding: 8px 16px;
		border: 0;
		border-radius: 999px;
		background: #ef3340;
		color: #fff;
		font: inherit;
		font-size: 14px;
		cursor: pointer;
	}

	.ms-nl-popup--mobile-bar:not(.is-expanded):not(.ms-nl-popup--editor) .ms-nl-popup__content {
		display: none;
	}

	.ms-nl-popup--mobile-bar.is-expanded:not(.ms-nl-popup--editor) .ms-nl-popup__expand {
		display: none;
	}

	.ms-nl-popup--mobile-bar.is-expanded:not(.ms-nl-popup--editor) .ms-nl-popup__panel {
		padding: 44px 20px 18px;
		text-align: center;
	}

	.ms-nl-popup--mobile-bar.is-expanded:not(.ms-nl-popup--editor) .ms-nl-popup__heading {
		margin-bottom: 8px;
		font-size: 26px;
	}

	.ms-nl-popup--mobile-modal .ms-nl-popup__panel {
		padding: 48px 20px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-nl-popup,
	.ms-nl-popup__panel {
		transition: none !important;
	}
}
