/**
 * Modern Popup Styles
 */

body.modern-popup-open {
	overflow: hidden !important;
}

.modern-popup-trigger {
	cursor: pointer;
	border: none;
	display: inline-block;
	transition: all 0.3s ease;
}

.modern-popup-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.modern-popup-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.modern-popup-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	cursor: pointer;
}

.modern-popup-modal-dialog {
	position: relative;
	width: 100%;
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	pointer-events: none;
}

.modern-popup-modal-content {
	position: relative;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	max-width: 100%;
	width: 500px;
	z-index: 1;
	pointer-events: auto;
	transform: translateY(20px) scale(0.95);
	transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modern-popup-modal.is-open .modern-popup-modal-content {
	transform: translateY(0) scale(1);
}

.modern-popup-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	line-height: 1;
	transition: all 0.2s ease;
	z-index: 2;
}

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

.modern-popup-title {
	margin-top: 0;
	margin-bottom: 15px;
}

.modern-popup-body {
	line-height: 1.6;
}

/* Reset wrappers to prevent stacking context and layout issues */
.modern-popup-container-wrapper,
.modern-popup-widget-wrapper {
	position: static !important;
	z-index: auto !important;
	transform: none !important;
	opacity: 1 !important;
	animation: none !important;
	transition: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	width: auto !important;
	height: auto !important;
	overflow: visible !important;
	clip-path: none !important;
	filter: none !important;
	backdrop-filter: none !important;
}
