`;
document.body.appendChild(button);
const mainButton = document.getElementById("callTextButton");
const menu = document.getElementById("callTextMenu");
mainButton.addEventListener("click", function() {
menu.style.display = menu.style.display === "none" ? "flex" : "none";
});
document.addEventListener("click", function(event) {
if (!mainButton.contains(event.target) && !menu.contains(event.target)) {
menu.style.display = "none";
}
});
// Style for menu items
document.querySelectorAll(".callTextOption").forEach(item => {
item.style.cssText = `
background: white;
padding: 10px 25px;
border-radius: 8px;
text-decoration: none;
color: black;
font-weight: bold;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
display: block;
`;
});
});