/*
 * Pill (cis/pill). Loaded with the block, front end and editor canvas.
 *
 * Moved here from two Etch styles, because Etch only prints a style while an Etch block uses it:
 * .bw-pill (the box) and .bw-font-family--bricolage (the font the Etch Pill also carries).
 * Plain stylesheet, not compiled by Etch, so lengths are in rem (to-rem(1px) = 0.0625rem) and ACSS
 * variables are used as is. The Etch rules stay in the style store for the pills that remain in Etch
 * (loops, templates); the declarations are identical, so both look the same.
 *
 * --pill-color is set inline by the block (the chosen site colour).
 */

.bw-pill {
	--font-family: 'Bricolage Grotesque';
	--letter-spacing: -0.02em;

	border: 0.0625rem solid var(--pill-color);
	border-radius: var(--radius-xxs);
	padding-inline: var(--space-xs);
	padding-block: var(--space-xxs);
	color: var(--pill-color);
	text-transform: uppercase;
	background-color: var(--white);
	line-height: 1.1;
	font-family: var(--font-family) !important;
	letter-spacing: var(--letter-spacing);

	&[data-variant='solid'] {
		background-color: var(--pill-color);
		color: var(--white);
	}
}

/* Canvas only: the block wrapper holds the pill at its own width, left aligned. */
.bw-pill-editor {
	display: flex;
	justify-content: flex-start;

	.bw-pill {
		display: inline-block;
	}
}
