/* =============================================================
   GLAZE — Toast notifications (messageStack override)
   Replaces Zen Cart's full-width colored bars with elegant
   slide-in toasts anchored top-right. Light/Glaze-branded UI.
   ============================================================= */

.glaze-toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.glaze-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ffffff;
  color: #1F1D20;
  border: 1px solid #F2E4E9;
  box-shadow: 0 12px 32px -10px rgba(31, 29, 32, .28);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  transform: translateX(20px) scale(.98);
  transition: opacity .26s ease, transform .26s cubic-bezier(.2,.8,.2,1);
}
.glaze-toast.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.glaze-toast.is-leaving {
  opacity: 0;
  transform: translateX(20px) scale(.98);
}

/* Left accent stripe + icon badge per type */
.glaze-toast__icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-top: 1px;
}
.glaze-toast__icon svg {
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  stroke: currentColor;
  fill: none;
}

.glaze-toast__body {
  flex: 1 1 auto;
  color: #1F1D20;
}

.glaze-toast__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #A8A3AA;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color .15s;
}
.glaze-toast__close:hover { color: #1F1D20; }

/* ---------- Type variants ---------- */
.glaze-toast--success {
  border-color: rgba(214, 51, 108, .35);
  background: #FFF0F5;
}
.glaze-toast--success .glaze-toast__icon { background: #D6336C; }

.glaze-toast--error {
  border-color: rgba(229, 57, 53, .35);
  background: #FDEEEE;
}
.glaze-toast--error .glaze-toast__icon { background: #E53935; }

.glaze-toast--warning,
.glaze-toast--caution {
  border-color: rgba(232, 163, 23, .40);
  background: #FFFBEF;
}
.glaze-toast--warning .glaze-toast__icon,
.glaze-toast--caution .glaze-toast__icon { background: #E8A317; }

.glaze-toast--default {
  border-color: #F2E4E9;
  background: #ffffff;
}
.glaze-toast--default .glaze-toast__icon { background: #2F80ED; }

@media (max-width: 480px) {
  .glaze-toast-stack {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
