.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, .6);
	overflow: auto;
	z-index: 999;
	transition: .4s all;
	opacity: 0;
	visibility: hidden;
	cursor: pointer;
}

.modal-overlay_visible {
	opacity: 1;
	visibility: visible;
}

.modal-table {
	display: table;
	width: 100%;
	height: 100%;
}

.modal-table-cell {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	padding: 0 15px;
}

.modal {
	transition: .4s all;
	display: inline-block;
	max-width: 558px;
	width: 100%;
	background: #fff;
	box-shadow: 0px 4px 8px rgba(0, 0, 0, .25);
	color: #000;
	border: 1px solid #000;
	text-align: left;
	margin: 30px 0;
	transform: translate(0, 20%);
	position: relative;
	cursor: auto;
}

.modal-overlay_visible .modal {
	transform: translate(0);
}

.modal__header {
	font-size: 22px;
	font-weight: 400;
	padding: 0 0 30px 0;
}

.modal__content p {
	padding: 0 0 10px 0;
	margin: 0;
}

.modal__close {
	position: absolute;
	right: -37px;
	top: -37px;
	width: 25px;
	height: 25px;
	transition: .4s all;
	padding: 0;
	border: none;
	cursor: pointer;
	background-color: transparent;
}

.modal__close:hover {
	opacity: .7;
}

.modal__close:before,
.modal__close:after {
	content: "";
	display: block;
	height: 100%;
	width: 1px;
	transform: rotate(45deg);
	background: #fff;
	position: absolute;
	left: 0;
	right: 0;
	margin: auto;
	top: 0;
	bottom: 0;
}

.modal__close:after {
	transform: rotate(-45deg);
}


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

	.modal__close {
		right: 10px;
		top: 10px;
	}

	.modal__close:before,
	.modal__close:after {
		background-color: #000;
	}
}