Mazdatrix is a good resource to get an idea of what the parts cost. I just did a build on mine, and was able to reuse a lot of parts that were within Mazda's Specifications. I only had to purchase a new seal kit and E-Shaft.
It is highly recommended to use only OEM Mazda Parts. Its a very simple engine, but its very time consuming to measure everything, and assemble it properly. Don't let that shy you away. If you decide to tackle the project yourself, the factory service manual is your best starting resource.
But you just wont know until you do a compression test first, before anything else!
Example:
The guy I bought my car off thought the engine was totally blown! It sat in his garage for 5 years not moving. Turned out, it was just the vacuum hose going to the brake booster was massively cracked. I discovered this after I bought the car and did a visual inspection of everything.
Life is too short to drive boring cars.