/* Sitewide toast notifications — replaces WooCommerce's inline notice banner
   (add-to-cart, coupon errors, etc.) with a floating auto-dismiss toast.
   See theme/assets/toast.js for the conversion + trigger logic. */

#pcseal-toast-container {
  position: fixed;
  top: var(--pcseal-toast-top, 90px);
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 320px;
  max-width: calc(100vw - 40px);
  pointer-events: none;
}

.pcseal-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 14px 32px -14px rgba(10,30,20,.35);
  font-size: 0.88rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: auto;
}
.pcseal-toast.is-visible { opacity: 1; transform: translateX(0); }

.pcseal-toast-success { border-left-color: #2e9e5b; }
.pcseal-toast-error   { border-left-color: #e64545; }
.pcseal-toast-info    { border-left-color: var(--accent); }

.pcseal-toast-msg { flex: 1; }
.pcseal-toast-msg a { color: var(--accent-strong); font-weight: 700; }

.pcseal-toast-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.pcseal-toast-close:hover { color: var(--ink); }

@media (max-width: 480px) {
  #pcseal-toast-container { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; }
}
