/* Walter Chatbot — Quash Soundproofing
 * Loaded as external file so WP Rocket cannot mangle it.
 */
#qw-bubble{position:fixed;bottom:88px;right:24px;height:64px;padding:0 26px 0 22px;border-radius:32px;background:#0f9b8e;color:#fff;display:flex;align-items:center;justify-content:center;gap:12px;cursor:pointer;box-shadow:0 10px 32px rgba(15,155,142,.45),0 4px 12px rgba(0,0,0,.18);z-index:999998;border:none;transition:transform .2s ease,box-shadow .2s ease;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-weight:700;font-size:16px;line-height:1;white-space:nowrap;animation:qw-bubble-attention 3s ease-in-out 2s 3}
@keyframes qw-bubble-attention{0%,100%{transform:scale(1)}10%,30%{transform:scale(1.08) rotate(-2deg)}20%,40%{transform:scale(1.08) rotate(2deg)}50%{transform:scale(1)}}
#qw-bubble:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(0,0,0,.34)}
#qw-bubble svg{width:28px;height:28px;fill:#fff;flex-shrink:0}
#qw-bubble .qw-bubble-text{display:inline-block}
#qw-bubble .qw-badge{position:absolute;top:-4px;right:-4px;background:#ff4757;color:#fff;font-size:11px;font-weight:700;border-radius:10px;padding:2px 6px;display:none}
#qw-window{position:fixed;bottom:160px;right:24px;width:380px;max-width:calc(100vw - 32px);height:560px;max-height:calc(100vh - 140px);background:#fff;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.25);display:none;flex-direction:column;overflow:hidden;z-index:999999;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
#qw-window.qw-open{display:flex}
#qw-header{background:linear-gradient(135deg,#0f9b8e 0%,#0c7d72 100%);color:#fff;padding:16px;display:flex;align-items:center;gap:12px}
#qw-header .qw-avatar{width:42px;height:42px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;flex-shrink:0;transition:box-shadow .25s ease}
#qw-header .qw-avatar.qw-speaking{box-shadow:0 0 0 4px rgba(255,255,255,.55),0 0 16px rgba(255,255,255,.35)}
#qw-header .qw-title{flex:1;line-height:1.2}
#qw-header .qw-title .qw-name{font-weight:700;font-size:15px}
#qw-header .qw-title .qw-sub{font-size:12px;opacity:.85}
#qw-header .qw-close{background:transparent;border:none;color:#fff;font-size:22px;cursor:pointer;padding:4px 8px;line-height:1}
#qw-voicebar{background:#f5f7f8;border-bottom:1px solid #e4e8eb;padding:8px 14px;font-size:12px;color:#566;display:flex;align-items:center;justify-content:space-between}
#qw-voicebar .qw-mute{background:transparent;border:1px solid #cdd5da;color:#566;border-radius:6px;padding:3px 8px;font-size:11px;cursor:pointer}
#qw-voicebar .qw-mute.qw-muted{background:#566;color:#fff;border-color:#566}
#qw-messages{flex:1;overflow-y:auto;padding:16px;background:#f9fafb;display:flex;flex-direction:column;gap:10px}
.qw-msg{max-width:85%;padding:10px 14px;border-radius:14px;font-size:14px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.qw-msg.qw-bot{background:#fff;color:#1a2332;align-self:flex-start;border:1px solid #e4e8eb;border-bottom-left-radius:4px}
.qw-msg.qw-user{background:#0f9b8e;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.qw-typing{align-self:flex-start;display:flex;gap:4px;padding:12px 14px;background:#fff;border:1px solid #e4e8eb;border-radius:14px;border-bottom-left-radius:4px}
.qw-typing span{width:6px;height:6px;background:#9aa5ad;border-radius:50%;animation:qw-bounce 1.2s infinite}
.qw-typing span:nth-child(2){animation-delay:.2s}
.qw-typing span:nth-child(3){animation-delay:.4s}
@keyframes qw-bounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
#qw-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px}
#qw-quick button{background:#fff;border:1px solid #cfe6e2;color:#0c7d72;font-size:12px;padding:6px 10px;border-radius:14px;cursor:pointer;font-family:inherit}
#qw-quick button:hover{background:#e6f4f2}
#qw-input-row{border-top:1px solid #e4e8eb;background:#fff;padding:10px;display:flex;gap:8px;align-items:center}
#qw-mic{background:#0040a0;border:3px solid #fff;height:60px;padding:0 22px 0 20px;border-radius:30px;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:10px;color:#fff;font-family:inherit;font-size:17px;font-weight:800;line-height:1;box-shadow:0 6px 18px rgba(0,64,160,.7),0 0 0 4px #0040a0,0 8px 24px rgba(0,0,0,.25);transition:transform .15s ease,box-shadow .15s ease;animation:qw-mic-pulse 1.4s ease-in-out infinite;letter-spacing:.3px}
@keyframes qw-mic-pulse{0%,100%{box-shadow:0 6px 18px rgba(0,64,160,.7),0 0 0 4px #0040a0,0 0 0 0 rgba(0,64,160,.85),0 8px 24px rgba(0,0,0,.25)}50%{box-shadow:0 6px 18px rgba(0,64,160,.7),0 0 0 4px #0040a0,0 0 0 22px rgba(0,64,160,0),0 8px 24px rgba(0,0,0,.25)}}
#qw-mic:hover{transform:translateY(-1px);box-shadow:0 5px 14px rgba(15,155,142,.45)}
#qw-mic svg{width:22px;height:22px}
#qw-mic::after{content:'Tap to talk'}
#qw-mic.qw-listening{background:#ff4757;color:#fff;animation:qw-pulse 1s infinite}
#qw-mic.qw-listening::after{content:'Listening...'}
@keyframes qw-pulse{0%,100%{box-shadow:0 0 0 0 rgba(255,71,87,.6)}50%{box-shadow:0 0 0 8px rgba(255,71,87,0)}}
#qw-input{flex:1;border:1px solid #d4dadf;border-radius:18px;padding:8px 14px;font-size:14px;font-family:inherit;outline:none;resize:none;max-height:88px}
#qw-input:focus{border-color:#0f9b8e}
#qw-send{background:#0f9b8e;color:#fff;border:none;width:36px;height:36px;border-radius:50%;cursor:pointer;flex-shrink:0;display:flex;align-items:center;justify-content:center}
#qw-send:disabled{background:#b0c3c0;cursor:not-allowed}
#qw-send svg{width:16px;height:16px;fill:#fff}
@media(max-width:480px){#qw-window{right:8px;left:8px;width:auto;bottom:160px;height:calc(100vh - 180px)}}

#qw-voicebar .qw-vbar-right{display:flex;align-items:center;gap:6px}
#qw-voicebar .qw-stopbtn{background:#ff4757;color:#fff;border:none;border-radius:6px;padding:3px 10px;font-size:11px;cursor:pointer;font-family:inherit;font-weight:600;display:inline-flex;align-items:center;gap:4px;animation:qw-pulse-stop 1.4s ease-in-out infinite}
@keyframes qw-pulse-stop{0%,100%{opacity:1}50%{opacity:.75}}
#qw-voicebar .qw-stopbtn:hover{background:#e63946}

#qw-inline-card{max-width:720px;margin:32px auto;padding:0 16px;cursor:pointer;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
#qw-inline-card .qw-inline-inner{background:linear-gradient(135deg,#0f9b8e 0%,#0c7d72 100%);border-radius:18px;padding:20px 28px;display:flex;align-items:center;gap:18px;box-shadow:0 10px 30px rgba(15,155,142,.28),0 4px 12px rgba(0,0,0,.1);transition:transform .25s ease,box-shadow .25s ease}
#qw-inline-card:hover .qw-inline-inner{transform:translateY(-3px);box-shadow:0 14px 36px rgba(15,155,142,.4),0 6px 16px rgba(0,0,0,.14)}
#qw-inline-card .qw-inline-icon{font-size:42px;flex-shrink:0;line-height:1;animation:qw-inline-wag 1.6s ease-in-out infinite;display:inline-block;transform-origin:center}
@keyframes qw-inline-wag{0%,100%{transform:rotate(-8deg)}50%{transform:rotate(8deg)}}
#qw-inline-card .qw-inline-text{flex:1;color:#fff;line-height:1.3}
#qw-inline-card .qw-inline-title{font-size:18px;font-weight:700;margin-bottom:4px}
#qw-inline-card .qw-inline-sub{font-size:14px;opacity:.92}
#qw-inline-card .qw-inline-btn{background:#fff;color:#0c7d72;border:none;padding:11px 22px;border-radius:24px;font-weight:700;font-size:14px;cursor:pointer;font-family:inherit;white-space:nowrap;flex-shrink:0;box-shadow:0 4px 12px rgba(0,0,0,.12)}
#qw-inline-card .qw-inline-btn:hover{background:#f0f9f7}
@media (max-width:560px){#qw-inline-card .qw-inline-inner{flex-direction:column;text-align:center;gap:12px;padding:18px 20px}#qw-inline-card .qw-inline-icon{font-size:36px}}

#qw-talk-hint{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 14px;background:linear-gradient(90deg,#fff5e6 0%,#ffe0b3 50%,#fff5e6 100%);background-size:200% 100%;color:#b35900;font-weight:700;font-size:13px;border-bottom:1px solid #ffd699;animation:qw-hint-flash 2s linear infinite;cursor:pointer;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}
@keyframes qw-hint-flash{0%{background-position:200% 0}100%{background-position:-200% 0}}
#qw-talk-hint:hover{filter:brightness(0.95)}
#qw-talk-hint .qw-hint-arrow{font-size:16px;display:inline-block;animation:qw-arrow-bounce 1s ease-in-out infinite}
@keyframes qw-arrow-bounce{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
