/* ============================================================
   GlamGoddess — Universal Toast / Alert
   Load this everywhere via:   <link rel="stylesheet" href=".../assets/css/toast.css"/>
   Then call:                  showToast('Message', 'success' | 'error' | 'info' | 'warning')
============================================================ */
.gg-toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}
.gg-toast {
  min-width: 280px;
  max-width: 440px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px 14px 16px;
  border-radius: 12px;
  background: #fff;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.45;
  box-shadow: 0 10px 36px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  border-left: 4px solid #6b7280;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .28s ease, transform .28s cubic-bezier(0.22,1,0.36,1);
}
.gg-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.gg-toast.hide {
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
}
.gg-toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
}
.gg-toast-msg {
  flex: 1;
  padding-top: 2px;
}
.gg-toast-close {
  background: none;
  border: none;
  color: rgba(0,0,0,0.35);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 4px;
  transition: color .2s;
}
.gg-toast-close:hover { color: #1a1a1a; }

.gg-toast.success { border-left-color: #22c55e; }
.gg-toast.success .gg-toast-icon { background: #22c55e; }
.gg-toast.error   { border-left-color: #ef4444; }
.gg-toast.error   .gg-toast-icon { background: #ef4444; }
.gg-toast.warning { border-left-color: #f59e0b; }
.gg-toast.warning .gg-toast-icon { background: #f59e0b; }
.gg-toast.info    { border-left-color: #C8860A; }
.gg-toast.info    .gg-toast-icon { background: #C8860A; }

@media (max-width: 480px) {
  .gg-toast-container { top: 16px; }
  .gg-toast { min-width: 0; width: calc(100vw - 32px); font-size: 0.8rem; padding: 12px 14px; }
}
