/* Popup
---------------------------------------- */
#overlay {position: fixed; top: 0; left: 0; height: 100%; width: 100%; z-index: 99999; display: none;}
.popup {
	display: none;

	position: fixed;
	top: 200px;

	min-width: 300px;
	width: 300px;

	padding: 8px 25px 8px 14px;
	color: #333;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
	background-color: #fff;
	border: 1px solid #fff;
	-webkit-border-radius: 4px;
	   -moz-border-radius: 4px;
	        border-radius: 4px;

	box-shadow: 0 0 10px #000000;

	z-index: 100000;
}
.popup .close {
	position: relative;
	top: -7px;
	right: -20px;

	line-height: 20px;
}

.popup .fileupload-exists {
	right: 0px;
}

.popup .title   {
	padding-bottom: 10px;
	text-align: center;
	font-weight: bold;
}
.popup .body    {
	padding-bottom: 10px;
	word-wrap: break-word;
}
.popup .body .body-text {
	white-space: pre-wrap;
}
.popup .body form {
	margin: 0;
}
.popup .buttons {
	text-align: center;
	margin-left: 25px;
	padding-bottom: 15px;
}
.popup .buttons .btn {
	margin-right: 10px;
	min-width: 75px;
}
.popup .buttons a.btn-close {
	display: inline-block;
	vertical-align: top;
	margin: 0 0 0 5px;
	padding: 0;
	font-size: 13px;
	line-height: 24px;
	}

.popup.flat-modal {
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
	padding: 23px 40px 0 40px;
	top: 50% !important;
	left: 50% !important;
	margin-right: -50% !important;
	transform: translate(-50%, -50%) !important;
	margin-left: 0 !important;
	margin-top: 0 !important;
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
	font-smoothing: antialiased;
	-webkit-font-smoothing:antialiased;
	-moz-osx-font-smoothing:grayscale;
	-webkit-text-size-adjust:100%;
	-moz-text-size-adjust:100%;
	-ms-text-size-adjust:100%;
	min-width: 500px;
}

.popup.flat-modal .title {
	color: #292d30;
	font-family: Arial;
	font-size: 18px;
	font-weight: 400;
	line-height: 20px;
	text-align: left !important;
}

.popup.flat-modal .body {
	color: #292d30;
	font-family: Arial;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}

.popup.flat-modal .buttons:empty {
	display: none;
}

.popup.flat-modal .close {
	outline: none;
	font-size: 40px;
  font-weight: 300;
	line-height: 30px;
	top: -15px;
	right: -25px;
}

.popup.flat-modal .close:hover,
.popup.flat-modal .close:focus {
	color: #000;
}

.popup.flat-modal .buttons {
	background-color: #f2f6f7;
	margin-top: 20px;
	margin-left: -40px;
  margin-right: -40px;
  padding-bottom: 15px;
  padding: 15px 40px 15px 40px;
}

.popup.flat-modal .buttons .button {
	min-width: 40px;
	transform: none;
	outline: none;
}
