.reviewed-btn {
  transition: background-color 120ms ease, color 120ms ease;
}

.reviewed-btn.btn-outline-primary {
  background-color: transparent !important;
  color: #0d6efd !important;
  border-color: #0d6efd !important;
}

.reviewed-btn[title] {
  position: relative;
}

.reviewed-btn[title]:hover::after {
  content: attr(title);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 1000;
}

/* Keep button width constant by layering two spans and toggling opacity */
/* Use inline-grid so both texts occupy the same grid cell and the
   button width becomes the max of both contents. Opacity swap then
   does not change layout. */
.reviewed-btn {
  display: inline-grid;
  align-items: center;
  justify-items: center;
  grid-template-areas: "label";
}
.reviewed-btn .default-text,
.reviewed-btn .hover-text {
  grid-area: label;
  transition: opacity 120ms ease;
  white-space: nowrap;
}
.reviewed-btn .hover-text {
  opacity: 0;
}
.reviewed-btn .default-text {
  opacity: 1;
}
.reviewed-btn:hover .default-text {
  opacity: 0;
}
.reviewed-btn:hover .hover-text {
  opacity: 1;
}
