@import "../../../assets/scss/variables";

.text-area {
  outline: none;
  width: 100%;

  border: 1px solid #CCCCCC;
  background: #F8F8F8;
  padding: 10px 16px;
  color: $main-color;
  font-size: 2rem;
  line-height: 25px;
  font-weight: $regular;
  border-radius: 10px;
  box-sizing: border-box;

  &::placeholder {
    font-size: 1.4rem;
  }

  &:focus-visible {
    border-color: $main-color;
  }

  &.afm-form {
    background-color: unset;
    border: unset;
    height: auto;
    padding: 0 0 0 .5rem;
    font-size: 1.5rem;
    font-weight: $extra-light;
    color: $text-color;
    letter-spacing: .8px;
    line-height: 1;
    border-bottom: 0.1rem solid;
    border-radius: 0;
    //width: 27.8rem;
    padding-bottom: 0.5rem;

    &.disable {
      border-bottom: unset;
    }

    &:focus {
      outline: none;
    }

    &::placeholder {
      font-weight: $extra-light;
      font-size: $index-size;
    }

    &.hasError {
      border-color: $error-color;
    }
  }

  &.user-form-field {

    height: 50px;
    background-color: unset;
    border: unset;
    resize: none;

    overflow-y: auto;
    &::-webkit-scrollbar {
      width: 5px;
      height: 50% !important;
      transform: scaleY(0.5) !important;
    }

    /* Track */
    &::-webkit-scrollbar-track {
      background: #e9f0f9;
      border-radius: 10px;
    }

    /* Handle */
    &::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 10px;
      //background-color: transparent;
      //border-top: 150px solid #1A73E8 /*or any height and color you want*/;
    }

    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
      background: transparent;
    }

    padding: 0 0 0 .5rem;
    font-size: 1.6rem;
    font-weight: $extra-light;
    color: $text-color;
    letter-spacing: 0.8px;
    line-height: 25px;
    border-bottom: 0.1rem solid;
    border-radius: 0;
    //width: 37rem;


    &.disable {
      border-bottom: unset;
    }

    &:focus {
      outline: none;
    }

    &::placeholder {
      font-weight: $extra-light;
      font-size: $index-size;
    }

    &.hasError {
      border-color: $error-color;
    }
  }
}
