.pisell-sale-detail-amount-details {
  background: #fff;
  display: flex;
  flex-direction: column;

  &--open {
    gap: 8px;
  }

  &__summary {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid #e5e7eb;
  }

  &__summary-left {
    display: flex;
    flex-direction: column;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    color: var(--base-black, #000);
  }

  &__summary-total {
    color: #101828;
    font-weight: 700;
    line-height: 30px;
    padding: 6px 10px;
  }

  &__summary-arrears {
    font-size: 14px;
    color: #ee837a;
  }

  &__details-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #7f56d9;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
    cursor: pointer;
  }

  &__details-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #7f56d9;

    &--open {
      transform: rotate(180deg);
    }
  }

  &__details {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 10px;
    transition: 0.2s;

    &--open {
      max-height: 500px;
    }
  }

  &__divider {
    width: 100%;
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0px;
  }

  .pisell-lowcode__subtotal-wrap {
    padding: 0;
  }

  .pisell-lowcode__subtotal-list {
    display: flex;
    width: 100%;
    margin-top: 0;
  }

  .pisell-lowcode__subtotal-item-block {
    flex: 1;
  }

  .pisell-lowcode__subtotal-item-wrap {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 8px;
  }

  .pisell-lowcode__subtotal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;

    .pisell-lowcode__subtotal-item-label {
      color: #101828;
      font-size: 14px;
      font-style: normal;
      font-weight: 700;
      display: flex;
      align-items: center;
      min-width: 0;
      line-height: 24px;
    }

    .pisell-lowcode__subtotal-item-value {
      flex: none;
      padding-left: 8px;
      color: #101828;
      font-size: 14px;
      font-style: normal;
      font-weight: 700;
      line-height: 24px;
      text-align: right;
    }

    &.pisell-lowcode__subtotal-item-bold {
      .pisell-lowcode__subtotal-item-label,
      .pisell-lowcode__subtotal-item-value {
        color: #101828;
        font-weight: 700;
      }
    }
  }

  .pisell-lowcode__subtotal-item-label {
    .pisell-icon,
    .iconfont {
      color: #667085;
      font-size: 14px;
    }
  }
}
