
.eam-ai-root,
.eam-ai-root *{
    box-sizing:border-box;
}

.eam-ai-root{
    --eam-yellow:#ffc400;
    --eam-yellow-dark:#d8a600;
    --eam-black:#101318;
    --eam-text:#111827;
    --eam-muted:#687280;
    --eam-border:#e3e5e8;
    --eam-bg:#ffffff;
    position:fixed;
    right:22px;
    bottom:92px;
    z-index:999999;
    font-family:"Manrope",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.eam-ai-launcher{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:54px;
    padding:7px 15px 7px 8px;
    border:1px solid rgba(255,196,0,.85);
    border-radius:16px;
    background:#111827;
    color:#fff;
    box-shadow:0 12px 34px rgba(15,23,42,.22);
    cursor:pointer;
}

.eam-ai-launcher:hover{
    transform:translateY(-1px);
    box-shadow:0 16px 38px rgba(15,23,42,.28);
}

.eam-ai-launcher-mark,
.eam-ai-agent-mark{
    display:grid;
    place-items:center;
    flex:0 0 auto;
    width:40px;
    height:40px;
    border-radius:11px;
    background:var(--eam-yellow);
    color:#111;
    font-weight:900;
    font-size:14px;
    letter-spacing:-.02em;
}

.eam-ai-launcher-copy{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    line-height:1.1;
}

.eam-ai-launcher-copy strong{
    font-size:13px;
    font-weight:800;
}

.eam-ai-launcher-copy small{
    margin-top:4px;
    color:#cbd5e1;
    font-size:10px;
    font-weight:600;
}

.eam-ai-panel{
    position:absolute;
    right:0;
    bottom:68px;
    width:min(390px,calc(100vw - 28px));
    height:min(610px,calc(100vh - 135px));
    overflow:hidden;
    border:1px solid rgba(255,196,0,.95);
    border-radius:18px;
    background:#fff;
    box-shadow:0 26px 70px rgba(15,23,42,.28);
}

.eam-ai-panel[hidden]{
    display:none!important;
}

.eam-ai-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    min-height:68px;
    padding:12px 14px;
    background:#111827;
    color:#fff;
}

.eam-ai-agent{
    display:flex;
    align-items:center;
    gap:10px;
}

.eam-ai-agent-mark{
    width:38px;
    height:38px;
    border-radius:10px;
}

.eam-ai-agent > div{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.eam-ai-agent strong{
    font-size:13px;
    line-height:1.15;
}

.eam-ai-agent span{
    display:flex;
    align-items:center;
    gap:5px;
    color:#cbd5e1;
    font-size:10px;
}

.eam-ai-agent span i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#40d17c;
}

.eam-ai-close{
    width:34px;
    height:34px;
    border:0;
    border-radius:9px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:24px;
    line-height:1;
    cursor:pointer;
}

.eam-ai-body{
    position:absolute;
    inset:68px 0 92px;
    overflow-y:auto;
    padding:14px;
    background:#f6f7f9;
}

