/**
 * Do not edit directly, this file was auto-generated.
 */
@layer jokul.components {
  .jkl-text-area-wrapper {
    overflow: hidden;
    --jkl-text-input-padding: var(--jkl-text-input-vertical-padding)
        var(--jkl-text-input-horizontal-padding);
    --jkl-text-input-vertical-padding: var(--jkl-unit-15);
    --jkl-text-input-horizontal-padding: var(--jkl-unit-15);
    --jkl-text-input-action-button-size: var(--jkl-unit-60);
    --jkl-text-input-action-button-icon-size: var(--jkl-unit-30);
    --jkl-text-input-action-button-padding: var(--jkl-unit-10) 0;
    --jkl-text-input-action-button-focus-position: var(--jkl-unit-05);
    --text-color: var(--jkl-color-text-default);
    --background-color: var(--jkl-color-background-input-base);
    --border-color: var(--jkl-color-border-input);
    --placeholder-color: var(--jkl-color-text-subdued);
    border-radius: var(--jkl-border-radius-s);
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    font-size: var(--jkl-font-size-3);
    line-height: var(--jkl-line-height-tight);
    font-weight: 400;
    --jkl-icon-weight: 300;
    transition-timing-function: ease;
    transition-duration: 150ms;
    transition-property: color, box-shadow, background-color;
    background-color: var(--background-color);
    color: var(--text-color);
    box-shadow: inset 0 0 0 0.0625rem var(--border-color), 0 0 0 0.0625rem transparent;
  }
  .jkl-text-area-wrapper:focus-within, .jkl-text-area-wrapper:has([data-focused=true]) {
    --background-color: var(--jkl-color-background-input-focus);
  }
  .jkl-text-area-wrapper[data-invalid=true]:not(:focus-within):not(:has([data-focused=true])) {
    --background-color: var(--jkl-color-background-alert-error);
    --text-color: var(--jkl-color-text-on-alert);
    --placeholder-color: color(from currentColor sRGB r g b / 75%);
  }
  .jkl-text-area-wrapper:hover, .jkl-text-area-wrapper:focus-within, .jkl-text-area-wrapper:has([data-focused=true]) {
    --border-color: var(--jkl-color-border-input-focus);
    box-shadow: inset 0 0 0 0.0625rem var(--border-color), 0 0 0 0.0625rem var(--border-color);
  }
  @media screen and (forced-colors: active) {
    .jkl-text-area-wrapper:hover, .jkl-text-area-wrapper:focus-within, .jkl-text-area-wrapper:has([data-focused=true]) {
      border: 0.125rem solid ButtonText;
    }
  }
  html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-text-area-wrapper:has(.jkl-text-input__input:focus-visible), html:not([data-mousenavigation]):not([data-touchnavigation]) .jkl-text-area-wrapper:has(.jkl-text-area__text-area:focus-visible) {
    outline: 3px solid var(--jkl-color-border-action);
    outline-offset: 3px;
  }
  .jkl-text-area-wrapper > .jkl-icon-button:focus-visible {
    outline: 3px solid var(--jkl-color-border-action);
    outline-offset: -8px;
  }
  @media screen and (forced-colors: active) {
    .jkl-text-area-wrapper > .jkl-icon-button:focus-visible {
      --border-color: ButtonText;
    }
  }
  .jkl-text-area-wrapper > .jkl-text-input-action-button {
    flex-shrink: 0;
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: var(--jkl-text-input-action-button-padding);
    height: var(--jkl-text-input-action-button-size);
    width: var(--jkl-text-input-action-button-size);
    margin-inline-start: calc(var(--jkl-text-input-horizontal-padding) * -1);
  }
  .jkl-text-area-wrapper > .jkl-text-input-action-button .jkl-icon-button__icon {
    height: var(--jkl-text-input-action-button-icon-size);
    width: var(--jkl-text-input-action-button-icon-size);
  }
  .jkl-text-area-wrapper > .jkl-text-input-action-button:hover {
    color: var(--jkl-color-text-interactive-hover);
  }
  @media screen and (forced-colors: active) {
    .jkl-text-area-wrapper > .jkl-text-input-action-button:hover {
      border: 0.125rem inset ButtonText;
    }
  }
  @media screen and (forced-colors: active) {
    .jkl-text-area-wrapper {
      border: 0.125rem inset ButtonText;
    }
  }
  .jkl-text-area {
    --text-input-height: var(--jkl-unit-60);
    --progress-bar-height: 0.25rem;
    height: auto;
    width: 100%;
  }
  .jkl-text-area__text-area {
    scrollbar-color: var(--jkl-color) transparent;
    box-sizing: border-box;
    resize: none;
    width: 100%;
    padding: var(--jkl-text-input-padding);
    max-height: var(--text-input-height);
    height: var(--text-input-height);
    min-height: var(--text-input-height);
    transition-timing-function: ease;
    transition-duration: 150ms;
    transition-property: height, min-height, max-height, padding;
    background: none;
    -webkit-appearance: none;
    color: inherit;
    font-size: var(--jkl-font-size-3);
    line-height: var(--jkl-line-height-tight);
    font-weight: 400;
    --jkl-icon-weight: 300;
  }
  .jkl-text-area__text-area {
    outline: 0;
    border-style: none;
    outline-style: none;
  }
  .jkl-text-area__text-area:active, .jkl-text-area__text-area:hover, .jkl-text-area__text-area:focus {
    outline: 0;
    outline-style: none;
  }
  @media screen and (forced-colors: active) {
    .jkl-text-area__text-area {
      outline: revert;
      border-style: revert;
      outline-style: revert;
    }
    .jkl-text-area__text-area:active, .jkl-text-area__text-area:hover, .jkl-text-area__text-area:focus {
      outline: revert;
      outline-style: revert;
    }
  }
  .jkl-text-area__text-area input[type=number]::-webkit-outer-spin-button,
  .jkl-text-area__text-area input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }
  .jkl-text-area__text-area input[type=number] {
    -moz-appearance: textfield;
  }
  @media screen and (forced-colors: active) {
    .jkl-text-area__text-area {
      outline: none;
      border: none;
    }
    .jkl-text-area__text-area:focus-visible {
      outline: none;
    }
  }
  .jkl-text-area__text-area::placeholder {
    opacity: 1;
    color: var(--placeholder-color);
  }
  .jkl-text-area .jkl-text-area-wrapper {
    height: auto;
    max-height: 100%;
  }
  .jkl-text-area--start-open .jkl-text-area-wrapper {
    max-height: 100%;
  }
  .jkl-text-area--auto-expand .jkl-text-area__text-area {
    overflow: hidden;
  }
  .jkl-text-area:has(.jkl-text-area__counter) .jkl-text-area-wrapper {
    position: relative;
    padding-bottom: calc(var(--text-input-height) + var(--progress-bar-height));
  }
  .jkl-text-area:has(.jkl-text-area__counter) .jkl-text-area__counter {
    pointer-events: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .jkl-text-area:has(.jkl-text-area__counter) .jkl-text-area__counter-count {
    padding: var(--jkl-text-input-padding);
    color: var(--text-color);
    font-size: var(--jkl-font-size-2);
    line-height: var(--jkl-line-height-tight);
    font-weight: 400;
    --jkl-icon-weight: 300;
  }
  .jkl-text-area:has(.jkl-text-area__counter) .jkl-text-area__counter-progress {
    background-color: transparent;
    height: var(--progress-bar-height);
    width: 100%;
    overflow: hidden;
  }
  .jkl-text-area:has(.jkl-text-area__counter) .jkl-text-area__counter-progress::after {
    content: "";
    width: var(--progress-width, 100%);
    display: block;
    height: var(--progress-bar-height);
    background-color: var(--border-color);
    transition-property: width;
    transition-timing-function: ease;
    transition-duration: 400ms;
  }
  .jkl-text-area__text-area--3-rows:focus,
  .jkl-text-area__text-area--3-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--3-rows {
    --height: 3lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
  .jkl-text-area__text-area--4-rows:focus,
  .jkl-text-area__text-area--4-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--4-rows {
    --height: 4lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
  .jkl-text-area__text-area--5-rows:focus,
  .jkl-text-area__text-area--5-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--5-rows {
    --height: 5lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
  .jkl-text-area__text-area--6-rows:focus,
  .jkl-text-area__text-area--6-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--6-rows {
    --height: 6lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
  .jkl-text-area__text-area--7-rows:focus,
  .jkl-text-area__text-area--7-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--7-rows {
    --height: 7lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
  .jkl-text-area__text-area--8-rows:focus,
  .jkl-text-area__text-area--8-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--8-rows {
    --height: 8lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
  .jkl-text-area__text-area--9-rows:focus,
  .jkl-text-area__text-area--9-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--9-rows {
    --height: 9lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
  .jkl-text-area__text-area--10-rows:focus,
  .jkl-text-area__text-area--10-rows:not(:placeholder-shown),
  .jkl-text-area--start-open .jkl-text-area__text-area--10-rows {
    --height: 10lh;
    --vertical-padding: calc(var(--jkl-text-input-vertical-padding) * 2);
    min-height: calc(var(--height) + var(--vertical-padding));
    height: calc(var(--height) + var(--vertical-padding));
    max-height: 100%;
  }
}