#lcp-chat-widget * { box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

.lcp-bubble {
    position: fixed; bottom: 24px; right: 24px;
    width: 56px; height: 56px; border-radius: 50%;
    background: #2563eb; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.2);
    z-index: 999999;
}
.lcp-bubble:hover { background: #1e40af; }

.lcp-panel {
    position: fixed; bottom: 96px; right: 24px;
    width: 340px; max-height: 500px; height: 500px;
    background: #fff; border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,.18);
    display: flex; flex-direction: column;
    overflow: hidden; z-index: 999999;
}

.lcp-panel-header {
    background: #2563eb; color: #fff; padding: 14px 16px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600;
}
.lcp-close {
    background: transparent; border: 0; color: #fff;
    font-size: 22px; cursor: pointer; line-height: 1;
}

.lcp-start { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.lcp-start p { margin: 0 0 6px; color: #333; }
.lcp-start input {
    padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 14px;
}
.lcp-start button {
    margin-top: auto; padding: 12px; background: #2563eb; color: #fff;
    border: 0; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.lcp-start button:hover { background: #1e40af; }

.lcp-conv { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.lcp-messages {
    flex: 1; overflow-y: auto; padding: 12px;
    background: #f9fafb; display: flex; flex-direction: column; gap: 8px;
}

.lcp-msg { max-width: 80%; padding: 8px 10px; border-radius: 10px; font-size: 14px; }
.lcp-msg-name { font-size: 11px; color: #6b7280; margin-bottom: 2px; }
.lcp-msg-text { white-space: pre-wrap; word-wrap: break-word; }

.lcp-msg-visitor { background: #2563eb; color: #fff; align-self: flex-end; border-bottom-right-radius: 2px; }
.lcp-msg-visitor .lcp-msg-name { color: rgba(255,255,255,.85); }
.lcp-msg-agent { background: #fff; border: 1px solid #e5e7eb; color: #111827; align-self: flex-start; border-bottom-left-radius: 2px; }

.lcp-input { display: flex; border-top: 1px solid #e5e7eb; padding: 8px; gap: 6px; }
.lcp-input textarea {
    flex: 1; resize: none; border: 1px solid #d1d5db; border-radius: 8px;
    padding: 8px 10px; font-size: 14px; height: 40px;
}
.lcp-input button {
    background: #2563eb; color: #fff; border: 0; border-radius: 8px;
    padding: 0 14px; cursor: pointer; font-weight: 600;
}
.lcp-input button:hover { background: #1e40af; }
