.navds-tooltip {
  z-index: 3000;
  background-color: var(--ax-bg-raised);
  color: var(--ax-text-default);
  border-radius: var(--ax-border-radius-medium);
  padding: 0 var(--ax-spacing-1-alt);
  align-items: center;
  display: flex;
  flex-direction: column;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-duration: 150ms;
  text-align: center;
  border: 1px solid var(--ax-border-subtleA);
  box-shadow: var(--ax-shadow-dialog);
}

.navds-tooltip:where([data-state="open"]):where([data-side="bottom"]) {
  animation-name: aksel-tooltip-from-bottom, aksel-tooltip-fade-in;
}

.navds-tooltip:where([data-state="open"]):where([data-side="top"]) {
  animation-name: aksel-tooltip-from-top, aksel-tooltip-fade-in;
}

.navds-tooltip:where([data-state="open"]):where([data-side="left"]) {
  animation-name: aksel-tooltip-from-left, aksel-tooltip-fade-in;
}

.navds-tooltip:where([data-state="open"]):where([data-side="right"]) {
  animation-name: aksel-tooltip-from-right, aksel-tooltip-fade-in;
}

@keyframes aksel-tooltip-from-bottom {
  from {
    transform: translateY(-4px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes aksel-tooltip-from-top {
  from {
    transform: translateY(4px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes aksel-tooltip-from-left {
  from {
    transform: translateX(4px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes aksel-tooltip-from-right {
  from {
    transform: translateX(-4px);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes aksel-tooltip-fade-in {
  from {
    opacity: 0.01;
  }

  to {
    opacity: 1;
  }
}

.navds-tooltip__keys {
  padding-bottom: var(--ax-spacing-1);
  display: flex;
  gap: var(--ax-spacing-1);
}

.navds-tooltip__key {
  font-family: var(--ax-font-family);
  color: var(--ax-text-default);
  padding: 0 var(--ax-spacing-1);
  min-width: 1.125rem;
  height: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--ax-border-radius-small);
  background: var(--ax-bg-neutral-moderateA);

  @media (forced-colors: active) {
    & {
      outline: 1px solid;
    }
  }
}
