@layer components {
  .flash {
    display: flex;
    inset-block-start: calc(92.5% - var(--block-space));
    inset-inline-start: 50%;
    justify-content: center;
    position: fixed;
    transform: translate(-50%);
    z-index: var(--z-flash);
  }

  .flash__inner {
    animation: appear-then-fade 3s 300ms both;
    background-color: var(--flash-background);
    border-radius: 4em;
    color: var(--flash-color);
    display: inline-flex;
    inline-size: max-content;
    margin: 0 auto;
    max-inline-size: 90vw;
    padding: 0.7em 1.4em;
  }
}
