.flash {
  z-index: 10000;
  position: fixed;
  top: 5rem;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--block-space);

  max-width: 100%;
  width: max-content;
  padding: 0 var(--block-space);
}

.flash__message {
  padding: var(--block-space-half) var(--block-space);
  color: var(--color-bg);
  background-color: var(--color-ink);
  animation: appear-then-fade 5s both;
  border-radius: var(--border-radius, 1em);
}

@keyframes appear-then-fade {
  0%,
  100% {
    opacity: 0;
  }
  5%,
  60% {
    opacity: 1;
  }
}

.flash--modal {
  position: sticky;
  top: 0;
  height: 0;
}
