/* Custom HTML CSS Popup - Core Styles */

.chp-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chp-popup-overlay.chp-visible {
	opacity: 1;
	visibility: visible;
}

.chp-popup-modal {
	background: #ffffff;
	border-radius: 12px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(20px) scale(0.96);
	transition: transform 0.3s ease;
	padding: 32px 28px 28px;
	box-sizing: border-box;
}

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

/* Close button */
.chp-popup-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #888;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 4px;
	transition: color 0.2s, background 0.2s;
	z-index: 2;
}

.chp-popup-close:hover {
	color: #333;
	background: #f0f0f0;
}

/* Content area - your custom HTML goes here */
.chp-popup-content {
	margin-bottom: 20px;
	color: #333;
	line-height: 1.6;
}

.chp-popup-content img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Action button area */
.chp-popup-actions {
	text-align: center;
	margin-top: 8px;
}

.chp-popup-button {
	display: inline-block;
	background: #2271b1;
	color: #ffffff !important;
	text-decoration: none !important;
	padding: 14px 32px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.3px;
	transition: background 0.2s, transform 0.15s;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.chp-popup-button:hover {
	background: #135e96;
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(34, 113, 177, 0.4);
}

.chp-popup-button:active {
	transform: translateY(0);
}

/* Prevent body scroll when popup is open */
body.chp-popup-open {
	overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.chp-popup-modal {
		padding: 28px 20px 24px;
		max-width: 100%;
		border-radius: 10px;
	}

	.chp-popup-button {
		display: block;
		width: 100%;
		padding: 14px 20px;
	}
}
