/* Toast container (top-center, mobile friendly) */
.toast-container{
  position:fixed; top:16px; left:50%; transform:translateX(-50%);
  display:flex; justify-content:center; z-index:9999;
  width:auto; max-width:92vw; pointer-events:none;
}

/* Toast box */
.toast-box{
  background:#fff; color:#111;
  padding:10px 13px; border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.18);
  font-size:12px; font-weight:500; line-height:1.2;
  display:flex; align-items:center; gap:10px;
  opacity:0; transform:translateY(-40px);
  transition:all .35s cubic-bezier(.21,1.02,.73,1);
  pointer-events:auto; /* allow tap to dismiss */
  text-align:left; white-space:nowrap;
}

/* Visible state */
.toast-box.show{ opacity:1; transform:translateY(0); }

/* Red error icon (pill) */
.toast-icon{
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:50%;
  background:#f44336; color:#ffffff; font-size:16px; font-weight:700;
  flex-shrink:0;
}

/* Let it wrap on very small screens */
@media (max-width:360px){
  .toast-box{ white-space:normal; }
}