/* List item icons: the chosen icon is masked with the current colour so it can be recoloured with plain CSS.
 * The icon is positioned absolutely (not flex) so it never disturbs a nested
 * list or other block children that can appear after the item's own text.
 * A combined shape like a checkmark-in-a-circle is just another icon in the
 * picker (see gutenberg-icons.js) - no separate "style" wrapper needed here. */
.vrl-has-icon {
	position: relative;
	list-style: none;
	/* Left padding scales with icon size + gap, so a bigger icon never overlaps the text. */
	padding-inline-start: calc(var(--vrl-icon-size, 1em) + var(--vrl-icon-gap, 0.5em));
}

.vrl-has-icon::before {
	content: '';
	position: absolute;
	inset-inline-start: 0;
	top: var(--vrl-icon-top, 0.15em);
	bottom: var(--vrl-icon-bottom, auto);
	transform: var(--vrl-icon-transform, none);
	width: var(--vrl-icon-size, 1em);
	height: var(--vrl-icon-size, 1em);
	background-color: var(--vrl-icon-color, currentColor);
	mask-image: var(--vrl-icon);
	mask-position: center;
	mask-size: contain;
	mask-repeat: no-repeat;
	-webkit-mask-image: var(--vrl-icon);
	-webkit-mask-position: center;
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
}


/* Gap between list items. */
.vrl-list-spacing > li + li {
	margin-top: var(--vrl-item-gap, 0);
}

/* List columns. */
.vrl-list-columns {
	columns: var(--vrl-list-columns, 1);
	column-gap: 2em;
}

.vrl-list-columns > li {
	break-inside: avoid;
}

/* Separator width. */
.vrl-has-width {
	width: var(--vrl-sep-width);
	max-width: 100%;
	margin-inline: auto;
}
