.flash-toast-container {
  z-index: 3000;
  min-width: 18rem;
  width: 22rem;
  max-width: min(360px, 100vw - 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.flash-toast-container .flash-toast {
  pointer-events: auto;
}

.flash-toast {
  border-radius: 1rem;
  border: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.3s ease;
}

.flash-toast.show,
.flash-toast.showing {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.flash-toast .toast-body {
  padding: 1rem 0.5rem 1rem 0.75rem;
}

.flash-toast-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.flash-toast-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  letter-spacing: 0.01em;
}

.flash-toast-message {
  font-size: 0.9rem;
  line-height: 1.3;
  opacity: 0.95;
}

.flash-toast-close {
  filter: invert(1);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.flash-toast-close:hover,
.flash-toast-close:focus {
  opacity: 1;
}

.flash-toast.text-bg-info {
  background-color: var(--bs-primary) !important;
  color: #fff;
}

.flash-toast.text-bg-info .flash-toast-icon {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 576px) {
  .flash-toast-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    width: min(92vw, 24rem);
    max-width: 100%;
  }
}
