/* WP Promo Popup — Frontend */

.wppp-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.wppp-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.wppp-popup {
	position: relative;
	width: 100%;
	max-width: 720px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	transform: translateY(16px) scale(0.98);
	transition: transform 0.3s ease;
}

.wppp-overlay.is-visible .wppp-popup {
	transform: translateY(0) scale(1);
}

.wppp-popup__inner {
	display: flex;
	flex-direction: row;
	min-height: 320px;
}

.wppp-popup__image {
	flex: 0 0 50%;
	aspect-ratio: 1 / 1;
	background: #f0f0f0;
	overflow: hidden;
}

.wppp-popup__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.wppp-popup__image-placeholder {
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(
		-45deg,
		#e8e8e8,
		#e8e8e8 8px,
		#f5f5f5 8px,
		#f5f5f5 16px
	);
}

.wppp-popup__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 40px 36px;
}

.wppp-popup__heading {
	margin: 0 0 8px;
	font-size: 28px;
	font-weight: 900;
	line-height: 1.2;
	color: #1a1a1a;
	letter-spacing: -0.02em;
}

.wppp-popup__sub-heading {
	margin: 0 0 16px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #555;
}

.wppp-popup__description {
	margin: 0 0 28px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: #666;
}

.wppp-popup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 14px 32px;
	border: none;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.wppp-popup__button:hover {
	background: #333;
	color: #fff;
	transform: translateY(-1px);
}

.wppp-popup__dismiss {
	display: inline-block;
	align-self: flex-start;
	margin-top: 16px;
	padding: 0;
	border: none;
	background: none;
	color: #999;
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	text-decoration: underline;
	cursor: pointer;
	transition: color 0.2s ease;
}

.wppp-popup__dismiss:hover {
	color: #555;
}

@media (max-width: 640px) {
	.wppp-popup__inner {
		flex-direction: column;
		min-height: auto;
	}

	.wppp-popup__image {
		flex: none;
		width: 100%;
		max-height: 280px;
	}

	.wppp-popup__content {
		padding: 28px 24px 32px;
	}

	.wppp-popup__heading {
		font-size: 24px;
	}
}
