/**
 * Relevanssi predictive-search spinner — theme-green override.
 *
 * Brand SSOT for the spinner paint. Hex mirrors Panda semantic tokens
 * green-dark / bg-tertiary (#004a25, stable in both color modes).
 *
 * Unlayered ON PURPOSE: Relevanssi ships its own unlayered style.css, and
 * unlayered author CSS always beats layered CSS in the cascade — so the
 * Panda recipe in theme/recipes/blocks.ts cannot win these declarations.
 * Enqueued after the `relevanssi-live-search` handle (see
 * avidly_enqueue_relevanssi_overrides() in plugins/avidly/avidly.php);
 * higher specificity does the rest — no !important.
 *
 * border-right-color stays transparent: the plugin's spinner is a ring with
 * a gap (border-right-color: transparent); recoloring all four sides would
 * close the gap and freeze the rotation visual.
 */
.wp-root .rlv-has-spinner {
  border-color: #004a25;
  border-right-color: transparent;
}
.wp-root .rlv-has-spinner::after {
  background-color: #004a25;
}

/**
 * Status row border — moved off the inner <p> onto the wrapper.
 * The plugin draws `border-bottom` on `.relevanssi-live-search-result-status p`
 * (unlayered), which lands flush against the text because that <p> has no
 * vertical padding of its own. Unset it there and redraw it on the wrapper
 * instead, so the theme's wrapper padding (`py: 2xs` in blocks.ts) opens a gap
 * between text and rule. Both halves live here because the unset contests a
 * plugin declaration and must therefore also be unlayered to win.
 */
.wp-root .relevanssi-live-search-result-status p {
  border-bottom: 0;
}
.wp-root .relevanssi-live-search-result-status {
  border-bottom: 1px solid rgba(30, 30, 30, 0.1);
}

/**
 * No-results row — same look as the status row above: small text with 1em
 * side padding and 8px of vertical breathing room (the status row gets its
 * 8px from the wrapper's `py: 2xs`; this <p> is a direct child of
 * .ajax-results, so it carries its own).
 * Unlayered: the plugin's inline base styles set `padding: 0 1em` on this
 * <p>, which beats any layered rule.
 * No bottom rule here (unlike the status row): as the only row it would sit
 * on the box's bottom edge — the plugin likewise leaves last rows rule-less.
 */
.wp-root .relevanssi-live-search-no-results {
  font-size: 0.8em;
  padding: 8px 1em;
}
