How to Get to the Medieval Village of Óbidos

How to go to Óbidos from Lisbon, Portugal, by car or public transportation (bus from Campo Grande terminal or train), including bus stop locations and ticket prices.