.RecentContacts {
  .Loading {
    min-height: 75vh;
  }

  .top-peers-section {
    padding: 0.5rem 1rem;
  }

  .top-peers {
    scrollbar-color: rgba(0, 0, 0, 0);
    scrollbar-width: none;

    overflow-x: auto;
    overflow-y: hidden;

    height: 6rem;
    margin: 0 -1rem;

    white-space: nowrap;

    &::-webkit-scrollbar {
      height: 0;
    }

    &::-webkit-scrollbar-thumb {
      background-color: rgba(0, 0, 0, 0);
    }
  }

  .top-peer-item {
    cursor: var(--custom-cursor, pointer);

    position: relative;

    overflow: hidden;
    display: inline-block;

    width: 4.5rem;
    height: 6rem;
    margin-left: 0.5rem;
    padding: 0.625rem 0.25rem;
    border-radius: var(--border-radius-default);

    &:first-child {
      margin-left: 0.5rem;

      @media (max-width: 600px) {
        margin-left: 0.125rem;
      }
    }

    &:last-child {
      margin-right: 0.125rem;
    }

    .Avatar {
      margin: 0 auto 0.375rem;
    }

    &:hover {
      background: var(--color-chat-hover);
    }

    .top-peer-name {
      overflow: hidden;

      font-size: 0.75rem;
      text-align: center;
      text-overflow: ellipsis;
      white-space: nowrap;

      .emoji-small {
        width: 1rem;
        height: 1rem;
        margin-inline-end: 1px;

        vertical-align: -3px;

        background-size: 1rem;
      }
    }
  }

  .recent-chats-header {
    display: flex;
    align-items: center;
  }

  .clear-recent-chats {
    position: absolute;
    inset-inline-end: 0;
  }
}
