@charset "UTF-8";
/*
 * The chat launcher's desktop island control and mobile floating pill.
 *
 * SOURCE, NOT OUTPUT. This file is compiled to `assets/css/chat-launcher.css`
 * and that CSS is what the theme enqueues — the same relationship
 * `style.scss` has with `style.css` and `assets/scss/modules/*.scss` with
 * their own `.css` files:
 *
 *   sass --style=expanded assets/scss/chat-launcher.scss assets/css/chat-launcher.css
 *
 * Enqueued by `inc/functions/chat-mode.php` together with
 * `assets/js/chat-launcher-typing.js`, which is what writes the text.
 *
 * ── Why a floating pill at the bottom, and not a bubble in the header ─────
 *
 * The mobile header already carries the search button, the brand mark
 * (centred, so it owns the middle of the row) and the light/dark switch. A
 * message beside the launcher up there competes with all three and has almost
 * no room to grow — it could only ever be measured against the logo's edge.
 * Floating above the bottom nav, the launcher has the width of the viewport to
 * expand into, which is what lets the sentence size the pill instead of the
 * pill cropping the sentence.
 *
 * ── Only the theme's own tokens ───────────────────────────────────────────
 *
 * Background `--surface-navigation`, label `--text-on-brand`, glyph
 * `--theme-accent`, elevation `--shadow-soft`. That is the pair the desktop
 * island's launcher already uses (navy surface, lime glyph), and it flips with
 * dark mode on its own: `--surface-navigation` becomes `--brand-navy-ink`
 * there while `--theme-accent` stays lime. The desktop tooltip keeps its
 * established gradient here because this stylesheet must make the semantic
 * button usable before deferred media CSS arrives.
 *
 * ── The offset, derived rather than guessed ──────────────────────────────
 *
 * 77px is the mobile bottom nav's own arithmetic plus its hit box.
 * `assets/scss/components/_navigation.scss` gives `.nav-panel`
 * `padding: 22px 12px 5px` and `margin-top: -30px` around a 50px item: a 47px
 * container whose painted AND tappable box starts 30px above its top edge, so
 * a control that must receive a tap clears 47 + 30. The iPhone term mirrors
 * the nav's own `padding-bottom: calc(env(safe-area-inset-bottom) - 10px)`.
 *
 * Do NOT reach for `--wbs-mobile-nav-clearance` here: it is set at runtime by
 * the cart and checkout scripts, floored at 80px on purpose, and absent on the
 * routes that do not enqueue them.
 *
 * ── It grows with its text ───────────────────────────────────────────────
 *
 * No fixed width. The pill is anchored by its inline-end edge — the LEFT in
 * this RTL interface, which is where the reference design puts it — so the box
 * widens to the right as each line types, and the glyph that starts the label
 * stays where it is.
 */
/*
 * The desktop island launcher is a semantic button in iframe/maintenance mode.
 * Its essential reset and tooltip geometry live here with the launcher rather
 * than in lazy-media.css, which WP Rocket may defer. Without these rules the
 * browser border returns and the tooltip participates in the button's layout.
 */
#dynamic-iland .online-support-panel {
  position: relative;
}
#dynamic-iland .online-support-panel .online-support {
  position: relative;
  border: 0;
  appearance: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
#dynamic-iland .online-support-panel .modern-tooltip {
  position: absolute;
  top: -50px;
  left: 50%;
  padding: 12px 20px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: linear-gradient(135deg, #002864, #12c4e3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#dynamic-iland .online-support-panel .online-support:hover .modern-tooltip,
#dynamic-iland .online-support-panel .online-support:focus-visible .modern-tooltip,
#dynamic-iland .online-support-panel .online-support.show-tooltip .modern-tooltip {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  #dynamic-iland .online-support-panel .modern-tooltip {
    transition: none !important;
  }
}
.ts-chat-pill {
  /* How much room the bottom of the page already owns. 77px is the mobile
     bottom nav's own arithmetic plus its hit box (see above); a route that
     stacks something else down there raises it — the product page does. */
  --ts-chat-pill-clearance: 77px;
  position: fixed;
  inset-block-end: calc(var(--ts-chat-pill-clearance) + max(0px, env(safe-area-inset-bottom, 0px) - 10px));
  inset-inline-end: 12px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  max-inline-size: calc(100vw - 24px);
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-navigation);
  box-shadow: var(--shadow-soft);
  color: var(--text-on-brand);
  font: inherit;
  font-size: 13px;
  line-height: 1.7;
  text-align: start;
  cursor: pointer;
  text-decoration: none;
}
.ts-chat-pill i {
  color: var(--theme-accent);
  font-size: 20px;
  line-height: 1;
}
.ts-chat-pill__text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ts-chat-pill:hover {
  filter: brightness(1.12);
}
.ts-chat-pill:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

/*
 * The product page stacks its sticky purchase bar in the same band.
 *
 * `lib/Product/assets/scss/mobile/panels/_purchase-panel.scss` fixes
 * `.add-to-cart-box` with `bottom: $mobile-nav-bar-height` (47px) and
 * `padding: 15px 10px 35px` around a 44px button plus the price row — measured
 * 95px tall on the live page, so it reaches 142px up and the pill's own 77px
 * would land it ON the buy button. 47 + 95 + 13px of air = 155px. The bar
 * shifts up by the same iPhone safe-area term this rule does, so the two stay
 * in step on a device with a home indicator.
 */
body.single-product .ts-chat-pill {
  --ts-chat-pill-clearance: 155px;
}

/*# sourceMappingURL=chat-launcher.css.map */
