/* Base styles (your old code, unchanged) */
#aae3-root { position: fixed; right: 20px; bottom: 20px; z-index: 999999; font-family: Arial, sans-serif; }
.a3-button { background: var(--aae3-brand,#0073aa); color:#fff; padding:12px 14px; border-radius:50%; cursor:pointer; box-shadow:0 8px 30px rgba(0,0,0,0.2); }
.a3-panel { width:380px; max-width: 95vw; height:520px; background:#fff; border-radius:10px; box-shadow:0 12px 48px rgba(0,0,0,0.24); overflow:hidden; display:flex; flex-direction:column; }
.a3-header { padding:12px; color:#fff; display:flex; justify-content:space-between; align-items:center; }
.a3-messages { flex:1; padding:12px; overflow:auto; background:#f8f8f8; word-wrap: break-word; }
.a3-footer { padding:10px; border-top:1px solid #eee; display:flex; flex-wrap: wrap; }
.a3-input { flex:1 1 70%; padding:8px; border:1px solid #ddd; border-radius:6px; }
.a3-send { flex:1 1 25%; margin-left:8px; padding:8px 12px; background:transparent; border:0; color:inherit; cursor:pointer; }
.a3-msg.user { text-align:right; }
.a3-msg.bot { text-align:left; }
.a3-cta { display:inline-block; padding:8px 12px; background:#ff5a5f; color:#fff; border-radius:6px; text-decoration:none; }

/* Bubbles with small differences */
.a3-msg {
    margin-bottom: 8px;
    max-width: 85%;
    clear: both;
    display: flex;
    align-items: flex-start;
}
.a3-msg.user {
    background: #eaf4ff;
    padding: 6px 10px;
    border-radius: 10px 10px 4px 10px;
    align-self: flex-end;
}
.a3-msg.bot {
    background: #f4f4f4;
    padding: 6px 10px;
    border-radius: 10px 10px 10px 4px;
    border: 1px solid #eee;
    align-self: flex-start;
}

/* Profile icons for messages */
.a3-msg-user-icon, .a3-msg-bot-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 6px;
}
.a3-msg.user .a3-msg-user-icon { order: 2; margin-left: 6px; margin-right: 0; }

/* Responsive for mobile / small screens */
@media (max-width: 780px) {
    #aae3-root { right: 5px; bottom: 5px; }
    .a3-panel {
        width: 95vw !important;
        right: 2.5vw !important;
        height: 60vh !important;
        border-radius: 8px;
    }
    .a3-footer {
        flex-direction: column;
    }
    .a3-input, .a3-send {
        flex: 1 1 100%;
        margin: 4px 0;
    }
    .a3-msg { max-width: 90%; font-size: 14px; }
}
