/* ChatConnect Pro Frontend Styles (v1.0.1) */
#ccp-launcher{position:fixed;bottom:24px;right:24px;z-index:99999}
#ccp-container{position:fixed;bottom:94px;right:24px;width:360px;max-width:92vw;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.15);overflow:hidden;transform:translateY(20px);opacity:0;pointer-events:none;transition:all .25s ease;z-index:99999}
#ccp-container.ccp-open{transform:translateY(0);opacity:1;pointer-events:auto}
.ccp-header{display:flex;align-items:center;gap:10px;padding:12px;font-weight:600}
.ccp-body{background:#fff;display:flex;flex-direction:column;max-height:60vh;height:420px}
.ccp-messages{flex:1;overflow:auto;padding:12px;scroll-behavior:smooth}
.ccp-input{display:flex;gap:8px;padding:10px;border-top:1px solid #e5e7eb;background:#fafafa}
.ccp-input input{flex:1;border:1px solid #e5e7eb;border-radius:9999px;padding:10px 14px;font-size:14px}
.ccp-input button{border:0;border-radius:9999px;padding:10px 14px;cursor:pointer}
.ccp-bubble{display:inline-block;width:auto;max-width:100%;padding:12px 14px;border-radius:14px;margin:4px 0;word-wrap:break-word;word-break:break-word}
.ccp-bubble-user{margin-left:auto}
.ccp-bubble-bot{margin-right:auto}
.ccp-meta{font-size:11px;color:#6b7280;margin-top:2px}
.ccp-typing{font-size:12px;opacity:.8;padding:4px 0}
.ccp-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover}
.ccp-row{display:flex;gap:8px;align-items:flex-end}
.ccp-row.user{justify-content:flex-end}
@media (max-width:480px){
  #ccp-container{width:96vw;right:2vw;bottom:80px;height:70vh;max-height:70vh}
}

/* Stretch message wrapper so bubbles can fill remaining width */
.ccp-row .ccp-wrap{flex:1;min-width:0}
/* Keep layout tidy around avatars */
.ccp-row>.ccp-avatar{flex:0 0 28px}
/* Align bubbles */
.ccp-bubble-user{text-align:right}

/* Dynamic bubble sizing & alignment */
.ccp-row .ccp-wrap{flex:1;min-width:0;display:flex;flex-direction:column}
.ccp-row.user .ccp-wrap{align-items:flex-end}
.ccp-row.bot .ccp-wrap{align-items:flex-start}
