Refactored styling for tooltipbox