.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	z-index: 1000;
	transition: opacity 0.3s ease;
}

.modal-question {
	font-weight: bold;
	padding: 10px 0;
	text-align: center;

	p {
		margin-bottom: 10px;
	}
}

.modal-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
}

.modal__content {
	background-color: var(--color-background-window);
	position: absolute;
	top: 40%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-shadow: rgba(255, 255, 255, 0.24) 0px 3px 8px;
	border-radius: 0.25rem;
	border: 2px solid var(--color-primary);
	max-width: 100%;
	width: max-content;
}

.modal__header {
	background-color: var(--color-primary);
	color: white;
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 32px;
	padding-left: 10px;
	width: calc(100% + 2px);
	position: relative;
	left: -1px;
}

.modal__title {
	font-weight: 600;
}

.modal__close {
	width: 30px;
	height: 30px;
	cursor: pointer;
	color: white;
	opacity: 0.5;
	top: -1px;
	position: relative;
}

.modal__close:hover {
	opacity: 1;
}

.modal__close:focus {
	outline: none;
	opacity: 1;
	border: 1px solid white;
}

.modal__message {
	font-weight: bold;
	text-align: center;
	min-width: 200px;
	max-width: 400px;
	position: relative;
}

.modal__message-content {
	padding: 10px 20px;
	display: flex;
	align-items: start;
	gap: 14px;
}

.modal__message-content p {
	font-size: 14px;
	text-align: left;
}

.modal__message-icon {
	font-size: 34px;
}

.modal__message-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	background-color: var(--color-table-header);
	padding: 10px 20px;
}

.modal__message-icon--error {
	color: #ff0033;
}

.modal__message-icon--question {
	color: #ffc107;
}

.modal__message-icon--success {
	color: #28a745;
}

@media (max-width: 768px) {
	.modal__message {
		max-width: 90vw;
	}

	.modal__content {
		transform: translate(-50%, -20%);
	}
}

@media (max-width: 560px) {
	.modal__content {
		max-height: 100vh;
		overflow-x: hidden;
		overflow-y: auto;
		top: 50%;
		transform: translate(-50%, -50%);
	}

	@media (min-height: 100%) {
		.modal__content {
			top: 0;
			transform: translate(-50%, 0);
		}
	}
}
