/* Variants for adaptive components like input, select, notification, ... */
/* Palette colors */
/* Note: In general you don't need this file. Use this only if you really know what you do! */
/* Palette for additional colors */
/* Note: In general you don't need this file. Use this only if you really know what you do! */
[data-color=critical-contrast-high],
.db-critical-contrast-high, [data-color=critical-contrast-high-interactive],
.db-critical-contrast-high-interactive {
  --db-current-color-border: var(
  	--db-critical-contrast-high-enabled
  );
  background-color: var(--db-critical-contrast-high-enabled);
  color: var(--db-critical-on-contrast-enabled);
}
[data-color=critical-contrast-high]::before,
.db-critical-contrast-high::before, [data-color=critical-contrast-high-interactive]::before,
.db-critical-contrast-high-interactive::before, [data-color=critical-contrast-high]::after,
.db-critical-contrast-high::after, [data-color=critical-contrast-high-interactive]::after,
.db-critical-contrast-high-interactive::after {
  --db-icon-color: $on;
}

[data-color=critical-contrast-high-interactive],
.db-critical-contrast-high-interactive {
  /* stylelint-disable-next-line scss/percent-placeholder-pattern */
  /* stylelint-disable-next-line scss/percent-placeholder-pattern */
}
[data-color=critical-contrast-high-interactive]:is(:hover, :focus),
.db-critical-contrast-high-interactive:is(:hover, :focus) {
  background: var(--db-critical-contrast-high-hover);
}
[data-color=critical-contrast-high-interactive]:active,
.db-critical-contrast-high-interactive:active {
  background: var(--db-critical-contrast-high-pressed);
}

[data-color=critical-contrast-low],
.db-critical-contrast-low, [data-color=critical-contrast-low-interactive],
.db-critical-contrast-low-interactive {
  --db-current-color-border: var(
  	--db-critical-contrast-low-enabled
  );
  background-color: var(--db-critical-contrast-low-enabled);
  color: var(--db-critical-on-contrast-enabled);
}
[data-color=critical-contrast-low]::before,
.db-critical-contrast-low::before, [data-color=critical-contrast-low-interactive]::before,
.db-critical-contrast-low-interactive::before, [data-color=critical-contrast-low]::after,
.db-critical-contrast-low::after, [data-color=critical-contrast-low-interactive]::after,
.db-critical-contrast-low-interactive::after {
  --db-icon-color: $on;
}

[data-color=critical-contrast-low-interactive],
.db-critical-contrast-low-interactive {
  /* stylelint-disable-next-line scss/percent-placeholder-pattern */
  /* stylelint-disable-next-line scss/percent-placeholder-pattern */
}
[data-color=critical-contrast-low-interactive]:is(:hover, :focus),
.db-critical-contrast-low-interactive:is(:hover, :focus) {
  background: var(--db-critical-contrast-low-hover);
}
[data-color=critical-contrast-low-interactive]:active,
.db-critical-contrast-low-interactive:active {
  background: var(--db-critical-contrast-low-pressed);
}

