.mlp-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.75);
	overflow-y: auto;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.mlp-overlay[hidden] {
	display: none;
}

.mlp-overlay.is-open {
	opacity: 1;
}

.mlp-pos-center {
	align-items: center;
}

.mlp-pos-top {
	align-items: flex-start;
	padding-top: 40px;
}

.mlp-dialog {
	position: relative;
	width: 100%;
	max-width: 600px;
	margin: auto 0;
	padding: 40px 32px 32px;
	background: #1a1a1a;
	color: #fff;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	transform: translateY(-16px);
	transition: transform 0.25s ease;
}

.mlp-pos-top .mlp-dialog {
	margin: 0;
}

.mlp-overlay.is-open .mlp-dialog {
	transform: none;
}

.mlp-dialog:focus {
	outline: none;
}

.mlp-close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #ffca60;
	color: #1a1a1a;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.mlp-close:hover,
.mlp-close:focus-visible {
	background: #ffb92d;
	transform: scale(1.05);
}

.mlp-close:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.mlp-title {
	margin: 0 48px 16px 0;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1.25;
}

.mlp-image {
	margin-bottom: 16px;
}

.mlp-image img,
.mlp-content img {
	display: block;
	max-width: 100%;
	height: auto;
}

.mlp-content {
	font-size: 1rem;
	line-height: 1.6;
}

.mlp-content > :first-child {
	margin-top: 0;
}

.mlp-content > :last-child {
	margin-bottom: 0;
}

.mlp-content a {
	color: #ffca60;
	text-decoration: underline;
}

.mlp-content a:hover {
	color: #fff;
}

@media (max-width: 600px) {
	.mlp-dialog {
		padding: 36px 20px 24px;
	}

	.mlp-pos-top {
		padding-top: 16px;
	}

	.mlp-title {
		font-size: 1.4rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mlp-overlay,
	.mlp-dialog {
		transition: none;
	}
}
