/**
 * ASC shared toast notifications
 * Used by window.showToast() from app.js — keep position/styling here only.
 */

#asc-toast-root {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  width: min(520px, calc(100vw - 32px));
  pointer-events: none;
}

.asc-toast {
  pointer-events: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #fff;
  background: #091423;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(9, 20, 35, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.asc-toast.asc-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.asc-toast.asc-toast-success {
  background: #1f4d35;
}

.asc-toast.asc-toast-error,
.asc-toast.asc-toast-danger {
  background: #7a1f1f;
}

.asc-toast.asc-toast-warning {
  background: #7a5a14;
  color: #fff;
}

.asc-toast.asc-toast-info {
  background: #091423;
}

@media (max-width: 767px) {
  #asc-toast-root {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
}
