What does ‘cockamamie’ mean?

( n ) Nonsensical, crazy. Cars that drive themselves? I’ve never heard such a cockamamie idea!