/* rfm-concierge v0.6.0 */
.llc-root *,.llc-root *::before,.llc-root *::after{box-sizing:border-box}
.llc-root{
  --llc-ink:#2C353B;--llc-ink-2:#39434A;--llc-ink-3:#7E858A;
  --llc-gold:#A56A3C;--llc-gold-dk:#7C4A2C;--llc-tan:#D4B083;
  --llc-cream:#FAF8F4;--llc-card:#fff;--llc-line:#E7E2D9;
  --llc-head-font:'Barlow Condensed',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  --llc-body-font:'Barlow',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  position:fixed;bottom:20px;z-index:2147483000;
  font-family:var(--llc-body-font);
}
/* Side placement. Default is left (clear of the bottom-right scroll-to-top
   arrow); right is opt-in via the admin setting / ll_chat_side filter. */
.llc-root.llc-left{left:20px;right:auto}
.llc-root.llc-right{right:20px;left:auto}
/* Belt-and-suspenders: if JS hasn't added a side class yet, default left. */
.llc-root:not(.llc-right){left:20px;right:auto}
.llc-launcher{
  width:60px;height:60px;border-radius:50%;border:3px solid var(--llc-tan);cursor:pointer;
  background:var(--llc-ink);color:var(--llc-cream);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 20px rgba(44,53,59,.32);
  transition:transform .18s ease,background .18s ease;
}
.llc-launcher:hover{background:var(--llc-gold);transform:translateY(-2px)}
.llc-launcher:focus-visible{outline:3px solid var(--llc-tan);outline-offset:3px}
.llc-open .llc-launcher{background:var(--llc-gold)}

/* ---- nudge bubble (speech bubble next to the launcher) ---- */
.llc-nudge{
  position:absolute;bottom:74px;
  display:flex;align-items:center;gap:6px;
  max-width:min(240px,calc(100vw - 40px));
  padding:10px 12px;
  background:var(--llc-card);color:var(--llc-ink-2);
  border:1px solid var(--llc-line);border-radius:14px;
  box-shadow:0 8px 24px rgba(44,53,59,.22);
  opacity:0;transform:translateY(8px) scale(.96);
  transition:opacity .26s ease,transform .26s ease;
  will-change:opacity,transform;pointer-events:none;
}
/* Anchor the bubble + point its tail from the correct side. */
.llc-left  .llc-nudge{left:0;right:auto;border-bottom-left-radius:4px}
.llc-right .llc-nudge{right:0;left:auto;border-bottom-right-radius:4px}
.llc-nudge.llc-nudge-in{opacity:1;transform:none;pointer-events:auto}
.llc-nudge::after{
  content:"";position:absolute;bottom:-7px;width:14px;height:14px;
  background:var(--llc-card);border-right:1px solid var(--llc-line);border-bottom:1px solid var(--llc-line);
  transform:rotate(45deg);
}
.llc-left  .llc-nudge::after{left:18px;right:auto}
.llc-right .llc-nudge::after{right:18px;left:auto}
.llc-nudge-open{
  flex:1;min-width:0;background:transparent;border:0;cursor:pointer;text-align:left;
  font-family:var(--llc-body-font);font-size:14px;line-height:1.35;color:var(--llc-ink-2);
  padding:0;
}
.llc-nudge-open:hover{color:var(--llc-gold-dk)}
.llc-nudge-open:focus-visible{outline:2px solid var(--llc-tan);outline-offset:2px;border-radius:4px}
.llc-nudge-x{
  flex:0 0 auto;width:24px;height:24px;border:0;border-radius:50%;cursor:pointer;
  background:var(--llc-cream);color:var(--llc-ink-3);
  display:flex;align-items:center;justify-content:center;line-height:0;
  transition:background .15s ease,color .15s ease;
}
.llc-nudge-x:hover{background:var(--llc-tan);color:var(--llc-ink)}
.llc-nudge-x:focus-visible{outline:2px solid var(--llc-gold);outline-offset:2px}

.llc-panel{
  /* CLOSED = fully hidden. display:none removes the box entirely (no hover/
     click interception, no header overlap) and pointer-events:none is a
     belt-and-suspenders guard. The panel only exists when .llc-open is set. */
  display:none;pointer-events:none;
  /* Anchor to the BOTTOM, rising upward above the 60px launcher (which sits at
     the root's bottom:20px). top:auto so it can never anchor top-left. */
  position:absolute;bottom:92px;top:auto;
  width:340px;max-width:calc(100vw - 32px);
  height:auto;max-height:min(470px,calc(100vh - 120px));
  background:var(--llc-cream);border:3px solid var(--llc-tan);border-radius:14px;
  box-shadow:0 14px 44px rgba(44,53,59,.28);
  flex-direction:column;overflow:hidden;
  transform:translateY(8px) scale(.98);opacity:0;
  transition:transform .2s ease,opacity .2s ease;
}
.llc-left  .llc-panel{left:0;right:auto}
.llc-right .llc-panel{right:0;left:auto}
/* OPEN = laid out (display:flex restores the column), visible, interactive.
   This is the single rule that overrides the closed display:none, gated on the
   open-state class JS toggles, so closed is hidden on BOTH sides. */
.llc-open .llc-panel{display:flex;pointer-events:auto;transform:none;opacity:1}

