/* P09T — Card presentation parity with Collections v1.6.27.
   Only Catalogue and Shortlisted surfaces. No page-wide .bpa-* overrides. */

/* 3 columns, same gutter, edge breathing room, and 4:5 images as Collections. */
html body .bosky-cat-wrap .bosky-cat-grid,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-enquiry-grid,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-saved-grid {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:7px!important;
  align-items:stretch!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
html body .bosky-cat-wrap .bosky-cat-grid{padding:0 1px 6px!important}
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-enquiry-grid,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-saved-grid{padding:0 1px 6px!important}

/* Consistent photo-first white tiles: Collection borders/shadows/radius. */
html body .bosky-cat-wrap .bosky-cat-grid > .bosky-cat-card,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-enquiry-grid > .bosky-wish-card,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-saved-grid > .bosky-wish-card {
  display:flex!important;
  flex-direction:column!important;
  align-self:stretch!important;
  min-width:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:1px solid #edf1f3!important;
  border-radius:15px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:0 5px 16px rgba(23,50,77,.055)!important;
  box-sizing:border-box!important;
}
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-enquiry-grid > .bosky-wish-card{
  /* selection is shown by its mint section and Save for Later action,
     not the previous heavy orange card outline */
  border-color:#bfded3!important;
  box-shadow:0 4px 13px rgba(23,50,77,.045)!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-media-wrap,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-wish-media-wrap {
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  overflow:hidden!important;
  flex:none!important;
  background:#eef2f4!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-media,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-wish-media {
  display:block!important;
  position:relative!important;
  aspect-ratio:4 / 5!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#eef2f4!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-media img,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-wish-media img {
  display:block!important;
  width:100%!important;
  height:100%!important;
  position:absolute!important;
  inset:0!important;
  object-fit:cover!important;
  margin:0!important;
  padding:0!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-body,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-cat-body {
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  min-width:0!important;
  padding:0!important;
  background:#fff!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-title,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .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;
  color:#344b5c!important;
  font-size:clamp(8px,2.35vw,10px)!important;
  font-weight:600!important;
  line-height:1.3!important;
  min-height:2.6em!important;
  max-height:2.6em!important;
  margin:6px 6px 5px!important;
  padding:0!important;
  overflow-wrap:anywhere!important;
}

/* Catalogue: keep its original authenticated wishlist AJAX button but give it
   exactly the Collections single-action footer. The old Find This stays hidden. */
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions {
  display:block!important;
  flex:none!important;
  grid-template-columns:1fr!important;
  gap:0!important;
  margin:auto 6px 8px!important;
  padding:0!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions .bosky-direct-enquiry,
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions .bosky-send-one {display:none!important}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions button.bosky-wishlist-add {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  appearance:none!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  min-height:40px!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:8px 3px!important;
  box-sizing:border-box!important;
  background:#e5f5fb!important;
  border:1px solid #c7e3ec!important;
  border-radius:10px!important;
  box-shadow:none!important;
  color:#235773!important;
  -webkit-text-fill-color:#235773!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1.2!important;
  white-space:normal!important;
  cursor:pointer!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions button.bosky-wishlist-add .bosky-wish-icon{display:none!important}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions button.bosky-wishlist-add::after {
  display:block!important;
  content:'Add to shortlist';
  font-size:clamp(9px,2.75vw,11px)!important;
  font-weight:800!important;
  line-height:1.15!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions button.bosky-wishlist-add.is-saved{
  background:#e2f5ee!important;
  border-color:#b5dfcd!important;
  color:#166b50!important;
  -webkit-text-fill-color:#166b50!important;
}
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions button.bosky-wishlist-add.is-saved::after{content:'✓ Shortlisted'}

/* Shortlisted: existing +Enquiry / × / Save for Later functions remain.
   All cards use the same Collections media, title and footer rhythm. */
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-wish-actions.bk-cfn-actions {
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 40px!important;
  align-items:stretch!important;
  gap:5px!important;
  flex:none!important;
  margin:auto 6px 8px!important;
  padding:0!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
}
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-wish-actions.bk-cfn-actions button {
  min-height:40px!important;
  height:auto!important;
  max-height:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
  border-radius:10px!important;
  box-shadow:none!important;
  margin:0!important;
  font-size:clamp(9px,2.5vw,11px)!important;
  line-height:1.15!important;
  font-weight:800!important;
  padding:7px 2px!important;
  cursor:pointer!important;
}
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-saved-grid .bosky-wish-card .bk-cfn-actions .bk-cfn-move {
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  width:100%!important;
  background:#e5f5fb!important;
  border:1px solid #c7e3ec!important;
  color:#235773!important;
  -webkit-text-fill-color:#235773!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-saved-grid .bosky-wish-card .bk-cfn-actions .bk-cfn-delete {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:40px!important;
  width:40px!important;
  background:#f5f8f9!important;
  border:1px solid #dce5e8!important;
  color:#374952!important;
  -webkit-text-fill-color:#374952!important;
  font-size:22px!important;
}
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-enquiry-grid .bosky-wish-card .bk-cfn-actions{
  display:block!important;
  margin:auto 6px 8px!important;
}
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-enquiry-grid .bosky-wish-card .bk-cfn-actions .bk-cfn-unselect {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-height:40px!important;
  padding:7px 2px!important;
  background:#e2f5ee!important;
  border:1px solid #b5dfcd!important;
  color:#166b50!important;
  -webkit-text-fill-color:#166b50!important;
  white-space:normal!important;
}
/* No black status dots or KCI overlay disks on these discovery cards.
   Database classification and staff metadata are unchanged. */
html body .bosky-cat-wrap .bosky-cat-grid .bosky-kci-badge,
html body .bosky-cat-wrap .bosky-cat-grid .bosky-sex-dot,
html body .bosky-cat-wrap .bosky-cat-grid .bosky-card-status-dot,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-kci-badge,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-sex-dot,
html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-card-status-dot{display:none!important}

/* Collect the same three-column rhythm without overflowing small Android phones. */
@media (max-width:380px){
  html body .bosky-cat-wrap .bosky-cat-grid,
  html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-enquiry-grid,
  html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-saved-grid {gap:5px!important}
  html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-wish-actions.bk-cfn-actions {grid-template-columns:minmax(0,1fr) 32px!important;gap:3px!important;margin-left:4px!important;margin-right:4px!important}
  html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bk-cfn-saved-grid .bosky-wish-card .bk-cfn-actions .bk-cfn-delete{width:32px!important;min-width:32px!important}
  html body .bosky-wishlist-page.bk-cfn-compact-shortlist .bosky-wish-card .bosky-wish-actions.bk-cfn-actions button{font-size:9px!important}
}

/* Collections uses an almost full-bleed card surface on mobile. Match that
   viewport footprint only for card-bearing Catalogue/Shortlisted pages. */
@media (max-width:759px){
  html body .bosky-cat-wrap,
  html body .bosky-wishlist-page.bk-cfn-compact-shortlist{
    width:calc(100vw - 16px)!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;
  }
}

/* v0.1.18: the actual Catalogue action decorator loads after core styles. */
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions button.bosky-wishlist-add.is-saved,
html body .bosky-cat-wrap .bosky-cat-card .bosky-cat-actions button.bosky-wishlist-add.is-saved:disabled{
 background:#fff0db!important;border-color:#f5cd93!important;color:#975210!important;-webkit-text-fill-color:#975210!important;
}
