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

.@{sale-detail-prefix}-summary-info {
  display: flex;
  flex-direction: column;
  gap: 6px;

  &__section {
    min-width: 0;
  }

  &__section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 6px;
  }

  &__section-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 6px 0;
    color: #d9e2ff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;

    .pisell-iconfont {
      color: #aebbe0;
      font-size: 16px;
    }
  }

  &__card {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(92, 108, 148, 0.72);
    border-radius: 14px;
    background: #07101f;
    color: #eef4ff;
  }

  &__action,
  &__panel-button {
    flex: none;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(154, 164, 195, 0.62);
    border-radius: 9px;
    color: #eef4ff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(7, 16, 31, 0.88);
    cursor: pointer;
  }

  &__panel-button {
    align-self: flex-end;
  }

  &__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    line-height: 1.35;
  }

  &__field--block {
    grid-column: 1 / -1;
  }

  &__field--block &__field-value {
    white-space: normal;
  }

  &__field-label {
    color: #aebbe0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  &__field-value {
    min-width: 0;
    overflow: hidden;
    color: #eef4ff;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__note-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    grid-column: 1 / -1;
  }

  &__note-row &__field {
    flex: 1 1 auto;
  }
}

.@{sale-detail-prefix}--phone {
  .@{sale-detail-prefix}-summary-info {
    &__card {
      padding: 10px;
      grid-template-columns: 1fr;
    }

    &__note-row,
    &__field--block {
      grid-column: auto;
    }
  }
}
