/* Tooltip container styling */
.custom-tooltip {
  position: fixed;
  padding: 1.5em 1.5em;
  border-radius: 15px;
  font-size: 12px !important;
  font-weight: normal;
  font-style: normal;
  text-shadow: none;
  white-space: normal;
  max-width: 500px;
  pointer-events: none;
  z-index: 1000000;
  opacity: 0;
  transition: opacity 0.15s ease-out;
}

/* Style HTML elements inside tooltip */
.custom-tooltip strong {
  font-weight: bold;
}

.custom-tooltip em {
  font-style: italic;
}

.custom-tooltip a {
  color: #4CAF50;
  text-decoration: underline;
}

.custom-tooltip ul,
.custom-tooltip ol {
  margin: 0.5em 0;
  padding-left: 1.5em;
}

.custom-tooltip p {
  margin: 0.5em 0;
}

.custom-tooltip p:first-child {
  margin-top: 0;
}

.custom-tooltip p:last-child {
  margin-bottom: 0;
}

.custom-tooltip.visible {
  opacity: 1;
}

/* Cursor styling for elements with tooltips */
[data-balloon] {
  cursor: pointer;
}