.bk-related-recommendations {
  min-width: 0;
}

.bk-judgeme-badge {
  min-height: 20px;
}

.bk-judgeme-badge:empty {
  display: none;
}

.bk-judgeme-reviews .jdgm-review-widget {
  width: 100%;
  margin-block: 0;
}

.bk-related-recommendations .block-resource-list {
  gap: 16px;
}

.bk-related-recommendations .section-resource-list__content h3 {
  margin: 0;
  color: var(--bk-plum, #1a0628);
  font-family: var(--font-heading--family);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.bk-related-recommendations .resource-list--grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bk-related-recommendations .product-card {
  min-width: 0;
}

.bk-related-recommendations .product-card .product-media-container {
  aspect-ratio: 1;
}

.bk-related-recommendations .product-card :is(.bk-card-vendor, h3, product-price) {
  font-size: 11px;
}

.bk-related-recommendations .product-card h3 {
  line-height: 1.35;
}

@media screen and (min-width: 750px) {
  .product-information__grid:not(.product-information--media-none) > .bk-related-recommendations {
    grid-row: 2;
    margin-top: 28px;
    padding-bottom: 28px;
  }

  .product-information__grid:not(.product-information--media-none) > .bk-judgeme-reviews {
    grid-row: 3;
    padding-bottom: 48px;
  }

  .product-information__grid.product-information--media-left > :is(.bk-related-recommendations, .bk-judgeme-reviews) {
    grid-column: 1;
    padding-right: calc(var(--gap, 0px) / 2);
  }

  .product-information__grid.product-information--media-right > :is(.bk-related-recommendations, .bk-judgeme-reviews) {
    grid-column: 2;
    padding-left: calc(var(--gap, 0px) / 2);
  }

  .product-information__grid:not(.product-information--media-none) > .product-details {
    grid-row: 1 / span 3;
  }
}

@media screen and (max-width: 749px) {
  /* Source-order reflow (WooCommerce layout spec §4): on phones the shopper
     should see title -> vendor/chips -> price ABOVE the gallery, then the
     add-to-cart form and the detail sections below it — not a full-bleed image
     first. The details column becomes display:contents so its children order
     directly against the gallery in the single-column grid. */
  .product-information__grid > .product-details {
    display: contents;
  }

  /* Default any details child to sit with the buy section (below the gallery),
     so an unlisted/plugin-injected child can never fall back to order:0 and
     jump above the title. Specific items below opt into an earlier slot. */
  .product-details > * { order: 6; }

  .product-details > .bk-breadcrumbs { order: 1; }
  .product-details > .bk-pdp-vendor { order: 2; }
  .product-details > .bk-pdp-header { order: 3; }
  .product-information__grid > .product-information__media { order: 4; }
  .product-details > .bk-divider { order: 5; }
  .product-details > .bk-pdp-form { order: 6; }
  .product-details > .bk-product-trust-wrap { order: 7; }
  .product-details > .bk-product-key-features { order: 8; }
  .product-details > .bk-product-description { order: 9; }
  .product-details > .bk-product-accordion { order: 9; }

  .product-information__grid > .bk-related-recommendations {
    order: 10;
    grid-column: 1 / -1;
    margin-top: 20px;
    padding: 28px var(--padding-lg) 40px;
    border-top: 1px solid var(--bk-border, #e7dfe9);
  }

  .product-information__grid > .bk-judgeme-reviews {
    order: 11;
    grid-column: 1 / -1;
    padding: 0 var(--padding-lg) 40px;
  }

  .product-information__grid > .bk-product-disclosures { order: 12; }

  .bk-related-recommendations .section-resource-list__content h3 {
    font-size: 21px;
  }
}
