.cpm-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 999999;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.cpm-overlay.cpm-active {
	display: flex;
	opacity: 1;
}

.cpm-box {
	position: relative;
	background: #fff;
	border-radius: 8px;
	padding: 30px;
	max-width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	transform: scale(0.9) translateY(10px);
	transition: transform 0.25s ease;
	text-align: center;
}

.cpm-overlay.cpm-active .cpm-box {
	transform: scale(1) translateY(0);
}

.cpm-size-small {
	width: 320px;
}

.cpm-size-medium {
	width: 500px;
}

.cpm-size-large {
	width: 760px;
}

.cpm-close {
	position: absolute;
	top: 8px;
	right: 14px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #444;
	font-weight: 400;
	background: none;
	border: none;
	user-select: none;
}

.cpm-close:hover {
	color: #000;
}

.cpm-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 15px;
	border-radius: 4px;
}

.cpm-text {
	font-size: 15px;
	line-height: 1.6;
	color: #333;
}

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

body.cpm-popup-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.cpm-size-small,
	.cpm-size-medium,
	.cpm-size-large {
		width: 92%;
	}

	.cpm-box {
		padding: 22px;
	}
}
