WARNING: This page is about a different car, the 2005 Mazda MX-5 Miata. However, it is still accessible from the selected car via links, so may be relevant.
Before disconnecting connectors or removing electrical parts, disconnect the negative battery cable.