/*
 * 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.
 */

.main {
  max-width: 785px;
  margin-bottom: var(--spacing-medium) !important;

  :global(.bp3-input) {
    &:disabled {
      background-color: var(--grey-100);
    }
  }
  div[class*='collapse'] {
    margin-left: 0;
  }

  & div[class*='Collapse'] {
    border-top: none;
    padding: 0;

    // spacing for adjacent collapsible
    + div[class*='Collapse'][class*='main'] {
      margin-top: var(--spacing-medium);
    }

    div[class*='CollapseHeader'] {
      padding-top: 0 !important;
    }

    span[data-icon='main-chevron-down'] {
      color: var(--primary-7);
    }
  }

  textarea {
    min-height: 50px;
    resize: vertical;
    max-height: 240px;
  }
  :global {
    .TextInput--main {
      margin: 0;
      margin-bottom: var(--spacing-medium);
    }
  }
}

.editOpen {
  cursor: pointer;
  margin-left: 8px !important;
  position: relative;
  top: -2px;

  &:hover {
    color: var(--primary-7) !important;
  }
}
.descriptionLabel {
  margin-bottom: var(--spacing-xsmall) !important;
  display: flex !important;
  align-items: center;
}
