@import url('./theme.css');

#toastContainer.toast-container {
  position: fixed;
  top: calc(18px + var(--safe-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  width: min(calc(100vw - 32px), 420px);
  pointer-events: none;
}

#toastContainer > .toast {
  width: 100%;
  min-height: 56px;
  position: relative;
  padding: 14px 18px 14px 54px !important;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(15, 39, 68, .08);
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, .06), 0 20px 28px rgba(15, 39, 68, .14);
  color: var(--ink, #0d1b2e);
  display: block;
  pointer-events: auto;
  animation: bullanoToastIn .24s ease;
}

#toastContainer > .toast > .toast-message {
  display: block;
  width: 100%;
  text-align: left;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

#toastContainer > .toast::before {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  content: "i";
  background: #64748b;
}

#toastContainer > .toast.success {
  background: #f0fdf4;
  border-color: #86efac;
  color: #166534;
}

#toastContainer > .toast.success::before {
  content: "✓";
  background: #16a34a;
}

#toastContainer > .toast.error {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

#toastContainer > .toast.error::before {
  content: "!";
  background: #dc2626;
}

#toastContainer > .toast.info {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

#toastContainer > .toast.info::before {
  content: "i";
  background: #2563eb;
}

@keyframes bullanoToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
