We've been there, and we have some meaningful ideas for what to say instead of "sorry for your loss" that can really show someone you are there for them. The right words sometimes depend on your ...
If "sorry for your loss" is all someone writes ... it's nice to personalize your response to show you appreciate their words.