#loading_overlay,
#modal2_overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	left: 0;
	top: 0;
	display: none;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 450;
	padding: 1.5rem;
}

#loading_overlay {
	z-index: 1000;
}

#modal2 {
	position: fixed;
	background-color: #fff;
	z-index: 500;
	min-width: 300px;
	max-width: calc(100% - 3.125rem);
	max-height: calc(100% - 3.125rem);
	-webkit-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
	-moz-box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
	box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
	top: 50%;
	left: 50%;
	-ms-transform: translate(-50%, -50%); /* IE 9 */
	-webkit-transform: translate(-50%, -50%);; /* Safari */
	transform: translate(-50%, -50%);;
}

#modal2.modal_wide {
	min-width: 90%;
	max-width: calc(100% - 3.125rem);
	/*height: 400px;*/
}


#modal2.modal_medium {
	min-width: 600px;
	max-width: calc(100% - 3.125rem);
	/*height: 400px;*/
}

#modal2.modal_small {
	max-width: calc(100% - 3.125rem);
	height: 150px;
}

#modal2_header{
	position: relative;
	height: 50px;
	width: 100%;
	text-align: right;
}

#modal2_header #modal2_title {
	font-size: 1.14286em;
	margin: 15px 0 0 30px;
	font-family: "source_sans_prosemibold", sans-serif;
	font-weight: normal;
	float:left;
}

#modal2_header button{
	float:right;
}

.modal2_close {
	color: #5a5a5a !important; /* button default is important */
	background-color: #ffffff;
	height: 30px;
	width: 30px;
	padding: 0;
	margin: 1px;
	font-size: 2em;
	font-weight: bold;
}

.modal2_spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}

#modal2_content {
	position: relative;
	background-color: #fff;
	overflow: auto;
	max-height: calc(100vh - 100px);
	text-align: left;
	clear: both;
	padding:0 30px 15px;
}