/* Leslie's quick-answer chat (assets/chat.js), 2026-11-10. Scripted answers from the site's own pages; no network,
   no cookies, no storage. Navy + orange, Libre Franklin (site tokens). Sits above the phone call bar, hides while the
   cookie banner or the phone menu is open. */
.lc-root{--lc-bottom:16px; font-family:var(--font-body,'Libre Franklin',system-ui,sans-serif);}
.lc-root *, .lc-root *::before, .lc-root *::after{box-sizing:border-box;}

.lc-launch{position:fixed; right:16px; bottom:calc(var(--lc-bottom) + env(safe-area-inset-bottom,0px)); z-index:70;
  display:inline-flex; align-items:center; gap:10px; min-height:52px; padding:0 18px 0 14px; border-radius:999px;
  background:var(--navy,#0F1E3D); color:#fff; border:2px solid var(--orange,#FF7A00); font-weight:700; font-size:1rem; line-height:1; font-family:inherit; box-shadow:0 12px 26px -12px rgba(15,30,61,.6); cursor:pointer;}
.lc-launch:hover{background:var(--navy-2,#162a52);}
.lc-launch svg{width:22px; height:22px; flex:none; color:var(--orange,#FF7A00);}
.lc-launch[aria-expanded="true"]{background:var(--orange,#FF7A00); color:var(--navy,#0F1E3D);}
.lc-launch[aria-expanded="true"] svg{color:var(--navy,#0F1E3D);}
.lc-launch:focus-visible, .lc-panel :focus-visible{outline:3px solid var(--orange,#FF7A00); outline-offset:2px;}
.lc-root.lc-off .lc-launch, html.hdr-open .lc-launch{display:none;}

.lc-panel{position:fixed; right:12px; bottom:calc(var(--lc-bottom) + 64px + env(safe-area-inset-bottom,0px)); z-index:71;
  width:min(380px, calc(100vw - 24px)); max-height:calc(100vh - var(--lc-bottom) - 64px - 84px);
  max-height:calc(100dvh - var(--lc-bottom) - 64px - 84px); display:flex; flex-direction:column; overflow:hidden;
  background:var(--cream,#FFF8EF); color:var(--ink,#0F1E3D); border:1px solid var(--line,#dde3f0); border-radius:16px;
  box-shadow:0 26px 50px -22px rgba(15,30,61,.55); font-size:.95rem; line-height:1.45;}
.lc-panel[hidden]{display:none;}
@media (prefers-reduced-motion: no-preference){
  .lc-panel{animation:lc-in .15s ease-out;}
  @keyframes lc-in{from{opacity:0; transform:translateY(8px);} to{opacity:1; transform:none;}}
}

.lc-top{display:flex; align-items:center; gap:10px; padding:12px 12px 12px 16px; background:var(--navy,#0F1E3D); color:#fff;}
.lc-top-t{flex:1; min-width:0;}
.lc-title{display:block; margin:0; font-size:1rem; font-weight:800; color:#fff;}
.lc-sub{display:block; font-size:.78rem; color:#c9d3e6;}
.lc-x{flex:none; width:44px; height:44px; border:0; border-radius:10px; background:transparent; color:#fff; font-size:1.6rem;
  line-height:1; cursor:pointer;}
.lc-x:hover{background:rgba(255,255,255,.12);}

/* EN [flag] ES: switches the chat's language only (the page header has its own switch) */
.lc-sw{flex:none; display:inline-flex; align-items:center; gap:6px; min-height:44px; padding:0 4px; border:0; border-radius:999px;
  background:transparent; color:#fff; font-weight:700; font-size:.78rem; line-height:1; font-family:inherit; letter-spacing:.06em; cursor:pointer;}
.lc-sw-l{opacity:.72;}
.lc-sw[data-on="en"] .lc-sw-en, .lc-sw[data-on="es"] .lc-sw-es{opacity:1;}
.lc-sw-t{position:relative; display:inline-block; width:52px; height:26px; border-radius:999px; background:#fff;}
.lc-sw-f{position:absolute; top:5px; width:24px; height:16px; border-radius:2px; overflow:hidden; box-shadow:0 0 0 1px rgba(15,30,61,.3);}
.lc-sw-f svg{display:block; width:100%; height:100%;}
.lc-sw-us{right:4px;} .lc-sw-mx{left:4px;}
.lc-sw[data-on="en"] .lc-sw-mx, .lc-sw[data-on="es"] .lc-sw-us{display:none;}
.lc-sw-k{position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:var(--navy,#0F1E3D);}
.lc-sw[data-on="es"] .lc-sw-k{left:29px;}

.lc-body{flex:1; min-height:120px; overflow-y:auto; padding:14px; overscroll-behavior:contain;}
.lc-log{display:flex; flex-direction:column; gap:10px;}
.lc-msg{max-width:92%; padding:10px 12px; border-radius:12px; background:#fff; border:1px solid var(--line,#dde3f0);
  color:var(--ink,#0F1E3D); overflow-wrap:anywhere;}
.lc-msg.lc-me{align-self:flex-end; background:var(--navy,#0F1E3D); border-color:var(--navy,#0F1E3D); color:#fff;}
.lc-msg a{color:var(--navy,#0F1E3D); font-weight:700; text-decoration:underline; text-underline-offset:2px;}
.lc-quick{display:flex; flex-wrap:wrap; gap:6px; margin:12px 0 4px;}
.lc-quick button{min-height:40px; padding:6px 12px; border-radius:999px; border:1.5px solid var(--navy,#0F1E3D); background:#fff;
  color:var(--navy,#0F1E3D); font-weight:600; font-size:.85rem; line-height:1.2; font-family:inherit; cursor:pointer;}
.lc-quick button:hover{border-color:var(--orange-deep,#E66D00); background:#FFF1E2;}
.lc-person{margin-top:12px; padding-top:10px; border-top:1px solid var(--line,#dde3f0); font-size:.88rem; color:var(--ink-soft,#44527a);}
.lc-person a{display:inline-block; padding:6px 0; color:var(--navy,#0F1E3D); font-weight:800;}

.lc-form{display:flex; gap:8px; padding:10px 12px; border-top:1px solid var(--line,#dde3f0); background:#fff;}
.lc-form input{flex:1; min-width:0; min-height:44px; padding:8px 12px; border:1.5px solid #b9c3da; border-radius:10px;
  font-weight:400; font-size:1rem; line-height:1.2; font-family:inherit; color:var(--ink,#0F1E3D); background:#fff;}
.lc-form button{flex:none; min-width:48px; min-height:44px; border:0; border-radius:10px; background:var(--orange,#FF7A00);
  color:var(--navy,#0F1E3D); font-weight:800; font-size:1.1rem; line-height:1; font-family:inherit; cursor:pointer;}
.lc-form button:hover{background:var(--orange-soft,#FF9F43);}
.lc-note{margin:0; padding:6px 12px 10px; background:#fff; font-size:.75rem; color:var(--ink-soft,#44527a);}
.lc-vh{position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap;}
html.hdr-open .lc-panel{display:none;}
