Question: how many dc amps can 18 gauge wire handle?
Answer: The 16 amps maximum for 18 gauge wire is a conservative estimate for several feet of wire. In your case with only 12" the 18 gauge wire will easily handle more than 16 amps.