/* Widget de chat público */
.dc-chat-bubble{position:fixed;right:22px;bottom:22px;z-index:80;display:flex;align-items:center;gap:9px;padding:12px 17px;border:0;border-radius:999px;background:#5b0080;color:#fff;font:inherit;font-weight:650;box-shadow:0 12px 28px rgba(13,13,13,.28);cursor:pointer}
.dc-chat-bubble:hover{background:#450062}
.dc-chat-bubble .icon{width:19px;height:19px}
.dc-chat-panel{position:fixed;right:22px;bottom:86px;z-index:81;display:none;flex-direction:column;width:min(380px,calc(100vw - 28px));height:min(560px,calc(100vh - 120px));background:#fff;border:1px solid #d8d8d2;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px rgba(13,13,13,.28)}
.dc-chat-panel.is-open{display:flex}
.dc-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:14px 16px;background:#5b0080;color:#fff}
.dc-chat-head strong{display:block;font-size:15px}
.dc-chat-head span{display:block;margin-top:2px;font-size:12px;opacity:.82}
.dc-chat-close{border:0;background:transparent;color:#fff;font-size:23px;line-height:1;cursor:pointer;padding:0 2px}
.dc-chat-status{font-size:12px;padding:8px 16px;background:#fafaf7;border-bottom:1px solid #e6e6e2;color:#5a5a52}
.dc-chat-messages{flex:1;overflow-y:auto;padding:14px;background:#fafaf7;display:flex;flex-direction:column;gap:9px}
.dc-chat-msg{max-width:86%;padding:9px 11px;border-radius:12px;font-size:14px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.dc-chat-msg--visitor{align-self:flex-end;background:#5b0080;color:#fff;border-bottom-right-radius:4px}
.dc-chat-msg--agent,.dc-chat-msg--ai{align-self:flex-start;background:#fff;color:#2f2f2a;border:1px solid #e2e2dc;border-bottom-left-radius:4px}
.dc-chat-msg--ai{border-color:#ecd48a;background:#fffdf5}
.dc-chat-msg__who{display:block;margin-bottom:3px;font-size:11px;font-weight:700;opacity:.72}
.dc-chat-form{display:flex;gap:8px;padding:11px;border-top:1px solid #e6e6e2;background:#fff}
.dc-chat-form textarea{flex:1;min-height:42px;max-height:100px;resize:none;border:1px solid #d8d8d2;border-radius:10px;padding:9px 10px;font:inherit;font-size:14px;line-height:1.35}
.dc-chat-form button{flex:0 0 auto;border:0;border-radius:10px;background:#fdb502;color:#151510;font:inherit;font-weight:700;padding:0 14px;cursor:pointer}
.dc-chat-form button:disabled{opacity:.55;cursor:wait}
.dc-chat-hint{padding:0 16px 9px;font-size:11px;color:#8a8a80;background:#fff}
@media (max-width:620px){
  .dc-chat-bubble{right:14px;bottom:14px;padding:11px 15px}
  .dc-chat-panel{right:0;bottom:0;width:100%;height:min(620px,calc(100vh - 70px));border-radius:16px 16px 0 0}
}
