.simple-modal-overlay{
	display:none;
	position:fixed;
	inset:0;
	background:rgba(0,0,0,.5);
	z-index:99999;
}

.simple-modal{
	position:absolute;
	background:#fff;
	box-sizing:border-box;
	display:flex;
	flex-direction:column;
	box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.simple-modal.fullscreen{
	inset:0;
}

.simple-modal.halfscreen{
	top:50%;
	left:50%;
	width:90%;
	max-width:1000px;
	height:70vh;
	transform:translate(-50%,-50%);
	border-radius:8px;
}

.simple-modal-close{
	position:absolute;
	top:10px;
	right:15px;
	width:40px;
	height:40px;
	border:0;
	background:#fff;
	font-size:30px;
	line-height:1;
	cursor:pointer;
	z-index:100;
}

.simple-modal-body{
	flex:1;
	overflow:auto;
	padding:20px;
	padding-top:60px;
	word-wrap:break-word;
	overflow-wrap:break-word;
}

/* Prevent images from breaking layout */
.simple-modal-body img{
	max-width:100%;
	height:auto;
	display:block;
}

/* Optional: scroll wide tables */
.simple-modal-body table{
	max-width:100%;
	display:block;
	overflow-x:auto;
}

/* Prevent form controls from overflowing */
.simple-modal-body input,
.simple-modal-body select,
.simple-modal-body textarea{
	max-width:100%;
	box-sizing:border-box;
}