With Spanish passport you’re entitled to 30 days visa exemption. The extension is only 30 days again. (45 days during Covid). So this gives up to 60 days in total. I would recommend that your mum apply for a 60 days tourist visa at the Thai embassy in Madrid before she leave and extend this with 30 days at the local immigration in Thailand. Then you’re safe and there’s no overstay.
They use E-visa so you apply online with a personal user.
*******************************************************************************
*****
-visa?menu=5d7cf78c15e39c3e
*****
99d