わざわざ
deliberately; specially
わざわざありがとうございます。
Thank you for going out of your way.
This is a set phrase — memorize it as a whole unit rather than analyzing each part. A core N4 word that builds on N5 foundations.
From the JLP Quiz question bank — the word in the form it is actually tested in.
遠い___わざわざお越しいただき、ありがとうございます。
Answer: ところを