.wpap-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	padding: 20px;
	box-sizing: border-box;
}

.wpap-overlay.wpap-visible {
	display: flex;
	opacity: 1;
}

.wpap-box {
	position: relative;
	width: var(--wpap-width, 500px) !important;
	max-width: 92vw;
	height: var(--wpap-height, auto) !important;
	max-height: 90vh;
	background: #fff;
	border-radius: 12px;
	overflow: auto;
	box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

.wpap-overlay.wpap-visible .wpap-box {
	transform: scale(1);
}

.wpap-close {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpap-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.wpap-link-wrap {
	display: block;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.wpap-image {
	display: block;
	width: 100%;
	height: auto;
}

.wpap-text {
	padding: 18px 20px;
	color: #222;
	line-height: 1.9;
	font-size: 16px;
}

.wpap-text p:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.wpap-box {
		width: 100% !important;
		max-width: 100%;
	}
	.wpap-text {
		font-size: 14px;
		padding: 14px 16px;
	}
}
