/* Global flash → toast notifications (site-wide) */
.ncma-toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.ncma-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  padding: 0.85rem 0.9rem 0.85rem 1rem;
  border-radius: 0;
  border: 1px solid transparent;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.1),
    0 2px 8px rgba(15, 23, 42, 0.06);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 0.9rem;
  font-weight: 550;
  line-height: 1.45;
  letter-spacing: -0.01em;
  opacity: 0;
  transform: translateY(-8px) translateX(12px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.ncma-toast.is-visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.ncma-toast.is-leaving {
  opacity: 0;
  transform: translateY(-6px) translateX(10px);
}

.ncma-toast__body {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.ncma-toast__close {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  margin: -0.2rem -0.25rem -0.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  opacity: 0.55;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.ncma-toast__close:hover,
.ncma-toast__close:focus-visible {
  opacity: 1;
  background: rgba(15, 23, 42, 0.06);
  outline: none;
}

/* Success — soft SaaS green-blue */
.ncma-toast--success {
  background: #ecfdf5;
  color: #0f766e;
  border-color: #a7f3d0;
}

/* Error — soft pink / red (matches prior page banners) */
.ncma-toast--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

/* Warning */
.ncma-toast--warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

/* Info — SaaS blue */
.ncma-toast--info {
  background: #eff6ff;
  color: #0578AB;
  border-color: #bfdbfe;
}

@media (max-width: 640px) {
  .ncma-toast-host {
    top: 0.75rem;
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
    align-items: stretch;
  }
}
