#notification-toast-root {
  position: fixed;
  top: 64px;
  right: 24px;
  z-index: 1400;
  display: grid;
  gap: 10px;
  width: min(320px, calc(100vw - 32px));
  pointer-events: none;
}

.notification-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--ds-radius-md);
  padding: 10px 12px;
  border: 1px solid #dce2ea;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.notification-toast::before {
  content: "";
  flex: none;
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--ds-color-info);
}

.notification-toast.severity-info {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.notification-toast.severity-success {
  background: #f3fcf6;
  border-color: #9fd3af;
}

.notification-toast.severity-warning {
  background: #fff8ee;
  border-color: #f1d199;
}

.notification-toast.severity-error {
  background: #fff7f7;
  border-color: #fecaca;
}

.notification-toast.severity-warning::before {
  background: var(--ds-color-warning);
}

.notification-toast.severity-error::before {
  background: var(--ds-color-error);
}

.notification-toast.severity-success::before {
  background: var(--ds-color-success);
}

.notification-toast-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.notification-toast-copy strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ds-color-text);
  font-size: var(--ds-font-md);
  line-height: 1.35;
}

.notification-toast-copy p {
  margin: 0;
  color: var(--ds-color-text-sub);
  font-size: var(--ds-font-sm);
  line-height: 1.45;
  white-space: pre-line;
}

.notification-toast-dismiss {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: none;
  border-radius: var(--ds-radius-md);
  background: transparent;
  box-shadow: none;
  color: #516071;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.notification-toast-dismiss:hover {
  background: #eef3f8;
  color: #243041;
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  #notification-toast-root {
    top: 108px;
    right: 16px;
    width: min(100vw - 32px, 360px);
  }
}

@media (max-width: 640px) {
  #notification-toast-root {
    left: 16px;
    right: 16px;
    width: auto;
  }
}
