/**
 * aieo/lowest-price-message: the EU lowest-price line under the price.
 *
 * The designer's line (10 Nov 2026, every shop's default): one line in the muted ink at the small step, the amounts
 * in the same ink, no margin of its own (the column's gap spaces it). Its own properties, unset unless the shop chose
 * a value: --rooster-lowest-price-size (Settings > the lowest-price message's font size, printed only when it is not
 * the shipped 0.75rem). An info icon follows the words only when the shop wrote a tooltip. No colour of our own.
 *
 * @package ai-eshop-optimizer
 */
.wp-block-aieo-lowest-price-message,
.aieo-lowest-price {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: var(--rooster-lowest-price-size, var(--wp--preset--font-size--sm, 0.875rem));
	line-height: 1.4;
	color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 70%, transparent));
	font-variant-numeric: tabular-nums;
}
.aieo-lowest-price__text { min-width: 0; }
.aieo-lowest-price__text :is(.woocommerce-Price-amount, bdi) {
	font-weight: inherit;
	color: inherit;
}

/* Info icon + hover/focus tooltip (only with the shop's tooltip text). */
.aieo-lowest-price__info {
	position: relative;
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--wp--preset--color--muted, currentColor);
	cursor: help;
}
.aieo-lowest-price__info > svg {
	display: block;
	width: 1em;
	height: 1em;
}
.aieo-lowest-price__tooltip {
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: max-content;
	max-width: 240px;
	padding: 8px 10px;
	border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
	border-radius: var(--wp--custom--rooster--shape--panel, 0);
	background: var(--wp--preset--color--neutral-50, Canvas);
	color: var(--wp--preset--color--fg, CanvasText);
	box-shadow: var(--wp--custom--rooster--shadow--md, none);
	font-size: var(--wp--preset--font-size--xs, 0.75rem);
	line-height: 1.35;
	font-weight: 400;
	text-align: left;
	white-space: normal;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
	z-index: 20;
	pointer-events: none;
}
.aieo-lowest-price__info:hover .aieo-lowest-price__tooltip,
.aieo-lowest-price__info:focus .aieo-lowest-price__tooltip,
.aieo-lowest-price__info:focus-visible .aieo-lowest-price__tooltip {
	opacity: 1;
	visibility: visible;
}
