/**
 * Marketing Popup Styles
 *
 * @package Marketing_Popup
 */

 .marketing-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.marketing-popup-overlay.show {
	opacity: 1;
}

.marketing-popup-modal {
	position: relative;
	background-color: #ffffff;
	border-radius: 8px;
	max-width: 900px;
	width: 90%;
	max-height: 75vh;
	overflow-y: auto;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	transform: scale(0.9);
	transition: transform 0.3s ease-in-out;
}

.marketing-popup-overlay.show .marketing-popup-modal {
	transform: scale(1);
}

.marketing-popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	transition: opacity 0.2s ease;
}

.marketing-popup-close:hover {
	opacity: 0.7;
}

.marketing-popup-close-icon {
	font-size: 28px;
	line-height: 1;
	color: #333333;
	font-weight: bold;
}

.marketing-popup-content {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}

.marketing-popup-image {
	text-align: center;
	flex: 1 0 47%;
	min-height: 400px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 4px 0 0 4px;
	aspect-ratio: 2/3;
	object-fit: cover;
}

.marketing-popup-text {
	padding: var(--wp--preset--spacing--medium);
	flex: 1 0 47%;
}

.marketing-popup-text p {
	margin-bottom: 15px;
}

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

.marketing-popup-button-wrapper {
	text-align: center;
	padding: 20px;
}

.marketing-popup-button {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--wp--preset--color--primary);
	color: #ffffff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 600;
	transition: background-color 0.2s ease;
}

.marketing-popup-button:hover {
	background-color: #000;
	color: #ffffff;
	text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
	.marketing-popup-modal {
		width: 95%;
		max-height: 95vh;
	}
	
	.marketing-popup-content {
		flex-direction: column;
		padding: 20px;
	}
	
	.marketing-popup-image {
		flex: 1 0 auto;
		min-height: 300px;
		border-radius: 4px 4px 0 0;
	}
	
	.marketing-popup-text {
		flex: 1 0 auto;
	}
	
	.marketing-popup-close {
		top: 5px;
		right: 5px;
	}
}

