/* OVERLAY */

.modal-overlay {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.5);
}

/* WINDOW */

.modal-window {
    z-index: 1010;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    max-width: 90%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: 1s;
}

.modal-window .modal-header, .modal-window .modal-content, .modal-window .modal-footer {
    padding: 30px 40px;
}

/* HEADER */


.modal-window .modal-header {
	background: #eee;
	border-bottom: 1px solid #ddd;
	border-top-left-radius: 15px;
	border-top-right-radius: 5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-window .modal-header .modal-title {
	font-size: 1.5rem;
	font-weight: bold;
}

.modal-window .modal-header .modal-close-btn {
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-window .modal-header .modal-close-btn svg {
	cursor: pointer;
}

.modal-window .modal-header .modal-close-btn:hover {
    border-radius: 5px;
    background: #ccc;
    box-shadow: 0px 0px 0px 1px #bbb inset;
}

/* CONTENT */

.modal-window .modal-content {
	flex-grow: 1;
	background: #fff;
	color: #000;
	overflow-y: auto;
	display: flex;
	flex-flow: column nowrap;
}

/* FOOTER */

.modal-window .modal-footer {
	background: #eee;
	border-top: 1px solid #ddd;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

/* INPUT */

.modal-input-block:not(:last-child) {
	margin-bottom: 12px;
}

.modal-input-block .input-title {
	margin-bottom: 6px;
}