/* "Ask a question" chat panel (assets/js/chat.js). Site tokens only. */
.gtchat-open{position:fixed;right:20px;bottom:20px;z-index:70;display:flex;align-items:center;gap:10px;background:var(--ink);color:#fff;font:600 15px/1 var(--body);padding:6px 18px 6px 6px;border:2px solid var(--clay);border-radius:99px;cursor:pointer;box-shadow:0 8px 24px rgba(0,0,0,.3)}
.gtchat-open:hover{background:var(--clay);color:var(--ink)}
.gtchat-open:focus-visible,.gtchat-panel :focus-visible{outline:3px solid var(--gold);outline-offset:2px}
body.gtchat-is-open .gtchat-open{display:none}
/* Sit above the mobile Call / Get a quote bar while it is showing. */
body:has(.sticky.show) .gtchat-open{bottom:84px}

.gtchat-panel{position:fixed;right:20px;bottom:20px;z-index:80;width:min(380px,calc(100vw - 32px));height:min(560px,calc(100dvh - 40px));display:flex;flex-direction:column;background:#fff;color:var(--text);font-family:var(--body);border:1px solid var(--sand);border-top:4px solid var(--clay);box-shadow:0 12px 36px rgba(0,0,0,.3)}
.gtchat-panel[hidden]{display:none}
.gtchat-head{display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 16px;border-bottom:1px solid var(--sand)}
.gtchat-head h2{font-size:1.35rem;margin:0}
.gtchat-close{background:none;border:0;font-size:28px;line-height:1;padding:2px 10px;cursor:pointer;color:var(--ink);border-radius:4px}
.gtchat-close:hover{background:var(--chalk)}

.gtchat-log{flex:1;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.gtchat-msg{margin:0;padding:9px 12px;max-width:88%;font-size:15px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:6px}
.gtchat-bot{align-self:flex-start;background:var(--chalk)}
.gtchat-bot a{color:var(--clay-text)}
.gtchat-user{align-self:flex-end;background:var(--ink);color:#fff}
.gtchat-user a{color:#fff;text-decoration:underline}
.gtchat-error{border-left:3px solid var(--clay-text)}
.gtchat-typing{margin:0 16px 6px;font-size:13px;color:var(--muted)}
@media (prefers-reduced-motion:no-preference){
  .gtchat-typing:not([hidden]){animation:gtchat-pulse 1.2s ease-in-out infinite}
  .gtchat-log{scroll-behavior:smooth}
}
@keyframes gtchat-pulse{50%{opacity:.4}}

.gtchat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid var(--sand)}
.gtchat-form textarea{flex:1;min-width:0;resize:none;font:inherit;font-size:16px;padding:8px 10px;border:1px solid var(--muted);border-radius:4px;color:var(--text);background:#fff}
.gtchat-send{background:var(--clay);color:var(--ink);border:0;border-radius:4px;font:inherit;font-weight:700;padding:0 16px;cursor:pointer}
.gtchat-send:hover{background:var(--clay-dark)}
.gtchat-send:disabled{background:var(--sand);color:var(--muted);cursor:wait}
.gtchat-note{margin:0;padding:0 12px 10px;font-size:12px;color:var(--muted);line-height:1.4}
.gtchat-note a{color:var(--clay-text)}

@media (max-width:480px){
  .gtchat-open{right:16px;bottom:16px}
  .gtchat-panel{right:0;bottom:0;width:100vw;height:100dvh;border-radius:0;border-left:0;border-right:0}
}
@media print{.gtchat-open,.gtchat-panel{display:none!important}}
.gtchat-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* Page links in replies: a readable name with an arrow, not a raw path. */
.gtchat-bot a.gtchat-link{font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.gtchat-bot a.gtchat-link::after{content:"\00a0\2192"}
.gtchat-bot a.gtchat-link:hover{color:var(--clay-dark)}
/* Avatar: Darrin's portrait, round, on the button and in the panel header. */
.gtchat-avatar{display:block;border-radius:50%;object-fit:cover;background:var(--sand);flex:none}
.gtchat-open .gtchat-avatar{width:36px;height:36px;border:2px solid #fff}
.gtchat-who{display:flex;align-items:center;gap:10px;min-width:0}
.gtchat-who .gtchat-avatar{width:44px;height:44px;border:2px solid var(--clay)}
.gtchat-sub{margin:2px 0 0;font-size:12px;line-height:1.2;color:var(--muted)}
