/* Variants */
/* What counts as a disabled action, on a native element or on nv-button */
/* The opposite, chained because the minifier breaks on commas inside :not() in a selector list */
/* Define maps for feedback-related variables */
nv-alert {
  display: flex !important;
  align-items: flex-start;
  position: relative;
  gap: var(--alert-gap-x);
  border-radius: var(--alert-radius);
  font-family: var(--font-family-default), var(--font-family-fallback), sans-serif;
}
nv-alert > nv-icon {
  margin-left: var(--alert-icon-position-x);
  margin-top: var(--alert-icon-position-y);
}
nv-alert.hidden {
  display: none !important;
}
nv-alert.feedback-information {
  background-color: var(--components-alert-information-background);
  border: 1px solid var(--components-alert-information-border) !important;
}
nv-alert.feedback-information > .close:focus, nv-alert.feedback-information > .close:focus-within {
  outline: none;
}
nv-alert.feedback-information > .close:focus-visible, nv-alert.feedback-information > .close:has(:focus-visible) {
  outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-information-border);
  outline-offset: calc(var(--focus-outline-offset) * 1);
}
nv-alert.feedback-information > .content > [slot=actions] {
  --nv-alert-action-primary: var(--components-alert-information-action);
}
nv-alert.feedback-warning {
  background-color: var(--components-alert-warning-background);
  border: 1px solid var(--components-alert-warning-border) !important;
}
nv-alert.feedback-warning > .close:focus, nv-alert.feedback-warning > .close:focus-within {
  outline: none;
}
nv-alert.feedback-warning > .close:focus-visible, nv-alert.feedback-warning > .close:has(:focus-visible) {
  outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-warning-border);
  outline-offset: calc(var(--focus-outline-offset) * 1);
}
nv-alert.feedback-warning > .content > [slot=actions] {
  --nv-alert-action-primary: var(--components-alert-warning-action);
}
nv-alert.feedback-error {
  background-color: var(--components-alert-error-background);
  border: 1px solid var(--components-alert-error-border) !important;
}
nv-alert.feedback-error > .close:focus, nv-alert.feedback-error > .close:focus-within {
  outline: none;
}
nv-alert.feedback-error > .close:focus-visible, nv-alert.feedback-error > .close:has(:focus-visible) {
  outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-error-border);
  outline-offset: calc(var(--focus-outline-offset) * 1);
}
nv-alert.feedback-error > .content > [slot=actions] {
  --nv-alert-action-primary: var(--components-alert-error-action);
}
nv-alert.feedback-success {
  background-color: var(--components-alert-success-background);
  border: 1px solid var(--components-alert-success-border) !important;
}
nv-alert.feedback-success > .close:focus, nv-alert.feedback-success > .close:focus-within {
  outline: none;
}
nv-alert.feedback-success > .close:focus-visible, nv-alert.feedback-success > .close:has(:focus-visible) {
  outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-success-border);
  outline-offset: calc(var(--focus-outline-offset) * 1);
}
nv-alert.feedback-success > .content > [slot=actions] {
  --nv-alert-action-primary: var(--components-alert-success-action);
}
nv-alert.feedback-neutral {
  background-color: var(--components-alert-neutral-background);
  border: 1px solid var(--components-alert-neutral-border) !important;
}
nv-alert.feedback-neutral > .close:focus, nv-alert.feedback-neutral > .close:focus-within {
  outline: none;
}
nv-alert.feedback-neutral > .close:focus-visible, nv-alert.feedback-neutral > .close:has(:focus-visible) {
  outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-neutral-border);
  outline-offset: calc(var(--focus-outline-offset) * 1);
}
nv-alert.feedback-neutral > .content > [slot=actions] {
  --nv-alert-action-primary: var(--components-alert-neutral-action);
}
nv-alert > nv-icon.icon-information {
  color: var(--components-alert-information-icon);
}
nv-alert > nv-icon.icon-warning {
  color: var(--components-alert-warning-icon);
}
nv-alert > nv-icon.icon-error {
  color: var(--components-alert-error-icon);
}
nv-alert > nv-icon.icon-success {
  color: var(--components-alert-success-icon);
}
nv-alert > nv-icon.icon-neutral {
  color: var(--components-alert-neutral-icon);
}
nv-alert > .content {
  display: flex;
  padding: var(--alert-padding);
  padding-right: var(--alert-padding-right-without-actions);
  padding-left: 0;
  flex-direction: column;
  gap: var(--alert-gap-y);
}
nv-alert > .content > .heading {
  color: var(--components-alert-content-title);
  font-size: var(--alert-heading-font-size);
  line-height: var(--alert-heading-line-height);
  font-weight: var(--alert-heading-font-weight);
}
nv-alert > .content > .message {
  color: var(--components-alert-content-description);
  font-size: var(--alert-message-font-size);
  line-height: var(--alert-message-line-height);
}
nv-alert > .content > [slot=actions] {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: calc(var(--alert-gap-content) - var(--alert-gap-y));
  gap: var(--alert-gap-actions);
}
nv-alert > .content > [slot=actions] > * {
  display: inline-flex;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: var(--button-sm-height) !important;
  margin: 0 !important;
  padding: var(--button-sm-padding-y) var(--button-sm-padding-x) !important;
  gap: var(--button-sm-gap) !important;
  border: none !important;
  border-radius: var(--button-sm-border-radius) !important;
  background: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  color: var(--nv-alert-action-text) !important;
  font-family: var(--font-family-default), var(--font-family-fallback), sans-serif !important;
  font-size: var(--button-sm-font-size) !important;
  font-style: normal !important;
  font-weight: var(--font-weight-medium-emphasis) !important;
  line-height: var(--button-sm-line-height) !important;
  overflow-wrap: anywhere;
  text-align: end !important;
  text-decoration: none !important;
  white-space: normal !important;
  cursor: pointer !important;
}
nv-alert > .content > [slot=actions] > *[hidden] {
  display: none !important;
}
nv-alert > .content > [slot=actions] > * nv-icon, nv-alert > .content > [slot=actions] > * > svg {
  flex-shrink: 0;
  color: var(--nv-alert-action-icon) !important;
}
nv-alert > .content > [slot=actions] > * nv-icon > svg, nv-alert > .content > [slot=actions] > * > svg {
  width: var(--button-sm-icon-size);
  height: var(--button-sm-icon-size);
  stroke-width: 2.25;
}
nv-alert > .content > [slot=actions] > *:not(:disabled:not([disabled=false])):not([disabled]:not([disabled=false])):not([aria-disabled=true]):hover, nv-alert > .content > [slot=actions] > *:not(:disabled:not([disabled=false])):not([disabled]:not([disabled=false])):not([aria-disabled=true]):active {
  text-decoration: underline !important;
}
nv-alert > .content > [slot=actions] > *:focus, nv-alert > .content > [slot=actions] > *:focus-within {
  outline: none;
}
nv-alert > .content > [slot=actions] > *:focus-visible, nv-alert > .content > [slot=actions] > *:has(:focus-visible) {
  outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);
  outline-offset: calc(var(--focus-outline-offset) * 1);
}
nv-alert > .content > [slot=actions] > *:focus-visible, nv-alert > .content > [slot=actions] > *:has(:focus-visible) {
  outline-color: var(--color-focus-brand) !important;
}
nv-alert > .content > [slot=actions] > *:is(:disabled:not([disabled=false]), [disabled]:not([disabled=false]), [aria-disabled=true]) {
  opacity: var(--opacity-disabled) !important;
  cursor: not-allowed !important;
}
nv-alert > .content > [slot=actions] > * {
  --nv-alert-action-text: var(--color-interaction-container-neutral-text);
  --nv-alert-action-icon: var(--color-interaction-container-neutral-icon);
}
nv-alert > .content > [slot=actions] > :last-child {
  --nv-alert-action-text: var(--nv-alert-action-primary);
  --nv-alert-action-icon: var(--nv-alert-action-primary);
}
nv-alert > .content > [slot=actions] > [data-action=secondary] {
  --nv-alert-action-text: var(--color-interaction-container-neutral-text);
  --nv-alert-action-icon: var(--color-interaction-container-neutral-icon);
}
nv-alert > .content > [slot=actions] > [data-action=primary] {
  --nv-alert-action-text: var(--nv-alert-action-primary);
  --nv-alert-action-icon: var(--nv-alert-action-primary);
}
nv-alert:has(> .content > [slot=actions]) > .content {
  flex: 1;
  min-width: 0;
  padding-right: var(--alert-padding-right);
}
nv-alert > .close {
  border-radius: var(--alert-radius);
  position: absolute;
  display: flex;
  top: var(--alert-icon-position-y);
  right: var(--alert-icon-position-x);
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}