.sf-toast-region {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 1085;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  width: min(380px, calc(100vw - 40px));
  pointer-events: none;
}

.sf-toast {
  --sf-toast-accent: #2563eb;
  --sf-toast-bg: #eff6ff;
  --sf-toast-border: #bfdbfe;
  --sf-toast-shadow: rgba(15, 23, 42, 0.16);
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--sf-toast-border);
  border-radius: 14px;
  background: var(--sf-toast-bg);
  box-shadow: 0 18px 38px var(--sf-toast-shadow);
  color: #111827;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.sf-toast.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.sf-toast.is-removing {
  opacity: 0;
}

.sf-toast-success {
  --sf-toast-accent: #15945f;
  --sf-toast-bg: #ecfdf5;
  --sf-toast-border: #a7f3d0;
  --sf-toast-shadow: rgba(21, 148, 95, 0.18);
}

.sf-toast-warning {
  --sf-toast-accent: #b77905;
  --sf-toast-bg: #fffbeb;
  --sf-toast-border: #fde68a;
  --sf-toast-shadow: rgba(183, 121, 5, 0.18);
}

.sf-toast-info {
  --sf-toast-accent: #2563eb;
  --sf-toast-bg: #eff6ff;
  --sf-toast-border: #bfdbfe;
  --sf-toast-shadow: rgba(37, 99, 235, 0.16);
}

.sf-toast-error {
  --sf-toast-accent: #dc2626;
  --sf-toast-bg: #fef2f2;
  --sf-toast-border: #fecaca;
  --sf-toast-shadow: rgba(220, 38, 38, 0.17);
}

.sf-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--sf-toast-accent);
  color: #fff;
  font-size: 1rem;
}

.sf-toast-content {
  min-width: 0;
}

.sf-toast-title {
  margin: 0;
  color: var(--sf-toast-accent);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

.sf-toast-message {
  margin: 2px 0 0;
  color: #4b5563;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sf-toast-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
}

.sf-toast-close:hover,
.sf-toast-close:focus {
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
}

@media (max-width: 575.98px) {
  .sf-toast-region {
    top: 68px;
    left: 12px;
    right: 12px;
    width: auto;
    align-items: stretch;
  }
}
