.lbaic-settings-actions-ci {
  &-table {
    &-title {
      &-wrapper {
        display: flex;
        gap: 4px;
      }
    }

    &-summary {
      grid-template-columns: max-content 1fr max-content;
    }
  }
}

.lbaic-settings-a-es {
  .lbaic-settings-cb-pw-table-actions-in {
    margin-inline-start: auto;
    align-items: center;
    gap: 10px;
  }

  .lbaic-settings-table {
    &-accordion {
      &-body {

        .lbaic-settings-table-accordion-summary > &-item {
          border-top: 1px solid var(--lbaic-settings-table-accordion-border);
        }

        &:first-child {
          .lbaic-settings-table-accordion-summary > .lbaic-settings-table-accordion-body-item {
            border-top: none;
          }
        }
      }
    }
  }

  .lbaic-settings-cb-pw-table-inside
  .lbaic-settings-table-accordion-body:nth-last-child(2 of :where(.lbaic-settings-table-accordion-body)) >
  .lbaic-settings-table-accordion-summary > .lbaic-settings-table-accordion-body-item {
    border-bottom: none;
  }

  .lbaic-settings-empty-i {
    stroke:var(--lbaic-settings-content-empty-icon-fill);
  }
}

//HTTP Request
.lbaic-settings-http-kv {
  &-list {
    display: flex;
    flex-direction: column;
    gap: 16px;

    &-items {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
  }

  &-headings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    padding-inline-end: 4px;
    color: var(--lbaic-settings-text-secondary, #666);
    font-size: var(--lbaic-settings-fs-10);
    font-weight: var(--lbaic-settings-fw-500);
  }

  &-heading {
    &-actions {
      width: 24px;
    }
  }

  &-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  &-remove {
    width: 24px;
    height: 24px;
    padding: 4px;
    border-radius: 4px;
    margin-block-start: 36px;

    &:hover {
      background-color: rgba(var(--lbaic-settings-red-rgb), 0.06);

      .lbaic-settings-http-kv-remove-i {
        fill: var(--lbaic-settings-red);
      }
    }

    &-i {
      width: 16px;
      height: 16px;
      fill: var(--lbaic-settings-button-neutral-color);
    }
  }
}

// HTTP Response - Data access
.lbaic-settings-http-data {
  &-actions {
    margin-block: 16px;
  }

  &-textarea {
    .lbaic-settings-textarea {
      min-height: 200px;
    }
  }
}

// HTTP Response - Data access - Available variables
.lbaic-settings-http-data-variables {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #b3d7ff;
  border-radius: 6px;
  background: #f0f7ff;

  &-title {
    margin-bottom: 8px;
    color: #0052cc;
    font-size: var(--lbaic-settings-fs-11);
    font-weight: var(--lbaic-settings-fw-600);
  }

  &-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
  }

  &-description {
    margin-top: 8px;
    color: #666666;
    font-size: var(--lbaic-settings-fs-10);
    line-height: var(--lbaic-settings-lh-16);
  }
}

.lbaic-settings-http-data-variable {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border: 1px solid #b3d7ff;
  border-radius: 6px;
  background: #ffffff;
}

.lbaic-settings-http-data-variable-label {
  color: #0052cc;
  font-size: 10px;
  font-family: "Monaco", monospace;
  word-break: break-all;
}

.lbaic-settings-http-data-variable-remove {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;

  &-i {
    width: 14px;
    height: 14px;
    fill: #999999;
    transition: fill 0.2s ease;
  }

  &:hover {
    background-color: rgba(var(--lbaic-settings-red-rgb), 0.08);

    .lbaic-settings-http-data-variable-remove-i {
      fill: var(--lbaic-settings-red);
    }
  }
}