.quote-chat { position:fixed; right:18px; bottom:18px; z-index:35; }
.quote-chat-panel { position:absolute; right:0; bottom:calc(100% + 10px); display:flex; flex-direction:column; width:min(370px, calc(100vw - 36px)); max-height:min(580px, calc(100dvh - 145px)); border:1px solid #d6dddd; border-radius:16px; background:white; color:#202a2c; box-shadow:0 10px 35px #0003; overflow:hidden; }
.quote-chat-panel header, .quote-chat-controls, .quote-chat-call { padding:10px 14px; }
.quote-chat-panel header { display:flex; justify-content:space-between; align-items:center; background:#202a2c; color:white; }
.quote-chat-panel button { cursor:pointer; border:1px solid #cbd4d4; border-radius:8px; padding:7px 10px; background:white; color:#202a2c; }
.quote-chat-panel button:disabled { cursor:default; opacity:.55; }
.quote-chat-log { overflow:auto; min-height:60px; padding:10px 14px; }
.quote-chat-log p { width:fit-content; max-width:95%; margin:6px 0; padding:8px 10px; border-radius:10px; overflow-wrap:anywhere; }
.quote-chat-log .quote-chat-message { background:#eef2f2; }
.quote-chat-log .quote-chat-answer { margin-left:auto; background:#202a2c; color:white; white-space:pre-wrap; }
.quote-chat-controls { border-top:1px solid #d6dddd; }
.quote-chat-controls p { margin:0 0 6px; }
.quote-chat-compose { display:flex; gap:12px; margin-bottom:5px; }
.quote-chat-compose input { min-width:0; flex:1; border:1px solid #aab7b7; border-radius:8px; padding:8px; font-size:16px; }
.quote-chat-call { font-size:13px; }

.quote-chat-panel { height:min(560px, calc(100dvh - 125px)); }
.quote-chat-log { flex:1 1 auto; min-height:0; padding:14px; }
.quote-chat-panel header, .quote-chat-controls, .quote-chat-call { flex-shrink:0; }
.quote-chat-log p { margin:0 0 12px; }
.quote-chat-log .quote-chat-typing { display:flex; align-items:center; gap:8px; font-size:13px; }
.quote-chat-typing i { font-style:normal; letter-spacing:3px; animation:quote-chat-pulse 650ms ease-in-out infinite alternate; }
@keyframes quote-chat-pulse { from { opacity:.35; } to { opacity:1; } }
@media (prefers-reduced-motion:reduce) { .quote-chat-typing i { animation:none; } }

@media (max-width: 640px) {
  .nav-quote-actions { display:flex; width:100%; gap:8px; position:relative; }
  .nav-quote-actions .contact-actions, .nav-quote-actions .quote-chat { flex:1; min-width:0; width:auto; }
  .nav-quote-actions .quote-chat { position:static; }
  .nav-quote-actions .quote-chat-trigger { width:100%; padding:12px 8px; font-size:13px; }
  .nav-quote-actions .quote-chat-panel { top:calc(100% + 8px); bottom:auto; max-height:calc(100dvh - 170px); }
}

.quote-chat-trigger { display:inline-flex; align-items:center; justify-content:center; padding:15px 23px; border:0; border-radius:3px; font-size:15px; line-height:1.5; background:#72283b; color:white; font-weight:700; cursor:pointer; }

.roof-quote-actions{display:flex;align-items:center;gap:8px}@media(max-width:640px){.roof-quote-actions{width:100%}.roof-quote-actions>a,.roof-quote-actions>#quote-chat-root{flex:1}.roof-quote-actions .quote-chat-panel{right:0}}
