.pisell-sale-detail-summary {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #eff6ff;
  background: #05070d;

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

  &__left {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }

  &__headline {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  &__label {
    flex: none;
    color: #f5f8ff;
    font-size: 16px;
    font-weight: 800;
    line-height: 22px;
  }

  &__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    padding: 2px 12px;
    overflow: hidden;
    border: 1px solid
      var(--pisell-sale-detail-summary-status-border, rgba(171, 239, 198, 0.46));
    border-radius: 999px;
    color: var(--pisell-sale-detail-summary-status-color, #abefc6);
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0)
      ),
      var(--pisell-sale-detail-summary-status-bg, rgba(171, 239, 198, 0.16));
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 0 14px var(--pisell-sale-detail-summary-status-glow, rgba(171, 239, 198, 0.14));
  }

  &__meta {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    color: #a9c1ff;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
  }

  &__item-count {
    color: #f5f8ff;
  }

  &__dot {
    flex: none;
    width: 3px;
    height: 3px;
    margin: 0 5px;
    border-radius: 999px;
    background: #7f90c5;
  }

  &__detail-trigger {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 104px;
    padding: 0;
    border: 0;
    color: inherit;
    text-align: right;
    background: transparent;
    cursor: pointer;
  }

  &__detail-text {
    color: #a9c1ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 16px;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  &__amount {
    color: #eff6ff;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;

    &--refund {
      color: #fda29b;
    }
  }

  &__details {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    padding: 0 12px;
    transition: max-height 0.2s ease;

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

  &__divider {
    width: 100%;
    height: 1px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.08);
  }

  .pisell-lowcode__subtotal-wrap {
    padding: 0;
    padding-bottom: 6px;
  }

  .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: 4px;
  }

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

    .pisell-lowcode__subtotal-item-label {
      display: flex;
      align-items: center;
      min-width: 0;
      color: #b8c7f9;
      font-size: 12px;
      font-weight: 700;
      line-height: 20px;
    }

    .pisell-lowcode__subtotal-item-value {
      flex: none;
      padding-left: 8px;
      color: #eef4ff;
      font-size: 12px;
      font-weight: 800;
      line-height: 20px;
      text-align: right;
    }

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

  .pisell-lowcode__subtotal-item-label {
    .pisell-icon,
    .iconfont {
      color: #8ea5e8;
      font-size: 12px;
    }
  }
}

.pisell-sale-detail--phone {
  .pisell-sale-detail-summary {
    &__bar {
      padding: 9px 10px 7px;
    }

    &__label {
      font-size: 15px;
      line-height: 20px;
    }

    &__status {
      padding: 2px 10px;
      font-size: 12px;
      line-height: 17px;
    }

    &__meta {
      font-size: 12px;
      line-height: 17px;
    }

    &__amount {
      font-size: 18px;
      line-height: 24px;
    }
  }
}
