#graziella-chat-bubble-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    background: #4795e6;
    color: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    padding: 8px 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: box-shadow 0.2s;
}
#graziella-chat-bubble-btn:hover {
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
    background: #3570b2;
}
.graziella-bubble-text {
    margin-left: 10px;
    font-weight: 500;
    font-size: 1.09em;
}

#graziella-chat-overlay {
    position: fixed;
    left: 0; right: 0; top: 0; bottom: 0;
    background: rgba(0,0,0,0.18);
    z-index: 9998;
    display: none;
}

#graziella-chat-widget {
    position: fixed;
    right: 28px;
    bottom: 84px;
    z-index: 9999;
    max-width: 370px;
    width: 98vw;
    border: 1px solid #ddd;
    border-radius: 22px 22px 18px 18px;
    background: #fff;
    box-shadow: 0 4px 28px rgba(0,0,0,0.18);
    font-family: "Segoe UI", Arial, sans-serif;
    padding: 0;
    transition: all 0.24s cubic-bezier(.5,.2,.3,1);
    display: none;
}

#graziella-chat-header {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 22px 22px 0 0;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 1.04em;
}

#graziella-chat-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #4795e6;
    cursor: pointer;
}

#graziella-chat-bubbles {
    min-height: 120px;
    max-height: 260px;
    margin-bottom: 12px;
    padding: 10px 16px;
    overflow-y: auto;
}

.graziella-bubble {
    padding: 8px 14px;
    margin: 4px 0;
    border-radius: 18px;
    display: inline-block;
    max-width: 80%;
    word-break: break-word;
}

.graziella-bubble.user {
    background: #d5ebff;
    align-self: flex-end;
    float: right;
    clear: both;
}

.graziella-bubble.bot {
    background: #f1f1f1;
    align-self: flex-start;
    float: left;
    clear: both;
}

#graziella-chat-form {
    display: flex;
    gap: 8px;
    padding: 8px 16px 16px 16px;
    border-radius: 0 0 18px 18px;
    background: #fff;
    border-top: 1px solid #eee;
}

#graziella-chat-input {
    flex: 1;
    padding: 7px;
    border-radius: 15px;
    border: 1px solid #ccc;
}

#graziella-chat-form button {
    padding: 7px 18px;
    border-radius: 15px;
    background: #4795e6;
    color: #fff;
    border: none;
    cursor: pointer;
}

@media(max-width:600px) {
    #graziella-chat-widget {
        right: 7vw;
        max-width: 97vw;
        bottom: 90px;
    }
}

