.pisell-sale-detail-cart-items {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-height: 0;

  &__empty {
    display: flex;
    flex: 1;
    align-items: flex-start;
    justify-content: center;
    padding-top: 42px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
  }

  &--multi-col {
    display: grid;
    grid-template-columns: repeat(var(--pisell-cart-cols, 1), minmax(0, 1fr));
    align-items: start;
    gap: 8px;

    > * {
      min-width: 0;
    }

    .pisell-sale-detail-cart-items__empty {
      grid-column: 1 / -1;
    }
  }

  // Keep each cart row's layout work from invalidating sibling rows.
  &--layout-contained {
    .pisell-line-item-wrapper-container {
      contain: layout style;
    }
  }

  &__column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
  }

  &__saved {
    display: flex;
    flex-direction: column;
    gap: 0;
    grid-column: 1 / -1;
    min-width: 0;
    padding: 6px;
    color: #101828;
    background: #eaecf0;
    border-radius: 8px;
  }

  &__saved-header {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-align: left;
    cursor: pointer;
    background: transparent;
    border: none;
  }

  &__saved-title {
    flex: 1;
    min-width: 0;
  }

  &__saved-summary {
    flex-shrink: 0;
    margin-right: 4px;
  }

  &__saved-switch {
    flex-shrink: 0;
    transition: transform 0.3s ease;
  }

  &__saved-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;

    &::before {
      display: block;
      flex-shrink: 0;
      height: 6px;
      content: '';
    }

    &.is-expanded {
      max-height: 9999px;
    }
  }

  &__saved-content--multi-col {
    display: grid;
    grid-template-columns: repeat(var(--pisell-cart-cols, 1), minmax(0, 1fr));
    align-items: start;
  }

  &--editable {
    .pisell-sale-detail-cart-items__numeric-stepper {
      width: max-content;
      min-width: 132px;

      &.numeric-stepper-separated {
        .numeric-stepper-display {
          box-sizing: border-box;
          width: auto;
          max-width: 96px;
          padding-right: 6px;
          padding-left: 6px;
          white-space: nowrap;
        }

        &.numeric-stepper-small .numeric-stepper-display {
          min-width: 24px;
        }

        &.numeric-stepper-middle .numeric-stepper-display {
          min-width: 30px;
        }

        &.numeric-stepper-large .numeric-stepper-display {
          min-width: 36px;
        }
      }
    }
  }
}
