/*
 * Notices that sit above the results without replacing them.
 *
 * Bootstrap's own `.alert-info` / `.alert-warning` are deliberately not used:
 * their palette is Bootstrap's, not this app's, and a full-strength alert block
 * outweighs the list it is annotating. These are quieter — a tinted band at the
 * app's own tokens, sized to the body copy beside them.
 *
 * Colours come from the tokens in leisure-new-style.css so dark mode follows
 * automatically via light-dark(), and both text pairings clear WCAG AA.
 */

.flight-results-notice {
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1.45;
}

.flight-results-notice--info {
  border-color: var(--color-blue-light2, #d6e2e8);
  background-color: var(--color-blue-light, #eef4f7);
  color: var(--color-first);
}

/*
 * A failed refresh is worth noticing but is not a dead end — the previous
 * results are still on screen and still usable — so this is the warning amber
 * the policy tables already use for "a fact you need", not danger red.
 */
.flight-results-notice--warning {
  border-color: #f0d9a8;
  background-color: #fdf6e7;
  /* 4.9:1 on the tint above. */
  color: #8a5a00;
}

.flight-results-notice__retry {
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-weight: 600;
  /* Comfortably over the 24px minimum for a pointer target without making a
     secondary action look like the page's primary one. */
  min-height: 32px;
  padding-inline: 12px;
}

.flight-results-notice__retry:hover:not(:disabled),
.flight-results-notice__retry:focus-visible {
  background-color: rgb(255 255 255 / 60%);
  color: inherit;
}

.flight-results-notice__retry:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
