/* Bright Addons: Feature List */
.bafe-features {
	--bafe-row-gap: 28px;
	--bafe-icon-box: 52px;
	--bafe-connector: #d9d5ff;
	--bafe-connector-style: dashed;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--bafe-row-gap) 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bafe-feature {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 18px;
	margin: 0;
	padding: 0;
}

.bafe-feature__icon {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: var(--bafe-icon-box);
	height: var(--bafe-icon-box);
	border-radius: 50%;
	background-color: #f1efff;
	color: #5b4bff;
	font-size: 20px;
	line-height: 1;
}

.bafe-feature__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.bafe-feature__body {
	flex: 1;
	min-width: 0;
	padding-top: 4px;
}

.bafe-feature__title {
	margin: 0 0 6px;
}

.bafe-feature__title a {
	color: inherit;
	text-decoration: none;
}

.bafe-feature__title a:hover,
.bafe-feature__title a:focus-visible {
	text-decoration: underline;
}

.bafe-feature__text {
	margin: 0;
}

/* Connector line between icons. Hidden automatically when there is more than one column. */
.bafe-features--connector-yes .bafe-feature:not(:last-child)::before {
	content: "";
	position: absolute;
	top: var(--bafe-icon-box);
	bottom: calc(var(--bafe-row-gap) * -1);
	left: calc(var(--bafe-icon-box) / 2);
	border-left: 2px var(--bafe-connector-style) var(--bafe-connector);
	opacity: clamp(0, calc(2 - var(--bafe-cols, 1)), 1);
	transform: translateX(-50%);
	pointer-events: none;
}

[dir="rtl"] .bafe-features--connector-yes .bafe-feature:not(:last-child)::before {
	right: calc(var(--bafe-icon-box) / 2);
	left: auto;
	transform: translateX(50%);
}
