(d) A merchant, a store supervisor, agent or employee of the merchant 18 years of age or older who detains, or a merchant, a store supervisor, agent or employee of the merchant who causes or provides information leading to the arrest of any person under subsection (a), (b) or (c) of this section, shall not be held civilly or criminally liable for such detention or arrest provided they had, at the time of such detention or arrest, probable cause to believe that the person committed the crime of shoplifting as defined in subsection (a) of this section. Shoplifting is a class G felony when the goods, wares or merchandise shoplifted are of the value of $1,500 or more, or when the goods, wares or merchandise shoplifted are from 3 or more separate mercantile establishments and were shoplifted in the same or continuing course of conduct and the aggregate value of the goods is $1,500 or more. When the goods, wares or merchandise shoplifted are of the value of less than $1,500, it is a class A misdemeanor.