/* ---- SpectraLight chat (the Service Hub widget, loaded in base.njk; /assets/js/sl-chat.js routes every chat
   link to it). The widget reads these custom properties through its shadow root: the launcher is a bar docked
   to the bottom-right corner, where LiveChat's bubble sat — the premierrobotic.com treatment — and the open
   panel sits a little in from the edge. Off while the cart drawer, the support panel or the phone menu is
   open (they share the corner); lifted above the product page's sticky phone buy bar. On phones the bar keeps
   its natural width. ---- */
[data-shp-chat] {
  --shp-bottom: 0px;
  --shp-side: 10px;             /* a little air on the right… */
  --shp-pill-min-width: 265px;  /* …and a bar as wide as the old LiveChat one */
  --shp-panel-inset: 2px;       /* the open panel 12px in all told */
}

body.cart-locked [data-shp-chat],
body.sl-panel-open [data-shp-chat] {
  visibility: hidden;
}

/* the product page's sticky phone buy bar (sl.css .pdp-mobilebuy, 72px) */
body.has-mobilebuy [data-shp-chat] {
  --shp-bottom: 76px;
}

@media screen and (max-width: 47.99em) {
  [data-shp-chat] {
    --shp-pill-min-width: 0px;
  }
}

/* ---- "Need help?" card under the buy box on product pages (store/product-page/product.njk): the first
   expert's face, one line, an arrow — opens the SpectraLight Expert chat with the product named (the chat
   already reads the page). ---- */
.pp-help-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 1rem 0 0;
  padding: 9px 18px 9px 9px;
  border-radius: 999px;
  background: #f5f5f7;
  border: 1px solid #e3e3e8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #0a1018;
  font-size: 0.9375rem;
  line-height: 1.3;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 0.84, 0.24, 1), border-color 0.2s, box-shadow 0.2s;
}

.pp-help-cta:hover,
.pp-help-cta:focus-visible {
  transform: translateY(-1px);
  background: #ececf0;
  border-color: rgba(26, 115, 232, 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
  color: #0a1018;
  text-decoration: none;
}

.pp-help-face {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d8dbe0;
  background: #e9e9ee;
}

.pp-help-text strong {
  font-weight: 700;
}

.pp-help-arrow {
  margin-left: 4px;
  color: #1a73e8;
  font-weight: 700;
}

/* the support side-menu's chat card: the expert's face in the old icon's slot */
.sl-menu-face {
  width: 96px;
  height: 100%;
  min-height: 96px;
  object-fit: cover;
  object-position: 50% 28%;
  background: #e9e9ee;
}
