/* OVERLAY */

.modal-overlay {
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(75, 75, 75, 0.25);
}

/* WINDOW */

.modal-window {
    z-index: 1010;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 90vh;
    max-width: 90%;
    border-radius: 10px;
    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: 20px 30px;
}

/* HEADER */

.modal-window .modal-header {
	background: #eee;
	border-bottom: 1px solid #ddd;
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
	display: flex;
	justify-content: space-between;
	align-items: center;
	column-gap: 20px;
}

.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 svg {
	fill: red;
}

.modal-window .modal-header .modal-close-btn:active {
	border-radius: 5px;
	background: #ffb4b4;
	box-shadow: 0px 0px 0px 2px red;
}

/* CONTENT */

.modal-window .modal-content {
	flex-grow: 1;
	background: #fff;
	border: none;	
	border-radius: 0;
	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: inherit;
	border-bottom-right-radius: inherit;
}

.modal-window .modal-footer .footer-buttons {
	display: flex;
	flex-flow: row wrap;
	gap: 12px;
}