/* ===========================
   Gramo AI Chat
=========================== */

#gramo-ai-modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

.gramo-ai-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    backdrop-filter:blur(4px);
}

.gramo-ai-window{
    position:relative;
    width:420px;
    max-width:95%;
    height:650px;
    max-height:90vh;
    background:#ffffff;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    animation:gramoFade .25s ease;
}

@keyframes gramoFade{
    from{
        opacity:0;
        transform:translateY(20px) scale(.95);
    }
    to{
        opacity:1;
        transform:translateY(0) scale(1);
    }
}

.gramo-ai-header{
    background:linear-gradient(135deg,#ff6a00,#ff9800);
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px;
    font-size:18px;
    font-weight:700;
}

#gramo-ai-close{
    background:none;
    border:none;
    color:#fff;
    font-size:22px;
    cursor:pointer;
}

#gramo-ai-messages{
    flex:1;
    overflow:auto;
    padding:20px;
    background:#f7f8fb;
}

.ai-message{
    background:#fff;
    padding:15px;
    border-radius:12px;
    line-height:1.7;
    box-shadow:0 3px 12px rgba(0,0,0,.06);
}

.gramo-ai-footer{
    display:flex;
    gap:10px;
    padding:15px;
    border-top:1px solid #eee;
}

#gramo-ai-input{
    flex:1;
    height:48px;
    border:1px solid #ddd;
    border-radius:10px;
    padding:0 15px;
    outline:none;
}

#gramo-ai-send{
    border:none;
    background:#ff6a00;
    color:#fff;
    padding:0 22px;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

#gramo-ai-send:hover{
    background:#e95f00;
}

@media(max-width:768px){

    .gramo-ai-window{

        width:100%;
        height:100%;
        max-width:100%;
        max-height:100%;
        border-radius:0;

    }

}