/* aieo/sale-eligibility-message: the sale note under the price.
 *
 * The designer's line (10 Nov 2026, every shop's default): the words in the text colour at the small step, the
 * leading icon in the success colour (the default wording leads with a tick: the saving is good news), no box, no margin of its own (the
 * column's gap spaces it), the amounts in the words' weight 600. Its own property, unset unless set by a designer:
 * --rooster-sale-note-icon (the icon's colour). No colour of our own.
 */

/* A block box, not a row (F31): the line (the icon and its words: .aieo-icon-text) and, for words without a glyph, the
   words in one flow with their end under them. */
.aieo-sale-eligibility {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wp--preset--color--fg, currentColor);
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
    line-height: 1.4;
    font-weight: 400;
}

.aieo-sale-eligibility .aieo-icon-text {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.aieo-sale-eligibility :is(.woocommerce-Price-amount, strong, b) {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.aieo-sale-eligibility .aieo-icon {
    flex: none;
    margin-top: 0.1em;
    color: var(--rooster-sale-note-icon, var(--wp--preset--color--success, currentColor));
}

/* A sale's end (11.3.16, F22, F31: the owner, "The sale ends ought to be in the next line."): its own line under the
   sentence, in the sentence's column (AIEO_Icons::lead_html()'s $below), the clock beside its words, in the muted
   token. "Sale ends Sunday 23 November at 20:00". The clock and its words apart by the spacing's second step, as the
   deal card's and the pop-up's ends (F31b, the owner: "the icon touches the word Sale. Give it some space!"). */
.aieo-sale-eligibility .aieo-sale-ends {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--2, 0.5rem);
    margin: var(--wp--preset--spacing--1, 0.25rem) 0 0;
    color: var(--wp--preset--color--muted, currentColor);
    font-weight: 400;
}

.aieo-sale-eligibility .aieo-sale-ends > :is(svg, .rooster-icon) {
    flex: none;
}
