I 2nd disconnecting the battery before you begin. HOWEVER, position the seat so that you can access all the bolts for the seat rails before you disconnect the battery.
Next, unbolt and disconnect seat. Remove from vehicle. This would be a good time to clean the carpet, stains on the console, etc. perhaps remove the driver’s seat as well.
This can be done by unbolting the seat and tipping it back to release clips/connectors/trim fasteners but it’s a little easier with the seat up on a bench or sawhorses