/* BLKMAT color-variation bar — Option C (Dima's pick, 2026-11-30):
   full-width bar BELOW the product section; the swatch rail sticks to the
   bottom of the viewport on mobile, above the PDP's fixed buy bar.
   Pilot scope: mats/chakra-heart + bottles/blkmat-logo only.
   The rail is a direct child of <main> (after the .cbar section) so its
   sticky range spans the rest of the page; on desktop it is static and
   reads as one block with the section above it. */
.cbar{border-top:1px solid var(--line,#26262a);background:#0e0e10;margin:22px 0 0;padding:18px 16px 4px}
.cbar-in{max-width:1180px;margin:0 auto}
.cbar-h{margin:0 0 4px;font-size:.95rem;letter-spacing:.02em;color:var(--ink,#e8e4dc)}
.cbar-h b{color:var(--gold,#c9a24b)}
.cbar-sub{margin:0 0 6px;font-size:.83rem;color:var(--mute,#9a968e)}
.cbar-panel{display:flex;gap:20px;align-items:flex-start;padding:12px 0 8px}
.cbar-panel[hidden]{display:none}
.cbar-panel img{width:190px;max-width:44vw;height:auto;border-radius:10px;border:1px solid var(--line,#26262a);background:#000;display:block}
.cbar-buy{flex:1;min-width:230px}
.cbar-note{margin:2px 0 8px;font-weight:700}
.cbar-note span{display:block;font-weight:400;font-size:.85rem;color:var(--mute,#9a968e);margin-top:2px}
.cbar-em{display:block;font-size:.85rem;color:var(--mute,#9a968e);margin:0 0 8px}
.cbar-em input{display:block;width:100%;max-width:340px;margin-top:5px;padding:11px 12px;font-size:16px;border-radius:10px;border:1px solid #333338;background:#0b0b0c;color:var(--ink,#e8e4dc)}
.cbar-go{display:inline-block;min-height:48px;padding:12px 22px;border:0;border-radius:10px;background:var(--gold,#c9a24b);color:#141310;font-weight:700;font-size:15px;cursor:pointer}
.cbar-go[disabled]{opacity:.55;cursor:wait}
.cbar-err{color:#e88;font-size:.88rem;margin:8px 0 0;min-height:1em}
.cbar-fine{font-size:.8rem;color:var(--mute,#9a968e);margin:10px 0 0;line-height:1.45}
.cbar-railwrap{background:#0e0e10;border-bottom:1px solid var(--line,#26262a);padding:2px 16px 14px}
.cbar-rail{max-width:1180px;margin:0 auto;display:flex;gap:10px;overflow-x:auto;overflow-y:hidden;padding:8px 2px 6px;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.cbar-sw{flex:none;scroll-snap-align:start;display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 6px 5px;border:1.5px solid transparent;border-radius:12px;background:transparent;color:var(--ink,#e8e4dc);cursor:pointer;font:inherit;min-width:64px}
.cbar-sw .dot{width:34px;height:34px;border-radius:50%;border:1px solid #55565c;display:block}
.cbar-sw .nm{font-size:.72rem;line-height:1.15;text-align:center;color:var(--mute,#9a968e)}
.cbar-sw[aria-checked="true"]{border-color:var(--gold,#c9a24b);background:#141416}
.cbar-sw[aria-checked="true"] .nm{color:var(--ink,#e8e4dc);font-weight:700}
.cbar-sw:focus-visible{outline:2px solid var(--gold,#c9a24b);outline-offset:2px}
@media(max-width:979px){
  .cbar-panel{flex-direction:column}
  .cbar-panel img{width:170px}
  /* sticky rail: pinned just above the PDP fixed buy bar (--buybar-h is
     defined by both pilot pages' own PDP CSS) while <main> scrolls */
  .cbar-railwrap{position:sticky;bottom:calc(var(--buybar-h,69px) + env(safe-area-inset-bottom));z-index:19;background:rgba(11,11,12,.96);backdrop-filter:blur(8px);border-top:1px solid var(--line,#26262a);padding-top:0;padding-bottom:8px}
  /* lift the support chat fab + panel above buy bar + color rail
     (rail measures 90px tall at 390px wide — verified live 2026-11-30) */
  body:has(.cbar-railwrap) #pcb-fab{bottom:calc(var(--buybar-h,69px) + 92px + env(safe-area-inset-bottom) + 10px)}
  body:has(.cbar-railwrap) #pcb-panel{bottom:calc(var(--buybar-h,69px) + 92px + env(safe-area-inset-bottom) + 80px)}
}
