/* 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-textarea[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;
}

/* 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 {}

/**
	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-textarea[data-variant=floating] > label, .db-textarea textarea {
  font: var(--db-type-body-md);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-textarea[data-variant=floating] > label, .db-textarea textarea {
    /* 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-textarea, .db-textarea[data-variant=floating] [id$=-placeholder], .db-textarea[data-variant=floating] textarea {
  font: var(--db-type-body-sm);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-textarea, .db-textarea[data-variant=floating] [id$=-placeholder], .db-textarea[data-variant=floating] textarea {
    /* 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-textarea > label {
  font: var(--db-type-body-xs);
  /* stylelint-disable-next-line at-rule-prelude-no-invalid,layer-name-pattern */
}
@layer variables {
  .db-textarea > 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-textarea[data-variant=floating]:has(textarea:focus-within,
textarea: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-textarea[data-variant=floating]:has(textarea:focus-within,
  textarea: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-textarea textarea {
  border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-100-default);
}

.db-textarea textarea, .db-textarea[data-variant=floating]:has(textarea:is(:focus-within, :not(:placeholder-shown)))::after {
  border: var(--db-border-width-3xs) solid var(--db-adaptive-on-bg-basic-emphasis-70-default);
}

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

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

.db-textarea[data-variant=floating]:has(textarea:is(:focus-within, :not(:placeholder-shown)))::before, .db-textarea textarea::-webkit-scrollbar, .db-textarea textarea::-webkit-scrollbar-corner {
  transition: outline var(--db-transition-duration-extra-fast), border-color var(--db-transition-straight-emotional), background-color var(--db-transition-straight-emotional);
}

@keyframes show-right-to-left {
  from {
    transform: translateX(110%);
  }
  to {
    transform: translateX(0%);
  }
}
@keyframes hide-right-to-left {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(110%);
  }
}
@keyframes show-left-to-right {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(0%);
  }
}
@keyframes hide-left-to-right {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-110%);
  }
}
@keyframes show-bottom-to-top {
  from {
    transform: translateY(110%);
  }
  to {
    transform: translateY(0%);
  }
}
@keyframes hide-bottom-to-top {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(110%);
  }
}
@keyframes show-top-to-bottom {
  from {
    transform: translateY(-110%);
  }
  to {
    transform: translateY(0%);
  }
}
@keyframes hide-top-to-bottom {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(-110%);
  }
}
@keyframes popover-animation {
  0% {
    opacity: 0;
    transform: translate(var(--db-popover-center-x, var(--db-popover-translate-x, 0%)), var(--db-popover-center-y, var(--db-popover-translate-y, 0%)));
  }
  100% {
    opacity: 1;
    transform: translate(var(--db-popover-center-x, 0%), var(--db-popover-center-y, 0%));
  }
}
@keyframes rotate {
  100% {
    transform: rotate(1turn);
  }
}
.db-textarea textarea {
  /* Buttons */
  /* Up */
  /* Down */
  /* Left */
  /* Right */
}
@supports (field-sizing: content) {
  .db-textarea textarea[data-field-sizing=content]:is([data-hide-resizer=true], [data-resize=none]) {
    /* We don't show a scrollbar if we use field-sizing: content and no resizer is available */
    scrollbar-width: none;
  }
}
.db-textarea textarea::-webkit-scrollbar {
  z-index: 3;
  inline-size: 0.5rem;
  block-size: 0.5rem;
  background-color: var(--db-adaptive-bg-basic-level-1-default);
  border-start-end-radius: var(--db-border-radius-xs);
}
.db-textarea textarea:is(:hover, :focus)::-webkit-scrollbar-track, .db-textarea textarea:is(:hover, :focus)::-webkit-scrollbar-button:single-button {
  background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
}
.db-textarea textarea:read-only::-webkit-scrollbar-track, .db-textarea textarea:read-only::-webkit-scrollbar-button:single-button {
  background-color: var(--db-adaptive-bg-basic-level-1-default);
}
.db-textarea textarea::-webkit-scrollbar-track {
  background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
}
.db-textarea textarea::-webkit-scrollbar-thumb {
  background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
}
.db-textarea textarea::-webkit-scrollbar-button:single-button {
  background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
  background-size: 0.5rem;
  background-repeat: no-repeat;
  background-position: center;
  block-size: calc(var(--db-spacing-fixed-3xs) + var(--db-spacing-fixed-2xs) + var(--db-base-body-icon-font-size-2xs));
}
.db-textarea textarea::-webkit-scrollbar-button:single-button:is(:hover, :focus) {
  background-color: var(--db-adaptive-bg-basic-transparent-full-hovered);
}
.db-textarea textarea::-webkit-scrollbar-button:single-button:active {
  background-color: var(--db-adaptive-bg-basic-transparent-full-pressed);
}
.db-textarea textarea::-webkit-scrollbar-button:single-button:vertical:decrement {
  border-start-end-radius: var(--db-border-radius-xs);
  background-image: var(--db-scrollbar-button-vertical-decrement);
}
.db-textarea textarea::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: var(--db-scrollbar-button-vertical-increment);
}
.db-textarea textarea::-webkit-scrollbar-button:single-button:horizontal:decrement {
  background-image: var(--db-scrollbar-button-horizontal-decrement);
}
.db-textarea textarea::-webkit-scrollbar-button:single-button:horizontal:increment {
  background-image: var(--db-scrollbar-button-horizontal-increment);
}
.db-textarea textarea[data-variant=floating]::-webkit-resizer {
  background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
}
.db-textarea textarea[data-variant=floating]::-webkit-scrollbar-corner {
  background-color: var(--db-adaptive-bg-basic-level-1-default);
}
.db-textarea textarea::-webkit-resizer {
  background-color: var(--db-adaptive-bg-basic-transparent-full-default);
  background-size: 0.5rem;
  background-repeat: no-repeat;
  background-position: center;
  background-image: var(--db-textarea-resizer-image);
  border-end-end-radius: var(--db-border-radius-xs);
}
.db-textarea textarea::-webkit-scrollbar-corner {
  border-end-end-radius: var(--db-border-radius-xs);
}

