body.overlayered {
  overflow: hidden;
}

.popup {
	position: fixed;
	top: 0;
	bottom: 0;
	height: 100vh;
	left: 0;
	right: 0;
	z-index: 9999;
  	overflow: auto;
	background: rgba(0,0,0,0.5);
	display: none;

	.popup__message {
		position: fixed;
		top: 30%;
		left: calc(50% - 280px);
		display: block;
		width: 560px;
		background-color: $color--white;
		border-radius: 10px;
		text-align: center;
		padding: 35px 30px 30px 30px;

		.close {
			cursor: pointer;
			display: block;
			width: 30px;
			height: 20px;
			background-color: $color--graymiddle;
			border-bottom-left-radius: 5px;
			border-bottom-right-radius: 5px;
			position: absolute;
			top: 0;
			right: 15px;
			color: $color--graydark;
			transition: all 0.2s linear;

			&:hover { background-color: darken($color--additional-highlighted, 5%); color: $color--white;}

			&:before {
				content: $fa-var-close;
				font-family: 'FontAwesome';
				//transform: rotate(45deg);
				
				font-size: 10px;
				display: block;
				margin-top: 5px;
			}
		}

		span {
			display: block;
			font-size: 20px;
			margin: 0 auto 20px auto;
		}

		.btn--important { margin: 10px; }
		.btn--secondary { margin: 10px; }
	}
}


.popup--form {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100vh;
	z-index: 9999;
  	overflow: auto;
	background: rgba(0,0,0,0.5);
	display: none;
 
	.popup__content {
		position: absolute;
		margin-bottom: 5rem;
		top: 30%;
		left: calc(50% - 360px);
		display: block;
		width: 900px;
		background-color: $color--white;
		border-radius: 10px;
		text-align: left;
		padding: 35px 40px 30px 40px;

		@media(max-width: 1280px) {
			width: calc(90% - 80px);
			left: 5%;
			min-width: 400px;
		}

		.close {
			cursor: pointer;
			display: block;
			width: 30px;
			height: 20px;
			background-color: $color--graymiddle;
			border-bottom-left-radius: 5px;
			border-bottom-right-radius: 5px;
			position: absolute;
			top: 0;
			right: 15px;
			color: $color--graydark;
			transition: all 0.2s linear;

			&:hover { background-color: $color--reddark; color: $color--white;}

			&:before {
				content: $fa-var-close;
				font-family: 'FontAwesome';
				transform: rotate(45deg);
				font-size: 10px;
				display: block;
				position: absolute;
				top: 4px;
				left: 10px;
			}
		}

		.centered .btn--important { float: none; }
	}
}


 
.popup__heading {
	display: block;
	width: 100%;
	font-size: 1.8rem;
	color: $color--additional;
	text-transform: uppercase;
	font-weight: 800;
	text-align: center;
}