The idiom "cost a pretty penny" means something that is very expensive or costly. The word "pretty" here is used as an intensifier meaning "considerably" or "very", not related to appearance. Option B correctly identifies this meaning. Options A and C are incorrect because they misinterpret "pretty" literally or as "cheap", while D is unrelated to the idiom's meaning.