/* Sitewide toast notifications (components/common/Toast.tsx) — success/error/
   info feedback for any storefront action (order placed, cart, wishlist,
   cancel/reorder, invoice, auth, etc). Uses --sw-primary/--sw-success/
   --sw-error, same as the rest of the storefront theme. */

.sw-toast-viewport {
  position: fixed;
  inset: auto 16px 16px auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.sw-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 360px;
  max-width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 12px 32px rgba(20, 30, 50, 0.14);
}

.sw-toast-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-toast.success .sw-toast-icon {
  background: rgba(30, 158, 92, 0.12);
  color: var(--sw-success);
}
.sw-toast.error .sw-toast-icon {
  background: rgba(192, 57, 43, 0.1);
  color: var(--sw-error);
}
.sw-toast.info .sw-toast-icon {
  background: rgba(30, 58, 95, 0.1);
  color: var(--sw-primary);
}
.sw-toast.warning .sw-toast-icon {
  background: rgba(230, 162, 60, 0.14);
  color: #c67c1f;
}

.sw-toast-body {
  flex: 1;
  min-width: 0;
}
.sw-toast-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  color: #1a1a1a;
}
.sw-toast-desc {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #777;
  line-height: 1.45;
}
.sw-toast-close {
  flex: 0 0 auto;
  background: none;
  border: none;
  padding: 0;
  color: #bbb;
  cursor: pointer;
  line-height: 0;
}
.sw-toast-close:hover {
  color: #888;
}

@media (max-width: 480px) {
  .sw-toast-viewport {
    inset: auto 12px 12px 12px;
    align-items: stretch;
  }
  .sw-toast {
    width: 100%;
  }
}
