The lesson states " either de or pour is colloquial with abstract nouns (votre compréhension, patience, gentillesse...), with merci de being a bit more elegant.
I don't get the sense of this statement.
If both are colloquial then what is the formal way of expressing " Thank you for your understanding".