.lbaic-settings-cb-t {
  &-row {
    &:not(:last-child) {
      padding-block-end: 8px;
    }

    &-in {
      &:not(:last-child) {
        padding-block-end: 14px;
      }
    }

    &-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    &-desc {
      flex: 1 0 0;
      padding-inline-end: 8px;

      &-in {
        font-size: var(--lbaic-settings-fs-14);
        font-weight: var(--lbaic-settings-fw-500);
        color: var(--lbaic-settings-desc-color);
        line-height: var(--lbaic-settings-lh-18);
      }
    }

    &-actions {
      display: flex;
      flex: 0 0 auto;

      &-in {
        width: 28px;
        height: 28px;
        border-radius: 3px;

        &:not(:last-child) {
          margin-inline-end: 10px;
        }

        &:hover {
          background-color: var(--lbaic-settings-button-bg-hover);
        }

        &:active {
          background-color: var(--lbaic-settings-button-bg-active);
        }
      }

      &-i {
        width: 18px;
        height: auto;
        display: block;
        margin: auto;
        fill: var(--lbaic-settings-e-desc-actions-fill);
      }
    }

    &-label {
      font-size: var(--lbaic-settings-fs-14);
      line-height: var(--lbaic-settings-lh-18);
      font-weight: var(--lbaic-settings-fw-500);
    }
  }

  &-table {
    &-wrapper {
      white-space: nowrap;
    }

    & {
      width: 100%;
      border-spacing: 0 3px;
    }

    &-header {
      &-in {

      }

      &-item {
        padding-block: 12px;
        padding-inline-end: 16px;
        text-align: left;

        &:first-child {
          border-left: 4px solid transparent;
        }
      }

      &-label {
        font-size: var(--lbaic-settings-fs-14);
        font-weight: var(--lbaic-settings-fw-400);
        color: var(--lbaic-settings-a-ftds-table-header-color);
        line-height: var(--lbaic-settings-lh-24);
      }
    }

    &-body {
      &-in {
        //cursor: pointer;
        overflow: hidden;

        &:hover {
          --lbaic-settings-a-ftds-table-body-item-bg: var(--lbaic-settings-a-ftds-table-body-item-hover-bg);
        }

        &.active {
          --lbaic-settings-a-ftds-table-body-item-border: rgba(var(--lbaic-settings-black-rgb), 0.3);
        }
      }

      &-item {
        position: relative;
        margin-block-end: var(--lbaic-settings-a-ftds-table-spacing);
        padding: 8px;
        background-color: var(--lbaic-settings-a-ftds-table-body-item-bg, var(--lbaic-settings-a-ftds-table-body-item-default-bg));
        text-align: left;
        transition: background-color 180ms ease-in-out, border-color 180ms ease-in-out;

        &:first-child {
          border-left: 4px solid var(--lbaic-settings-a-ftds-table-body-item-border, transparent);
          border-radius: 6px 0 0 6px;
        }

        &:last-child {
          border-radius: 0 6px 6px 0;

          &:before {
            content: '';
            position: absolute;
            top: 17px;
            left: -4px;
            bottom: 17px;
            width: 1px;
            background-color: rgba(var(--lbaic-settings-black-rgb), 0.2);
            opacity: var(--lbaic-settings-a-ftds-table-body-item-divider-opacity, 1);
          }
        }
      }

      &-label {
        font-size: var(--lbaic-settings-fs-14);
        font-weight: var(--lbaic-settings-fw-400);
        color: rgba(var(--lbaic-settings-black-rgb), 0.6);
        line-height: var(--lbaic-settings-lh-24);
        white-space: pre-wrap;
        word-break: break-word;
      }
    }

    &-checkbox {
      width: 36px;
      padding-inline: 12px 4px;
      vertical-align: middle;
    }

    &-flex {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
    }

    &-input {
      width: 328px;
      min-width: 328px;
      max-width: 421px;
    }

    &-output {
      width: 385px;
      min-width: 385px;
      max-width: 494px;
    }

    &-actions {
      display: flex;
      align-items: center;
    }

    &-action {
      width: 24px;
      height: 24px;
      flex: 0 0 24px;
      margin-inline-start: 8px;
      border-radius: 3px;

      &:hover {
        background-color: var(--lbaic-settings-button-bg-hover);
      }

      &:active {
        background-color: var(--lbaic-settings-button-bg-active);
      }

      &.active {
        --lbaic-settings-a-ftds-table-action-fill: var(--lbaic-settings-primary);
      }

      &-i {
        width: 16px;
        height: auto;
        display: block;
        margin-inline: auto;
        fill: var(--lbaic-settings-a-ftds-table-action-fill, rgba(var(--lbaic-settings-black-rgb), 1));
      }
    }

    &-dual-input {
      padding-block: 0 !important;
      padding-inline: 0;

      &, &:hover {
        --lbaic-settings-a-ftds-table-body-item-bg: transparent;
        --lbaic-settings-a-ftds-table-body-item-divider-opacity: 0;
      }
    }

    &-ai-textarea {
      width: 36px;
      padding-inline: 12px 4px;

      &, &:hover {
        --lbaic-settings-a-ftds-table-body-item-bg: var(--lbaic-settings-white);
        --lbaic-settings-a-ftds-table-body-item-divider-opacity: 0;
      }
    }

    &-textarea {
      vertical-align: top;

      &, &:hover {
        --lbaic-settings-a-ftds-table-body-item-bg: var(--lbaic-settings-white);
        --lbaic-settings-a-ftds-table-body-item-divider-opacity: 0;
      }

      &-in {
        position: relative;
        width: 100%;
        min-height: 77px;
        background-color: transparent;
        font-size: var(--lbaic-settings-fs-14);
        font-weight: var(--lbaic-settings-fw-500);
        color: rgba(var(--lbaic-settings-black-rgb), 1);
        line-height: var(--lbaic-settings-lh-24);
        word-break: break-word;
        white-space: pre-wrap;

        &:empty {
          &:before {
            content: attr(data-placeholder);
            position: absolute;
            top: 0;
            left: 0;
            font-size: inherit;
            color: rgba(var(--lbaic-settings-black-rgb), 0.6);
            pointer-events: none;
          }
        }
      }
    }

    &-nested {
      &-wrapper {
        border-left: 5px solid transparent;
      }

      & {
        width: 100%;
        border-spacing: 0 1px;
      }

      &-body {
        &-in {
          //cursor: pointer;
          overflow: hidden;

          &:hover {
            --lbaic-settings-a-ftds-table-body-item-bg: var(--lbaic-settings-a-ftds-table-body-item-hover-bg);
          }
        }

        &-border {
          --lbaic-settings-a-ftds-table-body-item-border: rgba(var(--lbaic-settings-black-rgb), 0.3);

          &-last {
            --lbaic-settings-a-ftds-table-nested-body-item-first-radius: 0 0 0 6px;
            --lbaic-settings-a-ftds-table-nested-body-item-last-radius: 0 0 6px 0;
          }
        }

        &-item {
          position: relative;
          margin-block-end: var(--lbaic-settings-a-ftds-table-spacing);
          padding-block: 8px;
          padding-inline-end: 16px;
          background-color: var(--lbaic-settings-a-ftds-table-body-item-bg, var(--lbaic-settings-a-ftds-table-body-item-default-bg));
          text-align: left;
          transition: background-color 180ms ease-in-out, border-color 180ms ease-in-out;

          &:not(:only-child):first-child {
            border-left: 1px solid var(--lbaic-settings-a-ftds-table-body-item-border, transparent);
            border-radius: var(--lbaic-settings-a-ftds-table-nested-body-item-first-radius);
          }

          &:last-child {
            border-radius: var(--lbaic-settings-a-ftds-table-nested-body-item-last-radius);

            &:before {
              content: '';
              position: absolute;
              top: 17px;
              left: -4px;
              bottom: 17px;
              width: 1px;
              background-color: rgba(var(--lbaic-settings-black-rgb), 0.2);
              opacity: var(--lbaic-settings-a-ftds-table-body-item-divider-opacity, 1);
            }
          }
        }

        &-label {
          font-size: var(--lbaic-settings-fs-14);
          font-weight: var(--lbaic-settings-fw-400);
          color: rgba(var(--lbaic-settings-black-rgb), 0.6);
          line-height: var(--lbaic-settings-lh-24);
          white-space: pre-wrap;
        }
      }
    }

    &-circle {
      --lbaic-settings-a-ftds-table-circle-primary-st-c: #3C6E4E;
      --lbaic-settings-a-ftds-table-circle-primary-end-c: #0EFA64;
      --lbaic-settings-a-ftds-table-circle-secondary-st-c: #A08500;
      --lbaic-settings-a-ftds-table-circle-secondary-end-c: #F0E331;

      position: relative;
      width: 17px;
      height: 17px;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 25px;
      z-index: 0;

      &:after {
        content: '';
        width: inherit;
        height: inherit;
        border-radius: inherit;
      }

      &:not(.active) {
        &:before {
          content: '';
          position: absolute;
          inset: 3px;
          background-color: var(--lbaic-settings-white);
          border-radius: inherit;
          z-index: 1;
        }
      }

      &-primary {
        &:after {
          content: '';
          background-image: linear-gradient(0deg, var(--lbaic-settings-a-ftds-table-circle-primary-st-c), var(--lbaic-settings-a-ftds-table-circle-primary-end-c));
        }
      }

      &-secondary {
        &:after {
          content: '';
          background-image: linear-gradient(0deg, var(--lbaic-settings-a-ftds-table-circle-secondary-st-c), var(--lbaic-settings-a-ftds-table-circle-secondary-end-c));
        }
      }
    }
  }

  &-card {
    --lbaic-settings-cb-t-card-bg: rgba(69, 140, 246, 0.102);
    --lbaic-settings-t-card-hover: var(--lbaic-settings-t-card-bg-hover);
    --lbaic-settings-t-card-local-icon-bg: var(--lbaic-settings-t-card-icon-bg);

    padding: 10px;
    border: 1px solid var(--lbaic-settings-t-card-b);
    border-radius: 6px;
    cursor: pointer;

    &:hover {
      --lbaic-settings-t-card-local-icon-bg: var(--lbaic-settings-button-bg-active);
      background-color: var(--lbaic-settings-t-card-hover);
    }

    &.active {
      background-color: var(--lbaic-settings-cb-t-card-bg);
    }

    &-row {

      &:not(:last-child) {
        padding-block-end: 4px;
      }

      &-in {
        display: flex;
        align-items: center;

        &:not(:last-child) {
          padding-block-end: 12px;
        }
      }
    }

    &-icon {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 25px;

      &-in {
        width: 20px;
        height: 20px;
        fill: currentColor;
      }
    }

    &-action {
      width: 24px;
      height: 24px;
      color: rgba(var(--lbaic-settings-black-rgb), 1);
      border-radius: 6px;

      &-in {
        width: 16px;
        height: auto;
        flex: 0 0 16px;
        display: block;
        margin: auto;
        fill: currentColor;
      }

      &:hover {
        background-color: var(--lbaic-settings-button-bg-hover);
      }

      &:active {
        background-color: var(--lbaic-settings-button-bg-active);
      }
    }
  }

  &-input {
    position: relative;
    --lbaic-settings-input-pie: 120px;

    .lbaic-settings-dual-input-holder-inner {
      &:first-child {
        --lbaic-settings-dual-input-pie: 120px;
        @include min-width($lbaic-settings-wp-xl-breakpoint) {
          --lbaic-settings-dual-input-pie: 10px;
        }
      }

      &:last-child {
        --lbaic-settings-dual-input-pie: 10px;
        @include min-width($lbaic-settings-wp-xl-breakpoint) {
          --lbaic-settings-dual-input-pie: 120px;
        }

      }
    }

    &-action {
      position: absolute;

      .lbaic-settings-button {
        &:hover {
          background-color: var(--lbaic-settings-dual-input-action-bg);
        }
      }

      @include min-width($lbaic-settings-wp-xl-breakpoint) {
        top: 5px;
        right: 5px;
      }

      @include max-width($lbaic-settings-wp-xl-breakpoint) {
        right: 5px;
        top: 5px;
      }
    }
  }
}