.remecsa-chat-widget { font-family: Inter, Arial, sans-serif; color: #1f2937; }
.remecsa-chat-widget.is-floating { position: fixed; right: 22px; bottom: 22px; z-index: 99999; }
.remecsa-chat-toggle { min-width: 96px; height: 58px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--remecsa-chat-color, #18823b); color: #fff; font-weight: 800; box-shadow: 0 12px 28px rgba(0,0,0,.22); cursor: pointer; }
.remecsa-chat-panel { width: 380px; max-width: calc(100vw - 36px); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 16px 42px rgba(0,0,0,.22); border: 1px solid #e5e7eb; }
.remecsa-chat-widget.is-floating .remecsa-chat-panel { display: none; position: absolute; right: 0; bottom: 76px; }
.remecsa-chat-widget.is-floating.is-open .remecsa-chat-panel { display: block; }
.remecsa-chat-widget.is-inline .remecsa-chat-panel { width: 100%; box-shadow: none; }
.remecsa-chat-head { background: var(--remecsa-chat-color, #18823b); color: #fff; padding: 18px 20px; display: flex; flex-direction: column; gap: 3px; }
.remecsa-chat-head strong { font-size: 18px; letter-spacing: .01em; }
.remecsa-chat-head span { font-size: 13px; opacity: .9; }
.remecsa-chat-messages { height: 270px; overflow-y: auto; background: #f8fbf8; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.remecsa-chat-bubble { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.42; white-space: pre-wrap; }
.remecsa-chat-bubble.is-client { align-self: flex-end; background: var(--remecsa-chat-color, #18823b); color: #fff; border-bottom-right-radius: 5px; }
.remecsa-chat-bubble.is-assistant { align-self: flex-start; background: #fff; color: #213547; border: 1px solid #e1e8e3; border-bottom-left-radius: 5px; }
.remecsa-chat-bubble.is-typing { opacity: .72; font-style: italic; }
.remecsa-chat-form { padding: 14px; display: grid; gap: 10px; background: #fff; }
.remecsa-chat-client-fields { display: grid; gap: 8px; }
.remecsa-chat-client-fields.is-collapsed { display: none; }
.remecsa-chat-form input, .remecsa-chat-form textarea { width: 100%; border: 1px solid #dbe2de; border-radius: 10px; padding: 11px 12px; font: inherit; outline: none; box-sizing: border-box; }
.remecsa-chat-form input:focus, .remecsa-chat-form textarea:focus { border-color: var(--remecsa-chat-color, #18823b); box-shadow: 0 0 0 3px rgba(24,130,59,.12); }
.remecsa-chat-form button[type="submit"] { min-height: 44px; border: 0; border-radius: 10px; background: var(--remecsa-chat-color, #18823b); color: #fff; font-weight: 800; cursor: pointer; }
.remecsa-chat-new { border: 0; background: transparent; color: #536171; cursor: pointer; font-size: 12px; justify-self: center; }
.remecsa-chat-status { min-height: 18px; margin: 0; color: #536171; font-size: 12px; line-height: 1.4; }
@media (max-width: 520px) { .remecsa-chat-widget.is-floating { right: 14px; bottom: 14px; } .remecsa-chat-panel { width: calc(100vw - 28px); } }

/* v17 live conversation improvements */
.remecsa-chat-panel { display: flex; flex-direction: column; max-height: min(720px, calc(100vh - 105px)); }
.remecsa-chat-messages { min-height: 280px; flex: 1; }
.remecsa-chat-bubble-label { display: block; font-size: 11px; font-weight: 800; opacity: .72; margin-bottom: 4px; }
.remecsa-chat-bubble.is-advisor { align-self: flex-start; background: #eef6ff; color: #1f2f46; border: 1px solid #cfe4ff; border-bottom-left-radius: 5px; }
.remecsa-chat-form button[disabled] { opacity: .65; cursor: not-allowed; }
.remecsa-chat-status { text-align: center; }
