document.addEventListener('DOMContentLoaded', function () {
const button = document.querySelector(
'.ct-header-button a.btn'
);
if (!button || document.querySelector('.sgt-line-btn')) return;
const line = document.createElement('a');
line.className = 'sgt-line-btn';
line.href = 'https://lin.ee/tMKIYs5';
line.target = '_blank';
line.rel = 'noopener noreferrer';
line.textContent = 'แอด LINE ปรึกษาฟรี';
button.insertAdjacentElement('afterend', line);
});
.ct-header-button {
display: flex !important;
align-items: center;
flex-wrap: nowrap;
gap: 10px;
}
.ct-header-button .sgt-line-btn {
display: inline-flex;
align-items: center;
justify-content: center;
background: #06c755;
color: #fff !important;
padding: 0 18px;
height: 48px;
border-radius: 3px;
font-weight: 600;
white-space: nowrap;
text-decoration: none;
}
.ct-header-button .sgt-line-btn:hover {
background: #05a847;
}
@media (max-width: 767px) {
.ct-header-button {
flex-wrap: wrap;
}
}