/**
 * Spenden-Popup (Plugin „System - Spenden-Popup“): Grundgestaltung.
 * Eigene Änderungen im Plugin unter „Aussehen → Eigenes CSS“ (wird danach geladen).
 * Handy: als Blatt vom unteren Rand.
 */
.mlxKofi {
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: 24px 20px 16px;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #212529;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow-x: hidden;
	overflow-y: auto;
}

.mlxKofi[open] {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mlxKofi::backdrop {
	background: rgba(20, 30, 30, 0.55);
}

.mlxKofi__close {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #2f5353;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.mlxKofi__close:hover,
.mlxKofi__close:focus-visible {
	background: #f3f6f6;
	color: #4e2a56;
}

/* doppelte Klasse: Astroid setzt h2 mit höherer Gewichtung auf 28,8 px */
.mlxKofi .mlxKofi__title {
	margin: 0 40px 0 0;
	color: #2f5353;
	font-size: 1.35rem;
	font-weight: 700;
}

.mlxKofi__text {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
}

.mlxKofi__frame {
	border-radius: 12px;
	background: #f9f9f9;
	overflow: hidden;
}

.mlxKofi__frame iframe {
	display: block;
	width: 100%;
	height: 590px; /* das Skript setzt die eingestellte Höhe */
	max-height: calc(100vh - 230px);
	max-height: calc(100dvh - 230px);
	min-height: 360px;
	border: 0;
}

.mlxKofi__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
}

.mlxKofi__btn {
	padding: 8px 18px;
	border: 1px solid #2f5353;
	border-radius: 999px;
	background: #fff;
	color: #2f5353;
	font-size: 0.95rem;
	cursor: pointer;
}

.mlxKofi__btn:hover,
.mlxKofi__btn:focus-visible {
	border-color: #4e2a56;
	background: #4e2a56;
	color: #fff;
}

.mlxKofi__btn--quiet {
	border-color: transparent;
	text-decoration: underline;
}

@media (max-width: 575.98px) {
	.mlxKofi {
		width: 100vw;
		max-width: 100vw;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
		padding-bottom: max(16px, env(safe-area-inset-bottom));
	}
}
