/* Figma, Alert (Frame 9): a pale tint card, the state's icon, title and body in ink.
   Colour is never the only signal; role=alert/status carries it for screen readers. */
@layer components {
  .flash {
    --flash-background: var(--color-info-tint);

    padding: var(--block-space) var(--inline-space-double);
    font-size: var(--text-small);
    color: var(--color-text);
    background: var(--flash-background);
    border-radius: var(--radius-large);

    & ul { padding-inline-start: var(--inline-space-double); }
  }

  .flash--notice {
    --flash-background: var(--color-positive-tint);
  }

  .flash--alert {
    --flash-background: var(--color-negative-tint);
  }
}

/* Alert and flash share one component: icon, optional title, body. */
@layer components {
  .flash {
    display: flex;
    gap: var(--inline-space);
    align-items: start;
  }

  .flash__body { display: flex; flex-direction: column; gap: 0.125rem; padding-block-start: 0.125rem; }

  .flash__title { font-weight: 700; }

  .flash--warning {
    --flash-background: var(--color-warning-tint);
  }

  /* adr/0026: a Grella admin viewing a business. Stays put and carries its way out. */
  .viewing-as {
    align-items: center;
    & .button_to { margin-inline-start: auto; }
  }
}
