.leonlab-newsletter-popup__root {
	position: relative;
}

.leonlab-newsletter-popup__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-weight: 700;
	line-height: 1;
}

.leonlab-newsletter-popup__trigger--button {
	padding: 12px 16px;
	border-radius: 999px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	background: rgba(15, 23, 42, 0.95);
	color: #ffffff;
	box-shadow: 0 12px 26px rgba(2, 6, 23, 0.18);
	cursor: pointer;
}

.leonlab-newsletter-popup-trigger--secondary .leonlab-newsletter-popup__trigger--button {
	background: rgba(255, 255, 255, 0.9);
	color: #0f172a;
}

.leonlab-newsletter-popup-trigger--ghost .leonlab-newsletter-popup__trigger--button {
	background: transparent;
	color: inherit;
	box-shadow: none;
}

.leonlab-newsletter-popup__trigger--link {
	border: 0;
	background: transparent;
	color: inherit;
	text-decoration: underline;
	padding: 0;
	cursor: pointer;
}

.leonlab-newsletter-popup__modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
}

.leonlab-newsletter-popup__modal.is-open {
	display: block;
}

.leonlab-newsletter-popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(2, 6, 23, 0.72);
}

.leonlab-newsletter-popup__dialog {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(680px, calc(100vw - 24px));
	max-height: calc(100vh - 24px);
	overflow: auto;
	background: #ffffff;
	color: #0f172a;
	border-radius: 18px;
	box-shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
	border: 1px solid rgba(148, 163, 184, 0.35);
}

.leonlab-newsletter-popup__header {
	position: sticky;
	top: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
	backdrop-filter: blur(6px);
	padding: 16px 18px;
	border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.leonlab-newsletter-popup__title {
	margin: 0 34px 6px 0;
	font-size: 1.25em;
	line-height: 1.2;
}

.leonlab-newsletter-popup__subtitle {
	margin: 0;
	opacity: 0.75;
}

.leonlab-newsletter-popup__close {
	position: absolute;
	right: 12px;
	top: 12px;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid rgba(148, 163, 184, 0.35);
	background: rgba(255, 255, 255, 0.9);
	color: #0f172a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.leonlab-newsletter-popup__content {
	padding: 18px;
}
