/**
 *
 * Copyright (c) 2024 Analog Devices, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 *
 * 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.
 *
 */
:root {
  --modal-width: 100%;
}

.modal {
  width: 100%;
  h1 {
    margin: 0;
  }
}

.description {
  width: 27.5rem;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.err {
  width: var(--modal-width);
  height: 1.5rem;
  margin: 0;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  color: var(--vscode-editorError-foreground);
}

.input-block {
  height: 6rem;
  margin-top: 2.5rem;
}

.input-dropdown {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  width: var(--modal-width);
  height: 1.75rem;
  margin-top: 7px;
  font-size: 13px;

  &::part(control) {
    border: none;
  }
}

.vscode-text-field-container {
  display: flex;
  align-items: center;
  width: var(--modal-width);
  height: 1.75rem;
  margin-top: 10px;
}

.inputs {
  margin-top: 1.5rem;

  --input-height: 28;

  &.board {
    .vscode-radio-group {
      margin-bottom: 8px;
    }

    .vscode-text-field-container {
      margin-top: 12px;
    }
  }
  &:last-child {
    padding-bottom: 1.5rem;
  }
}

.tooltip-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  padding: 0;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

.input-field-name {
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.vscode-text-field {
  width: 100%;
}

.vscode-text-field-err {
  &::part(root) {
    border: calc(var(--border-width) * 1px) solid
      var(--vscode-editorError-foreground);
  }
}

.board-package-info {
  display: flex;
  padding: 0.5rem 0.75rem;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 0.25rem;
  border: 0.5px solid var(--dropdown-border, hsl(0, 0%, 24%));
  margin-top: 0.75rem;
}

.bold-board-package-info {
  font-weight: bold;
  margin-left: 2rem;
}

.browse-button {
  position: relative;
  height: 1.75rem;
  margin-left: 0.2rem;
}
