.mpa_tooltip {
  position: relative;
  display: inline-block;
}

.mpa_tooltip:hover:after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 5px);
  left: 0;
  font-size: 10px;
  white-space: nowrap;
  background: #333;
  color: white;
  padding: 3px 6px;
  border-radius: 2px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.1s;
  visibility: hidden;
}

.mpa_tooltip:hover:before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
  z-index: 9999;
  pointer-events: none;
}

.mpa_tooltip:hover:after,
.mpa_tooltip:hover:before {
  opacity: 1;
  visibility: visible;
}