Fetching details from the dictionary...

expressly; especially; specially; taking the trouble (to do); going to the trouble of (doing); going out of one's way (to do)
intentionally; deliberately; on purpose
態々遠くから来てくれてありがとう。
Thank you for coming all the way here.
態々来なくてよかったのに。
You didn't have to go out of your way to come.
態々足を運んでくれた客人のために特別な料理を用意した。
I prepared a special meal for the guest who took the trouble to visit.