.pisell-sale-detail-client-detail-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  border: 1px solid rgba(119, 133, 160, 0.26);
  border-radius: 14px;
  color: #fff;
  background: #0d1322;

  &__profile {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
  }

  &__avatar {
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 100%) !important;
  }

  &__identity {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
  }

  &__name {
    overflow: hidden;
    color: #f5f7ff;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  &__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 7px;
    color: rgba(234, 240, 255, 0.76);
    font-size: 14px;
    line-height: 18px;

    > span {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  &__detail-button {
    flex: none;
    min-width: 82px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(119, 133, 160, 0.42);
    border-radius: 10px;
    color: #eaf0ff;
    font-size: 14px;
    font-weight: 800;
    line-height: 44px;
    text-align: center;
    background: rgba(15, 23, 42, 0.28);
    cursor: pointer;

    &:hover,
    &:focus {
      border-color: rgba(159, 180, 216, 0.64);
      color: #fff;
      background: rgba(30, 41, 59, 0.42);
    }
  }

  &__details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(119, 133, 160, 0.2);
  }

  &__field {
    min-width: 0;

    dt {
      overflow: hidden;
      color: #9fb4d8;
      font-size: 14px;
      font-weight: 800;
      letter-spacing: 1px;
      line-height: 14px;
      text-overflow: ellipsis;
      text-transform: uppercase;
      white-space: nowrap;
    }

    dd {
      margin: 8px 0 0;
      overflow: hidden;
      color: #eaf0ff;
      font-size: 12px;
      font-weight: 700;
      line-height: 18px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
  }

  &__member-tag {
    border-radius: 20px;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    vertical-align: top;
  }

  &--tablet,
  &--phone {
    gap: 14px;
    padding: 14px 12px;

    .pisell-sale-detail-client-detail-card__meta {
      gap: 3px;
      margin-top: 4px;
      font-size: 12px;
      line-height: 16px;
    }

    .pisell-sale-detail-client-detail-card__detail-button {
      min-width: 72px;
      height: 40px;
      padding: 0 12px;
      font-size: 13px;
      line-height: 38px;
    }

    .pisell-sale-detail-client-detail-card__details {
      gap: 10px;
      padding-top: 12px;
    }

    .pisell-sale-detail-client-detail-card__field {
      dt {
        font-size: 12px;
        letter-spacing: 0.8px;
        line-height: 13px;
      }

      dd {
        margin-top: 6px;
        font-size: 13px;
        line-height: 17px;
      }
    }
  }

  &--phone {
    gap: 12px;
    padding: 12px 10px;
    border-radius: 12px;

    .pisell-sale-detail-client-detail-card__profile {
      gap: 10px;
    }

    .pisell-sale-detail-client-detail-card__avatar {
      width: 48px;
      height: 48px;
      border-radius: 11px;
    }
  }
}
