.cnp-popup-root {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	pointer-events: none;
}

.cnp-popup-root.is-visible {
	pointer-events: auto;
}

.cnp-popup-mask {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.35s ease;
}

.cnp-popup-root.is-visible .cnp-popup-mask {
	opacity: 1;
}

.cnp-popup {
	position: relative;
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 20px;
	padding: 28px 32px 24px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px) scale(0.97);
	transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.cnp-popup-root.is-visible .cnp-popup {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.cnp-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	cursor: pointer;
	color: #94a3b8;
	padding: 0;
	transition: color 0.2s;
	z-index: 2;
}

.cnp-popup__close:hover {
	color: #475569;
}

.cnp-popup__close svg {
	width: 18px;
	height: 18px;
}

.cnp-popup__illustration {
	margin: 0 auto 8px;
	height: 120px;
}

.cnp-popup__gift-svg {
	width: 100%;
	height: 100%;
	display: block;
}

.cnp-popup__badge {
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 600;
	color: #f97316 !important;
	letter-spacing: 0.01em;
}

.cnp-popup__headline {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.35;
	color: #0f2744 !important;
	margin: 0 0 12px;
	padding: 0 8px;
}

.cnp-popup__highlight {
	color: #dc2626 !important;
	font-weight: 800;
}

.cnp-popup__hint {
	font-size: 14px;
	line-height: 1.5;
	color: #64748b !important;
	margin: 0 0 16px;
	padding: 0 4px;
}

.cnp-popup__form {
	margin-bottom: 18px;
	text-align: left;
}

.cnp-popup__email {
	display: block;
	width: 100%;
	padding: 14px 16px;
	font-size: 15px;
	line-height: 1.4;
	color: #0f172a;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 12px;
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.cnp-popup__email::placeholder {
	color: #94a3b8;
}

.cnp-popup__email:focus {
	border-color: #f97316;
	box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.cnp-popup__email.is-invalid {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.cnp-popup__error {
	margin: 8px 0 0;
	font-size: 13px;
	color: #dc2626 !important;
}

.cnp-popup__btns {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	justify-content: center;
	gap: 10px;
	margin-bottom: 16px;
}

.cnp-popup__btn {
	flex: 1 1 0;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 10px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	border-radius: 12px;
	cursor: pointer;
	transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
	white-space: normal;
	text-align: center;
	box-sizing: border-box;
}

@media (min-width: 850px) {
	.cnp-popup__btn {
		font-size: 12px;
		line-height: 1.35;
		padding: 11px 8px;
	}

	.cnp-popup__btn--primary {
		flex: 1.35 1 0;
	}
}

.cnp-popup__btn:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.cnp-popup__btn--primary {
	color: #fff !important;
	background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #ea580c 100%);
	border: none;
	box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.cnp-popup__btn--primary:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(249, 115, 22, 0.4);
}

.cnp-popup__btn--secondary {
	color: #0f2744 !important;
	background: #fff;
	border: 1.5px solid #0f2744;
}

.cnp-popup__btn--secondary:hover:not(:disabled) {
	background: #f8fafc;
}

.cnp-popup__btn--tertiary {
	color: #0f2744 !important;
	background: #fff;
	border: 1.5px solid #cbd5e1;
	text-decoration: none;
}

.cnp-popup__btn--tertiary:hover:not(:disabled) {
	background: #f8fafc;
	border-color: #94a3b8;
}

.cnp-popup__footer {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0 8px;
	font-size: 12px;
	line-height: 1.5;
	color: #94a3b8 !important;
	text-align: left;
}

.cnp-popup__footer svg {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	color: #cbd5e1;
}

.cnp-popup__footer span {
	text-align: left;
}

@media (max-width: 849px) {
	.cnp-popup-root {
		padding: 12px;
	}

	.cnp-popup {
		padding: 16px 14px 12px;
		border-radius: 14px;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.cnp-popup__close {
		top: 8px;
		right: 8px;
		width: 28px;
		height: 28px;
	}

	.cnp-popup__illustration {
		height: 72px;
		margin-bottom: 4px;
	}

	.cnp-popup__badge {
		margin-bottom: 6px;
		font-size: 18px;
	}

	.cnp-popup__headline {
		font-size: 18px;
		margin-bottom: 8px;
		padding: 0;
		line-height: 1.3;
	}

	.cnp-popup__hint {
		font-size: 13px;
		margin-bottom: 10px;
		line-height: 1.4;
	}

	.cnp-popup__form {
		margin-bottom: 10px;
	}

	.cnp-popup__email {
		padding: 10px 12px;
		font-size: 14px;
		border-radius: 10px;
	}

	.cnp-popup__btns {
		flex-direction: column;
		gap: 8px;
		margin-bottom: 10px;
	}

	.cnp-popup__btn {
		width: 100%;
		flex: none;
		padding: 10px 12px;
		font-size: 13px;
		border-radius: 10px;
		white-space: normal;
	}

	.cnp-popup__footer {
		font-size: 11px;
		line-height: 1.4;
		padding: 0 2px;
		gap: 4px;
	}

	.cnp-popup__footer svg {
		width: 12px;
		height: 12px;
	}

	.cnp-popup__success {
		padding: 4px 2px 2px;
	}

	.cnp-popup__success-icon {
		width: 48px;
		height: 48px;
		margin-bottom: 10px;
	}

	.cnp-popup__success-icon svg {
		width: 26px;
		height: 26px;
	}

	.cnp-popup__success-title {
		font-size: 18px;
		margin-bottom: 8px;
	}

	.cnp-popup__success-message {
		font-size: 13px;
		margin-bottom: 14px;
		line-height: 1.5;
		padding: 0 4px;
	}

	.cnp-popup__success .cnp-popup__btn--primary {
		min-width: 0;
		width: 100%;
		padding: 11px 16px;
		font-size: 13px;
	}
}

@media (max-width: 549px) {
	.cnp-popup-root {
		padding: 10px;
	}

	.cnp-popup {
		padding: 14px 12px 10px;
		max-height: calc(100vh - 20px);
		max-height: calc(100dvh - 20px);
	}

	.cnp-popup__headline {
		font-size: 17px;
	}

	.cnp-popup__illustration {
		height: 64px;
	}

	.cnp-popup__btn {
		padding: 15px 10px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cnp-popup,
	.cnp-popup-mask {
		transition: none;
	}
}

.cnp-popup__success {
	padding: 8px 4px 4px;
}

.cnp-popup__success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: rgba(34, 197, 94, 0.12);
	color: #16a34a;
}

.cnp-popup__success-icon svg {
	width: 34px;
	height: 34px;
}

.cnp-popup__success-title {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
	color: #0f2744 !important;
}

.cnp-popup__success-message {
	margin: 0 0 20px;
	padding: 0 8px;
	font-size: 15px;
	line-height: 1.65;
	color: #64748b !important;
}

.cnp-popup__success-message strong {
	color: #0f2744 !important;
	font-weight: 600;
}

.cnp-popup__success .cnp-popup__btn--primary {
	display: inline-flex;
	width: auto;
	min-width: 200px;
	max-width: 100%;
	flex: none;
	padding: 14px 28px;
	font-size: 14px;
	text-decoration: none !important;
}

.cnp-popup.is-success .cnp-popup__close {
	color: #64748b;
}
