Car lost all electrical while driving

This is just a shot in the dark, but I had a similar problem. It turned out to be the electronic ignition module quit working when it was hot sometimes. They are only about $20, and it wouldn’t hurt to have a spare in the trunk anyway, even if it is not the issue.