.block-umcta {
	margin: 1.5em 0;
}

/* ── Trigger button ──────────────────────────────────────────────────────── */

.block-umcta__trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	color: #fff;
	background-color: var(--umcta-accent);
	border: none;
	border-radius: 40px;
	cursor: pointer;
	text-align: left;
	transition: opacity 0.15s ease;
}

.block-umcta__trigger:hover,
.block-umcta__trigger:focus {
	opacity: 0.88;
}

.block-umcta__trigger:focus {
	outline: 2px solid var(--umcta-accent);
	outline-offset: 2px;
}

/* ── Arrow indicator ─────────────────────────────────────────────────────── */

/* Suppress any arrow the theme adds to <button> elements via ::after. */
.block-umcta__trigger::after {
	display: none;
	content: none;
}

.block-umcta__arrow {
	display: inline-block;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.block-umcta__trigger[aria-expanded="true"] .block-umcta__arrow {
	transform: rotate(180deg);
}

/* ── Drawer ──────────────────────────────────────────────────────────────── */

.block-umcta__drawer {
	background: transparent;
	border: none;
	max-width: 500px;
	padding-top: 8px;
}

/* Ensure `hidden` attribute hides the drawer even if a theme resets `display`. */
.block-umcta__drawer[hidden] {
	display: none;
}

/* ── Options list ────────────────────────────────────────────────────────── */

.block-umcta__options {
	list-style: disc;
	margin: 0;
	padding: 6px 0 0 3em;
}

.block-umcta__option {
	color: var(--umcta-accent);
	font-weight: 700;
	padding: 3px 0;
}

.block-umcta__option a {
	color: var(--umcta-accent);
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
}

.block-umcta__option a:hover,
.block-umcta__option a:focus {
	text-decoration: underline;
	color: var(--umcta-accent);
	opacity: 0.85;
}

/* ── Mobile floating button ──────────────────────────────────────────────── */

.block-umcta__float-btn {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	padding: 16px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: var(--umcta-accent);
	border: none;
	cursor: pointer;
	z-index: 1000;
	text-align: center;
	transition: opacity 0.15s ease;
}

.block-umcta__float-btn:hover,
.block-umcta__float-btn:focus {
	opacity: 0.88;
}

@media only screen and (max-width: 768px) {
	.block-umcta__float-btn {
		display: block;
	}

	.block-umcta.is-in-view .block-umcta__float-btn {
		display: none;
	}
}

/* ── Empty state (editor only) ───────────────────────────────────────────── */

.block-umcta__empty {
	margin: 0;
	padding: 8px 0;
	font-size: 14px;
	color: #666;
	font-style: italic;
}
