.e-template-modal {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10001;
	overflow: hidden;
	-webkit-overflow-scrolling: touch;
	outline: 0;
}
body.e-template-modal-open {
	overflow: hidden;
}
body.e-template-modal-open .e-template-modal {
	overflow-x: hidden;
	overflow-y: scroll;
}

.e-template-modal-wrap {
	background-color: #fff;
	position: relative;
	width: auto;
	border-radius: 5px;
	padding: 0;
	width: calc(100% - 20px);
	max-width: 1240px;
	min-height: 50vh;
	margin: 60px auto;
	box-shadow: 0 5px 15px rgba(0,0,0,.25);
}

@media screen and (min-height: 900px) {
	.e-template-modal-wrap > div {
		max-height: calc(100vh - 120px);
		overflow-y: auto;
		overflow-x: hidden;
	}
}
.e-template-modal-fade {
	transition: all .25s ease-in;
	opacity: 0;
}
.e-template-modal-fade.in {
	transform: translate(0,0);
	opacity: 1;
}

.e-template-modal-fade .e-template-modal-wrap {
	transition: all .25s ease-in;
	transform: translate(0,-100px);
}
.e-template-modal-fade.in .e-template-modal-wrap {
	transform: translate(0,0);
	transition: all .3s ease-in;
}

.e-template-modal-backdrop {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10000;
	background-color: #000;
}
.e-template-modal-backdrop.e-template-modal-fade {
	transition: all .25s ease-in;
	opacity: 0;
}
.e-template-modal-backdrop.in {
	opacity: .5;
	transition: all .3s ease-in;
}

.e-template-modal-wrap .close-modal {
	position: absolute;
	border-radius: 0 5px 0 0;
	top: 0;
	right: 0;
	padding: .55em .75em;
	color: #FFFFFF;
	display: inline-block;
	cursor: pointer;
	background-color: var(--e-global-color-accent);
}
.e-template-modal-wrap .close-modal > a, .e-template-modal-wrap .close-modal > a:hover {
	color: #FFFFFF;
}
