.tooltip-wrapper + .tooltip-wrapper {
  margin-top: 10px;
}

.tooltip::before {
  position: absolute;
  content: ' ';
  width: 15px;
  height: 15px;
  z-index: 500;
  opacity: 0;
  transition: all cubic-bezier(0.17, 0.67, 0.5, 0.71) 100ms;
  pointer-events: none;
}

.tooltip::after {
  content: attr(data-tooltip-text);
  white-space: nowrap;
  border-radius: 1rem;
  color: var(--white);
  position: absolute;
  text-align: center;
  z-index: 555;
  opacity: 0;
  transition: all cubic-bezier(0.17, 0.67, 0.5, 0.71) 100ms;
  pointer-events: none;
  display: none;
  align-items: center;
  padding: 12px;
  text-wrap: auto;
}

.tooltip:hover::before, .tooltip:hover::after {
  opacity: 1;
  display: flex;
}

.tooltip.t-top::before {
  top: 0;
  left: 50%;
  transform: translate(-50%, 0) rotate(45deg);
}

.tooltip.t-top::after {
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
}

.tooltip.t-top:hover::before {
  transform: translate(-50%, calc(-100% - 5px)) rotate(45deg);
}

.tooltip.t-top:hover::after {
  transform: translate(-50%, calc(-100% - 10px));
}

.tooltip.t-left::before {
  top: 25%;
  left: 0;
  transform: translate(0, 0%) rotate(45deg);
}

.tooltip.t-left::after {
  top: 0;
  left: 0;
}

.tooltip.t-left:hover::before {
  transform: translate(calc(-100% - 5px)) rotate(45deg);
}

.tooltip.t-left:hover::after {
  transform: translate(calc(-100% - 10px));
}

.tooltip.t-right::before {
  top: 25%;
  right: 0;
  transform: translate(0, 0%) rotate(45deg);
}

.tooltip.t-right::after {
  top: 0;
  right: 0;
}

.tooltip.t-right:hover::before {
  transform: translate(calc(100% + 5px)) rotate(45deg);
}

.tooltip.t-right:hover::after {
  transform: translate(calc(100% + 10px));
}

.tooltip.t-bottom::before {
  bottom: 0;
  left: 5%;
}

.tooltip.t-bottom::after {
  bottom: 0;
  left: 0;
}

.tooltip.t-bottom:hover::before {
  transform: translate(0, calc(100% + 5px)) rotate(45deg);
}

.tooltip.t-bottom:hover::after {
  transform: translate(0, calc(100% + 10px));
}
