.cdc-chat { --cdc-lift: 0px; position: fixed; right: 16px; bottom: calc(16px + var(--cdc-lift)); z-index: 9990; font: 14px/1.4 Rubik, system-ui, sans-serif; color: #201E1E; transition: bottom .2s; }
.cdc-chat__b { width: 56px; height: 56px; border: 0; border-radius: 50%; background: #C8006A; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(200,0,106,.6); position: relative; }
.cdc-chat__b i { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #14171D; color: #fff; font: 700 11px/20px Rubik, sans-serif; font-style: normal; }
.cdc-chat__b i[hidden] { display: none; }
.cdc-chat.is-open .cdc-chat__b { display: none; }
.cdc-chat__p { position: absolute; right: 0; bottom: 0; width: 360px; height: min(560px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(20,23,29,.45); display: flex; flex-direction: column; overflow: hidden; }
.cdc-chat__p[hidden] { display: none; }
.cdc-chat__p header { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #14171D; color: #fff; }
.cdc-chat__p header div { flex: 1; } .cdc-chat__p header b { display: block; font-size: 15px; } .cdc-chat__p header small { font-size: 12px; opacity: .75; }
.cdc-chat__p header em { font-style: normal; font-size: 11px; background: #FFE800; color: #201E1E; border-radius: 99px; padding: 2px 8px; font-weight: 600; }
.cdc-chat__x { border: 0; background: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; min-width: 36px; min-height: 36px; }
.cdc-chat__m { flex: 1; overflow: auto; padding: 14px; background: #F6F7F9; display: flex; flex-direction: column; gap: 8px; }
.cdc-chat__msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.cdc-chat__msg a { color: inherit; text-decoration: underline; }
.cdc-chat__msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.cdc-chat__msg.cliente { align-self: flex-end; background: #C8006A; color: #fff; border-bottom-right-radius: 4px; }
.cdc-chat__msg.ia, .cdc-chat__msg.agente { align-self: flex-start; background: #fff; border: 1px solid #E3E7EC; border-bottom-left-radius: 4px; }
.cdc-chat__msg.sistema { align-self: center; background: #EEF4FB; color: #3D4C5F; font-size: 12.5px; text-align: center; max-width: 95%; }
.cdc-chat__msg.tmp { opacity: .7; }
.cdc-chat__typing { align-self: flex-start; background: #fff; border: 1px solid #E3E7EC; border-radius: 14px; padding: 10px 12px; display: flex; gap: 4px; }
.cdc-chat__typing i { width: 6px; height: 6px; border-radius: 50%; background: #8A93A0; animation: cdcdot 1s infinite; } .cdc-chat__typing i:nth-child(2) { animation-delay: .15s; } .cdc-chat__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cdcdot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.cdc-chat__c { padding: 10px 12px; border-top: 1px solid #E3E7EC; display: grid; gap: 6px; background: #FFF7FB; }
.cdc-chat__c[hidden] { display: none; }
.cdc-chat__c p { margin: 0; font-weight: 600; font-size: 13px; }
.cdc-chat__c input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid #C4CDD6; border-radius: 10px; }
.cdc-chat__c button { border: 0; border-radius: 99px; background: #C8006A; color: #fff; font: 600 14px Rubik, sans-serif; padding: 10px; cursor: pointer; }
.cdc-chat__f { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px 6px; border-top: 1px solid #E3E7EC; }
.cdc-chat__f textarea { flex: 1; resize: none; min-height: 44px !important; height: 44px; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #C4CDD6; border-radius: 12px; max-height: 110px; outline: none; }
.cdc-chat__f textarea:focus { border-color: #C8006A; }
.cdc-chat__f button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #C8006A; color: #fff; display: grid; place-items: center; cursor: pointer; }
.cdc-chat__h { border: 0; background: none; color: #5A6371; font: 500 13px Rubik, sans-serif; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0 12px; cursor: pointer; min-height: 32px; }
.cdc-chat__h[hidden] { display: none; }
@media (max-width: 600px) {
  .cdc-chat { right: 12px; }
  .cdc-chat.is-open { inset: 0; }
  .cdc-chat__p { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; }
}
