/*==================================================
FOODCHAIN — CUSTOM TOAST NOTIFICATIONS (PUBLIC SITE)
Replaces the browser's native alert() on the
newsletter, contact, and partnership forms.
==================================================*/

.fc-toast-container {
  position: fixed;
  top: 110px;
  right: 24px;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

@media (max-width: 600px) {
  .fc-toast-container {
    top: auto;
    bottom: 20px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

.fc-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  color: #003820;
  padding: 16px 40px 16px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  border-left: 4px solid #6b7280;
  font-family: inherit;

  opacity: 0;
  transform: translateX(30px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fc-toast-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.fc-toast-out {
  opacity: 0;
  transform: translateX(30px) scale(0.98);
}

.fc-toast-success { border-left-color: #003820; }
.fc-toast-error { border-left-color: #dc3545; }
.fc-toast-info { border-left-color: #dc5e07; }

.fc-toast-icon {
  font-size: 1.15rem;
  margin-top: 2px;
}

.fc-toast-success .fc-toast-icon { color: #003820; }
.fc-toast-error .fc-toast-icon { color: #dc3545; }
.fc-toast-info .fc-toast-icon { color: #dc5e07; }

.fc-toast-message {
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1;
}

.fc-toast-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.fc-toast-close:hover {
  background: #f4f4f4;
  color: #555;
}

.fc-toast-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: currentColor;
  opacity: 0.35;
  transform-origin: left;
  animation: fcToastShrink 4.5s linear forwards;
}

.fc-toast-success .fc-toast-progress { color: #003820; }
.fc-toast-error .fc-toast-progress { color: #dc3545; }
.fc-toast-info .fc-toast-progress { color: #dc5e07; }

@keyframes fcToastShrink {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
