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

.@{sale-detail-prefix}-sale-overview {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #1e3a5f 0%, #172554 52%, #1e293b 100%);

  &__main {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
  }

  &__meta {
    display: flex;
    justify-content: space-between;
    padding-right: 6px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
    font-style: normal;
    font-weight: 600;
    line-height: 18px;
  }

  &__order-number {
    color: #fff;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
  }

  &__status {
    position: absolute;
    top: 12px;
    right: 10px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  &__status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 12px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 18px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  }

  &__status-badge--payment {
    border-color: var(--pisell-sale-detail-overview-payment-color, #d0d5dd);
    color: #101828;
    background: var(--pisell-sale-detail-overview-payment-color, #d0d5dd);
  }

  &__status-badge--order {
    border-color: var(--pisell-sale-detail-overview-order-border-color, #1570ef);
    color: var(--pisell-sale-detail-overview-order-text-color, #175cd3);
    background: rgba(255, 255, 255, 0.04);
  }
}

.@{sale-detail-prefix}--phone {
  .@{sale-detail-prefix}-sale-overview {
    padding-bottom: 6px;

    &__main {
      gap: 10px;
    }

    &__order-number {
      font-size: 24px;
    }

    &__meta {
      flex-direction: column;
      gap: 4px;
      padding-right: 0;
      font-size: 12px;
      line-height: 18px;
    }

    &__status {
      top: 12px;
      right: 16px;
      gap: 6px;
    }

    &__status-badge {
      padding: 3px 8px;
      font-size: 12px;
      line-height: 18px;
    }
  }
}
