/* Maintenance Modal – frontend styles */

#mm-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

/* When JS makes it visible we switch display:none → flex */
#mm-overlay.mm-visible {
	display: flex;
}

#mm-box {
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	animation: mm-in 0.3s ease;
}

@keyframes mm-in {
	from {
		opacity: 0;
		transform: translateY(-20px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.mm-title {
	margin: 0 0 18px 0;
	line-height: 1.3;
	font-weight: 700;
	text-align: center;
}

.mm-content {
	line-height: 1.7;
	margin-bottom: 28px;
}

.mm-content p:first-child { margin-top: 0; }
.mm-content p:last-child  { margin-bottom: 0; }

.mm-footer {
	text-align: center;
}

#mm-close {
	display: inline-block;
	padding: 12px 32px;
	border: none;
	outline: none;
	cursor: pointer;
	font-weight: 600;
	line-height: 1;
	transition: filter 0.18s ease, transform 0.1s ease;
	-webkit-appearance: none;
	appearance: none;
}

#mm-close:focus {
	outline: none;
}

#mm-close:hover  { filter: brightness(1.12); }
#mm-close:active { transform: scale(0.97); }

/* Responsive */
@media (max-width: 480px) {
	#mm-box {
		border-radius: 6px !important;
		padding: 24px !important;
	}
}
