/* Cedar Pool Assistant chat */
.chat-launch{position:fixed; right:24px; bottom:24px; z-index:900; display:flex; align-items:center; gap:10px; padding:14px 20px; border:0; border-radius:999px; background:var(--accent-strong,#15803d); color:#fff; font:700 .95rem/1.2 inherit; font-family:inherit; cursor:pointer; box-shadow:0 10px 24px rgba(0,0,0,.28);}
.chat-launch[hidden],.chat-panel[hidden]{display:none;}
.chat-launch svg{width:26px; height:26px; flex-shrink:0;}
.chat-launch-text{display:flex; flex-direction:column; text-align:left;}
.chat-launch-text small{font-weight:600; font-size:.72rem; opacity:.92;}
.chat-panel{position:fixed; right:24px; bottom:24px; z-index:950; width:380px; max-width:calc(100vw - 24px); height:600px; max-height:calc(100vh - 48px); max-height:calc(100dvh - 48px); display:flex; flex-direction:column; background:var(--surface,#fff); color:var(--text,#0b1f3a); border:1px solid var(--border,#dde3ea); border-radius:18px; overflow:hidden; box-shadow:0 20px 50px rgba(0,0,0,.35);}
.chat-head{display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 16px; background:#0b1f3a; color:#fff;}
.chat-head strong{display:block; font-size:.98rem; color:#fff;}
.chat-head small{display:block; font-size:.74rem; opacity:.85;}
.chat-close{background:none; border:0; color:#fff; font-size:1.7rem; line-height:1; cursor:pointer; padding:4px 8px;}
.chat-log{position:relative; flex:1; min-height:0; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px;}
.chat-msg{max-width:90%; padding:10px 13px; border-radius:14px; font-size:.88rem; line-height:1.5; flex-shrink:0; overflow-wrap:anywhere;}
.chat-msg.bot{align-self:flex-start; background:rgba(120,140,170,.14); border-bottom-left-radius:4px;}
.chat-msg.me{align-self:flex-end; background:var(--accent-strong,#15803d); color:#fff; border-bottom-right-radius:4px;}
.chat-text{white-space:pre-line;}
.chat-links{display:flex; flex-wrap:wrap; gap:6px; margin-top:9px;}
.chat-links .chat-link{padding:5px 11px; border:1px solid var(--border,#dde3ea); border-radius:999px; background:var(--surface,#fff); color:var(--text,#0b1f3a); font-weight:700; font-size:.78rem;}
.chat-products{list-style:none; margin:8px 0 0; padding:0; display:flex; flex-direction:column; gap:7px;}
.chat-products li{padding:8px 10px; border-radius:10px; background:var(--surface,#fff); border:1px solid var(--border,#dde3ea);}
.chat-products a{font-weight:700; color:var(--accent-strong,#15803d); text-decoration:underline;}
.chat-products small{display:block; font-size:.76rem; opacity:.8;}
.chat-chips{display:flex; flex-wrap:wrap; gap:6px; padding:8px 12px; border-top:1px solid var(--border,#dde3ea); flex-shrink:0;}
.chat-chip{white-space:nowrap; padding:6px 11px; border-radius:999px; border:1px solid var(--border,#dde3ea); background:none; color:inherit; font:600 .78rem inherit; font-family:inherit; cursor:pointer;}
.chat-form{display:flex; gap:8px; padding:4px 12px 10px; flex-shrink:0;}
.chat-form input{flex:1; min-width:0; padding:10px 13px; border-radius:999px; border:1px solid var(--border,#dde3ea); background:var(--surface,#fff); color:inherit; font-family:inherit; font-size:16px;}
.chat-form button{padding:10px 16px; border:0; border-radius:999px; background:var(--accent-strong,#15803d); color:#fff; font-family:inherit; font-weight:700; cursor:pointer;}
.chat-foot{display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; padding:0 14px 10px; font-size:.72rem; flex-shrink:0;}
.chat-foot a{font-weight:700; color:var(--accent-strong,#15803d); text-decoration:underline;}
.chat-foot span{opacity:.7;}
@media (max-width:640px){
  .chat-launch{right:16px; bottom:16px; padding:14px; border-radius:50%;}
  .chat-launch-text{display:none;}
  .chat-panel{right:8px; left:8px; bottom:8px; width:auto; max-width:none; height:calc(100vh - 16px); height:calc(100dvh - 16px); max-height:none;}
}
.chat-actions{display:flex; align-items:center; gap:6px;}
.chat-end{background:none; border:1px solid rgba(255,255,255,.5); color:#fff; border-radius:999px; padding:4px 10px; font-family:inherit; font-size:.74rem; font-weight:700; cursor:pointer;}
.chat-end[hidden]{display:none;}
.chat-notice{flex-basis:100%; margin:0; font-size:.7rem; line-height:1.4; opacity:.75;}
.chat-foot .chat-notice a{font-weight:600;}
