/* Popup Shortcode Plugin - Frontend Styles */

.psp-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.psp-popup-overlay.psp-active {
	display: flex;
	opacity: 1;
	visibility: visible;
}

.psp-popup-box {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	max-height: 90vh;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateY(20px) scale(0.98);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

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

.psp-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 34px;
	height: 34px;
	line-height: 30px;
	text-align: center;
	background: transparent;
	border: 2px solid #333333;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, color 0.2s ease;
}

.psp-popup-close:hover {
	background: rgba(0, 0, 0, 0.08);
}

.psp-popup-content {
	width: 100%;
}

.psp-popup-heading {
	margin-top: 0;
	margin-bottom: 15px;
	padding-right: 30px;
	font-size: 26px;
	line-height: 1.3;
	word-wrap: break-word;
}

.psp-popup-description {
	margin-bottom: 20px;
	font-size: 15px;
	line-height: 1.6;
	word-wrap: break-word;
}

.psp-popup-description p:last-child {
	margin-bottom: 0;
}

.psp-popup-shortcode {
	width: 100%;
}

.psp-popup-shortcode img {
	max-width: 100%;
	height: auto;
}

body.psp-noscroll {
	overflow: hidden;
}

/* Tablet */
@media (max-width: 782px) {
	.psp-popup-heading {
		font-size: 22px;
	}
}

/* Mobile */
@media (max-width: 480px) {
	.psp-popup-overlay {
		padding: 12px;
	}

	.psp-popup-box {
		max-height: 92vh;
	}

	.psp-popup-heading {
		font-size: 19px;
		padding-right: 26px;
	}

	.psp-popup-description {
		font-size: 14px;
	}

	.psp-popup-close {
		width: 30px;
		height: 30px;
		line-height: 26px;
		font-size: 18px;
		top: 8px;
		right: 8px;
	}
}
