/* Toast notification styling following Fizzy pattern */

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

.flash {
  display: flex;
  inset-block-start: 1rem;
  inset-inline-start: 50%;
  justify-content: center;
  position: fixed;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.flash__inner {
  animation: appear-then-fade 3s 300ms both;
  background-color: #1f2937;
  border-radius: 4rem;
  color: #ffffff;
  display: inline-flex;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: auto;
  max-width: calc(100vw - 2rem);
  text-align: center;
}

/* Mobile: more comfortable padding and ensure readability */
@media (max-width: 600px) {
  .flash__inner {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    max-width: calc(100vw - 1.5rem);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .flash__inner {
    animation: none;
    opacity: 1;
  }
}
