/* Related-card achievement indicators.
 * Loaded after reference-ebay.css so the existing card grid remains unchanged
 * apart from the reserved indicator footer and tooltip overflow behavior.
 */

.crf-related-card {
  position: relative;
  overflow: visible;
}

.crf-related-card__visual {
  overflow: hidden;
  border-radius: 4px 4px 0 0;
}

.crf-related-card__indicators {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
  padding: 4px 7px 6px;
  background: #fff;
  border-top: 1px solid #E8E8E8;
  border-radius: 0 0 4px 4px;
}

.crf-related-awards {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.crf-related-player-award {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.crf-related-player-award img {
  width: 19px;
  height: 19px;
}

/* On Related Cards the tooltip opens upward so it never collides with the
 * following grid row. The tile remains the only click target. */
.crf-related-player-award::after {
  top: auto;
  right: 0;
  bottom: calc(100% + 7px);
  max-width: 320px;
}

@media (max-width: 767px) {
  .crf-related-card__indicators {
    min-height: 32px;
    padding: 4px 6px 5px;
  }

  .crf-related-player-award::after {
    max-width: min(300px, 74vw);
  }
}
