.tooltip-wrapper {
  position: relative;
  display: inline-block;
}

.tooltip {
  position: fixed;
  background: var(--color-neutral-900);
  color: var(--color-white);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
  /* Ensure tooltips sit on top of other UI elements */
  z-index: 9999;
  font-size: 0.875rem;
  opacity: 0;
  animation: tooltip-fade 0.3s ease forwards;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tooltip-right,
.tooltip-left,
.tooltip-top,
.tooltip-bottom {
  transform: none;
}

.tooltip .tooltip-badge {
  background: var(--color-neutral-900);
  color: var(--color-neutral-400);
  border-radius: 0.25rem;
  padding: 0 0.5rem;
  padding-top:4px;
  font-size: 0.75rem;
  line-height: 1.25rem;
  min-width: 1.25rem;
  text-align: center;
}

@keyframes tooltip-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
