/* Golden Records v1.3.29 — narrowly scoped follow-up fixes.
   Do not change the product tabs, checkout, directory or catalog layouts. */

/* Single-product photo remains visible alongside the longer specimen passport.
   Sticky positioning ends naturally at the bottom of .gr-pdp-grid (before tabs).
   Keep sufficient room for the existing sticky two-tier header. */
@media (min-width: 1025px) and (min-height: 710px) {
  body.gr-site.single-product .gr-pdp-grid > .gr-pdp-media {
    position: sticky !important;
    position: -webkit-sticky !important;
    top: calc(var(--gr-adminbar-offset, 0px) + var(--gr-sticky-header-height, 78px) + 66px) !important;
    align-self: start !important;
    height: max-content !important;
  }
}
/* On smaller screens, leave the photo in the normal reading flow. */
@media (max-width: 1024px), (max-height: 709px) {
  body.gr-site.single-product .gr-pdp-grid > .gr-pdp-media {
    position: relative !important;
    top: auto !important;
  }
}

/* Delivery cards: Gutenberg may wrap children in .wp-block-group__inner-container.
   Give that wrapper full height too, so the last meta row always sits at
   the bottom of each equally tall card rather than halfway down it. */
body.gr-site main.gr-editorial .gr-delivery .carriers-3col > .carrier-card,
body.gr-site main.gr-editorial .gr-delivery .carriers-3col > .wp-block-group__inner-container > .carrier-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  height: 100% !important;
}
body.gr-site main.gr-editorial .gr-delivery .carriers-3col .carrier-card > .wp-block-group__inner-container {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  align-items: stretch !important;
  width: 100% !important;
  min-height: 100% !important;
}
body.gr-site main.gr-editorial .gr-delivery .carriers-3col .carrier-card .carrier-meta {
  margin-top: auto !important;
  flex: 0 0 auto !important;
}
