.whnp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 16px;
}

.whnp-overlay[hidden] {
	display: none;
}

body.whnp-no-scroll {
	overflow: hidden;
}

.whnp-dialog {
	position: relative;
	background: var(--whnp-bg, #ffffff);
	color: var(--whnp-text, #1a1a1a);
	max-width: 480px;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	animation: whnp-pop-in 0.25s ease-out;
}

@keyframes whnp-pop-in {
	from {
		opacity: 0;
		transform: scale(0.96);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.whnp-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: inherit;
	opacity: 0.7;
	padding: 6px;
	line-height: 0;
	z-index: 1;
}

.whnp-close:hover,
.whnp-close:focus-visible {
	opacity: 1;
}

.whnp-image img {
	width: 100%;
	display: block;
}

.whnp-layout-image_left .whnp-dialog {
	display: flex;
	max-width: 640px;
}

.whnp-layout-image_left .whnp-image {
	flex: 0 0 40%;
}

.whnp-layout-image_left .whnp-image img {
	height: 100%;
	object-fit: cover;
}

.whnp-layout-image_left .whnp-content {
	flex: 1;
}

.whnp-content {
	padding: 32px 28px;
}

.whnp-content h2 {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.2;
}

.whnp-subcopy,
.whnp-offer {
	margin: 0 0 12px;
	font-size: 0.95rem;
	line-height: 1.5;
}

.whnp-offer {
	font-weight: 600;
}

.whnp-field {
	margin-bottom: 12px;
}

#whnp-email {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.whnp-hp-field {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.whnp-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.8rem;
	line-height: 1.4;
	margin-bottom: 16px;
	cursor: pointer;
}

.whnp-consent input {
	margin-top: 3px;
	flex-shrink: 0;
}

.whnp-consent a {
	color: inherit;
	text-decoration: underline;
}

.whnp-submit {
	width: 100%;
	padding: 12px;
	border: 0;
	border-radius: 4px;
	background: var(--whnp-btn-bg, #c8102e);
	color: var(--whnp-btn-text, #ffffff);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.whnp-submit:hover,
.whnp-submit:focus-visible {
	filter: brightness(0.92);
}

.whnp-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.whnp-error {
	color: #b32d2e;
	font-size: 0.85rem;
	margin: 10px 0 0;
}

.whnp-success {
	padding: 32px 28px;
	text-align: center;
}

.whnp-success p {
	margin: 0;
	font-size: 1.1rem;
}

@media (max-width: 480px) {
	.whnp-layout-image_left .whnp-dialog {
		flex-direction: column;
		max-width: 420px;
	}

	.whnp-layout-image_left .whnp-image {
		flex-basis: auto;
		max-height: 160px;
	}

	.whnp-content {
		padding: 24px 20px;
	}
}
