.hs-chat-wrap{display:flex;gap:16px;min-height:520px}
.hs-chat-sidebar{width:380px;background:#fff;border:1px solid #e6eaf2;border-radius:8px;display:flex;flex-direction:column}
.hs-chat-filters{display:flex;gap:8px;padding:12px;border-bottom:1px solid #eef2f7}
.hs-chat-list{flex:1;overflow:auto}
.hs-chat-item{padding:12px;border-bottom:1px solid #f1f4f9;cursor:pointer;display:flex;gap:12px;align-items:flex-start;position:relative}
.hs-chat-item.active{background:#f7faff}
.hs-chat-item:hover{background:#f9fbff}

/* Avito-style chat item layout */
.hs-chat-item-photo{width:60px;height:60px;border-radius:8px;background:#f5f5f5;flex-shrink:0;overflow:hidden;position:relative}
.hs-chat-item-photo img{width:100%;height:100%;object-fit:cover}
.hs-chat-item-photo .no-photo{width:100%;height:100%;background:#e0e0e0;display:flex;align-items:center;justify-content:center;color:#999;font-size:24px}
.hs-chat-item-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.hs-chat-item-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}
.hs-chat-item-name{font-weight:600;color:#333;font-size:14px;line-height:1.2}
.hs-chat-item-online{width:8px;height:8px;background:#00c851;border-radius:50%;flex-shrink:0;margin-top:3px}
.hs-chat-item-title{font-size:13px;color:#666;line-height:1.3;margin:2px 0}
.hs-chat-item-price{font-weight:600;color:#333;font-size:13px}
.hs-chat-item-message{font-size:12px;color:#999;line-height:1.3;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-chat-item-footer{display:flex;justify-content:space-between;align-items:center;margin-top:4px}
.hs-chat-item-date{font-size:11px;color:#999}
.hs-chat-item-unread{background:#ff4444;color:#fff;border-radius:10px;padding:2px 6px;font-size:10px;font-weight:600;min-width:16px;text-align:center}
.hs-chat-pane{flex:1;display:flex;flex-direction:column;background:#fff;border:1px solid #e6eaf2;border-radius:8px}
.hs-chat-header{padding:12px 16px;border-bottom:1px solid #eef2f7;font-weight:600}
.hs-chat-messages{flex:1;padding:16px;overflow:auto;background:linear-gradient(180deg,#fbfdff 0,#fff 100%)}
.hs-chat-message{margin-bottom:12px;padding:8px;border-radius:8px;background:#f8f9fa}
.hs-chat-message-header{font-size:11px;color:#6b7280;margin-bottom:4px}
.hs-chat-message-body{font-size:14px;line-height:1.4}
.hs-read-badge{margin-left:6px;font-size:10px;border-radius:10px;padding:2px 6px}
.hs-read-badge.hs-read{background:#e6f7e9;color:#2e7d32;border:1px solid #c8e6c9}
.hs-read-badge.hs-unread{background:#e8f0fe;color:#1e40af;border:1px solid #c7d2fe}
.hs-chat-form{display:flex;gap:8px;padding:12px;border-top:1px solid #eef2f7}
.hs-chat-form input{flex:1;border:1px solid #dfe6f0;border-radius:6px;padding:10px 12px;font-size:14px}
.btn-primary{background:#3194f7;color:#fff;border:none;border-radius:6px;padding:10px 14px;cursor:pointer}
.btn-primary:hover{background:#227fe0}

/* Floating Support Chat Button + Modal */
.hs-chat-fab{position:fixed;right:24px;bottom:24px;z-index:9999;background:#22c55e;color:#fff;border:none;border-radius:28px;padding:12px 16px;font-weight:600;box-shadow:0 8px 20px rgba(0,0,0,.18);cursor:pointer}
.hs-chat-fab:hover{background:#1fb455}
.hs-chat-fab .badge{display:inline-block;margin-left:8px;background:#ef4444;color:#fff;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700}
.hs-chat-fab.alert{animation:pulse 1.2s infinite; background:#ef4444}
@keyframes pulse{0%{transform:scale(1);opacity:1}50%{transform:scale(1.05);opacity:0.8}100%{transform:scale(1);opacity:1}}
.hs-chat-modal{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;z-index:9998}
.hs-chat-modal.open{display:flex !important;align-items:center;justify-content:center}
.hs-chat-modal .hs-chat-dialog{width:min(960px,96vw);height:min(720px,90vh);background:#f9fbff;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.25);padding:16px;display:flex;gap:16px}
.hs-chat-modal .hs-chat-close{position:absolute;top:18px;right:22px;background:#fff;border:1px solid #e6eaf2;border-radius:8px;padding:6px 10px;cursor:pointer}
