/* Batch 8 / v0.1.42 — Shortlist-only layout parity with Catalogue cards.
 * Presentation only: no Catalogue/Live CSS, fields, storage or action handlers.
 * Intended order: after card-parity, shared shortlist UI and the four-block CSS.
 */

/* The source Catalogue fits its cards into a viewport-width surface, with 8px
   breathing room at the edges. The four-bucket Shortlist must use that SAME
   footprint, rather than the old narrower / padded wishlist container. */
@media (max-width: 759px) {
  html body .bosky-wishlist-page.bk-fu7-four {
    display:block!important;
    width:calc(100vw - 16px)!important;
    min-width:0!important;
    max-width:calc(100vw - 16px)!important;
    margin-left:calc(50% - 50vw + 8px)!important;
    margin-right:calc(50% - 50vw + 8px)!important;
    padding:0!important;
    box-sizing:border-box!important;
  }
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-shell,
html body .bosky-wishlist-page.bk-fu7-four .bk-fu6-section {
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding-left:0!important;
  padding-right:0!important;
  box-sizing:border-box!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  padding:0 1px 6px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
/* Match Catalogue's white 15px card, even for Live notification matches
   which are created with separate JS markup and have no .bosky-cat-body. */
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid > .bosky-wish-card {
  display:flex!important;
  flex-direction:column!important;
  position:relative!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #edf1f3!important;
  border-radius:15px!important;
  background:#fff!important;
  overflow:hidden!important;
  box-shadow:0 5px 16px rgba(23,50,77,.055)!important;
  box-sizing:border-box!important;
}
/* For saved Catalogue pets, the anchor owns the photo's aspect ratio. */
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-media-wrap {
  display:block!important;
  position:relative!important;
  width:100%!important;
  min-width:0!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#eef2f4!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-media {
  position:relative!important;
  display:block!important;
  width:100%!important;
  aspect-ratio:4/5!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
/* Notification-match cards have a photo directly inside their media wrapper. */
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bk-fu7-match-card .bosky-wish-media-wrap {
  aspect-ratio:4/5!important;
  height:auto!important;
  min-height:0!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-media-wrap img {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
  object-position:50% 0%!important;
}
/* Catalogue's two-line pet labels and flush, bottom-aligned card actions. */
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-cat-body {
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  width:100%!important;
  min-width:0!important;
  padding:0!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card h3,
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-cat-title {
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:anywhere!important;
  min-width:0!important;
  min-height:2.6em!important;
  max-height:2.6em!important;
  margin:0!important;
  padding:7px 6px 6px!important;
  font-size:clamp(9px,2.4vw,11px)!important;
  font-weight:650!important;
  line-height:1.3!important;
  color:#344b5c!important;
  box-sizing:content-box!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-actions.bk-fu7-actions {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px!important;
  gap:6px!important;
  align-items:stretch!important;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  margin:auto 6px 8px!important;
  padding:0!important;
  box-sizing:border-box!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-actions.bk-fu7-actions button.bk-fu7-action {
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:0!important;
  min-height:40px!important;
  width:100%!important;
  height:40px!important;
  max-height:40px!important;
  margin:0!important;
  padding:7px 3px!important;
  box-sizing:border-box!important;
  border-radius:10px!important;
  font-size:clamp(9px,2.4vw,11px)!important;
  font-weight:800!important;
  line-height:1.15!important;
  text-align:center!important;
  cursor:pointer!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-actions.bk-fu7-actions .bk-fu7-primary {
  background:#e5f5fb!important;
  border:1px solid #c7e3ec!important;
  color:#235773!important;
  -webkit-text-fill-color:#235773!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-actions.bk-fu7-actions .bk-fu7-icon {
  width:40px!important;
  min-width:40px!important;
  max-width:40px!important;
  padding:0!important;
  background:#e4f6f0!important;
  border:1px solid #b7dacf!important;
  color:#176950!important;
  -webkit-text-fill-color:#176950!important;
}
html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bk-fu7-icon svg {
  width:19px!important;
  height:19px!important;
  flex:0 0 19px!important;
}
/* Share the individual photo, NOT a whole shortlist. */
html body .bosky-wishlist-page [data-bosky-share-wishlist],
html body .bosky-wishlist-page.bk-fu7-four .bk-fu6-share,
html body .bosky-wishlist-page .bk-cfn-share-fallback,
html body .bosky-public-shell .bk-cfn-compact-tools > button.bk-cfn-share {
  display:none!important;
}
@media (max-width:380px) {
  html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid {gap:6px!important;}
  html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-actions.bk-fu7-actions {
    grid-template-columns:minmax(0,1fr) 36px!important;
    gap:4px!important;
    margin-left:5px!important;
    margin-right:5px!important;
  }
  html body .bosky-wishlist-page.bk-fu7-four .bk-fu7-grid .bosky-wish-card .bosky-wish-actions.bk-fu7-actions .bk-fu7-icon {
    width:36px!important;min-width:36px!important;max-width:36px!important;
  }
}
