.lbaic-settings-table-accordion {

  --lbaic-settings-table-bg: transparent;

  &-wrapper {
    white-space: nowrap;
  }

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

  &-header {
    &-in {
    }

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

    &-label {
      font-size: var(--lbaic-settings-fs-14);
      font-weight: var(--lbaic-settings-fw-600);
      color: var(--lbaic-settings-table-accordion-color);
      line-height: var(--lbaic-settings-lh-20);

      &.costs {
        font-weight: var(--lbaic-settings-fw-500);
      }
    }

    &-arrow {
      width: 56px;
    }
  }

  &-body {
    &-in {
      background-color: var(--lbaic-settings-table-bg);

      &:hover:not(&.active) {
        --lbaic-settings-table-bg: var(--lbaic-settings-bg-hover);
      }

      &.active {
        --lbaic-settings-table-bg: var(--lbaic-settings-bg-active);

        & .lbaic-settings-table-accordion-body-arrow-i {
          transform: scaleY(-1);
        }
      }
    }

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

    &-label {
      font-size: var(--lbaic-settings-fs-14);
      color: var(--lbaic-settings-table-accordion-color);
      line-height: var(--lbaic-settings-lh-20);
    }

    &-arrow {
      width: 56px;
      padding-block: 14px;
      vertical-align: middle;

      &-i {
        width: 18px;
        height: auto;
        display: block;
        margin-inline-start: auto;
        fill: var(--lbaic-settings-table-accordion-i);
      }
    }
  }

  &-body {
    &-in{
      &:nth-last-child(1 of :where(.ais-table-accordion-summary)) {
        & > .lbaic-settings-table-accordion-body-item {
          border-bottom: 1px solid var(--lbaic-settings-table-accordion-border);
        }
      }
    }
  }

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

  &-details {
    --lbaic-settings-local-border-radius: 0;
    display: none;

    &-in {
      padding-block: 0;
      padding-inline: 0;
      border-bottom: 0;
    }

    &.opened {
      --lbaic-settings-local-border-radius: 12px;

      display: table-row;
    }
  }

  &-content {
    position: relative;
    padding-block: 24px;
    padding-inline: 16px;
    background-color: var(--lbaic-settings-table-accordion-content-bg);

    &-loading {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      display: block;
      background-color: var(--lbaic-settings-table-accordion-content-bg);
      z-index: 5;
    }
  }
}