.modal {
	display: none;
}
.modal.is-open, .modal.close {
	display: block !important;
}
.modal .close-btn {
	width: 44px;
	height: 44px;
	background: url("../images/icons/close.svg") center no-repeat;
	background-size: 32px;
	position: absolute;
	top: 0px;
	right: 0px;
	border-radius: 50%;
}
.modal .close-btn:hover {
	background-color: rgba(0, 0, 0, 0.05);
}
.modal[aria-hidden=false] .modal-container {
	animation: containerIn 0.3s;
}
.modal[aria-hidden=true] .modal-container {
	animation: containerOut 0.3s forwards;
}
.modal .modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.85);
	-webkit-backdrop-filter: blur(5px);
					backdrop-filter: blur(5px);
	display: flex;
	z-index: 99;
	padding: 40px;
	overflow: auto;
}
.modal .modal-container {
	background-color: #ffffff;
	box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.2);
	width: 100%;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	padding: 32px;
	margin: auto;
}
.modal .modal-body {
	padding: 12px 0px;
	padding-top: 0px;
	flex: 1;
}
.modal .modal-title {
	text-align: center;
	margin-bottom: 20px;
	position: relative;
}
.modal .modal-footer {
	margin-top: 28px;
}
.modal .btn-group .btn:not(:last-child) {
	margin-right: 20px;
}
.modal#modal-error-message .modal-overlay, .modal#modal-success-message .modal-overlay {
	z-index: 999;
}
@keyframes containerIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}
@keyframes containerOut {
	from {
		transform: scale(1);
		opacity: 1;
	}
	to {
		transform: scale(0.9);
		opacity: 0;
	}
}

@media only screen and (max-width: 768px) {
	.modal .modal-overlay {
		padding: 20px;
	}
	.modal .modal-container {
		padding: 20px;
	}
	.modal .close-btn {
		top: -20px;
		right: -20px;
	}
	.modal .modal-title {
		padding: 0px 28px;
	}
}