.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-window {
	background-color: #ffffff;
	border: 1px solid #dddddd;
	border-radius: 3px;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
	z-index: 1001;
	min-width: 300px;
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
	animation: modal-fade 0.2s ease-out;
}

@keyframes modal-fade {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.modal-titlebar {
	padding: 0.2em 0.5em;
	background: #e6e6e6;
	border-bottom: 1px solid #dddddd;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-title {
	margin: 0;
	font-size: 0.9em;
	font-weight: bold;
	color: #333;
}

.modal-close {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.4em;
	color: #666;
	padding: 0.2em;
	margin: -0.2em;
	border-radius: 3px;
}

.modal-close:hover {
	color: #000;
}

.modal-content {
	padding: 1em;
}

.modal-buttons {
	display: flex;
	justify-content: center;
	gap: 10px;
	padding: 0.5em 1em 1em;
	margin-top: 0.5em;
	border-top: 1px solid #eeeeee;
}

.modal-button {
	padding: 0.5em 1em;
	background: #f6f6f6;
	border: 1px solid #d0d0d0;
	border-radius: 3px;
	color: #454545;
	cursor: pointer;
	font-size: 0.9em;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.modal-button:hover {
	background: #ededed;
	border-color: #cccccc;
}

.modal-button.primary {
	background-color: var(--accent-color);
	color: white;
	border: 1px solid var(--accent-color);
}

.modal-button.primary:hover {
	background-color: var(--accent-color);
	filter: brightness(0.9);
	border-color: var(--accent-color);
}

.modal-message-container {
	display: flex;
	align-items: center;
	gap: 15px;
}

.modal-icon {
	font-size: 30px;
	flex-shrink: 0;
	line-height: 1;
}

.modal-message {
	flex: 1;
	line-height: 1.5;
}

.spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #f3f3f3;
	border-top: 2px solid #3498db;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.geocode_bubble {
	padding: 10px;
	max-width: 300px;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}