/**
 * Flavors Icon List - icon/marker + text list primitive.
 *
 * Layout, alignment, colours and spacing are all driven from Elementor
 * `selectors` (CSS custom properties for the per-instance gaps). Vertical and
 * inline layouts share the same row markup; the connector line is a pseudo
 * element on the marker wrapper so it only appears in the vertical timeline.
 */

.flavor-icon-list {
	--fil-row-gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--fil-row-gap);
}

.flavor-icon-list.fil--inline {
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: var(--fil-row-gap);
}

.fil-item {
	--fil-icon-gap: 12px;
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--fil-icon-gap);
	justify-content: var(--fil-justify, flex-start);
	margin: 0;
	padding: 0;
}

/* Marker on the right: reverse the row order but keep source order for a11y.
   row-reverse flips the main axis, so alignment uses the mirrored value. */
.fil--icon-right .fil-item {
	flex-direction: row-reverse;
	justify-content: var(--fil-justify-rev, flex-end);
}

.fil-icon-wrap {
	position: relative;
	flex-shrink: 0;
	display: inline-flex;
	line-height: 0;
}

.fil-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #6366f1;
	font-size: 20px;
	line-height: 1;
}

.fil-icon svg,
.fil-icon .fil-marker {
	width: 20px;
	height: 20px;
	display: block;
}

.fil-icon img,
.fil-icon .fil-img {
	display: block;
	width: 20px;
	height: auto;
	border-radius: 3px;
}

.fil-text {
	color: #1d2327;
	line-height: 1.5;
}

/* Whole-row link: inherit the row layout so marker + text stay aligned. */
.fil-link {
	display: inline-flex;
	flex-direction: inherit;
	align-items: center;
	gap: var(--fil-icon-gap);
	text-decoration: none;
	color: inherit;
}

.fil-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
	border-radius: 3px;
}

/* -------------------------------------------------------------- Divider */

.fil--divider .fil-item:not(:last-child) {
	border-bottom: 1px solid #e2e4e7;
	padding-bottom: var(--fil-row-gap);
}

/* -------------------------------------------------------------- Connector */

/*
 * The marker column stretches to the full row height and the line is a flex
 * child that fills the rest of it, then reaches across the row gap. This keeps
 * the line joined even when the text wraps onto several lines.
 */
.fil--connector .fil-item,
.fil--connector .fil-link {
	align-items: stretch;
}

.fil--connector .fil-icon-wrap {
	flex-direction: column;
	align-items: center;
}

.fil--connector .fil-item:not(:last-child) .fil-icon-wrap::after {
	content: "";
	display: block;
	flex: 1 0 auto;
	width: 2px;
	min-height: 2px;
	margin-top: 2px;
	margin-bottom: calc(2px - var(--fil-row-gap));
	background-color: #c7cbd1;
}

@media (prefers-reduced-motion: reduce) {
	.fil-item,
	.fil-icon {
		transition: none;
	}
}
