@charset "UTF-8";
/* 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 */
/* Variants for adaptive components like input, select, notification, ... */
.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;
}

@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 {}

/**
	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-switch {
  font: var(--db-type-body-md);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-switch {
    /* 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-switch[data-size=small], .db-switch input {
  font: var(--db-type-body-sm);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-switch[data-size=small], .db-switch input {
    /* 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 {}

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

@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> */
.db-switch input:not([data-show-icon-trailing=false])::after, .db-switch[data-visual-aid=true] input:checked:not([data-aid-icon]):not([data-show-icon-trailing=false])::after {
  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-switch input:not([data-show-icon-trailing=false])::after, .db-switch[data-visual-aid=true] input:checked:not([data-aid-icon]):not([data-show-icon-trailing=false])::after {
    content: var(--db-icon, attr(data-icon))/"";
  }
}
@media aural {
  .db-switch input:not([data-show-icon-trailing=false])::after, .db-switch[data-visual-aid=true] input:checked:not([data-aid-icon]):not([data-show-icon-trailing=false])::after {
    content: none;
  }
}
@media speech {
  .db-switch input:not([data-show-icon-trailing=false])::after, .db-switch[data-visual-aid=true] input:checked:not([data-aid-icon]):not([data-show-icon-trailing=false])::after {
    content: none;
  }
}

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

/* stylelint-disable-next-line db-ux/use-spacings */
.db-switch:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active) input::before {
  inline-size: calc(calc(var(--db-icon-font-size)) - 0.125rem * 2 + var(--db-spacing-fixed-2xs));
  margin: 0;
}
.db-switch:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active) input:checked::before {
  block-size: calc(var(--db-icon-font-size) - 0.125rem * 2);
}

