/* Toast Messages - Drupal status messages via Toastify.js */

.toast-container {
  display: none;
}

/* Base toast notification override */
.toastify.toast-notification {
  opacity: 0;
  position: fixed;
  bottom: -150px;
  right: 20px;
  z-index: 9999;
  transition: all 0.3s ease;
  padding: 0;
  background: none;
  box-shadow: none;
  max-width: 480px;
  width: 100%;
  cursor: default;
}

.toastify.toast-notification.on {
  opacity: 1;
  bottom: 20px;
}

/* Toast message body */
.toast-message {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.toast-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  gap: 12px;
}

/* Message types */
.toast-message--error {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #7f1d1d;
}

.toast-message--warning {
  background-color: #fefce8;
  border-color: #fef08a;
  color: #713f12;
}

.toast-message--status {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #14532d;
}

.toast-message--info {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  color: #0c4a6e;
}

/* Message list */
.toast-message__list {
  list-style: disc;
  padding-left: 18px;
  margin: 0;
}

.toast-message__list li {
  margin-bottom: 2px;
}

.toast-message__list li:last-child {
  margin-bottom: 0;
}

/* Close button */
.toast-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  padding: 0;
  margin-left: auto;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
  color: inherit;
}

.toast-close-btn:hover {
  opacity: 1;
}

/* Hide Toastify default close button (we use our own) */
.toastify.toast-notification .toast-close {
  display: none;
}

/* Responsive */
@media (max-width: 576px) {
  .toastify.toast-notification {
    max-width: calc(100% - 24px);
    right: 12px;
  }
}