.llc-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 16px;background:var(--llc-ink);color:var(--llc-cream);
}
.llc-title{
  font-family:var(--llc-head-font);font-weight:600;font-size:18px;
  letter-spacing:.04em;text-transform:uppercase;
}
.llc-close{
  background:transparent;border:0;color:var(--llc-cream);cursor:pointer;
  padding:6px;border-radius:6px;display:flex;line-height:0;
}
.llc-close:hover{color:var(--llc-tan)}
.llc-close:focus-visible{outline:2px solid var(--llc-tan);outline-offset:2px}

.llc-log{
  flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px;
  display:flex;flex-direction:column;gap:10px;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
}
/* Header pinned top, input pinned bottom: neither shrinks, only the log scrolls. */
.llc-head{flex:0 0 auto}
.llc-chips{flex:0 0 auto}
.llc-form{flex:0 0 auto}
.llc-msg{display:flex}
.llc-bot{justify-content:flex-start}
.llc-user{justify-content:flex-end}
.llc-bubble{
  max-width:84%;padding:10px 13px;border-radius:14px;font-size:14.5px;line-height:1.45;
  font-family:var(--llc-body-font);
}
.llc-bot .llc-bubble{background:var(--llc-card);color:var(--llc-ink-2);border:1px solid var(--llc-line);border-bottom-left-radius:4px}
.llc-user .llc-bubble{background:var(--llc-gold);color:#fff;border-bottom-right-radius:4px}

.llc-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.llc-chip{
  border:1px solid var(--llc-tan);background:var(--llc-card);color:var(--llc-gold-dk);
  border-radius:18px;padding:7px 13px;font-size:13px;cursor:pointer;
  font-family:var(--llc-body-font);transition:background .15s ease,color .15s ease;
}
.llc-chip:hover{background:var(--llc-tan);color:var(--llc-ink)}
.llc-chip:focus-visible{outline:2px solid var(--llc-gold);outline-offset:2px}

.llc-form{display:flex;gap:8px;padding:12px;border-top:1px solid var(--llc-line);background:var(--llc-card)}
.llc-input{
  flex:1;min-width:0;border:1px solid var(--llc-line);border-radius:10px;
  padding:11px 12px;font-size:14.5px;font-family:var(--llc-body-font);color:var(--llc-ink);background:#fff;
}
.llc-input:focus{outline:2px solid var(--llc-tan);outline-offset:0;border-color:var(--llc-tan)}
.llc-hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
.llc-send{
  width:44px;flex:0 0 44px;border:0;border-radius:10px;cursor:pointer;
  background:var(--llc-ink);color:var(--llc-cream);display:flex;align-items:center;justify-content:center;
  transition:background .15s ease;
}
.llc-send:hover{background:var(--llc-gold)}

/* ── v0.2.0: hide the WHOLE widget while the mobile nav overlay is open, so the
   launcher never floats on top of the open menu. :has() covers modern Android
   Chrome / iOS Safari; the JS fallback toggles .llc-hidden for older engines.
   Either path resolves to display:none on the root. ── */
.llc-hidden{display:none !important}
body:has(.wp-block-navigation__responsive-container.is-menu-open) .llc-root{display:none !important}


/* ── v0.1.7: MOBILE bottom sheet. The transcript (.llc-log) already momentum-
   scrolls (flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
   overscroll-behavior:contain); this makes the panel FIT a phone: a full-width
   sheet fixed to the viewport bottom, 16px input (no iOS zoom), clear of the
   theme's sticky bottom CTA bar. Desktop (v0.1.7) untouched. ── */
/* Lift the launcher + nudge above the sticky Call/Book bar at the SAME
   breakpoint the theme lifts its scroll-to-top arrow (<=980px), so the chat
   bubble and the arrow sit at the same height and the Call button is never
   covered. */
@media (max-width:980px){
  .llc-root{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  /* match the scroll-to-top arrow's 48x48 so the two corners feel balanced */
  .llc-launcher{width:48px;height:48px}
  .llc-launcher svg{width:22px;height:22px}
}
@media (max-width:600px){
  .llc-panel{
    position:fixed !important;left:0 !important;right:0 !important;
    bottom:0 !important;top:auto !important;
    width:100vw !important;max-width:100vw !important;
    height:88vh;max-height:88vh;
    border-radius:16px 16px 0 0 !important;
  }
  .llc-left .llc-panel,.llc-right .llc-panel{left:0 !important;right:0 !important}
  .llc-input{font-size:16px}
  .llc-form{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
}
@supports (height:100svh){
  @media (max-width:600px){ .llc-panel{height:88svh;max-height:88svh} }
}

/* v0.3.0 typing indicator (realistic fast-typer pacing) */
.llc-typing .llc-bubble{display:inline-flex;gap:5px;align-items:center;padding:13px 14px}
.llc-dot{width:7px;height:7px;border-radius:50%;background:var(--llc-ink-3);opacity:.45;animation:llc-blink 1s infinite ease-in-out}
.llc-dot:nth-child(2){animation-delay:.15s}
.llc-dot:nth-child(3){animation-delay:.3s}
@keyframes llc-blink{0%,80%,100%{transform:translateY(0);opacity:.4}40%{transform:translateY(-4px);opacity:.9}}
@media (prefers-reduced-motion:reduce){.llc-dot{animation:none}}

/* v0.3.1 mobile polish: hide the floating launcher + nudge while the panel is
   open on a phone (it was overlapping the chips), and let the panel fill the
   dynamic viewport so the keyboard sits below it. JS sizes it to the visual
   viewport when available; this is the fallback. */
@media (max-width:600px){
  .llc-open .llc-launcher,.llc-open .llc-nudge{display:none !important}
  .llc-panel{height:100dvh;max-height:100dvh}
}
