/************************** modal popup ***************************/

#sa_overlay{
	position:fixed;
	background-color:rgba(255,255,255,0.7);
	height:100%;
	width:100%;
	left:0;
	top:0;
	z-index: 1000;
	cursor: pointer;
}

#sa_overlay.dark{
	background-color:rgba(0,0,0,0.7);
}

#sa_modalPopup{
	position:fixed;
	background-color:#fff;
	width: min(800px, calc(100% - 50px));
	height:auto;
	min-height:150px;
	min-width:300px;
	left:50%;
	top:50%;
	transform:translate(-50%,-50%);
	border:1px solid #c5c5c5;
	box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
	color: #595959;
	font-size: 14px;
	cursor: default;
    display: grid;
    grid-template-rows: 40px auto 50px;
}

.simple #sa_modalPopup{
	min-height:auto;
}

#sa_modalPopup_title{
	padding:9px 15px;
	color: #595959;
	font-family: Arial,sans-serif;
	font-size: 16px;
	font-weight: bold;
}

#sa_modalPopup_body{
	padding:9px 15px;
}

#sa_modalPopup_title{
	border-bottom: 1px solid #ccc;
}

#sa_modalPopup_footer{
	padding:9px 15px;
	text-align:right;
	border-top: 1px solid #ccc;
}

.sa_mp_formWrapper dl{
	display:flex;
}

.sa_mp_formWrapper dt{
	flex:0 1 100px;
}

.sa_mp_formWrapper dd{
	flex:1 auto;
	margin-left: 10px;
}

.sa_mp_formWrapper dd input[type=text]
,.sa_mp_formWrapper dd textarea{
	width:100%;
	box-sizing:border-box;
}

.sa_mp_btn{
	border:1px solid #ccc;
	padding:5px 10px;
	font-size:14px;
	margin-left:10px;
	cursor:pointer;
}

.sa_mp_btn_primary{
	background-color:#2276d2;
	color:#fff;
}

#sa_modalPopup_close_icon{
	border-radius: 50%;
	padding: 0;
	padding-top: 7px;
	line-height: 1;
	background-color: #000000;
	color: white;
	border: 3px solid white;
	width: 40px;
	height: 40px;
	display: inline-block;
	text-align: center;
	font-size: 20px;
	box-sizing: border-box;
	cursor: pointer;
	position: absolute;
	top: -15px;
	right: -15px;
}

#sa_modalPopup_close_icon::before {
    content: "\2715";
    font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
}

@media screen and (max-width: 600px) {

	#sa_overlay{
		overflow-y: scroll;
	}

	#sa_modalPopup {
		top: 50%;
		transform: translate(-50%,-50%);
		position: absolute;
		width: min(767px,100% - 50px) !important;
	}

}
