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/InstallationAir Bag System Warning Light [Two Step Deployment Control System]
Purpose
The air bag system warning light notifies the driver of a malfunction in
the SRS air bag system.
Function
If a malfunction occurs in the SRS air bag system, the air bag system warning
light illuminates or flashes.
Construction
LEDs (light-emitting d ...
Curtain Air Bag Module Removal/Installation [Standard Deployment Control System]
WARNING:
Handling the air bag module improperly can accidentally deploy the air bag
module, which may seriously injure you. Read the air bag system service warnings
and cautions before handling the air bag module..
1. Switch the ignition to off.
2. Disconnect the negative batte ...
Child Restraint Precautions
Mazda strongly urges the use of child-restraint systems for children small enough
to use them.
You are required by law to use a child-restraint system for children in the U.S.
and Canada.
Check your local and state or provincial laws for specific requirements regarding
the safety of children ...