/* LX Consult 1.1.3 launcher + overlay — Luxetrip teal #0b6e7a, navy #14213d, gold #d4af37 */
.lxcs-root{--lxcs-c:#0b6e7a;--lxcs-c2:#095a64;--lxcs-n:#14213d;--lxcs-g:#d4af37;--lxcs-base-offset:20px;--lxcs-offset:calc(var(--lxcs-base-offset) + env(safe-area-inset-bottom,0px));font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;position:static}
/* Round Alice button, bottom-right; WhatsApp (.lx-wa-float) stays bottom-left. z-index below WA (9998). */
.lxcs-launcher{position:fixed;right:20px;bottom:var(--lxcs-offset);z-index:1100;appearance:none;border:0;width:56px;height:56px;border-radius:50%;background:var(--lxcs-c);color:#fff;box-shadow:0 6px 18px rgba(11,110,122,.32);cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;text-decoration:none;overflow:hidden}
.lxcs-launcher:hover,.lxcs-launcher:focus{background:var(--lxcs-c2);outline:2px solid #fff;outline-offset:2px;color:#fff}
.lxcs-launcher img{width:56px;height:56px;border-radius:50%;object-fit:cover;display:block;border:2px solid #fff}
.lxcs-launcher .lxcs-la-fallback{width:22px;height:22px;fill:#fff}
.lxcs-launcher[aria-expanded="true"]{box-shadow:0 0 0 3px rgba(11,110,122,.25),0 6px 18px rgba(11,110,122,.32)}

.lxcs-overlay{position:fixed;inset:0;z-index:1090;pointer-events:none}
.lxcs-overlay[hidden]{display:none !important}
.lxcs-overlay.is-open{pointer-events:auto}
.lxcs-overlay-backdrop{position:absolute;inset:0;background:rgba(20,33,61,.28);border:0;padding:0;margin:0;width:100%;height:100%;cursor:pointer}
/* 1.4.4: the backdrop is a full-viewport <button>. Astra (and similar themes) style
   bare `button` with --ast-global-color-0 (#046bd2 on syddaytour) and
   `button:hover` / `button:focus` with --ast-global-color-1 (#045cb4). Those
   hover/focus selectors (0,1,1) beat `.lxcs-overlay-backdrop` (0,1,0), so moving
   the mouse from the chat panel onto the page painted the whole viewport solid
   royal blue. Keep the dimmed navy in every state. Same reset on the resize
   handles, which are also <button>s. */
.lxcs-overlay-backdrop,
.lxcs-overlay-backdrop:hover,
.lxcs-overlay-backdrop:focus,
.lxcs-overlay-backdrop:focus-visible,
.lxcs-overlay-backdrop:active{
  background:rgba(20,33,61,.28);
  background-color:rgba(20,33,61,.28);
  color:transparent;
  border:0;
  border-color:transparent;
  box-shadow:none;
  outline:none;
  padding:0;
  border-radius:0;
  appearance:none;
  -webkit-appearance:none;
  user-select:none;
  -webkit-user-select:none;
}

.lxcs-overlay-panel{position:absolute;right:20px;bottom:calc(var(--lxcs-offset) + 64px);width:min(400px,calc(100vw - 24px));height:min(680px,calc(100dvh - 96px));max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px));background:#f7f5f0;border-radius:16px;box-shadow:0 16px 48px rgba(20,33,61,.22);overflow:hidden;display:flex;flex-direction:column;z-index:1}
.lxcs-overlay-panel .lxcs-app,
.lxcs-app--overlay{min-height:0 !important;height:100% !important;width:100%;max-width:100%}
body.lxcs-overlay-open{overflow:hidden}

/* 1.4.1: desktop panel at least 50vw and ~80vh (was ~400px, too narrow once the history sidebar was open). */
@media(min-width:801px){
  .lxcs-overlay-panel{width:max(50vw,min(900px,calc(100vw - 40px)));height:min(80vh,calc(100dvh - 96px));max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))}
}
@media(min-width:1024px){
  .lxcs-overlay-panel{width:max(50vw,min(900px,calc(100vw - 40px)));height:80vh;max-height:calc(100dvh - 24px - env(safe-area-inset-bottom,0px))}
}
@media(max-width:800px){
  .lxcs-launcher{width:48px;height:48px;right:12px}
  .lxcs-launcher img{width:48px;height:48px}
  /* Full-screen sheet on mobile — unchanged */
  .lxcs-overlay-panel{right:0;left:0;top:0;bottom:0;width:100%;height:100dvh;max-height:100dvh;border-radius:0;bottom:0}
  body.lxs.single-product .lxcs-root{--lxcs-offset:calc(var(--lxcs-base-offset) + 76px + env(safe-area-inset-bottom,0px))}
}

/* Injected 问 Alice if an older finder build has no button */
.lxfd-search .lxfd-ask-alice{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;background:#0b6e7a;color:#fff;text-decoration:none;font-weight:700;font-size:16px;padding:0 16px;border-radius:0 10px 10px 0;white-space:nowrap}
.lxfd-search .lxfd-ask-alice img{width:22px;height:22px;border-radius:50%;object-fit:cover;display:block;background:#fff}

/* 1.4.3: desktop overlay is resizable (anchored bottom-right; drag left / top / top-left). Hidden on mobile. */
@media(min-width:801px){
  .lxcs-resize{position:absolute;z-index:8;background:transparent;touch-action:none;padding:0;border:0;margin:0}
  .lxcs-resize,
  .lxcs-resize:hover,
  .lxcs-resize:focus,
  .lxcs-resize:focus-visible,
  .lxcs-resize:active{background:transparent;background-color:transparent;color:transparent;border:0;border-color:transparent;box-shadow:none;outline:none;padding:0;border-radius:0;appearance:none;-webkit-appearance:none}

  .lxcs-resize-w{left:0;top:16px;bottom:0;width:8px;cursor:ew-resize}
  .lxcs-resize-n{left:16px;right:0;top:0;height:8px;cursor:ns-resize}
  .lxcs-resize-nw{left:0;top:0;width:18px;height:18px;cursor:nw-resize}
  .lxcs-resize-nw::before{content:"";position:absolute;left:4px;top:4px;width:10px;height:10px;border-left:2px solid rgba(11,110,122,.6);border-top:2px solid rgba(11,110,122,.6);border-radius:2px 0 0 0;pointer-events:none}
  .lxcs-overlay-panel.is-resized{max-height:none}
  body.lxcs-resizing{cursor:inherit;user-select:none;-webkit-user-select:none}
  body.lxcs-resizing .lxcs-overlay-panel{transition:none}
}
@media(max-width:800px){
  .lxcs-resize{display:none !important}
}


/* 1.4.5: mobile overlay stays full-screen, no horizontal scroll; icon buttons stay theme-proof */
@media(max-width:800px){
  .lxcs-overlay-panel{left:0;right:0;top:0;bottom:0;width:100%;width:100vw;max-width:100%;height:100dvh;max-height:100dvh;border-radius:0;overflow:hidden}
  .lxcs-overlay-panel .lxcs-app,.lxcs-app--overlay{width:100%;max-width:100%;overflow-x:hidden}
}
@media(max-width:600px){
  .lxcs-overlay-panel{width:100%;max-width:100vw}
}
/* 1.4.16: 出团信息 bubble above the avatar */
.lxcs-dn-tip{position:fixed;right:20px;bottom:calc(var(--lxcs-offset,20px) + 66px);z-index:1101;display:flex;align-items:flex-start;gap:4px;max-width:min(280px,calc(100vw - 40px));background:#fff;border:1px solid #d9e6e8;border-radius:14px;box-shadow:0 8px 24px rgba(20,33,61,.18);padding:4px 4px 4px 0;animation:lxcsDnIn .3s ease-out}
.lxcs-dn-tip::after{content:"";position:absolute;right:22px;bottom:-7px;width:12px;height:12px;background:#fff;border-right:1px solid #d9e6e8;border-bottom:1px solid #d9e6e8;transform:rotate(45deg)}
.lxcs-dn-tip button{appearance:none;background:transparent;border:0;margin:0;cursor:pointer;color:#14213d;font:inherit}
.lxcs-dn-tip .lxcs-dn-open{flex:1;text-align:left;font-size:14px;line-height:1.45;padding:8px 4px 8px 12px}
.lxcs-dn-tip .lxcs-dn-open:hover,.lxcs-dn-tip .lxcs-dn-open:focus{background:transparent;color:#0b6e7a;text-decoration:underline}
.lxcs-dn-tip .lxcs-dn-x{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:#6b7a7e;border-radius:50%;padding:0}
.lxcs-dn-tip .lxcs-dn-x:hover,.lxcs-dn-tip .lxcs-dn-x:focus{background:#eef3f4;color:#14213d}
body.lxcs-overlay-open .lxcs-dn-tip{display:none}
@keyframes lxcsDnIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
