/* Center popup messages (no CDN) */
.npr-toasts{
  position:fixed;
  inset:0;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:999999;
  background:rgba(15,23,42,.35);
}
.npr-toasts.is-active{ display:flex; }

.npr-toast{
  width:min(520px, 100%);
  background:#fff;
  border:1px solid var(--npr-border);
  border-radius:16px;
  box-shadow:0 18px 55px rgba(2,6,23,.22);
  padding:16px 16px 14px;
  display:flex;
  gap:12px;
  direction:rtl;
}

.npr-toast__icon{
  width:38px;
  height:38px;
  border-radius:12px;
  flex:0 0 38px;
  background:#eff6ff;
  border:1px solid #bfdbfe;
}
.npr-toast.success .npr-toast__icon{ background:#ecfdf5; border-color:#bbf7d0; }
.npr-toast.error   .npr-toast__icon{ background:#fef2f2; border-color:#fecaca; }
.npr-toast.warn    .npr-toast__icon{ background:#fffbeb; border-color:#fde68a; }

.npr-toast__content{ flex:1 1 auto; min-width:0; }
.npr-toast__msg{
  font-size:14px;
  line-height:1.9;
  color:var(--npr-text);
  margin-top:2px;
  word-break:break-word;
}

.npr-toast__actions{
  margin-top:12px;
  display:flex;
  justify-content:flex-start;
}
.npr-toast__btn{
  appearance:none;
  border:1px solid var(--npr-border);
  background:#fff;
  padding:8px 14px;
  border-radius:12px;
  cursor:pointer;
  font-family:inherit;
  font-size:13px;
}
.npr-toast__btn:hover{ background:var(--npr-bg); }

@media (max-width: 480px){
  .npr-toast{ border-radius:14px; padding:14px 14px 12px; }
  .npr-toast__icon{ display:none; }
}
