Five Hindrances Right Mindfulness Interrelated?
The Pāḷi phrase for "frequent and careless attention in the Sutta (SN 46.2) is "ayonisomanasikārabahulīkāro". 

ayoniso = unwise, manasikāra = attention, bahulīkāro = continuous practice

The role of manasikāra is to direct the mind, just as a rudder steers a boat. Manasikāra can be wholesome or unwholesome. 

When manasikāra is steering the mind in a way that is in concordance with the dhamma, this is called "wise attention" (yonisomanasikāra). Wise attention is a proximate cause for non-attachment (alobha), non-aversion (adosa), equanimity (tatramajjhattatā) and understanding (paññā).

When manasikāra is steering the mind in a way that is not in concordance with the dhamma, this is called "unwise attention" (ayonisomanasikāra). Unwise attention is a proximate cause for delusion (moha), restlessness (uddhacca) and doubt (vicikicchā).

Accoding to Iti 1.16:


  This was said by the Blessed One, said by the Arahant, so I have heard: "With regard to internal factors, I don't envision any other single factor like wise attention as doing so much for a monk in training, who has not attained the heart's goal but remains intent on the unsurpassed safety from bondage. A monk who attends appropriately abandons what is unskillful and develops what is skillful.