/* MoneyMood Chat */
.mm-chat-inline{margin:3rem 0 1rem;padding:1.6rem;background:#f6f8fa;border:1px solid #e2e6eb;
  border-top:4px solid #16c79a;border-radius:10px;box-shadow:0 1px 3px rgba(15,52,96,.06),0 8px 24px rgba(15,52,96,.05)}
.mm-chat-badge{display:inline-block;font-size:.7rem;font-weight:750;letter-spacing:.09em;text-transform:uppercase;
  color:#fff;background:#16c79a;padding:.25rem .65rem;border-radius:99px;margin-bottom:.7rem}
.mm-chat-inline__head h3{margin:.2rem 0 .4rem;font-size:1.25rem;color:#0f3460}
.mm-chat-inline__head p{margin:0 0 1rem;font-size:.94rem;color:#5a6472;line-height:1.55}

.mm-chat-suggestions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.mm-chip{font:inherit;font-size:.85rem;font-weight:600;color:#0f3460;background:#fff;
  border:1px solid #cfd8e3;border-radius:99px;padding:.42rem .9rem;cursor:pointer;transition:all .15s}
.mm-chip:hover{background:#0f3460;color:#fff;border-color:#0f3460}

.mm-chat-log{display:flex;flex-direction:column;gap:.6rem;max-height:340px;overflow-y:auto}
.mm-chat-log:not(:empty){margin-bottom:1rem;padding:.9rem;background:#fff;border:1px solid #e2e6eb;border-radius:8px}
.mm-msg{max-width:88%;padding:.65rem .9rem;border-radius:12px;font-size:.94rem;line-height:1.55;white-space:pre-wrap}
.mm-msg--user{align-self:flex-end;background:#0f3460;color:#fff;border-bottom-right-radius:3px}
.mm-msg--bot{align-self:flex-start;background:#eef2f6;color:#1a1a2e;border-bottom-left-radius:3px}
.mm-msg--degraded{background:#fff6e5;border:1px solid #f0d9a8}
.mm-msg--wait{display:flex;gap:5px;align-items:center;padding:.8rem .9rem}
.mm-msg--wait span{width:7px;height:7px;border-radius:50%;background:#8fa3b8;animation:mmb 1.2s infinite}
.mm-msg--wait span:nth-child(2){animation-delay:.18s}
.mm-msg--wait span:nth-child(3){animation-delay:.36s}
@keyframes mmb{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}

.mm-chat-form{display:flex;gap:.5rem}
.mm-chat-input{flex:1;font:inherit;font-size:.95rem;padding:.7rem .9rem;border:1px solid #cfd8e3;
  border-radius:8px;background:#fff;color:#1a1a2e}
.mm-chat-input:focus{outline:none;border-color:#16c79a;box-shadow:0 0 0 3px rgba(22,199,154,.16)}
.mm-chat-send{font:inherit;font-weight:700;font-size:.92rem;color:#fff;background:#0f3460;border:0;
  border-radius:8px;padding:.7rem 1.2rem;cursor:pointer;transition:background .15s}
.mm-chat-send:hover{background:#16c79a}
.mm-chat-legal{margin:.9rem 0 0;font-size:.78rem;color:#7b8794;line-height:1.5}

/* widget flotante */
.mm-fab{position:fixed;right:20px;bottom:20px;z-index:9998;display:flex;align-items:center;gap:.5rem;
  font:inherit;font-weight:700;font-size:.92rem;color:#fff;background:#0f3460;border:0;
  border-radius:99px;padding:.8rem 1.3rem;cursor:pointer;
  box-shadow:0 4px 14px rgba(15,52,96,.3);transition:transform .15s,background .15s}
.mm-fab:hover{background:#16c79a;transform:translateY(-2px)}
.mm-fab__icon{font-size:1.1rem}

.mm-panel{position:fixed;right:20px;bottom:20px;z-index:9999;width:min(390px,calc(100vw - 40px));
  display:flex;flex-direction:column;background:#fff;border:1px solid #e2e6eb;border-radius:14px;
  box-shadow:0 12px 44px rgba(15,52,96,.26);overflow:hidden}
.mm-panel[hidden]{display:none}
.mm-panel__head{display:flex;align-items:center;justify-content:space-between;
  padding:.85rem 1rem;background:#0f3460;color:#fff;border-bottom:3px solid #16c79a}
.mm-panel__close{font-size:1.5rem;line-height:1;color:#fff;background:none;border:0;cursor:pointer;padding:0 .2rem}
.mm-panel__log{min-height:120px;max-height:46vh;padding:1rem}
.mm-panel__log:not(:empty){margin:0;border:0;border-radius:0}
.mm-panel__form{padding:.8rem 1rem}
.mm-panel__form .mm-chat-send{padding:.7rem .95rem}
.mm-panel__legal{padding:0 1rem .9rem;margin:0;font-size:.72rem}

@media(max-width:600px){
  .mm-fab__text{display:none}
  .mm-fab{padding:.9rem}
  .mm-panel{right:10px;left:10px;bottom:10px;width:auto}
  .mm-chat-inline{padding:1.1rem}
}
