I live far from the masjid and winter makes salah close to each other can I do some work and Learning (dunaya), and do some work for business , in the masjid while waiting for salah , and at work if a female worker says good morning can you respons with the same and smile and say nothing else

Ustadh AbdulAziz al-Haqqan
You can't buy and sell in the masjid or do that which leads to buying and selling as well.