/* LemonPorch help: quick answers and a separate, explicit human handoff. */
.fd-chat-root{--chat-ink:#1d2c47;--chat-muted:#5b6473;--chat-yellow:#f8e66c;position:fixed;right:24px;bottom:var(--lp-chat-bottom,22px);z-index:200;color:var(--chat-ink);font-family:inherit;line-height:1.55}
.fd-chat-root *{box-sizing:border-box}.fd-chat-root [hidden]{display:none!important}
.fd-chat-launch{display:flex;align-items:center;justify-content:center;gap:11px;min-height:52px;padding:13px 21px;border:1px solid var(--chat-ink);border-radius:100px;background:var(--chat-ink);color:#fff;cursor:pointer;font-family:inherit;font-size:15px;font-weight:650;line-height:1.4;box-shadow:0 5px 22px #17243b24;transition:background .18s,transform .18s}
.fd-chat-launch svg{width:23px;height:23px;flex:none}.fd-chat-launch:hover{background:#334664;transform:translateY(-2px)}
.fd-chat-backdrop{position:fixed;inset:0;background:#17243b42;backdrop-filter:blur(3px)}
.fd-chat-panel{position:fixed;right:24px;bottom:24px;display:flex;flex-direction:column;overflow:hidden;width:min(440px,calc(100vw - 32px));max-height:min(740px,calc(100dvh - 48px));background:#fff;border:1px solid #dce0e8;border-radius:24px;box-shadow:0 18px 80px #17243b38;isolation:isolate}
.fd-chat-header{background:#f7f8fb;color:var(--chat-ink);padding:26px 24px 23px;display:flex;align-items:flex-start;gap:14px;border-bottom:1px solid #e1e5eb}
.fd-chat-header>div{flex:1}.fd-chat-header h2{font-family:inherit;font-weight:600;font-size:25px;line-height:1.22;letter-spacing:-.045em;color:var(--chat-ink);margin:9px 0 11px;max-width:280px}
.fd-chat-header p{font-size:14px;color:var(--chat-muted);line-height:1.6;margin:0}.fd-chat-kicker{display:inline-block;font-size:11px;letter-spacing:.17em;color:var(--chat-muted);font-weight:750}
.fd-chat-close{display:grid;place-items:center;width:38px;height:38px;flex:none;background:#fff;color:var(--chat-ink);border:1px solid #dce0e8;border-radius:50%;cursor:pointer;margin:-3px -5px 0 0;padding:8px}.fd-chat-close svg{height:20px;width:20px}.fd-chat-close:hover{background:var(--chat-yellow);border-color:var(--chat-yellow)}
.fd-chat-main{padding:23px 24px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}
.fd-chat-unavailable{padding:6px 0 12px;text-align:left;color:var(--chat-ink)}.fd-chat-notice-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:#fff5bd;margin-bottom:20px}.fd-chat-notice-icon svg{width:40px;height:40px}
.fd-chat-unavailable h3{font-family:inherit;font-weight:650;font-size:20px;line-height:1.3;letter-spacing:-.025em;margin:0 0 12px}.fd-chat-unavailable p{font-size:15px;line-height:1.65;color:var(--chat-muted);margin:0 0 22px}
.fd-chat-email-button{display:flex;align-items:center;justify-content:center;min-height:48px;padding:12px 15px;border-radius:12px;background:var(--chat-yellow);color:var(--chat-ink);font-size:14px;font-weight:700;text-decoration:none;border:1px solid #e6d34e;overflow-wrap:anywhere}.fd-chat-email-button:hover{background:#f1dd58}
.fd-chat-reconnect,.fd-chat-refresh{font-family:inherit;font-weight:600;font-size:13px;line-height:1.5;appearance:none;border:0;background:transparent;color:var(--chat-muted);padding:9px 3px;text-decoration:underline;text-underline-offset:4px;cursor:pointer;min-height:38px}.fd-chat-reconnect{margin-top:11px}.fd-chat-reconnect:disabled{opacity:.55;cursor:wait}
.fd-chat-messages{max-height:230px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:12px;margin-bottom:20px;padding-right:3px;scrollbar-width:thin}.fd-chat-messages:empty{display:none}
.fd-chat-message{max-width:92%;background:#f0f3f8;padding:13px 15px;border:1px solid #e0e5ee;border-radius:15px;overflow-wrap:anywhere}.fd-chat-message strong{font-size:12px;color:var(--chat-muted);font-weight:650}.fd-chat-message p{font-size:15px;line-height:1.6;margin:4px 0 0;white-space:pre-wrap}.fd-chat-visitor{align-self:flex-end;background:#fff9dc;border-color:#f0e7b7;border-bottom-right-radius:4px}.fd-chat-owner{align-self:flex-start;border-bottom-left-radius:4px}
.fd-chat-form{display:flex;flex-direction:column;gap:15px}.fd-chat-form label{font-size:14px;color:var(--chat-ink);font-weight:600;display:block;letter-spacing:0}.fd-chat-form input:not([type=checkbox]),.fd-chat-form textarea{width:100%;display:block;max-width:100%;border:1px solid #cbd2dd;background:#fff;padding:11px 12px;border-radius:10px;font-family:inherit;font-size:16px;font-weight:400;line-height:1.5;margin-top:7px;color:var(--chat-ink);box-shadow:none}.fd-chat-form textarea{resize:vertical;min-height:104px;max-height:230px}.fd-chat-form input::placeholder,.fd-chat-form textarea::placeholder{color:#707989}
.fd-chat-identity{display:grid;gap:13px}.fd-chat-consent{display:flex!important;align-items:flex-start;gap:10px;font-size:12px!important;font-weight:400!important;line-height:1.6}.fd-chat-consent input{flex:none;width:18px;height:18px;margin:2px 0 0;accent-color:var(--chat-ink)}.fd-chat-consent a{color:var(--chat-ink);text-decoration:underline;text-underline-offset:3px}
.fd-chat-honeypot{position:absolute;left:-9999px;height:1px;overflow:hidden}.fd-chat-challenge{max-width:100%;overflow:hidden}.fd-chat-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.fd-chat-submit{display:flex;justify-content:center;align-items:center;min-height:47px;padding:12px 20px;border-radius:12px;border:1px solid var(--chat-ink);cursor:pointer;background:var(--chat-ink);color:#fff;font-family:inherit;font-size:14px;font-weight:650;line-height:1.4}.fd-chat-submit:hover:not(:disabled){background:#334664}.fd-chat-submit:disabled{opacity:.45;cursor:not-allowed}
.fd-chat-status{font-size:13px;line-height:1.6;color:var(--chat-muted);margin:0}.fd-chat-status:empty{display:none}.fd-chat-footer{background:#f7f8fb;color:var(--chat-muted);padding:15px 24px;border-top:1px solid #e1e5eb;font-size:12px}.fd-chat-footer p{margin:0 0 5px;font-size:12px}.fd-chat-footer a{color:var(--chat-ink);font-size:12px;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.fd-chat-root :is(button,a,input,textarea):focus-visible{outline:3px solid #3776d6;outline-offset:3px}.fd-chat-panel:focus-visible{outline:3px solid #3776d6;outline-offset:2px}.lp-chat-open{overflow:hidden}
@media(max-width:820px){.fd-chat-root{right:16px;bottom:var(--lp-chat-bottom,16px)}body:has(.quote-builder.is-in-view) .fd-chat-root{bottom:var(--lp-chat-bottom,116px)}.fd-chat-panel{right:16px;bottom:16px;max-height:calc(100dvh - 32px)}}
@media(max-width:500px){.fd-chat-launch{font-size:14px;min-height:48px;padding:11px 17px;gap:9px}.fd-chat-launch svg{width:21px;height:21px}.fd-chat-panel{right:10px;bottom:max(10px,env(safe-area-inset-bottom));width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:21px}.fd-chat-header{padding:22px 20px}.fd-chat-header h2{font-size:23px}.fd-chat-main{padding:20px}.fd-chat-footer{padding:13px 20px}.fd-chat-actions{gap:7px}.fd-chat-submit{flex:1}.fd-chat-refresh{font-size:12px}.fd-chat-messages{max-height:180px}}
@media(prefers-reduced-motion:reduce){.fd-chat-root *{transition:none!important;animation:none!important}}

/* Leave mobile project choices readable beside the fixed estimate action. */
@media(max-width:820px){
 body:has(.quote-builder.is-in-view) .fd-chat-launch{width:48px;min-height:48px;padding:12px;}
 body:has(.quote-builder.is-in-view) .fd-chat-launch>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
}

/* The guide uses native buttons and authored links; answers are never chat bubbles. */
.fd-chat-guide h3 {
  margin: 8px 0 14px;
  font-family: inherit;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.035em;
  color: var(--chat-ink);
}
.fd-chat-guide > p {
  margin: 0 0 15px;
  color: var(--chat-muted);
  font-size: 16px;
  line-height: 1.65;
}
.fd-chat-guide > .fd-chat-guide-kicker {
  margin-bottom: 8px;
  color: var(--chat-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}
.fd-chat-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.fd-chat-topic {
  width: 100%;
  min-height: 47px;
  padding: 12px 15px;
  border: 1px solid #cbd2dd;
  border-radius: 10px;
  background: #f8fafc;
  color: var(--chat-ink);
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background .16s, border-color .16s;
}
.fd-chat-topic:hover { background: #fff9dc; border-color: #bdac3c; }
.fd-chat-guide-links { display: grid; gap: 12px; margin: 22px 0; }
.fd-chat-guide a { color: var(--chat-ink); font-size: 16px; font-weight: 650; text-underline-offset: 4px; }
.fd-chat-guide-links a {
  padding: 12px 15px;
  border: 1px solid #d7c54e;
  border-radius: 10px;
  background: #fff5bd;
  text-decoration: none;
}
.fd-chat-guide-links a:hover { background: var(--chat-yellow); }
.fd-chat-guide > .fd-chat-guide-related { font-size: 14px; font-weight: 600; color: var(--chat-ink); }
.fd-chat-all-topics, .fd-chat-to-guide {
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: var(--chat-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.fd-chat-all-topics { margin-top: 12px; }
.fd-chat-to-guide { margin: -8px 0 18px; }
.fd-chat-to-guide:disabled { opacity: .5; cursor: wait; }
.fd-chat-guide-actions {
  flex: none;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 12px;
  padding: 16px 24px;
  border-top: 1px solid #e1e5eb;
  background: #fff;
}
.fd-chat-guide-actions p { margin: 0; font-size: 14px; font-weight: 600; }
.fd-chat-guide-actions span { font-size: 12px; color: var(--chat-muted); }
.fd-chat-handoff {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--chat-ink);
  border-radius: 10px;
  background: var(--chat-ink);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  cursor: pointer;
}
.fd-chat-handoff:hover { background: #334664; }
@media (max-width: 380px) {
  .fd-chat-guide-actions { padding: 14px 20px; grid-template-columns: 1fr; }
  .fd-chat-handoff { grid-column: 1; grid-row: 3; margin-top: 9px; }
}
