/**
 * Neuron Popup Frontend Styles
 *
 * @since 2.5.0
 */

/* Popup Modal Container */
.neuron-popup-modal {
	display: flex;
	pointer-events: none;
	user-select: auto;
	backface-visibility: hidden;
	background: transparent;
}

.neuron-popup-modal.neuron-popup-modal--overlay-animation {
	background: transparent !important;
}

/* Dialog Elements */
.neuron-popup-modal .dialog-header,
.neuron-popup-modal .dialog-buttons-wrapper {
	display: none;
}

.neuron-popup-modal .dialog-close-button {
	display: none;
	top: 20px;
	right: 20px;
	opacity: 1;
	z-index: 9999;
	pointer-events: all;
	margin-top: 0;
	cursor: pointer;
	font-size: 20px;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	transition: color 0.3s ease, background-color 0.3s ease;
}

.neuron-popup-modal .dialog-widget-content {
	width: auto;
	overflow: visible;
	max-width: 100%;
	max-height: 100%;
	border-radius: 0;
	box-shadow: none;
	pointer-events: all;
	z-index: 2;
	transition: box-shadow 0.3s ease-in-out;
	position: relative;
}

.neuron-popup-modal .dialog-message {
	width: 640px;
	max-width: 100vw;
	max-height: 100vh;
	padding: 0;
	overflow: auto;
	display: flex;
}

/* Overlay */
.neuron-popup-modal .dialog-overlay {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: visibility 0.2s ease, opacity 0.2s ease;
}

.neuron-popup-modal--overlay-animation .dialog-overlay {
	opacity: 1;
	visibility: visible;
}

/* Elementor Container */
.neuron-popup-modal .elementor {
	width: 100%;
}

/* Hide Modal */
.neuron-popup-modal-hide {
	opacity: 0;
	visibility: hidden;
	transition: visibility 0.2s ease, opacity 0.2s ease;
}

.neuron-popup-modal-hide .dialog-widget-content {
	display: none !important;
}

/* Animation Reverse */
.h-neuron-animation--reverse {
	animation-direction: reverse !important;
}

/* Popup Content Wrapper */
[data-elementor-type="popup"] .elementor-section-wrap:not(:empty) + #elementor-add-new-section,
[data-elementor-type="popup"]:not(.elementor-edit-mode) {
	display: none;
}

/* Animated content */
.neuron-popup-modal .animated {
	animation-duration: 0.6s;
	animation-fill-mode: both;
}

/* Default styling for popup background */
.neuron-popup-modal .dialog-widget-content {
	background-color: #fff;
}

/* Close button icon styling */
.neuron-popup-modal .dialog-close-button:before {
	font-family: eicons;
	content: "\e92a";
	font-size: inherit;
}

/* Position variants */
.neuron-popup-modal[style*="justify-content: flex-start"] .dialog-widget-content {
	margin-left: 0;
}

.neuron-popup-modal[style*="justify-content: flex-end"] .dialog-widget-content {
	margin-right: 0;
}

.neuron-popup-modal[style*="align-items: flex-start"] .dialog-widget-content {
	margin-top: 0;
}

.neuron-popup-modal[style*="align-items: flex-end"] .dialog-widget-content {
	margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
	.neuron-popup-modal .dialog-message {
		width: 100vw;
	}

	.neuron-popup-modal .dialog-close-button {
		top: 10px;
		right: 10px;
	}
}
