
:root{
    --mf-chatbot-accent:#116530;
    --mf-chatbot-bg:#0c0f16;
    --mf-chatbot-panel:#11151d;
    --mf-chatbot-text:#ffffff;
    --mf-chatbot-muted:#b9c0cc;
    --mf-chatbot-border:rgba(255,255,255,.08);
}
#mf-chatbot-root{
    position:fixed;
    right:20px;
    bottom:110px;
    z-index:99990;
    font-family:Arial, sans-serif;
}
#mf-chatbot-toggle{
    background:var(--mf-chatbot-accent);
    color:#fff;
    border:none;
    border-radius:14px 14px 0 0;
    padding:14px 18px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
    cursor:pointer;
    display:flex;
    align-items:flex-start;
    gap:8px;
}
#mf-chatbot-toggle .mf-toggle-title{
    font-weight:700;
    display:block;
}
#mf-chatbot-toggle .mf-toggle-subtitle{
    opacity:.92;
    font-size:14px;
}
#mf-chatbot-window{
    display:none;
    width:380px;
    max-width:calc(100vw - 20px);
    height:min(680px, 80vh);
    background:var(--mf-chatbot-bg);
    color:var(--mf-chatbot-text);
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 25px 60px rgba(0,0,0,.35);
    border:1px solid var(--mf-chatbot-border);
}
#mf-chatbot-root.mf-chatbot-open #mf-chatbot-window{
    display:flex;
    flex-direction:column;
}
#mf-chatbot-root.mf-chatbot-open #mf-chatbot-toggle{
    display:none;
}
.mf-chatbot-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 18px 14px;
    background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
    border-bottom:1px solid var(--mf-chatbot-border);
}
.mf-chatbot-header strong{
    display:block;
    font-size:18px;
    line-height:1.2;
}
.mf-chatbot-header span{
    display:block;
    color:var(--mf-chatbot-muted);
    font-size:14px;
    margin-top:6px;
}
#mf-chatbot-close{
    background:var(--mf-chatbot-accent);
    color:#fff;
    border:none;
    width:38px;
    height:38px;
    font-size:22px;
    cursor:pointer;
}
#mf-chatbot-messages{
    flex:1;
    overflow-y:auto;
    padding:16px;
    display:flex;
    flex-direction:column;
    gap:12px;
    scroll-behavior:smooth;
}
.mf-msg{
    max-width:85%;
    padding:14px 16px;
    border-radius:18px;
    line-height:1.45;
    font-size:15px;
    word-break:break-word;
}
.mf-msg-bot{
    background:#1b212d;
    color:#fff;
    align-self:flex-start;
}
.mf-msg-user{
    background:#ffffff;
    color:#222;
    align-self:flex-end;
}
.mf-typing{
    display:flex;
    gap:4px;
    align-items:center;
}
.mf-typing span{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#8fa0b8;
    animation:mf-dot 1.2s infinite ease-in-out;
}
.mf-typing span:nth-child(2){animation-delay:.15s;}
.mf-typing span:nth-child(3){animation-delay:.3s;}
@keyframes mf-dot{
    0%,80%,100%{transform:scale(.8);opacity:.45;}
    40%{transform:scale(1.1);opacity:1;}
}
#mf-chatbot-form{
    display:flex;
    gap:10px;
    padding:14px;
    border-top:1px solid var(--mf-chatbot-border);
    background:#0a0d13;
}
#mf-chatbot-input{
    flex:1;
    min-width:0;
    height:48px;
    border-radius:14px;
    border:1px solid var(--mf-chatbot-border);
    background:#0d121b;
    color:#fff;
    padding:0 14px;
    outline:none;
}
#mf-chatbot-send{
    height:48px;
    padding:0 18px;
    border:none;
    border-radius:14px;
    background:#fff;
    color:#111;
    cursor:pointer;
    font-weight:600;
}
@media (max-width: 640px){
    #mf-chatbot-root{
        left:10px;
        right:10px;
        bottom:90px;
    }
    #mf-chatbot-window{
        width:auto;
        max-width:none;
        height:min(72vh, 640px);
    }
    #mf-chatbot-toggle{
        width:100%;
        justify-content:space-between;
        border-radius:14px;
    }
}
