/* Newsletter popup */
.nl-popup[hidden],
.nl-popup [hidden] {
	display: none !important;
}

.nl-popup {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.nl-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 26, 20, 0.55);
	backdrop-filter: blur(4px);
}

.nl-popup__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 36px 32px 24px;
	background: var(--card, #ffffff);
	border: 1px solid var(--border, #e5ebe7);
	border-radius: var(--radius-lg, 16px);
	box-shadow: var(--shadow-lg);
	color: var(--body, #3b4a42);
	animation: nl-in 0.35s var(--ease, ease) both;
}

@keyframes nl-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
}

.nl-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: var(--muted, #6b7a72);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
}

.nl-popup__close:hover {
	color: var(--text, #0f1a14);
	background: var(--mint, #eaf7ef);
}

.nl-popup__eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--green-soft, #e3f5ea);
	color: var(--green-ink, #0b5a30);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nl-popup__title {
	margin: 0 0 10px;
	font-family: var(--font-display, inherit);
	font-size: 26px;
	line-height: 1.2;
	color: var(--text, #0f1a14);
}

.nl-popup__text {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.55;
}

.nl-popup__row {
	display: flex;
	gap: 10px;
}

.nl-popup__row input[type="email"] {
	flex: 1;
	min-width: 0;
	padding: 12px 14px;
	background: #f3f6f4;
	border: 1px solid var(--border, #e5ebe7);
	border-radius: var(--radius-sm, 8px);
	color: var(--text, #0f1a14);
	font: inherit;
}

.nl-popup__row input[type="email"]:focus {
	outline: 2px solid var(--green, #15994f);
	outline-offset: 1px;
}

.nl-popup__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nl-popup__msg {
	min-height: 20px;
	margin: 8px 0 0;
	font-size: 13px;
	color: var(--muted, #6b7a72);
}

.nl-popup__msg.is-error {
	color: var(--red-ink, #b91c1c);
}

.nl-popup__legal {
	margin: 10px 0 0;
	font-size: 12px;
	color: var(--faint, #9aa8a0);
}

html.nl-open {
	overflow: hidden;
}

@media (max-width: 480px) {
	.nl-popup__box {
		padding: 32px 20px 20px;
	}

	.nl-popup__row {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nl-popup__box {
		animation: none;
	}
}