.db-textarea textarea[data-hide-resizer=true] {
  resize: none;
}
.db-textarea textarea:not([data-hide-resizer=true])[data-resize=none] {
  resize: none;
}
.db-textarea textarea:not([data-hide-resizer=true])[data-resize=both] {
  resize: both;
}
.db-textarea textarea:not([data-hide-resizer=true])[data-resize=horizontal] {
  resize: horizontal;
}
.db-textarea textarea:not([data-hide-resizer=true])[data-resize=vertical] {
  resize: vertical;
}

.db-textarea {
  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-textarea {
  --db-form-has-before: 0;
  position: relative;
  flex-direction: column;
}
.db-textarea:not([hidden]) {
  display: flex;
}
.db-textarea[data-variant=floating], .db-textarea[data-hide-label=true] {
  --db-label-visible-above: 0;
}
.db-textarea:not([data-hide-asterisk=true]):has(textarea:required):is(label)::after,
.db-textarea:not([data-hide-asterisk=true]):has(textarea:required) > label::after, .db-textarea:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
.db-textarea: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-textarea:not([data-hide-asterisk=true]):has(textarea:required):is(label)::after,
  .db-textarea:not([data-hide-asterisk=true]):has(textarea:required) > label::after, .db-textarea:not([data-hide-asterisk=true])[data-required=true]:is(label)::after,
  .db-textarea:not([data-hide-asterisk=true])[data-required=true] > label::after {
    content: "*"/"";
  }
}
.db-textarea[data-variant=floating]:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-valid) label {
  color: var(--db-successful-on-bg-basic-emphasis-80-default);
}
.db-textarea[data-variant=floating]:has(textarea[data-custom-validity=valid]) label, .db-textarea[data-variant=floating][data-custom-validity=valid] label {
  color: var(--db-successful-on-bg-basic-emphasis-80-default);
}
.db-textarea[data-variant=floating]:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) label {
  color: var(--db-critical-on-bg-basic-emphasis-80-default);
}
.db-textarea[data-variant=floating]:has(textarea[data-custom-validity=invalid]) label, .db-textarea[data-variant=floating][data-custom-validity=invalid] label {
  color: var(--db-critical-on-bg-basic-emphasis-80-default);
}
.db-textarea[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-textarea[data-variant=floating] [id$=-placeholder] {
  inset-block-start: calc(50% - 0.5em + var(--db-spacing-fixed-3xs));
}
.db-textarea[data-variant=floating] textarea::placeholder,
.db-textarea[data-variant=floating] [id$=-placeholder] {
  transition: none;
  opacity: 0;
}
.db-textarea[data-variant=floating] textarea: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-textarea[data-variant=floating] textarea {
  padding-block-start: calc(var(--db-spacing-fixed-3xs) + var(--db-spacing-fixed-2xs) + var(--db-base-body-icon-font-size-2xs));
  /* stylelint-disable-next-line at-rule-empty-line-before */
}
.db-textarea[data-variant=floating]:has(textarea:focus-within,
textarea: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-textarea[data-variant=floating]:has(textarea:focus-within,
textarea:is(input, textarea):not(:placeholder-shown),
> select option:checked:not(.placeholder),
input[type=checkbox]:checked,
input[type=radio]:checked) textarea::placeholder,
.db-textarea[data-variant=floating]:has(textarea:focus-within,
textarea: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;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-textarea[data-variant=floating]:has(textarea:focus-within,
  textarea:is(input, textarea):not(:placeholder-shown),
  > select option:checked:not(.placeholder),
  input[type=checkbox]:checked,
  input[type=radio]:checked) textarea::placeholder,
  .db-textarea[data-variant=floating]:has(textarea:focus-within,
  textarea: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-textarea[data-variant=floating]:has(textarea:focus-within,
textarea:is(input, textarea):not(:placeholder-shown),
> select option:checked:not(.placeholder),
input[type=checkbox]:checked,
input[type=radio]:checked) textarea: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;
}
@media screen and (prefers-reduced-motion: no-preference) {
  .db-textarea[data-variant=floating]:has(textarea:focus-within,
  textarea:is(input, textarea):not(:placeholder-shown),
  > select option:checked:not(.placeholder),
  input[type=checkbox]:checked,
  input[type=radio]:checked) textarea: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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) {
  --db-textarea-read-only: var(--db-successful-bg-basic-level-1-default);
  --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-60-default: var(
  	--db-successful-on-bg-basic-emphasis-60-default
  );
}
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful])[data-variant=floating]::after {
  border-color: var(--db-successful-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) textarea,
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) textarea {
  border-color: var(--db-successful-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-valid):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):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-textarea:has(textarea[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]), .db-textarea[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) {
  --db-textarea-read-only: var(--db-successful-bg-basic-level-1-default);
  --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-60-default: var(
  	--db-successful-on-bg-basic-emphasis-60-default
  );
}
.db-textarea:has(textarea[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful])[data-variant=floating]::after, .db-textarea[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful])[data-variant=floating]::after {
  border-color: var(--db-successful-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) textarea,
.db-textarea:has(textarea[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) [id$=-placeholder], .db-textarea[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) textarea,
.db-textarea[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-textarea:has(textarea[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) textarea, .db-textarea[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) textarea {
  border-color: var(--db-successful-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-textarea:has(textarea[data-custom-validity=valid]):has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > .db-infotext, .db-textarea[data-custom-validity=valid]:has(> .db-infotext[data-semantic=successful],
> db-infotext > .db-infotext[data-semantic=successful]) > db-infotext > .db-infotext,
.db-textarea[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-textarea:has(textarea[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-textarea:has(textarea[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-textarea[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-textarea[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-textarea:has(textarea[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-textarea:has(textarea[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-textarea[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-textarea[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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) {
  --db-textarea-read-only: var(--db-critical-bg-basic-level-1-default);
  --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-60-default: var(
  	--db-critical-on-bg-basic-emphasis-60-default
  );
}
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid)[data-variant=floating]::after {
  border-color: var(--db-critical-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) textarea,
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):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-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) textarea {
  border-color: var(--db-critical-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-textarea:has(textarea:not([data-custom-validity]):is(:required, [minlength], [maxlength]):user-invalid) > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-textarea:has(textarea[data-custom-validity=invalid]), .db-textarea[data-custom-validity=invalid] {
  --db-textarea-read-only: var(--db-critical-bg-basic-level-1-default);
  --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-60-default: var(
  	--db-critical-on-bg-basic-emphasis-60-default
  );
}
.db-textarea:has(textarea[data-custom-validity=invalid])[data-variant=floating]::after, .db-textarea[data-custom-validity=invalid][data-variant=floating]::after {
  border-color: var(--db-critical-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea[data-custom-validity=invalid]) textarea,
.db-textarea:has(textarea[data-custom-validity=invalid]) [id$=-placeholder], .db-textarea[data-custom-validity=invalid] textarea,
.db-textarea[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-textarea:has(textarea[data-custom-validity=invalid]) textarea, .db-textarea[data-custom-validity=invalid] textarea {
  border-color: var(--db-critical-on-bg-basic-emphasis-70-default);
}
.db-textarea:has(textarea[data-custom-validity=invalid]) > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-textarea:has(textarea[data-custom-validity=invalid]) > .db-infotext[data-semantic=critical]:not([hidden]), .db-textarea[data-custom-validity=invalid] > db-infotext > .db-infotext[data-semantic=critical]:not([hidden]),
.db-textarea[data-custom-validity=invalid] > .db-infotext[data-semantic=critical]:not([hidden]) {
  display: flex;
}
.db-textarea:has(textarea[data-custom-validity=invalid]) > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-textarea:has(textarea[data-custom-validity=invalid]) > .db-infotext:not([data-semantic]):not([hidden]), .db-textarea[data-custom-validity=invalid] > db-infotext > .db-infotext:not([data-semantic]):not([hidden]),
.db-textarea[data-custom-validity=invalid] > .db-infotext:not([data-semantic]):not([hidden]) {
  display: none;
}
.db-textarea textarea::placeholder,
.db-textarea [id$=-placeholder] {
  opacity: var(--db-opacity-xl);
  font-family: var(--db-font-family-sans);
  font-style: italic;
}
.db-textarea textarea: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-textarea textarea {
  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 */
  /* see https://developer.mozilla.org/en-US/docs/Web/CSS/field-sizing */
}
.db-textarea textarea:hover:not(:disabled, [aria-disabled=true]) {
  cursor: var(--db-overwrite-cursor, pointer);
  background-color: var(--db-adaptive-bg-basic-transparent-semi-hovered);
}
.db-textarea textarea:hover:not(:disabled, [aria-disabled=true]):is(textarea), .db-textarea textarea:hover:not(:disabled, [aria-disabled=true]):is(input) {
  cursor: initial;
}
.db-textarea textarea:hover:not(:disabled, [aria-disabled=true]):is(input[type=checkbox]), .db-textarea textarea:hover:not(:disabled, [aria-disabled=true]):is(input[type=radio]:not(:checked)) {
  cursor: pointer;
}
.db-textarea textarea[data-field-sizing=content] {
  field-sizing: content;
}
.db-textarea textarea[data-field-sizing=fixed] {
  field-sizing: fixed;
}
.db-textarea textarea:not(:disabled):read-only {
  background-color: var(--db-textarea-read-only, var(--db-adaptive-bg-basic-transparent-full-default)) !important;
}
.db-textarea > 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-textarea > label {
    transition: font-size var(--db-transition-straight-emotional);
  }
}
.db-textarea[data-hide-label=true] > label {
  padding: 0;
}
.db-textarea:has(textarea:disabled,
textarea[data-disabled=true],
textarea[aria-disabled=true]) {
  opacity: var(--db-opacity-md);
  pointer-events: none;
}
.db-textarea::after, .db-textarea::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-textarea::before {
  margin-inline-end: var(--db-spacing-fixed-sm);
  inset-inline-start: var(--db-spacing-fixed-sm);
}
.db-textarea::after {
  margin-inline-start: var(--db-spacing-fixed-sm);
  inset-inline-end: var(--db-spacing-fixed-sm);
}
.db-textarea textarea {
  overflow-y: scroll;
  overflow-block: scroll;
  padding-block: var(--db-spacing-fixed-xs) var(--db-spacing-fixed-xs);
}
.db-textarea[data-variant=floating]:has(textarea:is(:focus-within, :not(:placeholder-shown)))::before {
  border-radius: var(--db-border-radius-xs) 0 0 0;
  position: absolute;
  content: "";
  inset-block-start: 0;
  block-size: calc(var(--db-spacing-fixed-3xs) + var(--db-spacing-fixed-2xs) + var(--db-base-body-icon-font-size-2xs));
  margin-inline: 0;
  inline-size: calc(100% - 0.5rem - 1px);
  inset-inline: 0;
  transform: none;
  background-color: var(--db-adaptive-bg-basic-level-1-default);
}
.db-textarea[data-variant=floating]:has(textarea:is(:focus-within, :not(:placeholder-shown)))::after {
  border-radius: var(--db-border-radius-xs) 0 0 0;
  position: absolute;
  content: "";
  inset-block-start: 0;
  block-size: calc(var(--db-spacing-fixed-3xs) + var(--db-spacing-fixed-2xs) + var(--db-base-body-icon-font-size-2xs));
  margin-inline: 0;
  inline-size: calc(100% - 0.5rem - 1px);
  inset-inline: 0;
  transform: none;
  background-color: var(--db-adaptive-bg-basic-transparent-semi-default);
  z-index: 1;
  border-block-end: none;
  border-inline-end: none;
}
.db-textarea[data-variant=floating]:has(textarea:is(:focus-within, :not(:placeholder-shown))):has(textarea:read-only)::after {
  background-color: var(--db-adaptive-bg-basic-level-1-default) !important;
}
.db-textarea[data-variant=floating]:has(textarea:is(:focus-within, :not(:placeholder-shown))):has(textarea:not(:disabled):is(:hover, :focus))::after {
  background-color: var(--db-adaptive-bg-basic-transparent-semi-hovered);
}
