.holder-badge {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  line-height: 0;
  cursor: help;
  vertical-align: middle;
}

.holder-badge--compact {
  width: 18px;
  height: 18px;
}

.holder-badge--profile {
  width: 32px;
  height: 32px;
}

.holder-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}

.holder-badge:focus-visible {
  outline: 1px dotted #000;
  outline-offset: 2px;
}

.holder-badge-tooltip {
  display: flex;
  position: fixed;
  z-index: 2147483647;
  width: max-content;
  max-width: min(220px, calc(100vw - 10px));
  flex-direction: column;
  gap: 2px;
  box-sizing: border-box;
  padding: 5px 7px;
  border: 1px solid #000;
  background: #ffffe1;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.22);
  color: #000;
  font: 11px/1.25 Tahoma, "MS Sans Serif", sans-serif;
  pointer-events: none;
}

.holder-badge-tooltip__title {
  color: #16467f;
  font-size: 11px;
}

.holder-badge-tooltip__detail {
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .holder-badge,
  .holder-badge-tooltip {
    transition: none;
  }
}
