
.flash-messages {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 516;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 34px;
  pointer-events: none;
  opacity: 1;
}

@media (max-width: 768px) {
  .flash-messages {
    padding: 8px;
    bottom: 0px;
    align-items: center;
  }
}

.flash-message {
  display: flex;
  align-items: center;
  text-align: center;
  max-width: 25rem;
  margin: 0.5rem;
  padding: 0.6rem 1.25rem;
  background-color: #000;
  /* Slightly lighter black */
  border-radius: 30px;
  font-size: 13px;
  line-height: 1.25rem;
  font-family: 'Space Mono', monospace;
  pointer-events: none;
  color: #ffffff;
  opacity: 0;
  transform: translateY(1rem);
  animation: flash-message-slide-up 0.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    /* Subtle white outline */
    0 4px 6px rgba(0, 0, 0, 0.1),
    /* Soft shadow */
    0 1px 3px rgba(0, 0, 0, 0.1);
  /* Additional depth */
  backdrop-filter: blur(8px);
}

@keyframes flash-message-slide-up {
  0% {
    opacity: 0;
    transform: translateY(1rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.flash-success {
  background-color: rgba(32, 32, 32, 0.95);
  /* Keep consistent with base flash-message */
}

.flash-error {
  background-color: rgba(32, 32, 32, 0.95);
  /* Keep consistent with base flash-message */
}
