/* The notification: messages that inform or went well in the polite status region, each warning and each error an alert
   of its own, each a bar whose colours are the status tokens of the look; a message with an act holds its text and the
   act side by side. Shared tokens and layout words only, on the root of the notification
   (packages/components/src/styles.ts). The status region, empty, takes no room. */
.notification {
  margin-block: 0 var(--nw-space-16);
}

.notification p {
  margin: 0;
}

.notification .info,
.notification .success,
.notification .warning,
.notification .error {
  margin-block: 0 var(--nw-space-8);
  padding-block: var(--nw-space-8);
  padding-inline: var(--nw-space-12);
  border: var(--nw-border-width-1) solid;
  border-radius: var(--nw-radius-m);
}

.notification .has-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--nw-space-8) var(--nw-space-16);
}

.notification .has-act a,
.notification .has-act button {
  font: inherit;
  font-weight: var(--nw-font-weight-medium);
  color: inherit;
}

.notification .has-act button {
  padding-block: var(--nw-space-4);
  padding-inline: var(--nw-space-12);
  background: var(--nw-color-surface);
  border: var(--nw-border-width-1) solid var(--nw-color-border-strong);
  border-radius: var(--nw-radius-m);
  cursor: pointer;
}

.notification .info {
  color: var(--nw-color-status-progress-ink);
  background: var(--nw-color-status-progress-wash);
  border-color: var(--nw-color-status-progress-line);
}

.notification .success {
  color: var(--nw-color-status-ok-ink);
  background: var(--nw-color-status-ok-wash);
  border-color: var(--nw-color-status-ok-line);
}

.notification .warning {
  color: var(--nw-color-status-attention-ink);
  background: var(--nw-color-status-attention-wash);
  border-color: var(--nw-color-status-attention-line);
}

.notification .error {
  color: var(--nw-color-status-danger-ink);
  background: var(--nw-color-status-danger-wash);
  border-color: var(--nw-color-status-danger-line);
}
