:root{
    --mp-bg:#ffffff;
    --mp-panel:#ffffff;
    --mp-text:#111827;
    --mp-muted:#6b7280;
    --mp-border:#e5e7eb;
    --mp-shadow:0 20px 40px rgba(0,0,0,.18);
    --mp-radius:16px;
    --mp-radius-sm:12px;
    --mp-gap:12px;
    --mp-font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
    --mp-accent:#111827;
    --mp-accentText:#ffffff;
    --mp-bubbleUser:#111827;
    --mp-bubbleBot:#f3f4f6;
}

.mp-launcher{
    position:fixed;
    right:18px;
    bottom:18px;
    z-index:999999;
    font-family:var(--mp-font);
    display:flex;
    gap:10px;
    align-items:center;
}
.mp-launcher button{
    border:none;
    cursor:pointer;
    border-radius:999px;
    padding:12px 14px;
    background:var(--mp-accent);
    color:var(--mp-accentText);
    box-shadow: var(--mp-shadow);
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    line-height:1;
}
.mp-launcher button:focus{ outline: 3px solid rgba(17,24,39,.25); outline-offset:2px; }
.mp-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    padding:0 6px;
    border-radius:999px;
    background:#ef4444;
    color:white;
    font-size:12px;
    line-height:18px;
    margin-left:2px;
}

.mp-chat{
    position:fixed;
    right:18px;
    bottom:80px;
    width:380px;
    max-width: calc(100vw - 36px);
    height:560px;
    max-height: calc(100vh - 120px);
    background:var(--mp-panel);
    border:1px solid var(--mp-border);
    border-radius:var(--mp-radius);
    box-shadow:var(--mp-shadow);
    z-index:999999;
    overflow:hidden;
    display:none;
    font-family:var(--mp-font);
    color:var(--mp-text);
}
.mp-chat.mp-open{ display:flex; flex-direction:column; }
.mp-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:14px 14px 12px 14px;
    border-bottom:1px solid var(--mp-border);
    gap:10px;
    background:linear-gradient(180deg, #fff, #fbfbfb);
}
.mp-title{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}
.mp-title strong{
    font-size:14px;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.mp-title span{
    font-size:12px;
    color:var(--mp-muted);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.mp-actions{
    display:flex;
    gap:8px;
    align-items:center;
}
.mp-ghost{
    border:1px solid var(--mp-border);
    background:#fff;
    color:var(--mp-text);
    border-radius:10px;
    padding:8px 10px;
    cursor:pointer;
    font-size:12px;
    line-height:1;
}
.mp-ghost:hover{ background:#f9fafb; }
.mp-ghost:focus{ outline:3px solid rgba(17,24,39,.18); outline-offset:2px; }

.mp-body{
    flex:1;
    display:flex;
    flex-direction:column;
    min-height:0;
}

.mp-messages{
    flex:1;
    padding:14px;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:10px;
    scroll-behavior:smooth;
}

.mp-msg{
    display:flex;
    gap:10px;
    align-items:flex-end;
}
.mp-msg.mp-user{ justify-content:flex-end; }
.mp-bubble{
    max-width: 84%;
    border-radius:var(--mp-radius-sm);
    padding:10px 12px;
    font-size:13px;
    line-height:1.35;
    /*white-space:pre-wrap;*/
    word-wrap:break-word;
    border:1px solid transparent;
    font-family: "Manrope", sans-serif;
}
.mp-bubble a{
    text-decoration: underline;
    color: #f62424
}
.mp-bubble a:hover{
    text-decoration: none;
}
.mp-user .mp-bubble{
    background:var(--mp-bubbleUser);
    color:#fff;
    border-top-right-radius: 6px;
    min-width: 11rem;
}
.mp-bot .mp-bubble{
    background:var(--mp-bubbleBot);
    color:var(--mp-text);
    border-top-left-radius: 6px;
    border-color: rgba(0,0,0,.04);
    min-width: 10rem;
}
.mp-meta{
    font-size:11px;
    color:var(--mp-muted);
    margin-top:6px;
}
.mp-row{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.mp-typing{
    display:inline-flex;
    gap:4px;
    padding:10px 12px;
    background:var(--mp-bubbleBot);
    border:1px solid rgba(0,0,0,.04);
    border-radius:var(--mp-radius-sm);
    border-top-left-radius: 6px;
    width:max-content;
}
.mp-dot{
    width:6px;height:6px;border-radius:999px;background:#9ca3af;
    animation: mp-bounce 1s infinite ease-in-out;
}
.mp-dot:nth-child(2){ animation-delay:.12s; }
.mp-dot:nth-child(3){ animation-delay:.24s; }
@keyframes mp-bounce{
    0%, 80%, 100%{ transform: translateY(0); opacity:.7; }
    40%{ transform: translateY(-5px); opacity:1; }
}

.mp-footer{
    border-top:1px solid var(--mp-border);
    padding:12px;
    background:#fff;
}
.mp-inputWrap{
    display:flex;
    gap:10px;
    align-items:flex-end;
}
.mp-textarea{
    flex:1;
    border:1px solid var(--mp-border);
    border-radius:12px;
    padding:10px 12px;
    font-size:14px;
    resize:none;
    min-height:42px;
    max-height:110px;
    outline:none;
}
.mp-textarea:focus{
    border-color: rgba(17,24,39,.35);
    box-shadow: 0 0 0 3px rgba(17,24,39,.12);
}

.mp-send{
    border:none;
    cursor:pointer;
    border-radius:12px;
    padding:11px 14px;
    background:var(--mp-accent);
    color:var(--mp-accentText);
    font-size:14px;
    line-height:1;
    min-width:86px;
}
.mp-send:disabled{
    opacity:.55;
    cursor:not-allowed;
}

.mp-hint{
    margin-top:8px;
    font-size:12px;
    color:var(--mp-muted);
    display:flex;
    justify-content:space-between;
    gap:10px;
    flex-wrap:wrap;
}
.mp-quick{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}
.mp-chip{
    border:1px solid var(--mp-border);
    background:#fff;
    color:var(--mp-text);
    border-radius:999px;
    padding:6px 10px;
    font-size:12px;
    cursor:pointer;
}
.mp-chip:hover{ background:#f9fafb; }

.chat_socs{
    display: flex!important;
    margin-top: 0.5rem;
}
.chat_socs a{
    text-decoration: none;
    display: flex;
    width: 2.3rem;
    height: 2.3rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: black;
    color: white;
    margin-right: 0.5rem;
}
.chat_socs a .fa-whatsapp{
    font-size: 1.3rem;
}
.chat_socs a .fa-phone{

}
.mp-bubble ul, .mp-bubble ol{
    padding-left: 1.5rem;
}
.chat_socs a:hover{
    opacity: 0.6;
}
@media (max-width: 520px){
    .mp-chat{
        right:0;
        bottom:0;
        width:100vw;
        height:100vh;
        max-height:90vh;
        border-radius:0;
        border-left:none;
        border-right:none;
        border-bottom:none;
    }
    .mp-launcher{ right:14px; bottom:14px; }
}