/*
 * Block: core/list. Loads only on pages that render a List block
 * (wp_enqueue_block_style). The checklist styles replace the marker with the
 * tick from assets/icons/check.svg, inlined as a CSS mask so the file is
 * self-contained and the colour is a token: --revsults-check (primary by
 * default, secondary for "Checklist, secondary"). A child may point
 * --revsults-check-icon at another mask image. Marker colour of plain lists
 * lives in theme.json.
 */

.wp-block-list.is-style-revsults-checklist,
.wp-block-list.is-style-checklist-secondary {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-revsults-checklist li,
.wp-block-list.is-style-checklist-secondary li {
	position: relative;
	padding-left: 1.75em;
}

.wp-block-list.is-style-revsults-checklist li::before,
.wp-block-list.is-style-checklist-secondary li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 1.1em;
	height: 1.1em;
	background-color: var(--revsults-check, var(--wp--preset--color--primary));
	-webkit-mask-image: var(--revsults-check-icon, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"));
	-webkit-mask-size: contain;
	-webkit-mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-image: var(--revsults-check-icon, url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>"));
	mask-size: contain;
	mask-position: center;
	mask-repeat: no-repeat;
}

.wp-block-list.is-style-checklist-secondary {
	--revsults-check: var(--wp--preset--color--secondary);
}
