/*
 * Components: labels. Loaded when a block carries one of the text-style
 * classes (eyebrow, badge, price, stat, stars, underline; inc/assets.php
 * entry "labels"). Colours, fonts, padding and borders are partials in
 * styles/blocks; this file adds display and layout, the price details and
 * the inline-highlight fix.
 */

/* ---------- eyebrow pill and badges: inline boxes that follow the alignment ---------- */

.is-style-eyebrow-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
}

.is-style-badge,
.is-style-badge-tint {
	display: inline-block;
	line-height: 1.3;
}

/* Centred or right-aligned paragraph: the box itself moves, not just its text.
   (Constrained layouts force auto side margins with !important, hence the
   !important on the end margin.) */
.is-style-eyebrow-pill.has-text-align-center,
.is-style-badge.has-text-align-center,
.is-style-badge-tint.has-text-align-center {
	display: flex;
	width: fit-content;
	margin-inline: auto;
}

.is-style-eyebrow-pill.has-text-align-right,
.is-style-badge.has-text-align-right,
.is-style-badge-tint.has-text-align-right {
	display: flex;
	width: fit-content;
	margin-inline-start: auto;
	margin-inline-end: 0 !important;
}

/* ---------- underlined heading (legacy) ---------- */

.is-style-revsults-underline {
	padding-bottom: 0.4em;
	border-bottom: var(--wp--custom--border--width, 1px) solid var(--wp--preset--color--contrast);
}

/* ---------- stars ---------- */

.is-style-stars {
	letter-spacing: 0.12em;
	white-space: nowrap;
}

/* ---------- prices ---------- */

/* "245 €" in the heading face; a <small> suffix ("/ Party") in the body face. */
.is-style-price small {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: var(--wp--custom--typography--font-weight--bold, 600);
	letter-spacing: 0;
	color: var(--wp--preset--color--contrast-2);
}

.is-style-price-amount {
	white-space: nowrap;
}

/* ---------- inline highlight: colour only, never the browser's yellow ---------- */

mark.has-inline-color {
	background-color: transparent;
}
