.bm-grouped-ebd {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.bm-grouped-ebd__groups {
	margin: 0;
}

.bm-grouped-ebd__group {
	margin: 0 0 32px;
}

.bm-grouped-ebd__heading,
.bm-grouped-ebd__form-heading {
	margin: 0 0 10px;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
}

.bm-grouped-ebd__items {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.bm-grouped-ebd__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
}

.bm-grouped-ebd__visible-checkbox {
	flex: 0 0 auto;
	margin: 4px 0 0;
}

.bm-grouped-ebd__title {
	flex: 1 1 auto;
}

.bm-grouped-ebd__form-panel {
	position: sticky;
	top: 30px;
	padding: 24px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.10);
}

.bm-grouped-ebd__instructions {
	margin: 0 0 20px;
}

.bm-grouped-ebd__instructions p {
	margin: 0 0 12px;
}

.bm-grouped-ebd__instructions p:last-child {
	margin-bottom: 0;
}

.bm-grouped-ebd__original {
	margin-top: 0;
}

/* Hide only EBD's old flat list controls. Its real CF7 fields stay visible. */
.bm-grouped-ebd__original-choice {
	display: none !important;
}

/*
 * When EBD is configured to hide the contact form until a document is
 * selected, our JS controls this same div after syncing the mirror boxes.
 */
.bm-grouped-ebd__original #downloadinputform {
	margin-top: 18px;
}

.bm-grouped-ebd-error {
	padding: 12px 14px;
	border: 1px solid #d63638;
	background: #fff;
	color: #8a2424;
	margin: 10px 0;
}

@media (max-width: 900px) {
	.bm-grouped-ebd {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.bm-grouped-ebd__form-panel {
		position: static;
	}
}
