.notification-region {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: 60;
  display: grid;
  width: min(380px, calc(100vw - 32px));
  gap: var(--space-2);
  pointer-events: none;
}

.notification {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-4);
  border: 1px solid var(--color-grid);
  border-radius: var(--radius-4);
  background: var(--color-surface);
  box-shadow: var(--shadow-shell);
  pointer-events: auto;
}

.notification--success {
  border-left: 4px solid var(--color-match);
}

.notification--warning {
  border-left: 4px solid var(--color-pending);
}

.notification--error {
  border-left: 4px solid var(--color-diverge);
}

.notification--info {
  border-left: 4px solid var(--color-slate);
}

.notification__symbol {
  color: var(--color-ink-soft);
  font-family: var(--font-mono);
  font-weight: 700;
}

.notification__title {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 13px;
}

.notification__message {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.notification__close {
  width: 28px;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: var(--color-ink-soft);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 16px;
}

.notification--toast {
  width: fit-content;
  max-width: 100%;
  justify-self: end;
  border-radius: var(--radius-pill);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.notification--toast .notification__message:empty {
  display: none;
}
