/**
 * Revita: core/separator block styles.
 * Honey drip: a dripping honey edge (mask of images/honey-drip.svg), full width, 48px tall.
 * Hexagons: three small hexagons, honey–purple–honey, centred.
 * A colour chosen in the editor recolours both.
 */

/* Shared reset of the line (beats the 100px width and 2px border of the default separator). */
:root hr.wp-block-separator:is(.is-style-honey-drip, .is-style-hexagons):not(.is-style-wide, .is-style-dots) {
	border: 0;
	opacity: 1;
}

/* Honey drip. Auto width (not 100%) so a full-width drip also covers the root padding
 * that its negative alignfull margins reach into. */
:root hr.wp-block-separator.is-style-honey-drip:not(.is-style-wide, .is-style-dots) {
	inline-size: auto;
	block-size: 48px;
	background-color: var(--wp--preset--color--accent);
	-webkit-mask: url(../../images/honey-drip.svg) top center / 100% 100% no-repeat;
	mask: url(../../images/honey-drip.svg) top center / 100% 100% no-repeat;
}

/* Hexagons: one polygon traces three hexagons joined by zero-width bridges. */
:root hr.wp-block-separator.is-style-hexagons:not(.is-style-wide, .is-style-dots) {
	inline-size: 60px;
	block-size: 14px;
	margin-inline: auto;
	background: linear-gradient(90deg, var(--wp--preset--color--accent) 0 30%, var(--wp--preset--color--primary) 30% 70%, var(--wp--preset--color--accent) 70%);
	clip-path: polygon(0 50%, 6.667% 0, 20% 0, 26.667% 50%, 36.667% 50%, 43.333% 0, 56.667% 0, 63.333% 50%, 73.333% 50%, 80% 0, 93.333% 0, 100% 50%, 93.333% 100%, 80% 100%, 73.333% 50%, 63.333% 50%, 56.667% 100%, 43.333% 100%, 36.667% 50%, 26.667% 50%, 20% 100%, 6.667% 100%);
}

:root hr.wp-block-separator.is-style-hexagons.has-background:not(.is-style-wide, .is-style-dots) {
	background: currentColor;
}
