.octo-popup-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	display: flex;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.octo-popup-wrapper.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Positioning */
.octo-popup-pos-center { align-items: center; justify-content: center; }
.octo-popup-pos-top-left { align-items: flex-start; justify-content: flex-start; }
.octo-popup-pos-top-center { align-items: flex-start; justify-content: center; }
.octo-popup-pos-top-right { align-items: flex-start; justify-content: flex-end; }
.octo-popup-pos-middle-left { align-items: center; justify-content: flex-start; }
.octo-popup-pos-middle-right { align-items: center; justify-content: flex-end; }
.octo-popup-pos-bottom-left { align-items: flex-end; justify-content: flex-start; }
.octo-popup-pos-bottom-center { align-items: flex-end; justify-content: center; }
.octo-popup-pos-bottom-right { align-items: flex-end; justify-content: flex-end; }

.octo-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.octo-popup-content {
	position: relative;
	max-width: 90%;
	z-index: 100000;
	transition: all 0.3s ease;
	/* Defaults if not set in Elementor */
	min-height: 50px;
}

/* Animations */
.octo-popup-anim-fade .octo-popup-content { opacity: 0; transition: opacity 0.3s ease; }
.octo-popup-wrapper.is-active.octo-popup-anim-fade .octo-popup-content { opacity: 1; }

.octo-popup-anim-slide-up .octo-popup-content { transform: translateY(50px); }
.octo-popup-wrapper.is-active.octo-popup-anim-slide-up .octo-popup-content { transform: translateY(0); }

.octo-popup-anim-slide-down .octo-popup-content { transform: translateY(-50px); }
.octo-popup-wrapper.is-active.octo-popup-anim-slide-down .octo-popup-content { transform: translateY(0); }

.octo-popup-anim-zoom .octo-popup-content { transform: scale(0.8); }
.octo-popup-wrapper.is-active.octo-popup-anim-zoom .octo-popup-content { transform: scale(1); }

.octo-popup-close {
	position: absolute;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10;
}

/* Close Button Positions */
.octo-popup-close-pos-top-right .octo-popup-close { top: 0; right: 0; }
.octo-popup-close-pos-top-left .octo-popup-close { top: 0; left: 0; }
.octo-popup-close-pos-bottom-right .octo-popup-close { bottom: 0; right: 0; }
.octo-popup-close-pos-bottom-left .octo-popup-close { bottom: 0; left: 0; }
.octo-popup-close-pos-outside-tr .octo-popup-close { top: -40px; right: -40px; }
.octo-popup-close-pos-outside-tl .octo-popup-close { top: -40px; left: -40px; }

.octo-popup-close svg {
	display: block;
	width: 1em;
	height: 1em;
}

.octo-popup-body {
	width: 100%;
}

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

/* Editor Fixes */
.elementor-editor-active .octo-popup-wrapper {
	z-index: 9990; /* Slightly below Elementor panel but above content */
}

