.pisell-sale-detail-product-items-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 4px 6px;
  border: 1px solid var(--pisell-product-items-summary-border-color);
  border-radius: var(--pisell-product-items-summary-radius);
  background: var(--pisell-product-items-summary-bg);
  box-shadow: var(--pisell-product-items-summary-shadow);
  color: var(--pisell-product-items-summary-title-text);

  &__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  &__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--pisell-product-items-summary-title-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 18px;

    .anticon {
      color: var(--pisell-product-items-summary-icon-text);
      font-size: 15px;
      flex-shrink: 0;
    }
  }

  &__edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    min-height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--pisell-product-items-summary-border-color);
    border-radius: 9px;
    background: transparent;
    color: var(--pisell-product-items-summary-action-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 17px;
    cursor: pointer;

    &:disabled {
      cursor: not-allowed;
      opacity: 0.45;
    }
  }

  &__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  &__row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 4px;
    border-radius: 6px;
    background: var(--pisell-product-items-summary-row-bg);
  }

  &__row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
  }

  &__name {
    min-width: 0;
    overflow: hidden;
    color: var(--pisell-product-items-summary-product-name-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__amount {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--pisell-product-items-summary-amount-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 17px;
    white-space: nowrap;
  }

  &__subtotal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--pisell-product-items-summary-divider-color);
    color: var(--pisell-product-items-summary-subtotal-text);
    font-size: 14px;
    font-weight: 800;
    line-height: 18px;
  }

  &__spec-section {
    .pisell-sale-detail-product-items-summary__spec-list,
    .pisell-sale-detail-product-items-summary__spec-group {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .pisell-sale-detail-product-items-summary__spec-group-children {
      display: flex;
      flex-direction: column;
      gap: 2px;
      padding-top: 2px;
    }

    .pisell-sale-detail-product-items-summary__spec {
      display: flex;
      align-items: flex-start;
      color: var(--pisell-product-items-summary-spec-accent-text);
    }

    .pisell-sale-detail-product-items-summary__spec-main {
      min-width: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      width: 100%;
    }

    .pisell-sale-detail-product-items-summary__spec-label {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      color: var(--pisell-product-items-summary-spec-accent-text);
      font-size: 13px;
      line-height: 16px;
      font-weight: 500;
      word-break: break-word;

      &::before {
        content: '·';
        flex-shrink: 0;
      }
    }

    .pisell-sale-detail-product-items-summary__spec-meta {
      flex-shrink: 0;
      color: var(--pisell-product-items-summary-spec-accent-text);
      font-size: 12px;
      line-height: 15px;
      font-weight: 600;
      white-space: nowrap;
    }

    .pisell-sale-detail-product-items-summary__spec--option,
    .pisell-sale-detail-product-items-summary__spec--variant {
      padding: 2px 4px 2px 8px;
      border-radius: 6px;
      background: var(--pisell-product-items-summary-spec-item-bg);
    }

    .pisell-sale-detail-product-items-summary__spec--bundle
      .pisell-sale-detail-product-items-summary__spec-label {
      font-weight: 600;
    }

    .pisell-sale-detail-product-items-summary__spec--bundle-option
      .pisell-sale-detail-product-items-summary__spec-label {
      font-size: 12px;
    }

    .pisell-sale-detail-product-items-summary__spec-group--bundle {
      gap: 0;
      border-radius: 6px;
      background: var(--pisell-product-items-summary-spec-item-bg);
      border: none;
      padding: 2px 4px 2px 8px;

      .pisell-sale-detail-product-items-summary__spec-group-children {
        padding-left: 8px;
      }
    }
  }
}
