.creator-woo-newsletter-popup[hidden] {
	display: none;
}

.creator-woo-newsletter-popup {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(15, 23, 42, 0.48);
}

.creator-woo-newsletter-popup__panel {
	position: relative;
	width: min(100%, 320px);
	max-height: calc(100vh - 36px);
	overflow: auto;
	padding: 25px 26px 28px;
	border-radius: 8px;
	background: var(--creator-woo-popup-bg, #fff);
	box-shadow: 0 26px 60px rgba(15, 23, 42, 0.16);
	color: var(--creator-woo-popup-text, #172033);
	--creator-woo-popup-accent: #6f4bd8;
	--creator-woo-popup-button: var(--creator-woo-popup-accent);
	text-align: center;
}

.creator-woo-newsletter-popup__logo {
	display: block;
	box-sizing: border-box;
	max-width: 160px;
	max-height: 58px;
	height: auto;
	width: auto;
	margin: 0 auto 12px;
	object-fit: contain;
	object-position: center;
}

.creator-woo-newsletter-popup__mark {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin: 0 auto -5px;
	border-radius: 50%;
	background: rgba(20, 184, 166, 0.16);
	color: var(--creator-woo-popup-accent, #7c5ce6);
	font-size: 24px;
}

.creator-woo-newsletter-popup__rule {
	width: calc(100% + 46px);
	height: 7px;
	margin: 0 -23px 18px;
	border-radius: 999px 999px 0 0;
	background: linear-gradient(90deg, var(--creator-woo-popup-accent, #7c5ce6), #f7c76a);
}

.creator-woo-newsletter-popup__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 auto 13px;
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(20, 184, 166, 0.1);
	color: #7f91a8;
	font-size: 12px;
	font-weight: 850;
	text-transform: uppercase;
}

.creator-woo-newsletter-popup__badge span {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #f7c76a;
}

.creator-woo-newsletter-popup__panel h2 {
	position: relative;
	margin: 0 0 8px;
	padding-left: 12px;
	color: var(--creator-woo-popup-text, #172033);
	font-size: 14px;
	line-height: 1.35;
	text-align: left;
}

.creator-woo-newsletter-popup__panel h2::before {
	content: "";
	position: absolute;
	top: 2px;
	left: 0;
	width: 3px;
	height: 18px;
	border-radius: 999px;
	background: #fbbf24;
}

.creator-woo-newsletter-popup__panel p {
	margin: 0 0 16px;
	color: color-mix(in srgb, var(--creator-woo-popup-text, #172033) 62%, #94a3b8);
	font-size: 12px;
	line-height: 1.45;
	text-align: center;
}

.creator-woo-newsletter-popup__close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 999px;
	background: #f3f4f6;
	color: #111827;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.creator-woo-newsletter-form label {
	display: block;
	color: color-mix(in srgb, var(--creator-woo-popup-text, #172033) 64%, #64748b);
	font-size: 10px;
	font-weight: 700;
	text-align: left;
}

.creator-woo-newsletter-form input[type="text"],
.creator-woo-newsletter-form input[type="email"] {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 36px;
	min-height: 36px;
	margin: 0 0 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	border-radius: 6px;
	background: #0b1120;
	color: #f8fafc;
	padding: 8px 12px;
	font-size: 12px;
}

.creator-woo-newsletter-form input::placeholder {
	color: #75859a;
	opacity: 1;
}

.creator-woo-newsletter-form input[type="checkbox"] {
	margin-right: 6px;
	vertical-align: top;
}

.creator-woo-newsletter-form__phone,
.creator-woo-newsletter-form__phone label,
.creator-woo-newsletter-form__hint {
	display: block;
	clear: both;
	width: 100%;
	max-width: 100%;
}

.creator-woo-newsletter-form__hint {
	display: none;
}

.creator-woo-newsletter-form .button,
.creator-woo-newsletter-form button {
	width: 100%;
	min-height: 32px;
	border: 0;
	border-radius: 6px;
	background: var(--creator-woo-popup-button, var(--creator-woo-popup-accent, #6f4bd8));
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
}

.creator-woo-popup-success {
	position: relative;
	padding-top: 6px;
	text-align: center;
}

.creator-woo-popup-success::before {
	content: "";
	position: absolute;
	inset: -22px -22px auto;
	height: 7px;
	border-radius: 8px 8px 0 0;
	background: linear-gradient(90deg, #0f766e, #f6b84a);
}

.creator-woo-popup-success__badge {
	display: inline-flex;
	margin: 0 auto 14px;
	padding: 8px 12px;
	border-radius: 999px;
	background: #e9f6f3;
	color: #0f766e;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.creator-woo-popup-success h2 {
	margin: 0 32px 10px;
	color: #111827;
	font-size: clamp(28px, 7vw, 38px);
	font-weight: 900;
	line-height: 1.08;
}

.creator-woo-popup-success p:not(.creator-woo-popup-success__badge) {
	max-width: 360px;
	margin-right: auto;
	margin-left: auto;
	color: #475569;
	font-size: 16px;
}

.creator-woo-popup-success__code {
	margin: 18px 0 12px;
	padding: 18px;
	border: 1px dashed #8ccfca;
	border-radius: 10px;
	background: repeating-linear-gradient(135deg, #f8ffff 0, #f8ffff 10px, #eefbf9 10px, #eefbf9 20px);
	color: #0f766e;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: 0.05em;
	text-align: center;
}

.creator-woo-popup-success__copy {
	width: 100%;
	min-height: 44px;
	border: 1px solid #0f766e;
	border-radius: 6px;
	background: #0f766e;
	color: #fff;
	font-weight: 850;
	cursor: pointer;
}

.creator-woo-popup-success__copy:hover,
.creator-woo-popup-success__copy:focus {
	background: #0b5f59;
	color: #fff;
}

@media (max-width: 480px) {
	.creator-woo-newsletter-popup {
		align-items: center;
		padding: 14px;
	}

	.creator-woo-newsletter-popup__panel {
		width: min(calc(100vw - 28px), 340px);
		max-height: calc(100vh - 28px);
		padding: 20px 24px 22px;
	}
}

/* Public popup proportion pass: wider on desktop, calmer on phones. */
.creator-woo-newsletter-popup__panel {
	box-sizing: border-box;
	width: min(calc(100vw - 36px), 360px);
	padding: 22px 26px 24px;
}

.creator-woo-newsletter-popup__panel--custom {
	width: min(calc(100vw - 36px), 360px);
}

.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset--split {
	min-width: 0;
}

.creator-woo-newsletter-popup__panel h2 {
	overflow-wrap: anywhere;
}

.creator-woo-newsletter-popup__logo {
	max-width: 132px;
	max-height: 50px;
	margin-bottom: 10px;
}

.creator-woo-newsletter-form p {
	margin-bottom: 9px;
}

.creator-woo-newsletter-form input[type="text"],
.creator-woo-newsletter-form input[type="email"] {
	height: 34px;
	min-height: 34px;
	margin-bottom: 8px;
}

.creator-woo-newsletter-form .button,
.creator-woo-newsletter-form button {
	background: var(--creator-woo-popup-button, var(--creator-woo-popup-accent, #14b8a6)) !important;
	border-color: var(--creator-woo-popup-button, var(--creator-woo-popup-accent, #14b8a6)) !important;
	color: #fff !important;
}

.creator-woo-newsletter-form p > label:has(input[type="checkbox"]) {
	display: grid;
	grid-template-columns: 18px minmax(0, 1fr);
	align-items: start;
	gap: 8px;
	color: color-mix(in srgb, var(--creator-woo-popup-text, #172033) 72%, #475569);
	font-size: 11px;
	line-height: 1.35;
}

.creator-woo-newsletter-form p > label:has(input[type="checkbox"]) input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
}

.creator-woo-newsletter-form p > label:has(input[type="checkbox"]) br {
	display: none;
}

@media (max-width: 480px) {
	.creator-woo-newsletter-popup__panel,
	.creator-woo-newsletter-popup__panel--custom {
		width: min(calc(100vw - 28px), 340px);
		max-height: calc(100vh - 28px);
		padding: 20px 24px 22px;
	}

	.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset--split {
		min-width: 0;
	}
}

/* Lead magnet popup: keep the split preset inside mobile and narrow previews. */
.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset--split {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

@media (max-width: 640px) {
	.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset--split {
		display: grid;
		grid-template-columns: 1fr !important;
		gap: 16px;
	}

	.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset__media {
		min-height: 170px !important;
	}

	.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset__content {
		min-width: 0;
	}

	.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset--split h2,
	.creator-woo-newsletter-popup__panel--custom .creator-woo-popup-preset--split p {
		margin-right: 0 !important;
	}
}
