.health-tooltip-theme,
.health-tooltip {
  background-color: #fff;
  border: $health-borderize;
  border-color: $tooltip-bg-colour;
  box-shadow: 0px 0px 35px -7px rgba(0, 0, 0, .5);
  color: $AU-color-foreground-text;
  display: flex;
  font-family: $AU-font;
  font-size: 0.8125rem;
  gap: 0.5rem;
  left: 0;
  margin: 0;
  max-width: 100vw;
  opacity: 0;
  position: fixed;
  text-align: left;
  top: 0;
  transition: opacity .5s ease;
  width: fit-content;
  @include AU-space('padding', .5unit);
}

.health-tooltip__arrow {
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  display: none;
  height: 0;
  position: absolute;
  width: 0;
}

.health-tooltip__arrow--top {
  border-top: 10px solid $tooltip-bg-colour;
  bottom: -10px;
  display: inline-block;
}
.health-tooltip__arrow--bottom {
  border-bottom: 10px solid $tooltip-bg-colour;
  display: inline-block;
  top: -10px;
}

.health-tooltip__button {
  background-color: transparent;
  border-radius: 50%;
  border-style: none;
  cursor: pointer;
  flex: 0 0 1.5rem;
  height: 1.5rem;
  padding: 0;
  width: 1.5rem;
}

.health-tooltip__button--close {
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}

.health-tooltip__button--close::after,
.health-tooltip__button--close::before {
  background-color: #fff;
  content: '';
  height: 12px;
  position: absolute;
  transform-origin: center;
  width: 2px;
}

.health-tooltip__button--close::after {
  transform: rotate(45deg);
}

.health-tooltip__button--close::before {
  transform: rotate(-45deg);
}


.health-tooltip__button:hover,
.health-tooltip__button:active {
  background-color: #A2AAAD;
}

.health-tooltip__content {
  line-height: 1.25rem;
  max-width: 40rem;
  padding: 0;
  position: relative;
  width: max-content;
}

.health-tooltip--active {
  opacity: 1;
}
