:host {
  display: inline-flex;
  align-items: center;
  margin-left: 0.25rem;
  vertical-align: middle;
}

.tooltip-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tenant-primary, var(--color-primary, #0d6efd));
  font-size: 1em;
  line-height: inherit;

  &:focus-visible {
    border-radius: 50%;
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  &:hover .tooltip-message,
  &:focus-visible .tooltip-message {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -0.25rem);
  }
}

.tooltip-message {
  position: absolute;
  z-index: 1100;
  bottom: calc(100% + 0.625rem);
  left: 50%;
  width: max-content;
  max-width: min(16rem, 75vw);
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid var(--tenant-primary, var(--color-primary, #0d6efd));
  background: #fff;
  color: #212529;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}
