/* Patch 19 — in-page support chat (scoped to .hac-*). Brand plum/gold; does not alter site layout. */
.hac-root[hidden],.hac-root [hidden]{display:none!important}
.hac-root{position:fixed;inset:auto 18px 18px auto;z-index:2147483000;width:min(380px,calc(100vw - 36px));height:min(600px,calc(100vh - 36px));height:min(600px,calc(100dvh - 36px));display:flex;flex-direction:column;background:#fff;color:#1d1420;border:1px solid #e6dfe8;border-radius:16px;box-shadow:0 18px 48px rgba(43,27,47,.28);font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow:hidden}
.hac-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#2B1B2F;color:#F7F8FA}
.hac-head h2{margin:0;font-size:16px;font-weight:600;color:#F7F8FA;line-height:1.2}
.hac-sub{font-size:12.5px;color:#e9dcc4;margin-top:2px}
.hac-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#9a8f9c;margin-right:6px;vertical-align:1px}
.hac-dot.on{background:#3fbf7f}
.hac-x{margin-left:auto;background:transparent;border:0;color:#F7F8FA;width:44px;height:44px;border-radius:10px;cursor:pointer;font-size:24px;line-height:1;touch-action:manipulation}
.hac-x:focus-visible,.hac-btn:focus-visible,.hac-chip:focus-visible,.hac-in:focus-visible{outline:2px solid #C9A46A;outline-offset:2px}
.hac-log{flex:1;overflow-y:auto;padding:14px;background:#faf8fb;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.hac-m{max-width:86%;margin:0 0 10px;padding:9px 12px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.hac-m small{display:block;font-size:11.5px;color:#7a6d7d;margin-bottom:2px}
.hac-you{margin-left:auto;background:#3D2844;color:#F7F8FA;border-bottom-right-radius:4px}
.hac-you small{color:#e9dcc4}
.hac-staff,.hac-bot{background:#fff;border:1px solid #ebe3ee;border-bottom-left-radius:4px}
.hac-bot{background:#f4f0f6}
.hac-sys{max-width:100%;text-align:center;background:none;color:#6c6170;font-size:12.5px;padding:2px 8px}
.hac-m a{color:#6b3f7a;text-decoration:underline}
.hac-chips{display:flex;flex-wrap:wrap;gap:6px;padding:8px 14px 0;background:#faf8fb}
.hac-chip{border:1px solid #d9cfdc;background:#fff;color:#2B1B2F;border-radius:999px;padding:7px 12px;font-size:13px;cursor:pointer;min-height:36px;touch-action:manipulation}
.hac-foot{border-top:1px solid #eee6f0;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:#fff}
.hac-row{display:flex;gap:8px;align-items:flex-end}
.hac-in{flex:1;resize:none;min-height:44px;max-height:120px;border:1px solid #d9cfdc;border-radius:12px;padding:10px 12px;font:inherit;color:#1d1420;background:#fff}
.hac-btn{min-height:44px;border:0;border-radius:12px;padding:0 16px;font:600 14px/1 system-ui,sans-serif;cursor:pointer;background:#2B1B2F;color:#F7F8FA;touch-action:manipulation}
.hac-btn[disabled]{opacity:.55;cursor:default}
.hac-btn.hac-ghost{background:#fff;color:#2B1B2F;border:1px solid #C9A46A}
.hac-human{width:100%;margin-top:8px}
.hac-note{font-size:12px;color:#6c6170;margin:6px 2px 0}
.hac-err{font-size:13px;color:#a12a3a;margin:6px 2px 0}
.hac-form{padding:12px 14px;background:#fff;border-top:1px solid #eee6f0}
.hac-form label{display:block;font-size:13px;margin:0 0 8px;color:#3d2844}
.hac-form input[type=email],.hac-form input[type=tel]{display:block;width:100%;box-sizing:border-box;min-height:42px;margin-top:4px;border:1px solid #d9cfdc;border-radius:10px;padding:8px 10px;font:inherit}
.hac-form .hac-ck{display:flex;gap:8px;align-items:flex-start}
.hac-form .hac-ck input{margin-top:3px;width:auto}
.hac-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
html.hac-lock,html.hac-lock body{overflow:hidden}
@media (max-width:640px){
  .hac-root{inset:0;width:100%;height:100%;height:100dvh;border-radius:0;border:0;padding-top:env(safe-area-inset-top,0px);background:#2B1B2F}
  .hac-log,.hac-chips{background:#faf8fb}
}
@media (prefers-reduced-motion:no-preference){.hac-root{animation:hacIn .16s ease-out}@keyframes hacIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}
