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

.flash__inner {
  animation: appear-then-fade 3s 300ms both;
  aspect-ratio: 1;
  background-color: var(--flash-background, var(--color-positive));
  border-radius: 50%;
  display: grid;
  padding: var(--block-space);
  place-items: center;

  img {
    grid-area: 1/1;
  }
}

/* Hey Footy: the message is shown as words beside the icon, not only to screen readers. */
.flash {
  align-items: center;
  animation: appear-then-fade 6s 300ms both;
  background-color: oklch(var(--lch-white));
  border: 1px solid oklch(var(--lch-gray-darker));
  border-radius: 2em;
  box-shadow: 0 0.4em 1.6em oklch(0% 0 0 / 0.2);
  gap: 0.6em;
  max-inline-size: calc(100vw - 2em);
  padding: 0.35em 1em 0.35em 0.35em;
}

.flash .flash__inner {
  animation: none;
  padding: 0.4em;
}

.flash__text {
  font-size: 0.9em;
  font-weight: 500;
}
