/* Use sizing's for fixed heights/widths e.g. the db-button has always a fixed height */
/* Use fixed spacings for all kind of distances (margin, padding, ...) */
/* The primary use-case for responsive spacings are
paddings/gaps in an application e.g. the <main> should have a responsive padding. */
/* Elevation */
/* Border */
/* Opacity */
/* Transitions */
/* Screen sizes */
/* Container sizes */
.db-visually-hidden,
[data-visually-hidden=true] {
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  font-size: 0 !important;
  all: initial;
  inset-block-start: 0 !important;
  block-size: 1px !important;
  position: absolute !important;
  inline-size: 1px !important;
  border-width: 0 !important;
  border-style: initial !important;
  border-color: initial !important;
  border-image: initial !important;
  padding: 0 !important;
  pointer-events: none !important;
}

/* Variants for adaptive components like input, select, notification, ... */
@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

.db-checkbox input:checked:not([data-show-icon-leading=false])::before, .db-checkbox input:indeterminate:not([data-show-icon-leading=false])::before {
  color: var(--db-icon-color, inherit);
  display: inline-block;
  /*** icon - placeholder ***/
  font-family: var(--db-icon-font-family, var(--db-icon-default-font-family, "db-ux-default", "icon-font-fallback")) !important;
  font-size: var(--db-icon-font-size, 1.5rem);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-style: normal;
  font-variant: normal;
  font-weight: var(--db-icon-font-weight, normal);
  line-height: 1;
  /* stylelint-disable-next-line declaration-property-value-no-unknown */
  speak: none;
  /* stylelint-disable-next-line declaration-property-value-no-unknown */
  speak: never;
  text-transform: none;
  overflow: clip;
  vertical-align: var(--db-icon-vertical-align, middle);
  block-size: var(--db-icon-font-size, 1.5rem);
  aspect-ratio: 1;
  flex-shrink: 0;
  content: var(--db-icon, attr(data-icon));
}
@supports (content: ""/"") {
  .db-checkbox input:checked:not([data-show-icon-leading=false])::before, .db-checkbox input:indeterminate:not([data-show-icon-leading=false])::before {
    content: var(--db-icon, attr(data-icon))/"";
  }
}
@media aural {
  .db-checkbox input:checked:not([data-show-icon-leading=false])::before, .db-checkbox input:indeterminate:not([data-show-icon-leading=false])::before {
    content: none;
  }
}
@media speech {
  .db-checkbox input:checked:not([data-show-icon-leading=false])::before, .db-checkbox input:indeterminate:not([data-show-icon-leading=false])::before {
    content: none;
  }
}

/**
	Generates 3 types of placeholders, e.g:
	- %db-component-variables-md
	- %db-font-size-md
	- %db-overwrite-font-size-md
 */
@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

.db-checkbox {
  font: var(--db-type-body-md);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-checkbox {
    /* Those variables are only for components to calculate heights and change icons */
    --db-icon-font-weight: var(--db-base-body-icon-weight-md);
    --db-icon-font-size: var(--db-base-body-icon-font-size-md);
  }
}

@layer variables {}

@layer variables {}

.db-checkbox[data-size=small] {
  font: var(--db-type-body-sm);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-checkbox[data-size=small] {
    /* Those variables are only for components to calculate heights and change icons */
    --db-icon-font-weight: var(--db-base-body-icon-weight-sm);
    --db-icon-font-size: var(--db-base-body-icon-font-size-sm);
  }
}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

@layer variables {}

/* Use for body tags like <p> */
/* Use for headline tags like <h1> */
/**
 * @mixin screen-min-max
 * @param $data an object like (min:"sm", max:"lg") or (min: "sm")
 */
.db-checkbox > db-infotext > .db-infotext,
.db-checkbox > .db-infotext {
  margin-block-start: var(--db-spacing-fixed-2xs);
}
.db-checkbox > db-infotext > .db-infotext:is([data-semantic=successful], [data-semantic=critical]):not([hidden]),
.db-checkbox > .db-infotext:is([data-semantic=successful], [data-semantic=critical]):not([hidden]) {
  display: none;
}

.db-checkbox input:indeterminate::before, .db-checkbox input:checked::before {
  --db-icon-margin-end: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  block-size: calc(var(--db-icon-font-size) - 2 * var(--db-border-width-3xs));
  inline-size: calc(var(--db-icon-font-size) - 2 * var(--db-border-width-3xs));
}

