.popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(51, 51, 51, 0.5);
	z-index: 1;
	text-align: center;
	overflow-y: auto;
	overflow-x: hidden;
}

.popup_window {
	position: relative;
	width: 390px;
	min-height: 275px;
	margin: 0 auto;
	top: 15%;
	background: #ffffff;
}

.popup_window_big {
	position: relative;
	width: 590px;
	min-height: 275px;
	margin: 0 auto;
	top: 2%;
	background: #ffffff;
}

.popup_header {
	vertical-align: center;
	font-size: 20px;
	padding: 20px;
}

.popup_header_error {
	background: #ff5353;
	color: #ffffff;
}

.popup_header_info {
	background: #009900;
	color: #ffffff;
}

.popup_header_warning {
	background: #EECC00;
	color: #ffffff;
}

.popup_header_confirm {
	background: #336699;
	color: #ffffff;
}

.popup_content {
	margin: 20px;
	padding-bottom: 34px;
	text-align: left;
	font-size: 20px;
	color: #4d4d4d;
    text-align: center;
}

.popup_footer {
	position: absolute;
	bottom: 0;
	width: 100%;
}

.popup_btn {
	width: 104px;
	height: 44px;
	margin: 20px auto;
	
	border-radius: 24px;
	line-height: 40px;
	cursor: pointer;
}

.popup_btn_error {
	border: 2px solid #ff5353;
	background: #ff5353;
	color: #ffffff;	
}

.popup_btn_info {
	border: 2px solid #009900;
	background: #009900;
	color: #ffffff;	
}

.popup_btn_warning {
	border: 2px solid #EECC00;
	background: #EECC00;
	color: #ffffff;	
}

.popup_btn_confirm {
	border: 2px solid #336699;
	background: #336699;
	color: #ffffff;	
}

.popup_btn_error:hover {
	background: #d04040;
	border-color: #d04040;
}

.popup_btn_info:hover {
	background: #007700;
	border-color: #007700;
}

@media(max-width: 767px){
	.popup_window_big {
		width: 100%;
	}
	.popup_content {
		padding-bottom: 0;
	}
	.popup_window {
		min-height: 240px;
	}
}

@media(max-width:575px) {
	.popup_window {
		width: 100%;
	}
}

@media (max-width: 450px), (max-height: 450px){
	.popup_window {
		width: 90%;
		min-height: 200px;
	}
}

@media (max-height: 415px){
	.popup_window {
		top: 15%;
	}
}

@media (max-height: 350px){
	.popup_window {
		top: 5%;
	}
}
