/* Verification badges: green verified shield, grey not-verified shield + hint bubble. */

.vbadge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0 0 0 0.4rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  vertical-align: -0.2em;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.vbadge svg {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.vbadge--ok {
  color: #16a34a;
}

.vbadge--no {
  color: #a3aeac;
}

.vbadge:focus-visible {
  border-radius: 0.3rem;
  box-shadow: 0 0 0 2px rgba(21, 122, 113, 0.45);
}

/* Larger variant next to a name */
.vbadge--lg {
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0;
  vertical-align: middle;
}

.vbadge--bare {
  margin-left: 0;
}

.vbadge-tip {
  position: fixed;
  z-index: 10000;
  max-width: min(16rem, calc(100vw - 1rem));
  padding: 0.5rem 0.7rem;
  border-radius: 0.65rem;
  background: #0a3f3c;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
  box-shadow: 0 8px 22px rgba(2, 44, 42, 0.28);
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.vbadge-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.vbadge-tip::after {
  content: "";
  position: absolute;
  left: var(--vbadge-arrow-x, 50%);
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: inherit;
  transform: rotate(45deg);
  border-radius: 0 0 2px 0;
}

.vbadge-tip.is-below::after {
  top: -5px;
  bottom: auto;
  border-radius: 2px 0 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .vbadge-tip {
    transition: none;
  }
}
