2007 mazda 3 AC turns off when my lights are on
When you have a frail electrical system, turning on the lights will rob electrical power that had been going to other devices, like the AC. The computer actually sees the lights as necessary and the AC not. I suspect that you might be having starting issues, or will soon as it appears that the alternator is defective. Go to a car parts store and have alternator, battery, and charging system checked.