I've done this several times on my A/C equipped car. You just need the correct combination of extensions/socket/wobbler to make the bend. I can't recall the exact combo I used.
But think outside the box...maybe 1/4" drive set instead of 3/8"....or maybe a deep well socket instead of a short one...maybe 2 extensions with a wobbler in-between them...
There is some combination that fits real nice, and I always find it when I need it but I never write it down so I forget which tools and which order. But a wobbler/universal/swivel adapter (or whatever slang term everyone uses) is absolutely necessary. Some version of this: photos of wobbler sockets