:host {
  display: block;
  width: 100%;
}

  :host * {
    box-sizing: border-box;
  }

.text-input {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  color: var(--s-text-default);
  font: inherit;
  line-height: var(--s-line-height-sm);
  cursor: text;
}

.text-input--auto-grow .text-input__input {
    max-height: none;
  }

.text-input--clearable,
.text-input--type-number,
.text-input--type-password {
  padding-right: calc(1.5rem + var(--s-space-8));
}

.text-input--clearable .text-input__character-counter, .text-input--type-number .text-input__character-counter, .text-input--type-password .text-input__character-counter {
    padding-right: calc(1.5rem + var(--s-space-8));
  }

.text-input--show-password .text-input__input {
    width: 100%;
  }

.text-input--font-size-sm {
  font-size: var(--s-font-size-sm);
  line-height: var(--s-line-height-sm);
}

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input--font-size-sm .text-input__input {
      font-size: var(--s-font-size-sm);
      line-height: var(--s-line-height-sm)
  }
    }

.text-input--font-size-base {
  --swirl-text-input-placeholder-size: var(--s-font-size-base);

  font-size: var(--s-font-size-base);
  line-height: var(--s-line-height-base);
}

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input--font-size-base .text-input__input {
      font-size: var(--s-font-size-base);
      line-height: var(--s-line-height-base)
  }
    }

.text-input--has-suffix input.text-input__input:not([type="password"]) {
    width: 0.25rem;
    min-width: 0.25rem;
  }

.text-input--inline .text-input__stepper {
    top: calc(-1 * var(--s-space-8));
    right: calc(-1 * var(--s-space-12));
  }

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input--inline .text-input__stepper {
      top: calc(-1 * var(--s-space-8));
      right: calc(-1 * var(--s-space-12))
  }
    }

.text-input--inline .text-input__step-button {
    width: 2rem;
    height: 1.125rem;
    justify-content: center;
    background-color: var(--s-surface-raised-default);
  }

.text-input--inline .text-input__step-button:first-of-type {
      border-top-right-radius: var(--s-border-radius-sm);
    }

.text-input--inline .text-input__step-button:last-of-type {
      border-bottom-right-radius: var(--s-border-radius-sm);
    }

.text-input--inline .text-input__step-button:hover {
      background-color: var(--s-surface-raised-hovered);
    }

.text-input--inline .text-input__step-button swirl-icon-expand-less,
    .text-input--inline .text-input__step-button swirl-icon-expand-more {
      width: 1rem;
    }

.text-input--inline .text-input__clear-button,
  .text-input--inline .text-input__password-toggle {
    top: -0.0625rem;
  }

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input--inline .text-input__clear-button,
  .text-input--inline .text-input__password-toggle {
      top: 0
  }
    }

.text-input--inline .text-input__character-counter {
    top: calc(100% + var(--s-space-12) + var(--s-border-width-default));
    right: calc(-1 * var(--s-space-12));
    max-width: 6rem;
  }

.text-input__input {
  display: inline-flex;
  width: 100%;
  max-height: 13.75rem;
  margin: 0;
  padding: 0;
  border: none;
  color: var(--s-text-default);
  background-color: transparent;
  font: inherit;
  font-size: var(--s-font-size-base);
  line-height: var(--s-line-height-base);
  resize: none;
  caret-color: var(--s-border-highlight);
}

.text-input__input:focus {
    outline: none;
  }

.text-input__input:disabled {
    color: var(--s-text-subdued);
    background-color: transparent;
  }

.text-input__input::-webkit-outer-spin-button,
  .text-input__input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
  }

.text-input__input[type="number"] {
    -moz-appearance: textfield;
  }

.text-input__input::-moz-placeholder {
    font-size: var(--swirl-text-input-placeholder-size);
  }

.text-input__input::placeholder {
    font-size: var(--swirl-text-input-placeholder-size);
  }

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input__input {
    font-size: var(--s-font-size-sm);
    line-height: var(--s-line-height-sm)
}
  }

.text-input--disable-dynamic-width input.text-input__input:not([type="password"]) {
    width: 100%;
    min-width: 0;
  }

.text-input__clear-button,
.text-input__password-toggle {
  position: absolute;
  top: calc(-1 * var(--s-space-12));
  right: 0;
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: none;
  color: var(--s-icon-default);
  background-color: transparent;
  cursor: pointer;
}

.text-input__clear-button:focus:not(:focus-visible), .text-input__password-toggle:focus:not(:focus-visible) {
    outline: none;
  }

.text-input__clear-button:focus-visible, .text-input__password-toggle:focus-visible {
    outline-color: var(--s-focus-default);
  }

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input__clear-button,
.text-input__password-toggle {
    top: -0.625rem
}
  }

.text-input__stepper {
  position: absolute;
  top: -1.4375rem;
  right: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input__stepper {
    top: -1.25rem
}
  }

.text-input__step-button {
  display: inline-flex;
  margin: 0;
  padding: 0;
  border: none;
  color: var(--s-icon-default);
  background-color: transparent;
  cursor: pointer;
}

.text-input__step-button:focus:not(:focus-visible) {
    outline: none;
  }

.text-input__step-button:focus-visible {
    outline-color: var(--s-focus-default);
  }

.text-input__character-counter {
  position: absolute;
  top: -1.375rem;
  right: 0;
  display: flex;
  color: var(--s-text-subdued);
  line-height: var(--s-line-height-sm);
  flex-direction: column;
}

@media (min-width: 992px) and (max-width: 1439px) and (hover: hover),(min-width: 1440px) {

.text-input__character-counter {
    font-size: var(--s-font-size-sm);
    line-height: var(--s-line-height-sm)
}
  }

.text-input__prefix {
  padding-right: var(--s-space-4);
  color: var(--s-text-subdued);
  font-size: var(--s-font-size-base);
}

.text-input__suffix {
  padding-left: var(--s-space-4);
  color: var(--s-text-subdued);
  font-size: var(--s-font-size-base);
}
