Forget rice it does not do a good job. You can do a search on it and see.
Time is your best ally with this. Since it’s enclosed, it might take up to a month or more for it to dry out, but it’s the safest method. Our son when he was a baby peed on my wife’s switch. Shop said it was toasted. One year later, it fired up just fine. She just spilled water on her switch light about a month ago and we’re gonna do the same thing with it.