Place it at the very end of a compliment or kind-gesture moment, as the closing beat of the edit. Follow it with a light laugh sound, then a cheerful reaction sound, so the thank-you becomes the final word before the next scene begins.