/* 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-select[data-hide-label=true] > label, .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 {}

.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid), .db-select:has(select[data-custom-validity=invalid]), .db-select[data-custom-validity=invalid] {
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-select:has(select:not([data-custom-validity]):is(:required):user-invalid), .db-select:has(select[data-custom-validity=invalid]), .db-select[data-custom-validity=invalid] {
    --db-adaptive-bg-basic-level-1-default: var(
    	--db-critical-bg-basic-level-1-default
    );
    --db-adaptive-bg-basic-level-1-hovered: var(
    	--db-critical-bg-basic-level-1-hovered
    );
    --db-adaptive-bg-basic-level-1-pressed: var(
    	--db-critical-bg-basic-level-1-pressed
    );
    --db-adaptive-bg-basic-level-2-default: var(
    	--db-critical-bg-basic-level-2-default
    );
    --db-adaptive-bg-basic-level-2-hovered: var(
    	--db-critical-bg-basic-level-2-hovered
    );
    --db-adaptive-bg-basic-level-2-pressed: var(
    	--db-critical-bg-basic-level-2-pressed
    );
    --db-adaptive-bg-basic-level-3-default: var(
    	--db-critical-bg-basic-level-3-default
    );
    --db-adaptive-bg-basic-level-3-hovered: var(
    	--db-critical-bg-basic-level-3-hovered
    );
    --db-adaptive-bg-basic-level-3-pressed: var(
    	--db-critical-bg-basic-level-3-pressed
    );
    --db-adaptive-bg-basic-transparent-full-default: var(
    	--db-critical-bg-basic-transparent-full-default
    );
    --db-adaptive-bg-basic-transparent-semi-default: var(
    	--db-critical-bg-basic-transparent-semi-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-adaptive-bg-basic-transparent-semi-hovered: var(
    	--db-critical-bg-basic-transparent-semi-hovered
    );
    --db-adaptive-bg-basic-transparent-semi-pressed: var(
    	--db-critical-bg-basic-transparent-semi-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-100-default: var(
    	--db-critical-on-bg-basic-emphasis-100-default
    );
    --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
    	--db-critical-on-bg-basic-emphasis-100-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
    	--db-critical-on-bg-basic-emphasis-100-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-90-default: var(
    	--db-critical-on-bg-basic-emphasis-90-default
    );
    --db-adaptive-on-bg-basic-emphasis-90-hovered: var(
    	--db-critical-on-bg-basic-emphasis-90-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-90-pressed: var(
    	--db-critical-on-bg-basic-emphasis-90-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-80-default: var(
    	--db-critical-on-bg-basic-emphasis-80-default
    );
    --db-adaptive-on-bg-basic-emphasis-80-hovered: var(
    	--db-critical-on-bg-basic-emphasis-80-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-80-pressed: var(
    	--db-critical-on-bg-basic-emphasis-80-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-70-default: var(
    	--db-critical-on-bg-basic-emphasis-70-default
    );
    --db-adaptive-on-bg-basic-emphasis-70-hovered: var(
    	--db-critical-on-bg-basic-emphasis-70-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-70-pressed: var(
    	--db-critical-on-bg-basic-emphasis-70-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-60-default: var(
    	--db-critical-on-bg-basic-emphasis-60-default
    );
    --db-adaptive-on-bg-basic-emphasis-50-default: var(
    	--db-critical-on-bg-basic-emphasis-50-default
    );
    --db-adaptive-bg-inverted-contrast-max-default: var(
    	--db-critical-bg-inverted-contrast-max-default
    );
    --db-adaptive-bg-inverted-contrast-max-hovered: var(
    	--db-critical-bg-inverted-contrast-max-hovered
    );
    --db-adaptive-bg-inverted-contrast-max-pressed: var(
    	--db-critical-bg-inverted-contrast-max-pressed
    );
    --db-adaptive-bg-inverted-contrast-high-default: var(
    	--db-critical-bg-inverted-contrast-high-default
    );
    --db-adaptive-bg-inverted-contrast-high-hovered: var(
    	--db-critical-bg-inverted-contrast-high-hovered
    );
    --db-adaptive-bg-inverted-contrast-high-pressed: var(
    	--db-critical-bg-inverted-contrast-high-pressed
    );
    --db-adaptive-bg-inverted-contrast-low-default: var(
    	--db-critical-bg-inverted-contrast-low-default
    );
    --db-adaptive-bg-inverted-contrast-low-hovered: var(
    	--db-critical-bg-inverted-contrast-low-hovered
    );
    --db-adaptive-bg-inverted-contrast-low-pressed: var(
    	--db-critical-bg-inverted-contrast-low-pressed
    );
    --db-adaptive-on-bg-inverted-default: var(
    	--db-critical-on-bg-inverted-default
    );
    --db-adaptive-on-bg-inverted-hovered: var(
    	--db-critical-on-bg-inverted-hovered
    );
    --db-adaptive-on-bg-inverted-pressed: var(
    	--db-critical-on-bg-inverted-pressed
    );
    --db-adaptive-origin-default: var(--db-critical-origin-default);
    --db-adaptive-origin-hovered: var(--db-critical-origin-hovered);
    --db-adaptive-origin-pressed: var(--db-critical-origin-pressed);
    --db-adaptive-on-origin-default: var(
    	--db-critical-on-origin-default
    );
    --db-adaptive-bg-vibrant-default: var(
    	--db-critical-bg-vibrant-default
    );
    --db-adaptive-bg-vibrant-hovered: var(
    	--db-critical-bg-vibrant-hovered
    );
    --db-adaptive-bg-vibrant-pressed: var(
    	--db-critical-bg-vibrant-pressed
    );
    --db-adaptive-on-bg-vibrant-default: var(
    	--db-critical-on-bg-vibrant-default
    );
    --db-adaptive-on-bg-vibrant-hovered: var(
    	--db-critical-on-bg-vibrant-hovered
    );
    --db-adaptive-on-bg-vibrant-pressed: var(
    	--db-critical-on-bg-vibrant-pressed
    );
  }
}

.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]), .db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]), .db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) {
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
  > db-infotext > .db-infotext[data-semantic=successful]), .db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
  > db-infotext > .db-infotext[data-semantic=successful]), .db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
  > db-infotext > .db-infotext[data-semantic=successful]) {
    --db-adaptive-bg-basic-level-1-default: var(
    	--db-successful-bg-basic-level-1-default
    );
    --db-adaptive-bg-basic-level-1-hovered: var(
    	--db-successful-bg-basic-level-1-hovered
    );
    --db-adaptive-bg-basic-level-1-pressed: var(
    	--db-successful-bg-basic-level-1-pressed
    );
    --db-adaptive-bg-basic-level-2-default: var(
    	--db-successful-bg-basic-level-2-default
    );
    --db-adaptive-bg-basic-level-2-hovered: var(
    	--db-successful-bg-basic-level-2-hovered
    );
    --db-adaptive-bg-basic-level-2-pressed: var(
    	--db-successful-bg-basic-level-2-pressed
    );
    --db-adaptive-bg-basic-level-3-default: var(
    	--db-successful-bg-basic-level-3-default
    );
    --db-adaptive-bg-basic-level-3-hovered: var(
    	--db-successful-bg-basic-level-3-hovered
    );
    --db-adaptive-bg-basic-level-3-pressed: var(
    	--db-successful-bg-basic-level-3-pressed
    );
    --db-adaptive-bg-basic-transparent-full-default: var(
    	--db-successful-bg-basic-transparent-full-default
    );
    --db-adaptive-bg-basic-transparent-semi-default: var(
    	--db-successful-bg-basic-transparent-semi-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-adaptive-bg-basic-transparent-semi-hovered: var(
    	--db-successful-bg-basic-transparent-semi-hovered
    );
    --db-adaptive-bg-basic-transparent-semi-pressed: var(
    	--db-successful-bg-basic-transparent-semi-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-100-default: var(
    	--db-successful-on-bg-basic-emphasis-100-default
    );
    --db-adaptive-on-bg-basic-emphasis-100-hovered: var(
    	--db-successful-on-bg-basic-emphasis-100-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-100-pressed: var(
    	--db-successful-on-bg-basic-emphasis-100-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-90-default: var(
    	--db-successful-on-bg-basic-emphasis-90-default
    );
    --db-adaptive-on-bg-basic-emphasis-90-hovered: var(
    	--db-successful-on-bg-basic-emphasis-90-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-90-pressed: var(
    	--db-successful-on-bg-basic-emphasis-90-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-80-default: var(
    	--db-successful-on-bg-basic-emphasis-80-default
    );
    --db-adaptive-on-bg-basic-emphasis-80-hovered: var(
    	--db-successful-on-bg-basic-emphasis-80-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-80-pressed: var(
    	--db-successful-on-bg-basic-emphasis-80-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-70-default: var(
    	--db-successful-on-bg-basic-emphasis-70-default
    );
    --db-adaptive-on-bg-basic-emphasis-70-hovered: var(
    	--db-successful-on-bg-basic-emphasis-70-hovered
    );
    --db-adaptive-on-bg-basic-emphasis-70-pressed: var(
    	--db-successful-on-bg-basic-emphasis-70-pressed
    );
    --db-adaptive-on-bg-basic-emphasis-60-default: var(
    	--db-successful-on-bg-basic-emphasis-60-default
    );
    --db-adaptive-on-bg-basic-emphasis-50-default: var(
    	--db-successful-on-bg-basic-emphasis-50-default
    );
    --db-adaptive-bg-inverted-contrast-max-default: var(
    	--db-successful-bg-inverted-contrast-max-default
    );
    --db-adaptive-bg-inverted-contrast-max-hovered: var(
    	--db-successful-bg-inverted-contrast-max-hovered
    );
    --db-adaptive-bg-inverted-contrast-max-pressed: var(
    	--db-successful-bg-inverted-contrast-max-pressed
    );
    --db-adaptive-bg-inverted-contrast-high-default: var(
    	--db-successful-bg-inverted-contrast-high-default
    );
    --db-adaptive-bg-inverted-contrast-high-hovered: var(
    	--db-successful-bg-inverted-contrast-high-hovered
    );
    --db-adaptive-bg-inverted-contrast-high-pressed: var(
    	--db-successful-bg-inverted-contrast-high-pressed
    );
    --db-adaptive-bg-inverted-contrast-low-default: var(
    	--db-successful-bg-inverted-contrast-low-default
    );
    --db-adaptive-bg-inverted-contrast-low-hovered: var(
    	--db-successful-bg-inverted-contrast-low-hovered
    );
    --db-adaptive-bg-inverted-contrast-low-pressed: var(
    	--db-successful-bg-inverted-contrast-low-pressed
    );
    --db-adaptive-on-bg-inverted-default: var(
    	--db-successful-on-bg-inverted-default
    );
    --db-adaptive-on-bg-inverted-hovered: var(
    	--db-successful-on-bg-inverted-hovered
    );
    --db-adaptive-on-bg-inverted-pressed: var(
    	--db-successful-on-bg-inverted-pressed
    );
    --db-adaptive-origin-default: var(--db-successful-origin-default);
    --db-adaptive-origin-hovered: var(--db-successful-origin-hovered);
    --db-adaptive-origin-pressed: var(--db-successful-origin-pressed);
    --db-adaptive-on-origin-default: var(
    	--db-successful-on-origin-default
    );
    --db-adaptive-bg-vibrant-default: var(
    	--db-successful-bg-vibrant-default
    );
    --db-adaptive-bg-vibrant-hovered: var(
    	--db-successful-bg-vibrant-hovered
    );
    --db-adaptive-bg-vibrant-pressed: var(
    	--db-successful-bg-vibrant-pressed
    );
    --db-adaptive-on-bg-vibrant-default: var(
    	--db-successful-on-bg-vibrant-default
    );
    --db-adaptive-on-bg-vibrant-hovered: var(
    	--db-successful-on-bg-vibrant-hovered
    );
    --db-adaptive-on-bg-vibrant-pressed: var(
    	--db-successful-on-bg-vibrant-pressed
    );
  }
}

@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-select: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-select:not([data-show-icon-trailing=false])::after {
    content: var(--db-icon, attr(data-icon))/"";
  }
}
@media aural {
  .db-select:not([data-show-icon-trailing=false])::after {
    content: none;
  }
}
@media speech {
  .db-select:not([data-show-icon-trailing=false])::after {
    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-select[data-variant=floating] > label, .db-select select, .db-select [id$=-placeholder] {
  font: var(--db-type-body-md);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-select[data-variant=floating] > label, .db-select select, .db-select [id$=-placeholder] {
    /* 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-select, .db-select[data-variant=floating] [id$=-placeholder], .db-select[data-variant=floating] select {
  font: var(--db-type-body-sm);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-select, .db-select[data-variant=floating] [id$=-placeholder], .db-select[data-variant=floating] select {
    /* 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-select > label {
  font: var(--db-type-body-xs);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-select > label {
    /* 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 {}

.db-select[data-variant=floating]:has(select:focus-within,
select:is(input, textarea):not(:placeholder-shown),
> select option:checked:not(.placeholder),
input[type=checkbox]:checked,
input[type=radio]:checked) > label {
  font: var(--db-type-body-2xs);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-select[data-variant=floating]:has(select:focus-within,
  select:is(input, textarea):not(:placeholder-shown),
  > select option:checked:not(.placeholder),
  input[type=checkbox]:checked,
  input[type=radio]:checked) > label {
    /* Those variables are only for components to calculate heights and change icons */
    --db-icon-font-weight: var(--db-base-body-icon-weight-2xs);
    --db-icon-font-size: var(--db-base-body-icon-font-size-2xs);
  }
}