.eam-ai-messages{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.eam-ai-msg{
    max-width:88%;
    padding:10px 12px;
    border-radius:13px;
    font-size:12px;
    line-height:1.55;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.eam-ai-msg a{
    color:#755900;
    text-decoration:underline;
    text-decoration-color:var(--eam-yellow);
    text-decoration-thickness:2px;
    text-underline-offset:2px;
}

.eam-ai-msg.is-agent{
    align-self:flex-start;
    border:1px solid #e5e7eb;
    border-bottom-left-radius:4px;
    background:#fff;
    color:var(--eam-text);
}

.eam-ai-msg.is-user{
    align-self:flex-end;
    border:1px solid #e0ad00;
    border-bottom-right-radius:4px;
    background:#fff7d6;
    color:#111827;
}

.eam-ai-msg.is-status{
    align-self:center;
    padding:7px 10px;
    background:transparent;
    color:#7c8794;
    font-size:10px;
}

.eam-ai-quick{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:12px;
}

.eam-ai-quick button,
.eam-ai-quick a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:7px 10px;
    border:1px solid #d7dce2;
    border-radius:9px;
    background:#fff;
    color:#1f2937;
    font:inherit;
    font-size:10px;
    font-weight:800;
    text-decoration:none;
    cursor:pointer;
}

.eam-ai-quick button:first-child{
    border-color:var(--eam-yellow);
    background:var(--eam-yellow);
    color:#111;
}

.eam-ai-quick button:hover,
.eam-ai-quick a:hover{
    border-color:var(--eam-yellow);
}

.eam-ai-quote{
    margin-top:12px;
    padding:12px;
    border:1px solid var(--eam-yellow);
    border-radius:13px;
    background:#fff;
}

.eam-ai-quote[hidden]{
    display:none!important;
}

.eam-ai-quote-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.eam-ai-quote-head strong{
    color:#111827;
    font-size:13px;
}

.eam-ai-quote-head button{
    border:0;
    background:transparent;
    color:#6b7280;
    font-size:21px;
    cursor:pointer;
}

.eam-ai-quote input,
.eam-ai-quote select,
.eam-ai-quote textarea{
    width:100%;
    min-height:38px;
    margin:0 0 8px;
    padding:8px 10px;
    border:1px solid #d9dee5;
    border-radius:8px;
    outline:0;
    background:#fff;
    color:#111827;
    font:inherit;
    font-size:11px;
}

.eam-ai-quote textarea{
    resize:vertical;
    min-height:64px;
}

.eam-ai-quote input:focus,
.eam-ai-quote select:focus,
.eam-ai-quote textarea:focus{
    border-color:var(--eam-yellow);
    box-shadow:0 0 0 2px rgba(255,196,0,.14);
}

.eam-ai-two{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.eam-ai-quote-submit{
    width:100%;
    min-height:40px;
    border:1px solid var(--eam-yellow);
    border-radius:8px;
    background:#111827;
    color:#fff;
    font:inherit;
    font-size:11px;
    font-weight:900;
    cursor:pointer;
}

.eam-ai-quote-submit:hover{
    background:var(--eam-yellow);
    color:#111;
}

.eam-ai-quote-submit:disabled{
    opacity:.55;
    cursor:not-allowed;
}

.eam-ai-quote-note{
    margin:7px 0 0;
    color:#7c8794;
    font-size:9px;
    line-height:1.45;
    text-align:center;
}

.eam-ai-composer{
    position:absolute;
    left:0;
    right:0;
    bottom:28px;
    display:grid;
    grid-template-columns:1fr 42px;
    gap:7px;
    padding:10px 12px;
    border-top:1px solid #e7e9ed;
    background:#fff;
}

.eam-ai-composer input{
    width:100%;
    height:40px;
    padding:0 12px;
    border:1px solid #d9dee5;
    border-radius:10px;
    outline:0;
    background:#fff;
    color:#111827;
    font:inherit;
    font-size:12px;
}

.eam-ai-composer input:focus{
    border-color:var(--eam-yellow);
    box-shadow:0 0 0 2px rgba(255,196,0,.14);
}

.eam-ai-composer button{
    display:grid;
    place-items:center;
    width:42px;
    height:40px;
    border:1px solid var(--eam-yellow);
    border-radius:10px;
    background:var(--eam-yellow);
    color:#111;
    font-size:20px;
    font-weight:900;
    cursor:pointer;
}

.eam-ai-composer button:disabled,
.eam-ai-composer input:disabled{
    opacity:.6;
}

.eam-ai-privacy{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    height:28px;
    padding:7px 10px;
    border-top:1px solid #f0f1f3;
    background:#fff;
    color:#929aa5;
    font-size:8px;
    line-height:1.2;
    text-align:center;
}

@media(max-width:600px){
    .eam-ai-root{
        right:12px;
        bottom:84px;
    }

    .eam-ai-launcher{
        min-height:50px;
        border-radius:14px;
    }

    .eam-ai-launcher-copy small{
        display:none;
    }

    .eam-ai-panel{
        position:fixed;
        right:10px;
        left:10px;
        bottom:78px;
        width:auto;
        height:min(620px,calc(100vh - 105px));
        border-radius:17px;
    }

    .eam-ai-two{
        grid-template-columns:1fr;
        gap:0;
    }
}


/* v1.3 Smart Conversation — dynamic reply suggestions use the existing EA chip style. */
.eam-ai-smart-suggestions{
    margin-top:8px;
}
.eam-ai-smart-suggestions button{
    max-width:100%;
    white-space:normal;
    line-height:1.25;
}
