/* Brand styling for the SaaS chat widget (.cw-*). The widget injects its own small, system-font styles;
   these rules are more specific, so they win. Dark theme in the site palette (black, khaki #E0D7C7, orange #D0643E). */
.cw-root { font-family: "DM Sans", sans-serif; }
.cw-root .cw-header { background: #3A2416 !important; border-bottom: 2px solid #D0643E; }
.cw-root .cw-name { font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; color: #E0D7C7 !important; }
.cw-root .cw-status { font-size: 12px; color: #B4A996 !important; }
.cw-root .cw-header button, .cw-root .cw-header svg { color: #E0D7C7 !important; }
.cw-root .cw-avatar { background: #000 !important; border: 1px solid #3A2416; }
.cw-root .cw-avatar img { background: #000; }
.cw-root .cw-messages { background: #0B0806; }
.cw-root .cw-msg { font-size: 15px; line-height: 1.55; }
.cw-root .cw-msg-bot { background: #17120D; color: #E0D7C7; border-color: #3A2416; }
.cw-root .cw-msg-time { font-size: 11px; }
.cw-root .cw-input, .cw-root .cw-prechat input { font-family: inherit; font-size: 15px; color: #E0D7C7; background: #120C08; border-color: #3A2416; }
.cw-root .cw-input:focus, .cw-root .cw-prechat input:focus { border-color: #D0643E; }
.cw-root .cw-prechat label { font-size: 13px; color: #B4A996; }
.cw-root .cw-prechat-btn { font-family: inherit; font-size: 15px; }
.cw-root .cw-btn { font-family: inherit; font-size: 13px; border-color: #3A2416; color: #E0D7C7; }
.cw-root .cw-prompt { font-family: inherit; font-size: 14px; color: #F3E6D3 !important; background: linear-gradient(160deg, #3A2416, #1A100A) !important; border: 1px solid rgba(251,158,9,.55) !important; border-radius: 14px !important; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), 0 0 0 3px rgba(251,158,9,.08) !important; }

/* Voice input button added by /js/chat-widget-mic.js */
.cw-root .cw-mic { width: 40px; height: 40px; flex-shrink: 0; border-radius: 8px; border: 1px solid #3A2416; background: #120C08; color: #E0D7C7; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cw-root .cw-mic svg { width: 18px; height: 18px; }
.cw-root .cw-mic.on { background: #D0643E; border-color: #D0643E; color: #0B0806; }

/* "Audit my website" strip added by /js/chat-widget-mic.js */
.cw-root .cw-audit { display: block; padding: 10px 16px; background: #D0643E; color: #0B0806; font-weight: 700; font-size: 14px; text-align: center; text-decoration: none; }
.cw-root .cw-audit:hover { background: #C35724; color: #fff; }

/* Desktop: a larger, easier to read panel */
@media (min-width: 768px) {
  .cw-root .cw-box { width: 420px; height: min(640px, calc(100vh - 110px)); }
  .cw-root .cw-avatar { width: 42px; height: 42px; border-radius: 21px; }
  .cw-root .cw-header { padding: 16px 18px; }
  .cw-root .cw-messages { padding: 18px; gap: 12px; }
  .cw-root .cw-msg { font-size: 16px; max-width: 85%; }
  .cw-root .cw-input-bar { padding: 12px 14px; }
  .cw-root .cw-input { font-size: 16px; padding: 10px 14px; }
  .cw-root .cw-send { width: 42px; height: 42px; }
  .cw-root .cw-mic { width: 42px; height: 42px; }
}

/* Mobile: hide the greeting bubble, it covers page content */
.cw-root .cw-prompt{display:none!important}
.cw-root .cw-fab{background:#FB9E09!important;color:#140E0A!important;animation:cwGlow 2.4s ease-in-out infinite}
.cw-root .cw-fab svg{color:#140E0A!important;fill:currentColor}
.cw-root .cw-fab:hover{animation-play-state:paused;box-shadow:0 0 0 6px rgba(251,158,9,.35),0 0 28px 6px rgba(251,158,9,.55)!important}
@keyframes cwGlow{0%,100%{box-shadow:0 0 0 0 rgba(251,158,9,.55),0 0 14px 2px rgba(251,158,9,.35)}50%{box-shadow:0 0 0 10px rgba(251,158,9,0),0 0 26px 8px rgba(251,158,9,.6)}}