@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-select select {
  border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);
}

.db-select select {
  border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-70-default);
}

.db-select select {
  border-radius: var(--db-border-radius-xs);
}

.db-select:not([data-show-icon-trailing=false])::after {
  --db-icon-trailing: "chevron_down";
  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-select:not([data-show-icon-trailing=false])::after {
    content: var(--db-icon-trailing, attr(data-icon-trailing))/"";
  }
}
.db-select::after {
  pointer-events: none;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-select::after {
    transition: transform var(--db-transition-straight-emotional);
  }
}

.db-select > db-infotext > .db-infotext,
.db-select > .db-infotext {
  margin-block-start: var(--db-spacing-fixed-2xs);
}
.db-select > db-infotext > .db-infotext:is([data-semantic=successful], [data-semantic=critical]):not([hidden]),
.db-select > .db-infotext:is([data-semantic=successful], [data-semantic=critical]):not([hidden]) {
  display: none;
}

[data-icon].db-select:not([data-show-icon=false]) {
  --db-form-has-before: 1;
}

.db-select-placeholder {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  opacity: 0;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-select-placeholder {
    transition: opacity var(--db-transition-straight-emotional), outline var(--db-transition-duration-extra-fast), border-color var(--db-transition-straight-emotional), background-color var(--db-transition-straight-emotional);
  }
}

