/* ==========================================================================
   Cosmo Popular Pools — promo band, badges, favourites chip, slide-in nudge
   Loaded by mu-plugins/cosmo-popular-pools.php after design-system.css.
   2026-09-24 · Lightning Digital. Delete with the mu-plugin to roll back.
   ========================================================================== */

/* ---- badges on the Instant Estimate cards ---- */
.bs-fp-tags { z-index: 3; flex-wrap: wrap; }
.bs-fp-tag { display: inline-flex; align-items: center; gap: 5px; line-height: 1; letter-spacing: .2px; }
.bs-fp-tag--fav i { color: #FFD166; font-style: normal; font-size: 12px; }
.bs-fp-tag--stock { background: rgba(255,255,255,.92); color: #1B7A4A; border: 1px solid rgba(27,122,74,.18); }
.bs-fp-tag--stock i { width: 7px; height: 7px; border-radius: 50%; background: #2BB673; box-shadow: 0 0 0 3px rgba(43,182,115,.18); }
.bs-fp-card--fav, .brxe-block.bs-fp-card--fav { border-color: var(--cosmo-aqua) !important; box-shadow: 0 0 0 3px rgba(19,192,210,.16), var(--cosmo-shadow-sm); }
.bs-fp-card--fav:hover { box-shadow: 0 0 0 3px rgba(19,192,210,.22), 0 18px 40px rgba(10,40,75,.14); }
.bs-chip[data-feat="fav"].on { background: var(--cosmo-navy); color: #FFD166; border-color: var(--cosmo-navy); }

/* ---- "Our most popular pools" band ---- */
.bs-pop { background: var(--cosmo-navy-deep, #0A2240); color: #fff; padding: 64px 0 56px; margin-top: 40px; position: relative; overflow: hidden; width: 100%; }
.bs-pop--home { margin-top: 0; }
.bs-pop:before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 400px at 15% 0%, rgba(19,192,210,.22), transparent 60%), radial-gradient(700px 400px at 90% 100%, rgba(63,214,230,.12), transparent 60%); }
.bs-pop__inner { position: relative; max-width: var(--cosmo-maxw, 1200px); margin: 0 auto; padding: 0 var(--cosmo-gutter, 32px); }
.bs-pop__head { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.bs-pop__head .bs-eyebrow { color: var(--cosmo-aqua-pale); }
.bs-pop__h2 { font-family: var(--cosmo-font-head); font-weight: 800; font-size: 40px; line-height: 1.1; letter-spacing: -.5px; margin: 10px 0 14px; color: #fff; text-wrap: balance; }
.bs-pop__lead { font-size: 17px; line-height: 1.6; color: var(--cosmo-muted-dark, #9FB3C8); margin: 0; }
.bs-pop__lead b { color: #fff; font-weight: 700; }
.bs-pop__proof { margin-top: 16px; font-family: var(--cosmo-font-head); font-size: 13.5px; color: var(--cosmo-muted-dark, #9FB3C8); }
.bs-pop__proof b { color: #fff; }
.bs-pop__proof i { margin: 0 8px; color: var(--cosmo-aqua); font-style: normal; }
.bs-pop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bs-pop-card { background: #fff; border-radius: var(--cosmo-radius, 18px); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 18px 40px rgba(0,0,0,.25); transition: transform .18s, box-shadow .18s; }
.bs-pop-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(0,0,0,.32); }
.bs-pop-media { position: relative; height: 190px; background: linear-gradient(160deg, #F7FBFD, #E8F2F7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bs-pop-media > img { max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(10,40,75,.18)); }
.bs-pop-media .bs-fp-tag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.bs-pop-photo { position: absolute; right: 12px; bottom: 12px; width: 74px; height: 56px; border-radius: 10px; overflow: hidden; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(10,40,75,.25); display: block; }
.bs-pop-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bs-pop-photo span { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(12,43,78,.85); color: #fff; font: 700 9.5px/1 var(--cosmo-font-head); padding: 4px 0; text-align: center; letter-spacing: .2px; }
.bs-pop-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; color: var(--cosmo-ink); flex: 1; }
.bs-pop-name { font-family: var(--cosmo-font-head); font-weight: 800; font-size: 20px; line-height: 1.2; color: var(--cosmo-navy); margin: 0; }
.bs-pop-dims { font-size: 13.5px; color: var(--cosmo-muted-text); }
.bs-pop-btns { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 10px; }
.bs-pop-cta { flex: 1; text-align: center; background: linear-gradient(135deg, var(--cosmo-aqua), var(--cosmo-aqua-deep)); color: var(--cosmo-cta-ink, #062033) !important; font-family: var(--cosmo-font-head); font-weight: 800; font-size: 14px; padding: 12px 14px; border-radius: var(--cosmo-radius-pill, 999px); text-decoration: none; box-shadow: 0 8px 18px rgba(17,160,180,.28); }
.bs-pop-cta:hover { filter: brightness(1.05); }
.bs-pop-more { font-family: var(--cosmo-font-head); font-weight: 700; font-size: 13.5px; color: var(--cosmo-aqua-text); border-bottom: 2px solid var(--cosmo-aqua); text-decoration: none; white-space: nowrap; }
.bs-pop__foot { margin-top: 30px; text-align: center; font-size: 15px; color: var(--cosmo-muted-dark, #9FB3C8); }
.bs-pop__foot a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--cosmo-aqua); }
.bs-pop-allhead { max-width: var(--cosmo-maxw, 1200px); margin: 64px auto -16px; padding: 0 var(--cosmo-gutter, 32px); text-align: center; }
.bs-pop-allhead h2 { font-family: var(--cosmo-font-head); font-weight: 800; font-size: 32px; color: var(--cosmo-navy); margin: 8px 0 0; letter-spacing: -.4px; }
@media (max-width: 1000px) { .bs-pop__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .bs-pop { padding: 48px 0 40px; margin-top: 28px; }
  .bs-pop--home { margin-top: 0; }
  .bs-pop__h2 { font-size: 30px; }
  .bs-pop__lead { font-size: 15.5px; }
  .bs-pop__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--cosmo-gutter, 32px)); padding: 4px var(--cosmo-gutter, 32px) 14px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .bs-pop__grid::-webkit-scrollbar { display: none; }
  .bs-pop-card { flex: 0 0 84%; scroll-snap-align: start; }
  .bs-pop-cta { font-size: 13.5px; padding: 12px 10px; white-space: nowrap; }
  .bs-pop-btns { gap: 12px; }
  .bs-pop-allhead h2 { font-size: 26px; }
}

/* ---- slide-in nudge ---- */
.bs-nudge { position: fixed; right: 18px; bottom: 18px; z-index: 9990; width: 340px; max-width: calc(100vw - 36px); background: #fff; border-radius: 20px; box-shadow: 0 30px 70px rgba(10,40,75,.32); overflow: hidden; font-family: var(--cosmo-font-body); transform: translateY(30px); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.bs-nudge.is-on { transform: none; opacity: 1; pointer-events: auto; }
.bs-nudge__x { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--cosmo-navy); font-size: 18px; line-height: 30px; text-align: center; cursor: pointer; z-index: 2; padding: 0; }
.bs-nudge__stack { height: 118px; position: relative; background: var(--cosmo-navy); }
.bs-nudge__stack img { position: absolute; width: 150px; height: 100px; object-fit: cover; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.bs-nudge__stack img:nth-child(1) { left: 18px; top: 14px; transform: rotate(-6deg); }
.bs-nudge__stack img:nth-child(2) { left: 96px; top: 22px; transform: rotate(3deg); z-index: 1; }
.bs-nudge__stack img:nth-child(3) { left: 176px; top: 10px; transform: rotate(-2deg); }
.bs-nudge__body { padding: 16px 18px 18px; }
.bs-nudge__eyebrow { font: 700 11px/1 var(--cosmo-font-head); letter-spacing: 1.6px; text-transform: uppercase; color: var(--cosmo-aqua-text); }
.bs-nudge__h { font: 800 19px/1.2 var(--cosmo-font-head); color: var(--cosmo-navy); margin: 8px 0 6px; }
.bs-nudge__p { font-size: 14px; line-height: 1.5; color: var(--cosmo-muted-text); margin: 0 0 14px; }
.bs-nudge__btn { display: block; text-align: center; background: linear-gradient(135deg, var(--cosmo-aqua), var(--cosmo-aqua-deep)); color: var(--cosmo-cta-ink, #062033) !important; font: 800 14.5px/1 var(--cosmo-font-head); padding: 14px; border-radius: var(--cosmo-radius-pill, 999px); text-decoration: none; box-shadow: 0 8px 18px rgba(17,160,180,.28); }
.bs-nudge__skip { display: block; text-align: center; margin-top: 10px; font: 700 12.5px/1 var(--cosmo-font-head); color: var(--cosmo-muted-text); background: none; border: 0; cursor: pointer; width: 100%; padding: 4px 0; }
@media (max-width: 620px) { .bs-nudge { right: 12px; bottom: 12px; left: 12px; width: auto; max-width: none; } .bs-nudge__stack img { width: 34%; height: 96px; } .bs-nudge__stack img:nth-child(2) { left: 33%; } .bs-nudge__stack img:nth-child(3) { left: auto; right: 14px; } }
