.flash {
  position: fixed;
  top: 3.75rem;
  right: 1.25rem;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: .5rem;
  font-size: 0.875rem;
  color: var(--white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  transform: translateX(120%);
  animation: flash-slide-in 0.4s ease-out forwards;

  & + .flash {
    margin-top: 3rem;
  }

  &.notice {
    background-color: #ecfdf3;
    border-color: #16a34a;
    color: #166534;
    button svg {
      color: #166534;
    }
  }

  &.alert {
    background-color: #fef2f2;
    border-color: #dc2626;
    color: #b91c1c;
    button svg {
      color: #b91c1c;
    }
  }

  svg {
    flex-shrink: 0;
  }

  p {
    margin: 0;
  }

  button {
    padding: 0;
    border: 0;
    background-color: transparent;
    &:hover {
      background-color: transparent;
    }
  }
}

@keyframes flash-slide-in {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}