@import "../../styles/global.scss";

.ai-input-container {
  display: flex;
  flex-direction: column;
  .ai-input-label {
    font-size: 14px;
    color: $color-core-ink-base;
    margin-bottom: 4px;
    .required-icon {
      font-size: 6px;
      color: $color-core-red-base;
      position: absolute;
    }
    .ai-input-optional {
      color: $color-core-ink-lightest;
      font-size: 14px;
      margin-left: 8px;
    }
    .ai-disbale-option {
      color: $color-core-ink-lightest;
    }
  }
  .ai-input-label-disable {
    color: $color-core-ink-lightest;
  }

  .ai-input-helper-text {
    color: $color-core-subdued-base;
    font-size: 14px;
    margin-bottom: 4px;
  }
  .ai-disbale-helper {
    color: $color-core-ink-lightest;
  }
  .ai-input-prefix-suffix-component-wrapper {
    display: flex;
    width: 100%;
    .ai-input-content-container {
      display: flex;
      background: $color-core-white;
      border: $border-grey-light-1;
      box-sizing: border-box;
      border-radius: $border-radius-radius-4;
      align-items: center;
      width: 100%;
      .ai-input {
        width: 100%;
        border-radius: $border-radius-radius-4;
        padding: 8px 8px 8px 12px;
        border: none;
        height: 40px;
        box-sizing: border-box;

        &:focus {
          outline: none;
        }
        &:hover {
          border: none;
        }
        &::placeholder {
          color: $color-core-ink-lightest;
        }
      }
      .ai-input-icon {
        font-size: 14px;
        padding: 8px;
        color: $color-core-ink-lightest;
      }
    }
    .ai-input-focused {
      outline-color: $color-core-blue-light;
      border: $border-blue-light-2;
    }
    .ai-input-remove-border-radius-left-top-bottom {
      border-top-left-radius: 0px;
      border-bottom-left-radius: 0px;
    }
    .ai-input-remove-border-radius-right-top-bottom {
      border-top-right-radius: 0px;
      border-bottom-right-radius: 0px;
    }
    .ai-input-hover {
      border: $border-ink-lighter-1;
    }
    .ai-error-input {
      background-color: $color-core-red-lighter;
    }
    .disabled-innput {
      background-color: $color-core-grey-lighter;
      &:hover {
        border: $border-grey-light-1;
      }
      &::placeholder {
        color: $color-core-ink-lightest;
      }
    }
  }
  .ai-input-helper-error-message {
    color: $color-core-red-base;
    margin-top: 4px;
    font-size: 14px;
  }
}
