.tooltip {
  position: relative;
  display: inline-grid;
  align-items: center;
  place-items: center;
  vertical-align: middle;
  line-height: 1;
  margin-bottom: 2px;
}

.info-button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #666;
  background: #fff;
  color: #333;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.tooltiptext {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #181818;
  color: #fff;
  text-align: center;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 10;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #181818 transparent transparent transparent;
}

.tooltip:hover .tooltiptext,
.tooltip:focus-within .tooltiptext {
  visibility: visible;
  opacity: 1;
}