:root {
  --notify-slate: #1f2937;
  --notify-ocean: #0f4c81;
  --notify-amber: #b45309;
  --notify-crimson: #9f1239;
  --notify-emerald: #047857;
  --notify-shadow: 0 18px 40px rgba(15, 23, 42, 0.2);
}

.notify-root {
  position: fixed !important;
  inset: 0 !important;
  pointer-events: none !important;
  z-index: 9999 !important;
  font-family: "Space Grotesk", "IBM Plex Sans", "Segoe UI", sans-serif !important;
}

.notify-root *,
.notify-root *::before,
.notify-root *::after {
  box-sizing: border-box !important;
}

.notify-root :where(.notify-item, .notify-item *) {
  margin: 0 !important;
}

.notify-root :where(.notify-item, .notify-item *) {
  padding: 0 !important;
}

.notify-stack {
  position: absolute !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: min(380px, 92vw) !important;
  pointer-events: none !important;
}

.notify-stack--top-right {
  top: 24px !important;
  right: 24px !important;
}

.notify-stack--top-left {
  top: 24px !important;
  left: 24px !important;
}

.notify-stack--bottom-right {
  bottom: 24px !important;
  right: 24px !important;
}

.notify-stack--bottom-left {
  bottom: 24px !important;
  left: 24px !important;
}

.notify-item {
  pointer-events: auto !important;
  color: #f8fafc !important;
  background: var(--notify-slate) !important;
  border-radius: 14px !important;
  padding: 16px 18px 18px !important;
  box-shadow: var(--notify-shadow) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  transform: translateY(12px) !important;
  opacity: 0 !important;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), opacity 700ms ease !important;
}

.notify-root.notify-root--js .notify-item.is-visible {
  transform: translateY(0) !important;
  opacity: 1 !important;
}

.notify-root.notify-root--js .notify-item.is-hiding {
  transform: translateY(-8px) !important;
  opacity: 0 !important;
}

.notify-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.notify-title {
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}

.notify-message {
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}

.notify-message > * + * {
  margin-top: 0.45em !important;
}

.notify-message a {
  color: inherit !important;
  text-decoration: underline !important;
}

.notify-close {
  all: unset !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px !important;
  vertical-align: middle !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  font-size: 18px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.notify-close:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}

.notify-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8) !important;
  outline-offset: 2px !important;
}

.notify-slate { background: linear-gradient(140deg, #111827, #1f2937) !important; }
.notify-ocean { background: linear-gradient(140deg, #0b385f, #0f4c81) !important; }
.notify-amber { background: linear-gradient(140deg, #92400e, #b45309) !important; }
.notify-crimson { background: linear-gradient(140deg, #7f1d1d, #9f1239) !important; }
.notify-emerald { background: linear-gradient(140deg, #065f46, #047857) !important; }
.notify-graphite { background: linear-gradient(140deg, #20242d, #384152) !important; }
.notify-sky { background: linear-gradient(140deg, #0a4d7a, #0284c7) !important; }
.notify-lime { background: linear-gradient(140deg, #3f6212, #65a30d) !important; }
.notify-rose { background: linear-gradient(140deg, #9f1239, #e11d48) !important; }
.notify-sand { background: linear-gradient(140deg, #92400e, #d97706) !important; }

@media (max-width: 640px) {
  .notify-stack--top-left,
  .notify-stack--top-right,
  .notify-stack--bottom-right,
  .notify-stack--bottom-left {
    left: 16px !important;
    right: 16px !important;
  }
}
