/* x25lab v14.2 – AI Bot CSS limited strictly to the in-page chat widget.
   Supersedes foundation/consistency from the legacy profile layout.
   No global body, section, footer, form or layout selectors. */
body.x25-public-express #mc-hp-chat-section{
  width:100%;min-width:0;box-sizing:border-box;margin:0;
  padding:clamp(18px,2.6vw,36px) clamp(12px,3vw,42px);
  background:transparent;color:#133e2c;
}
body.x25-public-express #mc-hp-chat-section *,
body.x25-public-express #mc-hp-chat-section *::before,
body.x25-public-express #mc-hp-chat-section *::after{box-sizing:border-box}
body.x25-public-express #mc-hp-chat-section .mcHpMainRow{
  display:block;width:100%;min-width:0;max-width:100%;
  border:1px solid #d2e5d6;border-radius:14px;background:#fff;
  box-shadow:0 7px 18px rgba(10,57,33,.06);overflow:hidden;
}
body.x25-public-express #mc-hp-chat-section .mcHpChatbox{
  display:flex;flex-direction:column;min-width:0;width:100%;
  height:auto;min-height:0;max-height:none;background:#fff;color:#173d2b;
}
body.x25-public-express #mc-hp-chat-section .mcHpChatHeader{
  display:flex;align-items:center;gap:12px;padding:14px 18px;
  border-bottom:1px solid #ddece0;background:#f3faf4;
}
body.x25-public-express #mc-hp-chat-section .mcHpChatAvatar{
  display:block;width:44px;height:44px;flex:0 0 44px;
  border-radius:11px;object-fit:cover;background:#e0efe3;
}
body.x25-public-express #mc-hp-chat-section .mcHpChatHeaderMeta{flex:1;min-width:0}
body.x25-public-express #mc-hp-chat-section .mcHpChatName{font-size:16px;line-height:1.3;font-weight:750;color:#113d28}
body.x25-public-express #mc-hp-chat-section .mcHpChatRole{font-size:12px;color:#476856}
body.x25-public-express #mc-hp-chat-section .mcHpStatusPill{
  display:inline-flex;align-items:center;gap:7px;padding:7px 11px;
  border-radius:999px;border:1px solid #cfe6d5;
  background:#e7f5e9;font-size:12px;line-height:1.35;color:#276549;
}
body.x25-public-express #mc-hp-chat-section .mcHpDot{
  display:inline-block;width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:#7fa08e;
}
body.x25-public-express #mc-hp-chat-section .mcHpDot--connected{background:#159650}
body.x25-public-express #mc-hp-chat-section .mcHpDot--connecting{background:#cc9b30}
body.x25-public-express #mc-hp-chat-section .mcHpMessages{
  min-height:100px;max-height:320px;overflow:auto;padding:15px 18px;
  line-height:1.6;font-size:14px;color:#1b3b2b;background:#fff;
}
body.x25-public-express #mc-hp-chat-section .mcHpChips{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px;
  padding:12px 16px;max-height:132px;overflow:auto;
  border-top:1px solid #e1eee4;background:#f8fcf8;
}
body.x25-public-express #mc-hp-chat-section .mcHpChip{
  display:inline-flex;align-items:center;gap:7px;flex:none;
  max-width:100%;min-width:0;margin:0;padding:8px 11px;
  border:1px solid #cadfce;border-radius:9px;
  background:#fff;color:#205139;font-family:inherit;font-size:12px;line-height:1.35;font-weight:600;
  cursor:pointer;white-space:normal;text-align:left;
}
body.x25-public-express #mc-hp-chat-section .mcHpChip:hover{border-color:#8bc69e;background:#ecf8ef}
body.x25-public-express #mc-hp-chat-section .mcHpConsentBar{
  padding:12px 17px;background:#f6faf7;
  border-top:1px solid #ddece1;font-size:12px;line-height:1.55;
}
body.x25-public-express #mc-hp-chat-section .mcHpToggleWrap{
  display:flex;align-items:flex-start;gap:12px;margin:0;cursor:pointer;
}
body.x25-public-express #mc-hp-chat-section .mcHpToggleTrack{
  display:inline-flex;align-items:center;position:relative;flex:0 0 42px;
  width:42px;height:24px;margin-top:1px;border-radius:12px;background:#c6d6cc;
}
body.x25-public-express #mc-hp-chat-section .mcHpToggleInput{
  position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:.01;cursor:pointer;z-index:2;
}
body.x25-public-express #mc-hp-chat-section .mcHpToggleThumb{
  width:18px;height:18px;border-radius:50%;margin-left:3px;background:#fff;
  box-shadow:0 1px 4px #254c363b;transition:transform .16s;
}
body.x25-public-express #mc-hp-chat-section .mcHpToggleTrack:has(input:checked){background:#278353}
body.x25-public-express #mc-hp-chat-section .mcHpToggleTrack:has(input:checked) .mcHpToggleThumb{transform:translateX(18px)}
body.x25-public-express #mc-hp-chat-section .mcHpConsentLabel{color:#355847;min-width:0}
body.x25-public-express #mc-hp-chat-section .mcHpConsentLink{color:#186a46;text-decoration:none}
body.x25-public-express #mc-hp-chat-section .mcHpInputArea{
  display:flex;align-items:end;gap:10px;padding:12px 16px;
  border-top:1px solid #ddece0;background:#fff;
}
body.x25-public-express #mc-hp-chat-section .mcHpInput{
  flex:1;min-width:0;width:100%;min-height:44px;max-height:150px;
  resize:vertical;border:1px solid #b9d5c2;border-radius:9px;
  padding:11px 12px;font-family:inherit;font-size:15px;line-height:1.45;font-weight:400;background:#fff;color:#173d2c;
}
body.x25-public-express #mc-hp-chat-section .mcHpSendBtn{
  flex:0 0 44px;display:grid;place-items:center;height:44px;
  border:0;border-radius:9px;background:#135e3b;color:#fff;cursor:pointer;
}
body.x25-public-express #mc-hp-chat-section .mcHpSendBtn:disabled{opacity:.4;cursor:not-allowed}
body.x25-public-express #mc-hp-chat-section .mcHpSendBtn svg{width:20px;height:20px}
body.x25-public-express #mc-hp-chat-section :is(button,a,textarea,input):focus-visible{outline:3px solid #66b987;outline-offset:2px}
body.x25-public-express #mc-hp-chat-section a:hover{text-decoration:none}
@media(max-width:700px){
 body.x25-public-express #mc-hp-chat-section{padding:16px 12px}
 body.x25-public-express #mc-hp-chat-section .mcHpChatHeader{padding:12px;gap:8px}
 body.x25-public-express #mc-hp-chat-section .mcHpChips{max-height:110px;gap:6px;padding:9px}
 body.x25-public-express #mc-hp-chat-section .mcHpChip{font-size:12px;padding:7px 9px}
 body.x25-public-express #mc-hp-chat-section .mcHpMessages{max-height:250px;min-height:85px;padding:12px}
 body.x25-public-express #mc-hp-chat-section .mcHpInputArea{padding:10px}
}
/* v14.3: legacy in-page chat becomes a closed, accessible floating dialog.
   It is revealed only by deliberate click, never rendered inline in legal/footer. */
