Answered by ZUPAN | Oct. 11, 2019 12:25
If those are your only stops and, as you have mentioned, your layover in Shanghai is less than 24 hours long, you are definitely eligible for 24 hour visa free transit and you don't need a visa of any kind. You will just, upon your arrival in Shanghai, approach to 24 hour visa free transit counter where you will apply for a temporary entry permit that will be definitely granted to you to be allowed to collect your luggage and to perform a recheck.
You should print out your tickets and have those printouts in hard copy with you and you will declare at check-in in Mumbai that you will travel to Seattle via Shanghai using 24 hour visa free transit. Basically, this is it. You are definitely fine because separate tickets are accepted for visa free transit within China.