.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #c7c7c7;
  background-color: #f5f5f5;
  color: #666666;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  vertical-align: text-bottom;
  position: relative;
}

.tip::before,
.tip::after {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;

  position: absolute;
  z-index: 1000;

  transition: 0.2s ease;
  transition-delay: 0ms;
}

.tip::before {
  content: "";
  border: 4px solid transparent;
}

.tip::after {
  content: attr(aria-label);
  padding: 6px 10px;

  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  color: #ffffff;
  white-space: nowrap;

  background-color: #000000;
}

.tip:hover::before,
.tip:hover::after {
  visibility: visible;
  opacity: 1;
  transition-delay: 0.1s;
}

/* Position: top */
.tip--top::before,
.tip--top::after {
  left: 50%;
  transform: translate3d(-50%, 8px, 0);
}

.tip--top::before {
  top: -4px;
}

.tip--top::after {
  bottom: 100%;
  margin-bottom: 4px;
}

.tip--top:hover::before,
.tip--top:hover::after {
  transform: translate3d(-50%, 0, 0);
}

/* Shadow */
.tip--shadow::after {
  box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.4);
}

/* Light-gray color */
.tip--light-gray::before {
  border-top-color: #222222;
}

.tip--light-gray::after {
  background-color: #222222;
  color: #ffffff;
}
