/* Palette colors */
/* Variants for adaptive components like input, select, alert, ... */
.db-bg-critical-transparent-full, .db-bg-critical-transparent-semi, .db-bg-critical {
  /* used for transparent backgrounds */
  --db-current-bg-transparent-full: var(
  	--db-critical-bg-transparent-full
  );
  --db-current-bg-transparent-semi: var(
  	--db-critical-bg-transparent-semi
  );
  --db-current-bg-transparent-hover: var(
  	--db-critical-bg-transparent-hover
  );
  --db-current-bg-transparent-pressed: var(
  	--db-critical-bg-transparent-pressed
  );
  /* used for text */
  --db-current-color: var(--db-critical-on-bg);
  /* used for checkbox:checked */
  --db-current-color-hover: var(--db-critical-on-bg-hover);
  --db-current-color-pressed: var(--db-critical-on-bg-pressed);
  /* used as normal backgrounds */
  --db-current-bg-color: var(--db-critical-bg-weak);
  /* used for icons and borders */
  --db-current-contrast-low-color: var(--db-critical-contrast-low);
  --db-current-border-color: var(--db-critical-border);
}

.db-bg-critical {
  background-color: var(--db-current-bg-color);
  color: var(--db-current-color);
}
.db-bg-critical-transparent-full {
  background-color: var(--db-current-bg-transparent-full);
}
.db-bg-critical-transparent-semi {
  background-color: var(--db-current-bg-transparent-semi);
}
[data-emphasis=weak].db-bg-critical {
  /* used for text */
  --db-current-color: var(--db-critical-on-bg-weak);
  /* used for checkbox:checked */
  --db-current-color-hover: var(--db-critical-on-bg-weak-hover);
  --db-current-color-pressed: var(
  	--db-critical-on-bg-weak-pressed
  );
  color: var(--db-current-color);
}
.db-bg-critical-strong {
  --db-current-color: var(--db-critical-on-bg);
  --db-current-bg-color: var(--db-critical-bg-strong);
  --db-current-border-color: var(--db-critical-border);
  background-color: var(--db-current-bg-color);
  color: var(--db-current-color);
}