.db-select [id$=-placeholder] {
  --label-block-start: calc(
  	(
  		var(--db-base-body-icon-font-size-xs) +
  			var(--db-spacing-fixed-xs)
  	)
  );
  --label-block-start-half: calc(-1 * var(--label-block-start) / 2);
  position: absolute;
  pointer-events: none;
  transform: translateY(var(--label-block-start-half));
  inset-block-start: calc(var(--label-block-start) * var(--db-label-visible-height, 1) + var(--db-sizing-md) / 2);
  inset-inline: calc(var(--db-form-has-before) * (var(--db-base-body-icon-font-size-sm) + var(--db-spacing-fixed-sm)));
  margin-inline-start: var(--db-spacing-fixed-sm);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  inline-size: calc(100% - var(--db-form-component-padding-inline-end) - calc(var(--db-form-has-before) * (var(--db-base-body-icon-font-size-sm) + var(--db-spacing-fixed-sm))) - var(--db-spacing-fixed-sm));
}

.db-select {
  --db-form-component-padding-inline-end: calc(var(--db-icon-font-size) + var(--db-spacing-fixed-sm) + var(--db-spacing-fixed-xs));
  --db-form-component-min-inline-size: var(--db-sizing-xl);
  min-inline-size: var(--db-form-component-min-inline-size, var(--db-sizing-lg));
  /* stylelint-disable-next-line block-no-redundant-nested-style-rules */
}
.db-select {
  --db-form-has-before: 0;
  position: relative;
  flex-direction: column;
}
.db-select:not([hidden]) {
  display: flex;
}
.db-select[data-variant=floating], .db-select[data-hide-label=true] {
  --db-label-visible-above: 0;
}
.db-select:not([data-hide-asterisk=true]):has(select:required):is(label)::after,
.db-select:not([data-hide-asterisk=true]):has(select:required) > label::after, .db-select:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
.db-select: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-select:not([data-hide-asterisk=true]):has(select:required):is(label)::after,
  .db-select:not([data-hide-asterisk=true]):has(select:required) > label::after, .db-select:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
  .db-select:not([data-hide-asterisk=true])[data-required=true] > label::after {
    content: "*"/"";
  }
}
.db-select[data-variant=floating]:has(select:not([data-custom-validity]):is(:required):user-valid) label {
  color: var(--db-successful-on-bg-basic-emphasis-80-default);
}
.db-select[data-variant=floating]:has(select[data-custom-validity=valid]) label, .db-select[data-variant=floating][data-custom-validity=valid] label {
  color: var(--db-successful-on-bg-basic-emphasis-80-default);
}
.db-select[data-variant=floating]:has(select:not([data-custom-validity]):is(:required):user-invalid) label {
  color: var(--db-critical-on-bg-basic-emphasis-80-default);
}
.db-select[data-variant=floating]:has(select[data-custom-validity=invalid]) label, .db-select[data-variant=floating][data-custom-validity=invalid] label {
  color: var(--db-critical-on-bg-basic-emphasis-80-default);
}
.db-select[data-variant=floating] > label {
  opacity: var(--db-opacity-xl);
  position: absolute;
  z-index: 2;
  inset-block-start: calc((var(--db-sizing-md) - var(--db-icon-font-size)) / 2);
  inset-inline: var(--db-form-component-padding-inline-start, var(--db-spacing-fixed-sm)) var(--db-form-component-padding-inline-end, var(--db-spacing-fixed-sm));
  pointer-events: none;
  font-style: italic;
}
.db-select[data-variant=floating] [id$=-placeholder] {
  inset-block-start: calc(50% - 0.5em + var(--db-spacing-fixed-3xs));
}
.db-select[data-variant=floating] select::placeholder,
.db-select[data-variant=floating] [id$=-placeholder] {
  transition: none;
  opacity: 0;
}
.db-select[data-variant=floating] select:is([type=date],
[type=datetime-local],
[type=month],
[type=week],
[type=time]):not(:user-valid,
[value*="1"],
[value*="2"],
[value*="3"],
[value*="4"],
[value*="5"],
[value*="6"],
[value*="7"],
[value*="8"],
[value*="9"],
[value*="0"])::-webkit-datetime-edit {
  transition: none;
  opacity: 0;
}
.db-select[data-variant=floating] select {
  /* stylelint-disable-next-line db-ux/use-spacings */
  padding-block-start: var(--db-base-body-icon-font-size-2xs);
}
.db-select[data-variant=floating]:has(select:focus-within,
select:is(input, textarea):not(:placeholder-shown),
> select option:checked:not(.placeholder),
input[type=checkbox]:checked,
input[type=radio]:checked) > label {
  inset-block-start: var(--db-spacing-fixed-2xs);
  opacity: 1;
  font-style: normal;
}
.db-select[data-variant=floating]:has(select:focus-within,
select:is(input, textarea):not(:placeholder-shown),
> select option:checked:not(.placeholder),
input[type=checkbox]:checked,
input[type=radio]:checked) select::placeholder,
.db-select[data-variant=floating]:has(select:focus-within,
select:is(input, textarea):not(:placeholder-shown),
> select option:checked:not(.placeholder),
input[type=checkbox]:checked,
input[type=radio]:checked) [id$=-placeholder] {
  opacity: var(--db-opacity-xl);
  font-family: var(--db-font-family-sans);
  font-style: italic;
  /* stylelint-disable-next-line db-ux/use-spacings */
  padding-block-start: var(--db-base-body-icon-font-size-2xs);
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-select[data-variant=floating]:has(select:focus-within,
  select:is(input, textarea):not(:placeholder-shown),
  > select option:checked:not(.placeholder),
  input[type=checkbox]:checked,
  input[type=radio]:checked) select::placeholder,
  .db-select[data-variant=floating]:has(select:focus-within,
  select:is(input, textarea):not(:placeholder-shown),
  > select option:checked:not(.placeholder),
  input[type=checkbox]:checked,
  input[type=radio]:checked) [id$=-placeholder] {
    transition: opacity var(--db-transition-straight-emotional);
  }
}
.db-select[data-variant=floating]:has(select:focus-within,
select:is(input, textarea):not(:placeholder-shown),
> select option:checked:not(.placeholder),
input[type=checkbox]:checked,
input[type=radio]:checked) select:is([type=date],
[type=datetime-local],
[type=month],
[type=week],
[type=time]):not(:user-valid,
[value*="1"],
[value*="2"],
[value*="3"],
[value*="4"],
[value*="5"],
[value*="6"],
[value*="7"],
[value*="8"],
[value*="9"],
[value*="0"])::-webkit-datetime-edit {
  opacity: var(--db-opacity-xl);
  font-family: var(--db-font-family-sans);
  font-style: italic;
  /* stylelint-disable-next-line db-ux/use-spacings */
  padding-block-start: var(--db-base-body-icon-font-size-2xs);
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-select[data-variant=floating]:has(select:focus-within,
  select:is(input, textarea):not(:placeholder-shown),
  > select option:checked:not(.placeholder),
  input[type=checkbox]:checked,
  input[type=radio]:checked) select:is([type=date],
  [type=datetime-local],
  [type=month],
  [type=week],
  [type=time]):not(:user-valid,
  [value*="1"],
  [value*="2"],
  [value*="3"],
  [value*="4"],
  [value*="5"],
  [value*="6"],
  [value*="7"],
  [value*="8"],
  [value*="9"],
  [value*="0"])::-webkit-datetime-edit {
    transition: opacity var(--db-transition-straight-emotional);
  }
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) select,
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) [id$=-placeholder] {
  color: var(--db-successful-on-bg-basic-emphasis-100-default);
  caret-color: var(--db-successful-on-bg-basic-emphasis-100-default);
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]) {
  display: flex;
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-select:has(select:not([data-custom-validity]):is(:required):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]), .db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) select,
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) [id$=-placeholder], .db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) select,
.db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) [id$=-placeholder] {
  color: var(--db-successful-on-bg-basic-emphasis-100-default);
  caret-color: var(--db-successful-on-bg-basic-emphasis-100-default);
}
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext, .db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]), .db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext[data-semantic=successful]:not([hidden]),
.db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext[data-semantic=successful]:not([hidden]) {
  display: flex;
}
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-select:has(select[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]), .db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-select[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid) {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid) select,
.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid) [id$=-placeholder] {
  color: var(--db-critical-on-bg-basic-emphasis-100-default);
  caret-color: var(--db-critical-on-bg-basic-emphasis-100-default);
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid) > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-select:has(select:not([data-custom-validity]):is(:required):user-invalid) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-select:has(select[data-custom-validity=invalid]), .db-select[data-custom-validity=invalid] {
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-select:has(select[data-custom-validity=invalid]) select,
.db-select:has(select[data-custom-validity=invalid]) [id$=-placeholder], .db-select[data-custom-validity=invalid] select,
.db-select[data-custom-validity=invalid] [id$=-placeholder] {
  color: var(--db-critical-on-bg-basic-emphasis-100-default);
  caret-color: var(--db-critical-on-bg-basic-emphasis-100-default);
}
.db-select:has(select[data-custom-validity=invalid]) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-select:has(select[data-custom-validity=invalid]) > .db-infotext[data-semantic=critical]:not([hidden]), .db-select[data-custom-validity=invalid] > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-select[data-custom-validity=invalid] > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-select:has(select[data-custom-validity=invalid]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-select:has(select[data-custom-validity=invalid]) > .db-infotext:not([data-semantic]):not([hidden]), .db-select[data-custom-validity=invalid] > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-select[data-custom-validity=invalid] > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-select select::placeholder,
.db-select [id$=-placeholder] {
  opacity: var(--db-opacity-xl);
  font-family: var(--db-font-family-sans);
  font-style: italic;
}
.db-select select:is([type=date],
[type=datetime-local],
[type=month],
[type=week],
[type=time]):not(:user-valid,
[value*="1"],
[value*="2"],
[value*="3"],
[value*="4"],
[value*="5"],
[value*="6"],
[value*="7"],
[value*="8"],
[value*="9"],
[value*="0"])::-webkit-datetime-edit {
  opacity: var(--db-opacity-xl);
  font-family: var(--db-font-family-sans);
  font-style: italic;
}
.db-select select {
  background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
  caret-color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
  appearance: none;
  max-inline-size: 100%;
  inline-size: 100%;
  min-inline-size: var(--db-form-component-min-inline-size, var(--db-sizing-lg));
  /* stylelint-disable-next-line db-ux/use-spacings */
  padding-inline: var(--db-form-component-padding-inline-start, var(--db-spacing-fixed-sm)) var(--db-form-component-padding-inline-end, var(--db-spacing-fixed-sm));
  /* stylelint-disable-next-line a11y/selector-pseudo-class-focus */
}
.db-select select:hover:not(:disabled, [aria-disabled=true]) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-semi-hovered);
}
.db-select select:hover:not(:disabled, [aria-disabled=true]):is(textarea), .db-select select:hover:not(:disabled, [aria-disabled=true]):is(input) {
  cursor: initial;
}
.db-select select:hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), .db-select select:hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}
.db-select > label {
  padding-block-end: var(--db-spacing-fixed-xs);
  max-inline-size: 25ch;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-select > label {
    transition: font-size var(--db-transition-straight-emotional);
  }
}
.db-select[data-hide-label=true] > label {
  padding: 0;
}
.db-select:has(select:disabled,
select[data-disabled=true],
select[aria-disabled=true]) {
  opacity: var(--db-opacity-md);
  pointer-events: none;
}
.db-select::after, .db-select::before {
  position: absolute;
  pointer-events: none;
  inset-block-start: calc((var(--db-spacing-fixed-xs) + var(--db-base-body-icon-font-size-xs)) * var(--db-label-visible-above, 1) + var(--db-sizing-md) / 2);
  color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
  transform: translateY(-50%);
  z-index: 1;
}
.db-select::before {
  margin-inline-end: var(--db-spacing-fixed-sm);
  inset-inline-start: var(--db-spacing-fixed-sm);
}
.db-select::after {
  margin-inline-start: var(--db-spacing-fixed-sm);
  inset-inline-end: var(--db-spacing-fixed-sm);
}
.db-select select {
  block-size: var(--db-sizing-md);
  text-overflow: ellipsis;
}
.db-select[data-icon]:not([data-show-icon=false]) {
  --db-form-component-min-inline-size: var(--db-sizing-2xl);
}
.db-select select {
  text-indent: calc(var(--db-form-has-before) * (var(--db-base-body-icon-font-size-sm) + var(--db-spacing-fixed-sm)));
}
.db-select[data-hide-label=true] {
  --db-label-visible-height: 0;
  --db-label-visible-spacing: 1;
}
.db-select option {
  background-color: var(--db-adaptive-bg-basic-level-1-default);
  color: var(--db-adaptive-on-bg-basic-emphasis-100-default);
}
.db-select optgroup {
  background-color: var(--db-adaptive-bg-basic-level-3-default);
}
.db-select:has(> select option:checked:not(.placeholder)) [id$=-placeholder] {
  display: none;
}
