Ummmm

How long after e-filing should you expect a accepted/decline status update? Then how long after that to expect to receive refund? I did both at the same time, federal was accepted next day and returns were in my account 3 weeks later. State still has pending status.. why?