/* Frontend modal styles */
html.cxposmp-modal-open,
body.cxposmp-modal-open {
    overflow: hidden !important;
    height: 100% !important;
}

.cxposmp-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    overflow-y: auto; /* 🔥 Overlay scrolls */
}

/* Modal itself scrollable */
.cxposmp-modal {
    background: #fff;
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
    margin: 40px auto;      /* spacing when tall content */
    max-height: none;       /* allow natural full height */
    overflow: visible;      /* modal itself does not clip */
	position: relative;
}

.cxposmp-body {
	padding: 8px
}
.cxposmp-body>figure {
	margin: 0;
}

.cxposmp-close {
	position: absolute;
	right: -30px;
	top: 0px;
	cursor: pointer;
	font-size: 22px;
	border: none;
	background: transparent;
	width: 30px;
	height: 30px;
	display: flex;
}
.cxposmp-close svg {
	fill: #fff;
}

.cxposmp-fade {
	opacity: 0;
	transform: none;
	transition: all .35s ease
}

.cxposmp-fade.cxposmp-visible {
	opacity: 1
}

.cxposmp-slide {
	opacity: 0;
	transform: translateY(20px);
	transition: all .35s ease
}

.cxposmp-slide.cxposmp-visible {
	opacity: 1;
	transform: translateY(0)
}

