@sale-detail-prefix: pisell-sale-detail;

.@{sale-detail-prefix}-pay-main {
  gap: 10px;
  padding: 8px 10px;
}

.@{sale-detail-prefix}-pay-overview {
  display: grid;
  flex: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 12px;
  border: 1px solid rgba(127, 86, 217, 0.44);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(127, 86, 217, 0.72), rgba(68, 43, 122, 0.9)),
    #241044;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);

  &__item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  &__label {
    max-width: 100%;
    overflow: hidden;
    color: rgba(245, 247, 255, 0.76);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 12px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }

  &__value {
    max-width: 100%;
    overflow: hidden;
    color: #f5f2ff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0.2px;
    line-height: 24px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__item--warning &__value {
    color: #fdb022;
  }
}

.@{sale-detail-prefix}-pay-timeline {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;

  &::-webkit-scrollbar {
    display: none;
  }

  &__empty {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 220px;

    .pisell-empty-wrap,
    .pisell-empty-wrap-description {
      color: rgba(234, 240, 255, 0.72);
    }
  }
}

.@{sale-detail-prefix}-pay-record {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(119, 133, 160, 0.24);
  border-left: 3px solid #17b26a;
  border-radius: 10px;
  background: #080d18;
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.24);

  &--refund {
    border-left-color: #fdb022;
  }

  &__date {
    overflow: hidden;
    color: rgba(234, 240, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

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

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

  &__title {
    min-width: 0;
    overflow: hidden;
    color: #f5f7ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__sub-title {
    min-width: 0;
    overflow: hidden;
    color: rgba(234, 240, 255, 0.68);
    font-size: 12px;
    font-weight: 700;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__amount {
    flex: none;
    color: #f5f7ff;
    font-size: 14px;
    font-weight: 900;
    line-height: 18px;
    white-space: nowrap;
  }

  &__sub-amount {
    flex: none;
    color: rgba(234, 240, 255, 0.68);
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
    white-space: nowrap;
  }

  &--refund &__amount {
    color: #fdb022;
  }
}
