
/* CouncilHQ Chat isolation layer v1.0.4 */
.cqhq-chat,
.cqhq-chat *{
  box-sizing:border-box;
}
.cqhq-chat{
  line-height:1.4!important;
  text-align:left!important;
}
.cqhq-chat .cqhq-chat__panel,
.cqhq-chat .cqhq-chat__header,
.cqhq-chat .cqhq-chat__body{
  position:static;
  inset:auto;
  width:auto;
  max-width:none;
  min-width:0;
  margin:0;
  transform:none;
}
.cqhq-chat .cqhq-chat__panel{
  position:absolute!important;
}
.cqhq-chat .cqhq-chat__header{
  position:relative!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  bottom:auto!important;
  z-index:1!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
.cqhq-chat p,
.cqhq-chat h1,
.cqhq-chat h2,
.cqhq-chat h3,
.cqhq-chat h4,
.cqhq-chat h5,
.cqhq-chat h6{
  margin-top:0;
}
.cqhq-chat button,
.cqhq-chat input,
.cqhq-chat textarea,
.cqhq-chat summary{
  font-family:inherit!important;
  letter-spacing:normal!important;
  text-transform:none!important;
}
.cqhq-chat .cqhq-chat__body{
  width:100%!important;
}

.cqhq-chat{--ink:#10212A;--slate:#29404B;--muted:#526770;--green:#075E59;--teal:#0C7A72;--mint:#DFF3EE;--paper:#F6F7F2;--border:#D9E0DF;position:fixed;right:22px;bottom:22px;z-index:9997;font-family:"Instrument Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.cqhq-chat *{box-sizing:border-box}.cqhq-chat__launcher{display:inline-flex;align-items:center;gap:9px;border:0;border-radius:999px;background:var(--ink);color:#fff;min-height:48px;padding:0 18px;font:inherit;font-size:14px;font-weight:750;box-shadow:0 12px 30px rgba(16,33,42,.22);cursor:pointer}.cqhq-chat__launcher:hover{background:#17313A}.cqhq-chat__launcher:focus-visible,.cqhq-chat button:focus-visible,.cqhq-chat input:focus-visible,.cqhq-chat textarea:focus-visible,.cqhq-chat summary:focus-visible,.cqhq-chat a:focus-visible{outline:3px solid #0C7A72;outline-offset:3px}.cqhq-chat__badge{display:grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:#D7864C;color:#10212A;font-size:11px;font-weight:800}.cqhq-chat__panel{display:none;position:absolute;right:0;bottom:60px;width:min(370px,calc(100vw - 24px));height:min(500px,calc(100vh - 110px));background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(16,33,42,.24)}.cqhq-chat.is-open .cqhq-chat__panel{display:flex;flex-direction:column}.cqhq-chat__header{display:flex;align-items:center;justify-content:space-between;gap:14px;flex:0 0 auto;padding:13px 14px;background:var(--ink);color:#fff}.cqhq-chat__brand{display:flex;align-items:center;gap:10px}.cqhq-chat__brandmark{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:var(--mint);color:var(--green);font-size:10px;font-weight:850;letter-spacing:-.03em}.cqhq-chat__header strong{display:block;font-size:14px;line-height:1.15}.cqhq-chat__header span{display:block;color:#B8C9CD;font-size:10.5px;margin-top:2px}.cqhq-chat__close{border:0;background:transparent;color:#fff;width:36px;height:36px;border-radius:8px;font-size:26px;line-height:1;cursor:pointer}.cqhq-chat__body{display:flex;flex-direction:column;min-height:0;flex:1;padding:12px 13px 10px;background:#fff;overflow:hidden}.cqhq-chat__welcome{display:flex;align-items:flex-start;gap:8px;flex:0 0 auto;padding:9px 10px;margin-bottom:8px;border:1px solid #C5DDD8;border-radius:10px;background:#F2FAF8}.cqhq-chat__status-dot{flex:0 0 8px;width:8px;height:8px;border-radius:50%;background:var(--teal);margin-top:5px}.cqhq-chat__welcome p{margin:0;color:var(--slate);font-size:11.5px;line-height:1.4}.cqhq-chat__welcome strong{color:var(--ink)}.cqhq-chat__details{flex:0 0 auto;border-bottom:1px solid #E7ECEB;margin:0 0 7px;padding:0 0 7px}.cqhq-chat__details summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;min-height:26px;color:var(--slate);font-size:11.5px;font-weight:750}.cqhq-chat__details summary::-webkit-details-marker{display:none}.cqhq-chat__details summary:before{content:"+";display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:var(--mint);color:var(--green);font-size:12px;font-weight:850}.cqhq-chat__details[open] summary:before{content:"−"}.cqhq-chat__details summary em{font-style:normal;font-size:10.5px;font-weight:500;color:var(--muted)}.cqhq-chat__identity{display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-top:7px}.cqhq-chat__identity label{display:grid;gap:3px}.cqhq-chat__identity label>span{font-size:10.5px;font-weight:700;color:var(--slate)}.cqhq-chat input,.cqhq-chat textarea{width:100%;border:1px solid #8A9A9F;border-radius:8px;padding:8px 9px;background:#fff;color:var(--ink);font:inherit;font-size:12.5px}.cqhq-chat__messages{position:relative;flex:1;min-height:100px;overflow:auto;padding:4px 1px 8px;display:flex;flex-direction:column;gap:7px}.cqhq-chat__empty{margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;color:var(--muted);padding:18px 10px}.cqhq-chat__empty-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--paper);color:var(--green);margin-bottom:8px}.cqhq-chat__empty strong{font-size:12px;color:var(--slate);margin-bottom:2px}.cqhq-chat__empty span{font-size:11px}.cqhq-chat__message{display:flex}.cqhq-chat__message.is-visitor{justify-content:flex-end}.cqhq-chat__bubble{max-width:82%;padding:8px 10px;border-radius:11px;background:var(--paper);color:var(--ink);font-size:12.5px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.cqhq-chat__message.is-visitor .cqhq-chat__bubble{background:var(--green);color:#fff;border-bottom-right-radius:4px}.cqhq-chat__message.is-admin .cqhq-chat__bubble{border-bottom-left-radius:4px}.cqhq-chat__status{flex:0 0 auto;min-height:14px;color:#7A2D1F;font-size:10.5px;margin-bottom:3px}.cqhq-chat__form{flex:0 0 auto;margin:0}.cqhq-chat__composer{display:grid;grid-template-columns:1fr auto;gap:7px;align-items:end}.cqhq-chat__composer textarea{resize:none;min-height:42px;max-height:82px;padding:10px 11px}.cqhq-chat__composer button{border:0;border-radius:9px;background:var(--green);color:#fff;min-height:42px;padding:0 13px;font:inherit;font-size:12px;font-weight:750;cursor:pointer}.cqhq-chat__composer button:disabled{opacity:.6;cursor:wait}.cqhq-chat__privacy{flex:0 0 auto;margin:7px 0 0;color:var(--muted);font-size:9.8px;line-height:1.35}.cqhq-chat__privacy a{color:var(--green);font-weight:700}.cqhq-chat__hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important}.screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}@media(max-width:600px){.cqhq-chat{right:12px;bottom:12px}.cqhq-chat__panel{position:fixed;left:12px;right:12px;bottom:72px;width:auto;height:min(500px,calc(100vh - 92px))}.cqhq-chat__identity{grid-template-columns:1fr}.cqhq-chat__panel{border-radius:16px}}@media(max-height:620px){.cqhq-chat__panel{height:calc(100vh - 82px);bottom:70px}.cqhq-chat__welcome{padding:7px 9px}.cqhq-chat__details{margin-bottom:5px;padding-bottom:5px}}@media(prefers-reduced-motion:reduce){.cqhq-chat *{transition:none!important;animation:none!important}}

/* ------------------------------------------------------------------
 * v1.0.5 viewport anchoring
 * Keep the panel completely independent of theme/footer positioning.
 * ------------------------------------------------------------------ */
.cqhq-chat{
  position:fixed!important;
  right:22px!important;
  bottom:22px!important;
  z-index:2147483000!important;
  width:auto!important;
  height:auto!important;
  overflow:visible!important;
}

.cqhq-chat .cqhq-chat__launcher{
  position:relative!important;
  z-index:2147483002!important;
}

.cqhq-chat .cqhq-chat__panel{
  position:fixed!important;
  right:22px!important;
  bottom:84px!important;
  top:auto!important;
  left:auto!important;
  width:min(370px,calc(100vw - 24px))!important;
  height:min(500px,calc(100vh - 108px))!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  transform:none!important;
  z-index:2147483001!important;
  overflow:hidden!important;
  visibility:hidden!important;
  opacity:0!important;
  pointer-events:none!important;
  display:flex!important;
  flex-direction:column!important;
}

.cqhq-chat.is-open .cqhq-chat__panel{
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}

@media(max-width:600px){
  .cqhq-chat{
    right:12px!important;
    bottom:12px!important;
  }

  .cqhq-chat .cqhq-chat__panel{
    left:12px!important;
    right:12px!important;
    bottom:72px!important;
    width:auto!important;
    height:min(500px,calc(100vh - 92px))!important;
  }
}

@media(max-height:620px){
  .cqhq-chat .cqhq-chat__panel{
    height:calc(100vh - 88px)!important;
    bottom:70px!important;
  }
}

/* v1.0.6 audit refinement */
.cqhq-chat__badge[hidden]{display:none!important;}