body #mc-hp-chat-section{
  position:fixed!important;inset:auto 12px 70px auto!important;
  width:min(440px,calc(100vw - 24px))!important;
  height:auto!important;max-height:min(76dvh,760px)!important;
  margin:0!important;padding:0!important;
  display:none!important;z-index:1105!important;
  border-radius:16px!important;background:#fff!important;
  box-shadow:0 20px 60px rgba(1,39,23,.28)!important;
  overflow:hidden!important;
}
body #mc-hp-chat-section.x25-v143-bot-open{display:block!important}
body #mc-hp-chat-section .mcHpMainRow{height:auto!important;max-height:min(76dvh,760px)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
body #mc-hp-chat-section .mcHpChatbox{height:auto!important;max-height:min(76dvh,760px)!important;overflow:hidden!important}
body #mc-hp-chat-section .mcHpMessages{min-height:70px!important;max-height:26dvh!important;overflow-y:auto!important}
body #mc-hp-chat-section .mcHpChips{max-height:18dvh!important;overflow:auto!important}
body #mc-hp-chat-section.x25-v143-bot-superseded{display:none!important}
body .x25-v143-bot-launch{position:fixed;right:15px;bottom:calc(7px + env(safe-area-inset-bottom,0px));z-index:1104;display:inline-flex;align-items:center;gap:7px;background:#f9fcfa;border:1px solid #bad6c5;border-radius:999px;box-shadow:0 4px 14px #113d2830;color:#15442e;font-family:inherit;font-weight:650;font-size:13px;line-height:1.2;padding:10px 15px;cursor:pointer}
body .x25-v143-bot-close{position:absolute;right:10px;top:8px;z-index:2;border:1px solid #cadfd1;border-radius:999px;width:29px;height:29px;background:#fff;color:#143b29;cursor:pointer;font-size:20px;line-height:1}
body .x25-v143-bot-launch:focus-visible,body .x25-v143-bot-close:focus-visible{outline:3px solid #70c398;outline-offset:3px}
@media(max-width:520px){body #mc-hp-chat-section{inset:auto 8px 62px 8px!important;width:calc(100vw - 16px)!important;max-height:77dvh!important}}

/* v14.8 · The cookie banner is given priority; JS measures its actual rendered height. */
body .x25-v143-bot-launch{max-width:calc(100vw - 26px);z-index:1104}
body #mc-hp-chat-section{max-width:calc(100vw - 24px)}
@media(max-width:520px){body .x25-v143-bot-launch{right:8px;padding:9px 12px}}
