/*
 * Copyright 2024 Harness, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

.repoInput {
  input {
    height: 50px !important;
    border-radius: 7px !important;
    border: 1px solid var(--grey-200) !important;
    box-shadow: none !important;
    background: var(--grey-100);
    padding-left: 15% !important;

    &:active {
      background: white;
    }
    &:focus {
      background: white;
    }
  }
}

.formFields {
  div[data-id='branch-1'],
  div[data-id='code_repo_url-0'],
  [class*='repoInput'],
  [class*='branchDropdown'] {
    width: 100% !important;
  }
}

.leftElementClassName {
  :global {
    .bp3-input-left-container {
      display: flex;
      height: 100%;
      align-items: center;
      margin-left: var(--spacing-medium);
    }
  }
}

.customTextInput {
  :global {
    [class*='TextInput--main'] {
      margin-bottom: 0 !important;
      height: inherit !important;
      width: fit-content !important;
      flex-grow: 1 !important;
      border: none !important;
      outline: none !important;
    }

    .bp3-input {
      border: none !important;
      outline: none !important;
      padding-top: 0 !important;
      padding-bottom: 0 !important;
      background: transparent !important;
      font-size: 14px !important;
    }

    .bp3-input:hover {
      box-shadow: none !important;
    }
  }
}
