1. Disconnect the negative battery cable..
2. Remove the front map light..
3. Verify that the continuity between the sunroof switch terminals is as indicated in the table.

If not as indicated in the table, replace the sunroof switch.

Sunroof Switch Removal/InstallationLight Bulbs
WARNING
Do not replace the xenon fusion bulbs yourself:
Replacing the xenon fusion bulbs yourself is dangerous. Because the xenon fusion
bulbs require high voltage, you could receive an electric shock if the bulbs are
handled incorrectly. Consult an Authorized Mazda Dealer when the replaceme ...
Supplier Identification Procedure [Audio]
NOTE:
The unit supplier can vary. When asking the supplier (service center) for
repair or replacement, identify the supplier and fill in the Audio Repair Order
Form using the following procedures.
Verification procedure using label or inscribed lettering
1. Disconnect the negati ...
Buckle Switch Inspection
Driver-side
1. Switch the ignition to off.
2. Disconnect the negative battery cable and wait for 1 min or more..
3. Remove the front seat..
4. Remove the front buckle..
5. Inspect for continuity between the buckle switch terminals using a tester.
If not as indicated in the tab ...