document.querySelectorAll('.checkoutMainInsideSecBodyCard').forEach(card => { const actionBtn = card.querySelector('.checkoutMainInsideSecBodyCardTopActionBtnView'); const bottom = card.querySelector('.checkoutMainInsideSecBodyCardBottom'); if (actionBtn && bottom) { actionBtn.addEventListener('click', () => { bottom.classList.toggle('checkoutMainInsideSecBodyCardBottomActive'); }); } });