/* Pledge for the Planet 48hr Mission 2026 badge */

.rd-48hr-badge-wrap {
  display: block;
  line-height: 0;
  text-decoration: none;
  box-shadow: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.rd-48hr-badge-wrap img,
.gallery-cards .inner-cards .image-content .rd-48hr-badge-wrap img,
.banner-inside-1 .inner-image .rd-48hr-badge-wrap img,
.banner-inside-1 .inner-text-left .rd-48hr-badge-wrap img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
}

/* Desktop listing cards: 64px + 20% */
.image-content .rd-48hr-badge-wrap--cover,
.gallery-cards .inner-cards .image-content a.rd-48hr-badge-wrap--cover,
.banner-map .pop-content .inner-cards .image-content a.rd-48hr-badge-wrap--cover {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  width: 77px !important;
  height: 77px !important;
  max-width: 77px !important;
  max-height: 77px !important;
  z-index: 4;
}

/* Single club page: 100×100 under the bio */
.banner-inside-1.banner-runclub-hero .inner-text-left a.rd-48hr-badge-wrap--page,
.banner-runclub-hero .rd-48hr-badge-wrap--page {
  display: block !important;
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
  flex: 0 0 100px !important;
  margin-top: 16px;
}

.banner-inside-1.banner-runclub-hero .inner-text-left a.rd-48hr-badge-wrap--page img,
.banner-runclub-hero .rd-48hr-badge-wrap--page img {
  width: 100px !important;
  height: 100px !important;
  max-width: 100px !important;
  max-height: 100px !important;
}

.rd-48hr-badge-wrap--inline {
  display: none !important;
}

.card-box--48hr .address {
  flex-wrap: wrap;
}

@media (max-width: 767.98px) {
  .image-content .rd-48hr-badge-wrap--cover {
    display: none !important;
  }

  /* Mobile listing cards: 40px + 50% */
  .rd-48hr-badge-wrap--inline,
  .card-box--48hr .address .rd-48hr-badge-wrap--inline {
    display: block !important;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    height: 60px;
    margin-top: 8px;
  }

  .rd-48hr-badge-wrap--inline img,
  .card-box--48hr .address .rd-48hr-badge-wrap--inline img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }
}