[data-container-color=critical],
.db-container-color-critical, [data-color=critical-bg-transparent-semi],
.db-critical-bg-transparent-semi, [data-color=critical-bg-transparent-full],
.db-critical-bg-transparent-full, [data-color=critical-bg-lvl-3],
.db-critical-bg-lvl-3, [data-color=critical-bg-lvl-2],
.db-critical-bg-lvl-2, [data-color=critical-bg-lvl-1],
.db-critical-bg-lvl-1 {
  /* used for transparent backgrounds */
  --db-current-color-bg-transparent-full-enabled: var(
  	--db-critical-bg-transparent-full-enabled
  );
  --db-current-color-bg-transparent-semi-enabled: var(
  	--db-critical-bg-transparent-semi-enabled
  );
  --db-current-color-bg-transparent-hover: var(
  	--db-critical-bg-transparent-hover
  );
  --db-current-color-bg-transparent-pressed: var(
  	--db-critical-bg-transparent-pressed
  );
  /* used for backgrounds */
  --db-current-color-bg-lvl-1-enabled: var(
  	--db-critical-bg-lvl-1-enabled
  );
  --db-current-color-bg-lvl-2-enabled: var(
  	--db-critical-bg-lvl-2-enabled
  );
  --db-current-color-bg-lvl-3-enabled: var(
  	--db-critical-bg-lvl-3-enabled
  );
  /* used for icons and borders */
  --db-current-color-contrast-low-enabled: var(
  	--db-critical-contrast-low-enabled
  );
  --db-current-color-contrast-low-hover: var(
  	--db-critical-contrast-low-hover
  );
  --db-current-color-contrast-low-pressed: var(
  	--db-critical-contrast-low-pressed
  );
  --db-current-color-border: var(--db-critical-border);
  /* used for adaptive tags (interactive) */
  --db-current-color-bg-lvl-1-hover: var(--db-critical-bg-lvl-1-hover);
  --db-current-color-bg-lvl-1-pressed: var(
  	--db-critical-bg-lvl-1-pressed
  );
  --db-current-color-bg-lvl-2-hover: var(--db-critical-bg-lvl-2-hover);
  --db-current-color-bg-lvl-2-pressed: var(
  	--db-critical-bg-lvl-2-pressed
  );
  --db-current-color-bg-lvl-3-hover: var(--db-critical-bg-lvl-3-hover);
  --db-current-color-bg-lvl-3-pressed: var(
  	--db-critical-bg-lvl-3-pressed
  );
  /* used for adaptive tags (strong & interactive) */
  --db-current-color-on-contrast-enabled: var(
  	--db-critical-on-contrast-enabled
  );
  --db-current-color-contrast-high-enabled: var(
  	--db-critical-contrast-high-enabled
  );
  --db-current-color-contrast-high-hover: var(
  	--db-critical-contrast-high-hover
  );
  --db-current-color-contrast-high-pressed: var(
  	--db-critical-contrast-high-pressed
  );
  /* on-colors */
  --db-current-color-on-bg-enabled: var(--db-critical-on-bg-enabled);
  --db-current-color-on-bg-hover: var(--db-critical-on-bg-hover);
  --db-current-color-on-bg-pressed: var(--db-critical-on-bg-pressed);
  /* weak colors */
  --db-current-color-on-bg-weak-enabled: var(
  	--db-critical-on-bg-weak-enabled
  );
  --db-current-color-on-bg-weak-hover: var(
  	--db-critical-on-bg-weak-hover
  );
  --db-current-color-on-bg-weak-pressed: var(
  	--db-critical-on-bg-weak-pressed
  );
}

[data-color=critical-bg-lvl-1],
.db-critical-bg-lvl-1 {
  background-color: var(--db-critical-bg-lvl-1-enabled);
  color: var(--db-critical-on-bg-enabled);
}
[data-color=critical-bg-lvl-1]::before,
.db-critical-bg-lvl-1::before, [data-color=critical-bg-lvl-1]::after,
.db-critical-bg-lvl-1::after {
  --db-icon-color: $on;
}

[data-color=critical-bg-lvl-2],
.db-critical-bg-lvl-2 {
  background-color: var(--db-critical-bg-lvl-2-enabled);
  color: var(--db-critical-on-bg-enabled);
}
[data-color=critical-bg-lvl-2]::before,
.db-critical-bg-lvl-2::before, [data-color=critical-bg-lvl-2]::after,
.db-critical-bg-lvl-2::after {
  --db-icon-color: $on;
}

[data-color=critical-bg-lvl-3],
.db-critical-bg-lvl-3 {
  background-color: var(--db-critical-bg-lvl-3-enabled);
  color: var(--db-critical-on-bg-enabled);
}
[data-color=critical-bg-lvl-3]::before,
.db-critical-bg-lvl-3::before, [data-color=critical-bg-lvl-3]::after,
.db-critical-bg-lvl-3::after {
  --db-icon-color: $on;
}

[data-color=critical-bg-transparent-full],
.db-critical-bg-transparent-full {
  background-color: var(--db-critical-bg-transparent-full-enabled);
  color: var(--db-critical-on-bg-enabled);
}
[data-color=critical-bg-transparent-full]::before,
.db-critical-bg-transparent-full::before, [data-color=critical-bg-transparent-full]::after,
.db-critical-bg-transparent-full::after {
  --db-icon-color: $on;
}

[data-color=critical-bg-transparent-semi],
.db-critical-bg-transparent-semi {
  background-color: var(--db-critical-bg-transparent-semi-enabled);
  color: var(--db-critical-on-bg-enabled);
}
[data-color=critical-bg-transparent-semi]::before,
.db-critical-bg-transparent-semi::before, [data-color=critical-bg-transparent-semi]::after,
.db-critical-bg-transparent-semi::after {
  --db-icon-color: $on;
}

[data-container-color=critical],
.db-container-color-critical {
  color: var(--db-current-color-on-bg-enabled);
  background-color: var(--db-current-color-bg-lvl-1-enabled);
}
