/* Best Puppies — decluttered puppy detail popup.
 *
 * Loaded after each page's own <style> blocks, so these rules win over the
 * older popup styles at equal specificity. Scoped to #detailOverlay so nothing
 * outside the popup changes.
 *
 * sw.js serves this file network-first. The pages load it as
 * /css/detail-popup.css?v=<n>: when this file changes, bump that number in
 * every page as well as CACHE_VERSION in sw.js.
 */

/* ── "See all <Breed> puppies →" ── */
#detailOverlay .detail-breed-link {
  display: inline-block;
  align-self: flex-start;
  margin: 2px 0 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  color: #9a6b2f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#detailOverlay .detail-breed-link:hover { color: #7d551f; }

/* ── Info list: label | value rows with thin dividers, no boxes ── */
#detailOverlay .detail-info-grid {
  display: block;
  margin: 12px 0 18px;
  border-top: 1px solid rgba(58,32,16,0.12);
}
#detailOverlay .detail-info-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 9px 2px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(58,32,16,0.12);
  border-radius: 0;
  box-shadow: none;
}
#detailOverlay .detail-info-cell > label {
  flex: 0 0 auto;
  margin: 0;
}
#detailOverlay .detail-info-cell > span {
  flex: 1 1 auto;
  text-align: right;
}
/* A note under a value (the Tuesday ship window) takes the full row. */
#detailOverlay .detail-info-cell > :not(label):not(span) {
  flex: 1 0 100%;
}

/* ── Price card ── */
#detailOverlay .detail-price .dp-save-pill {
  display: inline-block;
  margin: 8px auto 0;
  padding: 5px 14px;
  border-radius: 999px;
  background: #E8F5E9;
  border: 1px solid rgba(46,125,50,0.35);
  color: #1B5E20;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}
#detailOverlay .detail-price .dp-card-trust {
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #6b5642;
}
#detailOverlay .detail-price a.dp-card-financing {
  display: block;
  padding: 11px 16px;
  font-size: 0.92rem;
  color: #3d1f00;
  text-decoration: none;
}
#detailOverlay .detail-price a.dp-card-financing:hover,
#detailOverlay .detail-price a.dp-card-financing:focus-visible {
  background: #FFF8E1;
  text-decoration: underline;
}

/* ── Reserve This Puppy | Check Price For Me ── */
#detailOverlay .dp-minor-pair {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}
#detailOverlay .dp-minor-pair[hidden] { display: none; }
#detailOverlay .dp-minor-pair .dp-minor-btn,
#detailOverlay #detailReserveCheckRow #priceCheckToggleBtn {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  max-width: none;
  margin: 0;
  padding: 10px 8px;
  background: #fff;
  color: #3B1F0A;
  border: 1.5px solid #C9893A;
  border-radius: 12px;
  box-shadow: none;
  animation: none;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}
#detailOverlay .dp-minor-pair .dp-minor-btn:hover,
#detailOverlay #detailReserveCheckRow #priceCheckToggleBtn:hover { background: #FFF8E1; transform: none; }
#detailOverlay #detailReserveCheckRow #priceCheckToggleBtn .pricecheck-label { white-space: normal; color: inherit; }
/* Small button: the coin and the caption stay with the full panel copy. */
#detailOverlay #detailReserveCheckRow #priceCheckToggleBtn .pricecheck-coin,
#detailOverlay #detailReserveCheckRow #priceCheckToggleBtn .pricecheck-sub { display: none; }

/* ── 5 Year FREE Vet Package card: title, full-width flyer, call button ── */
#detailOverlay .bp-vet-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin: 14px 0 0;
  padding: 16px;
  background: #3B1F0A;
  border-radius: 12px;
  box-sizing: border-box;
  text-align: center;
}
#detailOverlay .bp-vet-flyer {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border-radius: 10px;
}
#detailOverlay .bp-vet-title {
  color: #B8860B;
  font-family: 'Nunito', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}
#detailOverlay .bp-vet-call,
#detailOverlay .bp-vet-secondary {
  display: block;
  padding: 14px;
  border-radius: 10px;
  background: #B8860B;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
#detailOverlay .bp-vet-secondary {
  background: #3A2010;
  border: 1px solid #B8860B;
}
#detailOverlay .bp-vet-note {
  margin: 0;
  color: #f1e4cf;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: left;
}
