.mga-agenda {
	box-sizing: border-box;
	width: min(var(--mga-width, 100%), var(--mga-max-width, 1100px));
	max-width: var(--mga-max-width, 1100px);
	margin: 1.75rem auto;
	font-family: Montserrat, "Avenir Next", Avenir, Arial, sans-serif;
	color: #222;
}

.mga-agenda *,
.mga-agenda *::before,
.mga-agenda *::after {
	box-sizing: border-box;
}

.mga-agenda.alignfull {
	width: 100vw;
	max-width: none;
	margin-right: calc(50% - 50vw);
	margin-left: calc(50% - 50vw);
	padding-right: clamp(1rem, 4vw, 3rem);
	padding-left: clamp(1rem, 4vw, 3rem);
}

.mga-agenda.alignwide {
	max-width: min(90vw, 1400px);
}

.mga-agenda__viewer {
	width: 100%;
	min-height: 420px;
	overflow: hidden;
	border: 1px solid #d6d6d6;
	border-radius: 12px;
	background: #f5f5f5;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

.mga-agenda__viewer iframe {
	display: block;
	width: 100%;
	height: var(--mga-viewer-height, 760px);
	min-height: 420px;
	border: 0;
	background: #f5f5f5;
}

.mga-agenda__actions {
	display: flex;
	margin: 0 0 1rem;
}

.mga-agenda__actions--left { justify-content: flex-start; }
.mga-agenda__actions--center { justify-content: center; }
.mga-agenda__actions--right { justify-content: flex-end; }

.mga-agenda__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.7rem;
	min-height: 48px;
	padding: 0.8rem 1.4rem;
	border: 2px solid var(--mga-button-bg, #222);
	border-radius: 999px;
	background: var(--mga-button-bg, #222);
	color: var(--mga-button-fg, #fff);
	font-family: inherit;
	font-size: 0.98rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
	transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.mga-agenda__button:hover {
	transform: translateY(-2px);
	box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
	color: var(--mga-button-fg, #fff);
}

.mga-agenda__button:focus-visible {
	outline: 3px solid #777;
	outline-offset: 4px;
}

.mga-agenda__button--outline {
	background: transparent;
	color: var(--mga-button-bg, #222);
	box-shadow: none;
}

.mga-agenda__button--outline:hover {
	background: var(--mga-button-bg, #222);
	color: var(--mga-button-fg, #fff);
}

.mga-agenda__icon {
	width: 1.2rem;
	height: 1.2rem;
	flex: 0 0 auto;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.mga-agenda__fallback {
	margin: 0.65rem 0 0;
	color: #5e5e5e;
	font-family: inherit;
	font-size: 0.88rem;
	line-height: 1.5;
}

.mga-agenda[data-mga-button-position="below"] .mga-agenda__actions {
	margin: 1rem 0 0;
}

.mga-agenda__notice {
	padding: 0.85rem 1rem;
	border: 1px solid #ccc;
	background: #f7f7f7;
	color: #333;
}

@media (max-width: 640px) {
	.mga-agenda {
		width: 100%;
	}

	.mga-agenda__viewer,
	.mga-agenda__viewer iframe {
		min-height: 380px;
	}

	.mga-agenda__viewer iframe {
		height: min(72vh, var(--mga-viewer-height, 760px));
	}

	.mga-agenda__button {
		width: 100%;
		max-width: 360px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mga-agenda__button {
		transition: none;
	}
	.mga-agenda__button:hover {
		transform: none;
	}
}
