/* WooWhats — shared toast notifications (RTL).
   Self-contained: only styles elements created by /js/toast.js.
   All rules are scoped under #toastContainer so they never collide with
   page styles or the legacy .toast-* rules in app.css. */

#toastContainer {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;          /* clicks pass through gaps to the page */
  width: max-content;
  max-width: calc(100vw - 32px);
}

#toastContainer .toast {
  pointer-events: auto;          /* but the toast itself is clickable (dismiss) */
  direction: rtl;
  text-align: right;
  font-family: 'Rubik', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
  padding: 13px 20px;
  border-radius: 12px;
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  max-width: 420px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

#toastContainer .toast.toast-show {
  opacity: 1;
  transform: translateY(0);
}

#toastContainer .toast.toast-hide {
  opacity: 0;
  transform: translateY(12px);
}

#toastContainer .toast-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

#toastContainer .toast-error {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}
