/*
 * AI HTML to Blocks - Block style helpers
 *
 * Keep styles neutral/minimal. Themes should remain in control of colors/typography.
 */

/*
 * Pill list (inline)
 * - For “type/tag/chip” collections that LOOK like pills but should be a semantic list.
 * - The converter uses a wrapper span (.h2b-pill-item) to keep the clickable area consistent.
 */
.wp-block-list.is-style-h2b-pill-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.25em;
	justify-content: flex-start;
	align-items: center;
}

/* Alignment helpers (the converter adds these based on the original flex/text-align). */
.wp-block-list.is-style-h2b-pill-list.h2b-justify-center { justify-content: center; }
.wp-block-list.is-style-h2b-pill-list.h2b-justify-right { justify-content: flex-end; }
.wp-block-list.is-style-h2b-pill-list.h2b-justify-space-between { justify-content: space-between; }

.wp-block-list.is-style-h2b-pill-list > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-list.is-style-h2b-pill-list > li > a {
	display: inline-flex;
	text-decoration: none;
	color: inherit;
}

.wp-block-list.is-style-h2b-pill-list .h2b-pill-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	padding: 0.9em 1.8em;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
	background: var(--h2b-pill-bg, rgba(255, 255, 255, 0.9));
}

.wp-block-list.is-style-h2b-pill-list > li > a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	border-radius: 9999px;
}