.db-switch {
  user-select: none;
  /* stylelint-disable-next-line at-rule-empty-line-before */
  /* stylelint-disable-next-line at-rule-empty-line-before */
  /* Label position (leading/trailing) */
}
.db-switch:not([data-hide-asterisk=true]):has(input:required):is(label)::after,
.db-switch:not([data-hide-asterisk=true]):has(input:required) > label::after, .db-switch:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
.db-switch: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-switch:not([data-hide-asterisk=true]):has(input:required):is(label)::after,
  .db-switch:not([data-hide-asterisk=true]):has(input:required) > label::after, .db-switch:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
  .db-switch:not([data-hide-asterisk=true])[data-required=true] > label::after {
    content: "*"/"";
  }
}
.db-switch:has(input:disabled) {
  opacity: var(--db-opacity-md);
}
.db-switch:is(label),
.db-switch > label {
  align-items: flex-start;
  position: relative;
  color: var(--db-check-element-label-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
}
.db-switch:is(label):not([hidden]),
.db-switch > label:not([hidden]) {
  display: flex;
}
.db-switch 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-switch[data-size=small] input {
  margin-inline-end: var(--db-spacing-fixed-2xs);
}
.db-switch[data-hide-label=true] {
  font-size: 0;
}
.db-switch[data-hide-label=true] input {
  margin-inline-end: 0;
}
.db-switch: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-switch:not(:has(input:disabled)):has(input:hover, > label:hover, :is(label):hover):is(label),
.db-switch:not(:has(input:disabled)):has(input:hover, > label:hover, :is(label):hover) > label {
  cursor: var(--db-overwrite-cursor, pointer);
}
.db-switch: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-switch: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-switch:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active):is(label),
.db-switch:not(:has(input:disabled)):has(input:active, > label:active, :is(label):active) > label {
  cursor: var(--db-overwrite-cursor, pointer);
}
.db-switch: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-switch: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-switch:has(input:not([data-custom-validity]):required:user-valid):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-switch: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-switch: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-switch: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-switch: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-switch: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-switch: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-switch: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-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]), .db-switch[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-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > .db-infotext, .db-switch[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-switch[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > .db-infotext {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]), .db-switch[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-switch[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]) {
  display: flex;
}
.db-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]), .db-switch[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-switch[data-custom-validity=valid]:has(.db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) input:not(:checked), .db-switch[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-switch:has(input[data-custom-validity=valid]):has(.db-infotext[data-semantic=successful]) input:checked, .db-switch[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-switch: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-switch:has(input:not([data-custom-validity]):required:user-invalid) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-switch:has(input:not([data-custom-validity]):required:user-invalid) > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-switch:has(input:not([data-custom-validity]):required:user-invalid) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-switch:has(input:not([data-custom-validity]):required:user-invalid) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-switch: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-switch: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-switch:has(input[data-custom-validity=invalid]), .db-switch[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-switch:has(input[data-custom-validity=invalid]) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-switch:has(input[data-custom-validity=invalid]) > .db-infotext[data-semantic=critical]:not([hidden]), .db-switch[data-custom-validity=invalid] > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-switch[data-custom-validity=invalid] > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-switch:has(input[data-custom-validity=invalid]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-switch:has(input[data-custom-validity=invalid]) > .db-infotext:not([data-semantic]):not([hidden]), .db-switch[data-custom-validity=invalid] > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-switch[data-custom-validity=invalid] > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-switch:has(input[data-custom-validity=invalid]) input:not(:checked), .db-switch[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-switch:has(input[data-custom-validity=invalid]) input:checked, .db-switch[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-switch input {
  --db-icon-margin-start: 0;
  --thumb-offset-x: 0.125rem;
  appearance: none;
  margin-inline-end: 0;
  inline-size: calc(var(--db-icon-font-size) * 2 + 0.125rem);
  block-size: var(--db-icon-font-size);
  box-sizing: content-box;
  align-items: center;
  /* stylelint-disable-next-line db-ux/use-spacings */
  gap: 0.125rem;
  border-radius: var(--db-border-radius-full);
  /* positioned at the end of the track: track length - 100% (thumb width) */
}
.db-switch input:not([hidden]) {
  display: flex;
}
.db-switch input:not([data-show-icon-trailing=false])::after {
  --db-icon-trailing: "cross";
  margin-inline-start: var(--db-icon-margin-start, var(--db-spacing-fixed-xs));
  content: var(--db-icon-trailing, attr(data-icon-trailing));
}
@supports (content: ""/"") {
  .db-switch input:not([data-show-icon-trailing=false])::after {
    content: var(--db-icon-trailing, attr(data-icon-trailing))/"";
  }
}
.db-switch input::after {
  --db-icon-color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
  visibility: hidden;
  align-self: center;
  aspect-ratio: 1;
}
.db-switch input::before {
  content: "°"/"";
  text-align: center;
  align-content: center;
  aspect-ratio: 1;
  block-size: calc(var(--db-icon-font-size) - 0.125rem * 2);
  background-color: var(--db-check-element-border-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
  color: var(--db-check-element-border-color, var(--db-adaptive-on-bg-basic-emphasis-100-default));
  border-radius: var(--db-border-radius-full);
  transform: translateX(var(--thumb-offset-x));
  margin-inline-end: calc(calc(var(--db-icon-font-size)) - calc(var(--db-icon-font-size) - 0.125rem * 2));
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-switch input::before {
    transition: margin var(--db-transition-duration-fast) var(--db-transition-timing-emotional), inline-size var(--db-transition-duration-fast) var(--db-transition-timing-emotional), block-size var(--db-transition-duration-fast) var(--db-transition-timing-emotional), transform var(--db-transition-duration-fast) var(--db-transition-timing-emotional), visibility var(--db-transition-duration-fast) var(--db-transition-timing-emotional);
  }
}
.db-switch input:checked {
  --thumb-offset-x: calc(100% + 0.125rem);
  --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
  );
}
.db-switch input:checked::after {
  --db-icon-color: var(--db-adaptive-on-bg-inverted-default);
}
.db-switch input:checked::before {
  block-size: calc(var(--db-icon-font-size));
  background-color: var(--db-adaptive-on-bg-inverted-default);
  color: var(--db-adaptive-on-bg-inverted-default);
  margin: 0;
}
.db-switch input:focus-visible {
  border-radius: var(--db-border-radius-full);
}
.db-switch input[data-aid-icon]:not(:checked)::after {
  --db-icon-trailing: attr(data-aid-icon);
}
.db-switch input[data-aid-icon-trailing]:checked::after {
  --db-icon-trailing: attr(data-aid-icon-trailing);
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-switch input {
    transition: none;
  }
}
.db-switch[data-hide-label=true] > label {
  margin: 0;
}
.db-switch[data-hide-label=true] > label > span {
  font-size: 0;
}
.db-switch[data-size=small] > label {
  gap: var(--db-spacing-fixed-2xs);
}
.db-switch[data-visual-aid=true] input::after {
  visibility: visible;
  block-size: calc(var(--db-icon-font-size));
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-switch[data-visual-aid=true] input::after {
    transition: transform var(--db-transition-duration-fast) var(--db-transition-timing-emotional);
  }
}
.db-switch[data-visual-aid=true] input:checked:not([data-aid-icon]):not([data-show-icon-trailing=false])::after {
  --db-icon-trailing: "check";
  margin-inline-start: var(--db-icon-margin-start, var(--db-spacing-fixed-xs));
  content: var(--db-icon-trailing, attr(data-icon-trailing));
}
@supports (content: ""/"") {
  .db-switch[data-visual-aid=true] input:checked:not([data-aid-icon]):not([data-show-icon-trailing=false])::after {
    content: var(--db-icon-trailing, attr(data-icon-trailing))/"";
  }
}
.db-switch[data-visual-aid=true] input:checked::after {
  transform: translateX(calc(-100% - 0.125rem));
  transform-origin: center right;
}
.db-switch:not([data-variant=leading]) > label {
  flex-direction: row;
}
.db-switch:not([data-variant=leading]) input {
  margin-inline-end: var(--db-spacing-fixed-xs);
}
.db-switch:not([data-variant=leading])[data-size=small] input {
  margin-inline-end: var(--db-spacing-fixed-xs);
}
.db-switch[data-variant=leading]:not([data-hide-asterisk=true]):has(input:required) > label::after, .db-switch[data-variant=leading]:not([data-hide-asterisk=true])[data-required=true] > label::after {
  /* We remove default asterisk because we need a wrapping span for switch */
  content: none;
}
.db-switch[data-variant=leading]:not([data-hide-asterisk=true]):has(input:required) > label::before, .db-switch[data-variant=leading]:not([data-hide-asterisk=true])[data-required=true] > label::before {
  order: 1;
  content: "*";
}
@supports (content: ""/"") {
  .db-switch[data-variant=leading]:not([data-hide-asterisk=true]):has(input:required) > label::before, .db-switch[data-variant=leading]:not([data-hide-asterisk=true])[data-required=true] > label::before {
    content: "*"/"";
  }
}
.db-switch[data-variant=leading] input {
  order: 2;
  margin-inline-start: var(--db-spacing-fixed-xs);
}
.db-switch[data-variant=leading][data-size=small] input {
  margin-inline-start: var(--db-spacing-fixed-2xs);
}
