.wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tip {
  position: absolute;
  z-index: 100;
  padding: 5px 9px;
  background: var(--text-primary);
  color: var(--bg-surface);
  font-size: 12px;
  font-family: var(--font-body);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  box-shadow: var(--shadow-md);
}

.wrapper:hover .tip {
  opacity: 1;
}

/* Positions */
.top {
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

.bottom {
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
}

.left {
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
}

.right {
  left: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
}
