.modal-window {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.modal-window--open {
	display: flex;
}

.modal-window__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-window__dialog {
	position: relative;
	z-index: 1;
	max-width: 480px;
	width: calc(100% - 32px);
	max-height: 400px;
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	padding: 16px 16px 12px;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.modal-window__content {
	margin-bottom: 12px;
	max-height: 320px;
	overflow-y: auto;
}

.modal-window__line {
	font-size: 14px;
	line-height: 1.4;
	color: #222;
}

.modal-window__line + .modal-window__line {
	margin-top: 6px;
}

.modal-window__actions {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
}

.modal-window__close-button,
.modal-window__secondary-button {
	min-width: 96px;
	padding: 6px 12px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
}

.modal-window__close-button {
	background-color: #2d2d2d;
	color: #fff;
	font-size: 14px;
}

.modal-window__close-button:hover {
	background-color: #000;
}

.modal-window__secondary-button {
	background-color: #e87272;
	color: #2a2a2a;
}

.modal-window__secondary-button:hover {
	background-color: #f4c4c4;
}
