.map-live-chat-overlay{
position:fixed;inset:0;z-index:2147482000;background:rgba(5,20,44,.48);opacity:0;transition:.2s
}
.map-live-chat-overlay.is-open{opacity:1}
.map-live-chat-panel{
position:fixed;right:20px;bottom:20px;z-index:2147482001;width:min(390px,calc(100vw - 24px));height:min(650px,calc(100vh - 40px));display:flex;flex-direction:column;border-radius:16px;background:#fff;box-shadow:0 24px 70px rgba(0,0,0,.3);overflow:hidden;transform:translateY(16px);opacity:0;transition:.2s;font-family:Arial,Helvetica,sans-serif
}
.map-live-chat-panel.is-open{transform:translateY(0);opacity:1}
.map-live-chat-header{min-height:76px;padding:12px 14px;display:grid;grid-template-columns:48px 1fr 40px;align-items:center;gap:10px;background:linear-gradient(110deg,#0b4ba8,#073577);color:#fff}
.map-live-chat-header strong{display:block;font-size:16px}
.map-live-chat-header span{display:block;margin-top:3px;font-size:11px;opacity:.88}
.map-live-chat-header button{width:36px;height:36px;border:0;border-radius:8px;background:rgba(255,255,255,.16);color:#fff;font-size:23px;cursor:pointer}
.map-live-chat-agent-icon{width:44px;height:44px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#fff;color:#0b4ba8}
.map-live-chat-agent-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.map-live-chat-start{padding:22px;display:flex;flex-direction:column;gap:12px}
.map-live-chat-start p{margin:0 0 4px;color:#344054;font-size:14px}
.map-live-chat-start input,.map-live-chat-form textarea{width:100%;border:1px solid #d0d5dd;border-radius:9px;padding:11px 12px;font:inherit;outline:none;box-sizing:border-box}
.map-live-chat-start input:focus,.map-live-chat-form textarea:focus{border-color:#0b4ba8;box-shadow:0 0 0 3px rgba(11,75,168,.12)}
.map-live-chat-start button,.map-live-chat-form button{border:0;border-radius:9px;background:#ed1c24;color:#fff;font-weight:900;cursor:pointer}
.map-live-chat-start button{min-height:46px}
.map-live-chat-conversation{min-height:0;flex:1;display:flex;flex-direction:column}
.map-live-chat-status{padding:8px 12px;background:#eef5ff;color:#0b4ba8;font-size:11px;font-weight:800;text-align:center}
.map-live-chat-messages{min-height:0;flex:1;padding:14px;overflow:auto;background:#f8fafc}
.map-live-message{max-width:82%;margin:0 0 10px;padding:9px 11px;border-radius:12px;display:flex;flex-direction:column;gap:3px;font-size:13px;line-height:1.4}
.map-live-message strong{font-size:10px;opacity:.72}
.map-live-message.is-customer{margin-left:auto;background:#0b4ba8;color:#fff;border-bottom-right-radius:4px}
.map-live-message.is-agent{margin-right:auto;background:#fff;color:#111827;border:1px solid #e4e7ec;border-bottom-left-radius:4px}
.map-live-message.is-system{max-width:100%;margin-left:auto;margin-right:auto;background:#fff7e8;color:#7a4b00;text-align:center}
.map-live-chat-form{padding:10px;display:grid;grid-template-columns:1fr 76px;gap:8px;border-top:1px solid #e4e7ec;background:#fff}
.map-live-chat-form textarea{resize:none}
.map-live-chat-form button{min-height:48px}
@media(max-width:600px){
.map-live-chat-panel{right:0;bottom:0;width:100vw;height:100vh;max-width:none;max-height:none;border-radius:0}
}

.map-live-chat-closed-actions{
    padding:10px 12px;
    background:#fff7e8;
    border-bottom:1px solid #f1d6a7;
    text-align:center;
}
.map-live-chat-closed-actions[hidden]{display:none!important}
.map-live-chat-closed-actions button{
    min-height:42px;
    padding:10px 16px;
    border:0;
    border-radius:8px;
    background:#0b4ba8;
    color:#fff;
    font-weight:900;
    cursor:pointer;
}
.map-live-chat-closed-actions button:hover{background:#083a82}


.map-live-chat-compose{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:7px;
}
.map-live-chat-attachment-row{
    min-height:30px;
    display:flex;
    align-items:center;
    gap:7px;
    overflow:hidden;
}
.map-live-chat-attach-button{
    flex:0 0 auto;
    padding:6px 9px;
    border:1px solid #cfd8e6;
    border-radius:7px;
    background:#f4f7fb;
    color:#0b4ba8;
    font-size:11px;
    font-weight:800;
    cursor:pointer;
}
.map-live-chat-file-name{
    min-width:0;
    overflow:hidden;
    color:#475467;
    font-size:10px;
    white-space:nowrap;
    text-overflow:ellipsis;
}
.map-live-chat-clear-file{
    flex:0 0 25px;
    width:25px;
    height:25px;
    padding:0;
    border:0;
    border-radius:50%;
    background:#e4e7ec;
    color:#344054;
    cursor:pointer;
}
.map-live-message-attachment{
    display:block;
    margin-top:5px;
    color:inherit;
    font-weight:800;
    text-decoration:none;
}
.map-live-message-attachment img{
    display:block;
    width:auto;
    max-width:220px;
    max-height:190px;
    border-radius:9px;
    object-fit:contain;
    background:#fff;
}


/* MAP Live Support Desk v1.1.1 — compact composer */
.map-live-chat-form-compact{
    padding:10px!important;
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr) 68px!important;
    align-items:end!important;
    gap:8px!important;
    border-top:1px solid #e4e7ec!important;
    background:#fff!important;
}

.map-live-chat-plus-button{
    width:38px!important;
    height:38px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:#0b4ba8!important;
    color:#fff!important;
    font-size:25px!important;
    font-weight:500!important;
    line-height:1!important;
    cursor:pointer!important;
    box-shadow:0 4px 10px rgba(11,75,168,.22)!important;
}

.map-live-chat-plus-button:hover{
    background:#083a82!important;
}

.map-live-chat-form-compact .map-live-chat-compose{
    min-width:0!important;
    gap:5px!important;
}

.map-live-chat-form-compact textarea{
    min-height:42px!important;
    max-height:90px!important;
    padding:10px 11px!important;
    border-radius:9px!important;
    resize:none!important;
}

.map-live-chat-send-small{
    width:68px!important;
    min-width:68px!important;
    height:42px!important;
    min-height:42px!important;
    padding:0 10px!important;
    border-radius:9px!important;
    font-size:13px!important;
}

.map-live-chat-attachment-preview{
    min-width:0!important;
    padding:5px 7px!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    border-radius:7px!important;
    background:#eef5ff!important;
}

.map-live-chat-attachment-preview[hidden]{
    display:none!important;
}

.map-live-chat-file-name{
    flex:1 1 auto!important;
    min-width:0!important;
    overflow:hidden!important;
    color:#0b4ba8!important;
    font-size:10px!important;
    font-weight:700!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
}

.map-live-chat-clear-file{
    flex:0 0 23px!important;
    width:23px!important;
    height:23px!important;
    min-width:23px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:#d0d5dd!important;
    color:#344054!important;
    font-size:15px!important;
    line-height:1!important;
}

@media(max-width:420px){
    .map-live-chat-form-compact{
        grid-template-columns:38px minmax(0,1fr) 60px!important;
        gap:6px!important;
    }

    .map-live-chat-send-small{
        width:60px!important;
        min-width:60px!important;
    }
}


/* MAP Live Support Desk v1.1.2 — clean inline composer */
.map-live-chat-form-compact{
    padding:10px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
    border-top:1px solid #e4e7ec!important;
    background:#fff!important;
}

.map-live-chat-input-row{
    display:grid!important;
    grid-template-columns:36px minmax(0,1fr) 62px!important;
    align-items:end!important;
    gap:7px!important;
}

.map-live-chat-file-input{
    display:none!important;
    visibility:hidden!important;
    width:0!important;
    height:0!important;
    opacity:0!important;
    position:absolute!important;
    left:-99999px!important;
    pointer-events:none!important;
}

.map-live-chat-plus-button{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:transparent!important;
    color:#0b4ba8!important;
    font-size:30px!important;
    font-weight:400!important;
    line-height:1!important;
    cursor:pointer!important;
    box-shadow:none!important;
}

.map-live-chat-plus-button:hover{
    background:transparent!important;
    color:#083a82!important;
}

.map-live-chat-input-row textarea{
    width:100%!important;
    min-height:42px!important;
    max-height:90px!important;
    padding:10px 11px!important;
    border:1px solid #d0d5dd!important;
    border-radius:9px!important;
    resize:none!important;
    box-sizing:border-box!important;
}

.map-live-chat-send-small{
    width:62px!important;
    min-width:62px!important;
    height:40px!important;
    min-height:40px!important;
    padding:0 9px!important;
    border-radius:8px!important;
    font-size:12px!important;
}

.map-live-chat-attachment-preview{
    margin-left:41px!important;
    margin-right:69px!important;
}

@media(max-width:420px){
    .map-live-chat-input-row{
        grid-template-columns:34px minmax(0,1fr) 58px!important;
        gap:6px!important;
    }

    .map-live-chat-send-small{
        width:58px!important;
        min-width:58px!important;
    }

    .map-live-chat-attachment-preview{
        margin-left:40px!important;
        margin-right:64px!important;
    }
}


/* MAP Live Support Desk v1.2.0 — modern ChatGPT-style composer */
.map-live-chat-modern-form{
    padding:10px 11px 11px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:6px!important;
    border-top:1px solid #e4e7ec!important;
    background:#fff!important;
}

.map-live-chat-composer{
    position:relative!important;
    min-height:48px!important;
    display:grid!important;
    grid-template-columns:auto minmax(0,1fr) 40px!important;
    align-items:end!important;
    gap:7px!important;
    padding:7px 7px 7px 8px!important;
    border:1px solid #d0d5dd!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 2px 10px rgba(16,24,40,.07)!important;
    transition:.18s!important;
}

.map-live-chat-composer:focus-within{
    border-color:#0b4ba8!important;
    box-shadow:0 0 0 3px rgba(11,75,168,.11)!important;
}

.map-live-chat-composer.is-dragover{
    border-color:#0b4ba8!important;
    background:#eef5ff!important;
}

.map-live-chat-tools{
    display:flex!important;
    align-items:center!important;
    gap:2px!important;
    padding-bottom:2px!important;
}

.map-live-chat-tool-button,
.map-live-chat-plus-button{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:transparent!important;
    color:#344054!important;
    font-size:22px!important;
    line-height:1!important;
    cursor:pointer!important;
    box-shadow:none!important;
}

.map-live-chat-tool-button:hover,
.map-live-chat-plus-button:hover{
    background:#f2f4f7!important;
    color:#0b4ba8!important;
}

.map-live-chat-composer textarea{
    width:100%!important;
    min-height:32px!important;
    max-height:120px!important;
    padding:7px 2px 5px!important;
    border:0!important;
    outline:0!important;
    resize:none!important;
    box-shadow:none!important;
    background:transparent!important;
    color:#101828!important;
    font-size:13px!important;
    line-height:1.45!important;
    overflow-y:auto!important;
    box-sizing:border-box!important;
}

.map-live-chat-send-icon{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:50%!important;
    background:#0b4ba8!important;
    color:#fff!important;
    cursor:pointer!important;
    box-shadow:0 4px 10px rgba(11,75,168,.2)!important;
}

.map-live-chat-send-icon svg{
    width:18px!important;
    height:18px!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:1.8!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}

.map-live-chat-send-icon:hover{
    background:#083a82!important;
}

.map-live-chat-file-input{
    display:none!important;
    visibility:hidden!important;
    position:absolute!important;
    left:-99999px!important;
}

.map-live-chat-attach-menu,
.map-live-chat-emoji-menu{
    position:absolute!important;
    left:8px!important;
    bottom:56px!important;
    z-index:20!important;
    padding:7px!important;
    border:1px solid #e4e7ec!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 12px 30px rgba(16,24,40,.16)!important;
}

.map-live-chat-attach-menu[hidden],
.map-live-chat-emoji-menu[hidden]{
    display:none!important;
}

.map-live-chat-attach-menu{
    width:190px!important;
}

.map-live-chat-attach-menu button{
    width:100%!important;
    padding:9px 10px!important;
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
    border:0!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#101828!important;
    text-align:left!important;
    font-size:12px!important;
    cursor:pointer!important;
}

.map-live-chat-attach-menu button:hover{
    background:#f2f4f7!important;
}

.map-live-chat-emoji-menu{
    display:grid!important;
    grid-template-columns:repeat(4,34px)!important;
    gap:3px!important;
}

.map-live-chat-emoji-menu button{
    width:34px!important;
    height:34px!important;
    border:0!important;
    border-radius:8px!important;
    background:#fff!important;
    cursor:pointer!important;
    font-size:18px!important;
}

.map-live-chat-emoji-menu button:hover{
    background:#f2f4f7!important;
}

.map-live-chat-modern-preview{
    margin:0!important;
    padding:7px 9px!important;
    border:1px solid #dbe8fb!important;
    border-radius:10px!important;
    background:#eef5ff!important;
}

.map-live-chat-composer-hint{
    padding:0 6px!important;
    color:#98a2b3!important;
    font-size:9px!important;
    text-align:center!important;
}