.db-checkbox {
  /* stylelint-disable-next-line at-rule-empty-line-before */
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-checkbox:not([data-hide-asterisk=true]):has(input:required):is(label)::after,
.db-checkbox:not([data-hide-asterisk=true]):has(input:required) > label::after, .db-checkbox:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
.db-checkbox:not([data-hide-asterisk=true])[data-required=true] > label::after {
  /* stylelint-disable-next-line db-ux/use-spacings */
  padding-inline-start: 1px;
  content: "*";
}
@supports (content: ""/"") {
  .db-checkbox:not([data-hide-asterisk=true]):has(input:required):is(label)::after,
  .db-checkbox:not([data-hide-asterisk=true]):has(input:required) > label::after, .db-checkbox:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
  .db-checkbox:not([data-hide-asterisk=true])[data-required=true] > label::after {
    content: "*"/"";
  }
}
.db-checkbox:has(input:disabled) {
  opacity: var(--db-opacity-md);
}
.db-checkbox:is(label),
.db-checkbox > label {
  align-items: flex-start;
  position: relative;
  color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
}
.db-checkbox:is(label):not([hidden]),
.db-checkbox > label:not([hidden]) {
  display: flex;
}
.db-checkbox input {
  background-color: var(--db-adaptive-bg-basic-transparent-full-default);
  place-content: center center;
  appearance: none;
  aspect-ratio: 1;
  /* stylelint-disable-next-line db-ux/use-border-width */
  border: min(var(--db-border-width-2xs), 2px) solid var(--db-check-element-border-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
  block-size: var(--db-icon-font-size);
  inline-size: var(--db-icon-font-size);
  padding: 0;
  margin-inline-end: var(--db-spacing-fixed-xs);
}
.db-checkbox[data-size=small] input {
  margin-inline-end: var(--db-spacing-fixed-2xs);
}
.db-checkbox[data-hide-label=true] {
  font-size: 0;
}
.db-checkbox[data-hide-label=true] input {
  margin-inline-end: 0;
}
.db-checkbox:not(:has(input:disabled)):has(input:hover, > label:hover, :is(label):hover) {
  --db-check-element-label-color: var(
  	--db-adaptive-on-bg-basic-emphasis-100-hovered
  );
}
.db-checkbox:not(:has(input:disabled)):has(input:hover, > label:hover, :is(label):hover):is(label),
.db-checkbox:not(:has(input:disabled)):has(input:hover, > label:hover, :is(label):hover) > label {
  cursor: var(--db-overwrite-cursor, pointer);
}
.db-checkbox:not(:has(input:disabled)):has(input:hover, > label:hover, :is(label):hover) input {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
}
.db-checkbox:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active) {
  --db-check-element-label-color: var(
  	--db-adaptive-on-bg-basic-emphasis-100-pressed
  );
}
.db-checkbox:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active):is(label),
.db-checkbox:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active) > label {
  cursor: var(--db-overwrite-cursor, pointer);
}
.db-checkbox:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active) input {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) {
  --db-check-element-border-color: var(
  	--db-successful-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-successful-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-successful-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-successful-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-on-bg-inverted-default: var(
  	--db-successful-on-bg-inverted-default
  );
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > .db-infotext {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]) {
  display: flex;
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) input:not(:checked) {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-successful-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-successful-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-successful-bg-basic-transparent-full-pressed
  );
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) input:checked {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-successful-bg-inverted-contrast-low-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-successful-bg-inverted-contrast-low-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-successful-bg-inverted-contrast-low-pressed
  );
}
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]), .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) {
  --db-check-element-border-color: var(
  	--db-successful-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-successful-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-successful-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-successful-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-on-bg-inverted-default: var(
  	--db-successful-on-bg-inverted-default
  );
}
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > .db-infotext, .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > .db-infotext {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]), .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]) {
  display: flex;
}
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]), .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) input:not(:checked), .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) input:not(:checked) {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-successful-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-successful-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-successful-bg-basic-transparent-full-pressed
  );
}
.db-checkbox:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) input:checked, .db-checkbox[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) input:checked {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-successful-bg-inverted-contrast-low-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-successful-bg-inverted-contrast-low-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-successful-bg-inverted-contrast-low-pressed
  );
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) {
  --db-check-element-border-color: var(
  	--db-critical-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-critical-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-critical-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-critical-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-on-bg-inverted-default: var(
  	--db-critical-on-bg-inverted-default
  );
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) input:not(:checked) {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-critical-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-critical-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-critical-bg-basic-transparent-full-pressed
  );
}
.db-checkbox:has(input:not([data-custom-validity]):required:user-invalid) input:checked {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-critical-bg-inverted-contrast-low-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-critical-bg-inverted-contrast-low-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-critical-bg-inverted-contrast-low-pressed
  );
}
.db-checkbox:has(input[data-custom-validity=invalid]), .db-checkbox[data-custom-validity=invalid] {
  --db-check-element-border-color: var(
  	--db-critical-on-bg-basic-emphasis-70-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-default: var(
  	--db-critical-on-bg-basic-emphasis-80-default
  );
  --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
  	--db-critical-on-bg-basic-emphasis-80-hovered
  );
  --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
  	--db-critical-on-bg-basic-emphasis-80-pressed
  );
  --db-adaptive-on-bg-inverted-default: var(
  	--db-critical-on-bg-inverted-default
  );
}
.db-checkbox:has(input[data-custom-validity=invalid]) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-checkbox:has(input[data-custom-validity=invalid]) > .db-infotext[data-semantic=critical]:not([hidden]), .db-checkbox[data-custom-validity=invalid] > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-checkbox[data-custom-validity=invalid] > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-checkbox:has(input[data-custom-validity=invalid]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-checkbox:has(input[data-custom-validity=invalid]) > .db-infotext:not([data-semantic]):not([hidden]), .db-checkbox[data-custom-validity=invalid] > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-checkbox[data-custom-validity=invalid] > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-checkbox:has(input[data-custom-validity=invalid]) input:not(:checked), .db-checkbox[data-custom-validity=invalid] input:not(:checked) {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-critical-bg-basic-transparent-full-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-critical-bg-basic-transparent-full-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-critical-bg-basic-transparent-full-pressed
  );
}
.db-checkbox:has(input[data-custom-validity=invalid]) input:checked, .db-checkbox[data-custom-validity=invalid] input:checked {
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-critical-bg-inverted-contrast-low-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-critical-bg-inverted-contrast-low-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-critical-bg-inverted-contrast-low-pressed
  );
}
.db-checkbox input {
  border-radius: var(--db-border-radius-2xs);
  align-items: center;
  justify-content: center;
}
.db-checkbox input:not([hidden]) {
  display: flex;
}
.db-checkbox input:checked {
  --db-check-element-border-color: var(--db-adaptive-on-bg-basic-emphasis-70-default);
  --db-icon-color: var(--db-adaptive-on-bg-inverted-default);
  --db-adaptive-bg-basic-transparent-full-default: var(
  	--db-adaptive-bg-inverted-contrast-max-default
  );
  --db-adaptive-bg-basic-transparent-full-hovered: var(
  	--db-adaptive-bg-inverted-contrast-max-hovered
  );
  --db-adaptive-bg-basic-transparent-full-pressed: var(
  	--db-adaptive-bg-inverted-contrast-max-pressed
  );
  border-width: 0;
}
.db-checkbox input:checked:not([data-show-icon-leading=false])::before {
  --db-icon: "check";
  margin-inline-end: var(--db-icon-margin-end, var(--db-spacing-fixed-xs));
}
.db-checkbox input:indeterminate:not([data-show-icon-leading=false])::before {
  --db-icon: "minus";
  margin-inline-end: var(--db-icon-margin-end, var(--db-spacing-fixed-xs));
}
@media (forced-colors: active) {
  .db-checkbox input:indeterminate, .db-checkbox input:checked {
    --db-check-element-border-color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
    border-width: min(var(--db-border-width-2xs), 2px);
  }
  .db-checkbox input:indeterminate:not([data-show-icon-leading=false])::before, .db-checkbox input:checked:not([data-show-icon-leading=false])::before {
    align-content: center;
    font-size: calc(var(--db-icon-font-size) - 2 * min(var(--db-border-width-2xs), 2px));
    padding: min(var(--db-border-width-2xs), 2px);
  }
}
