.wp-chat-assistant {
    max-width: 100%;
    margin: 20px auto;
    font-family:"ایران سنس";
    background: #f0f2f5;
    border-radius: 12px;

    overflow: hidden;
}

.wp-chat-assistant .chat-box {
    display: flex;
    flex-direction: column;
    height: 400px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 0px solid #ddd;
}

.wp-chat-assistant .messages {
    flex: 1;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    border-radius: 12px;
}

.wp-chat-assistant .msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 20px;
    line-height: 1.4;
    word-wrap: break-word;
}

.wp-chat-assistant .msg.user {
    align-self: flex-end;
    background: #7649d4; 
    color: #fff;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 20px;
}

.wp-chat-assistant .msg.assistant {
    align-self: flex-start;
    background: #e4e6eb;
    color: #050505;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 20px;
}

.wp-chat-assistant .msg.error {
    align-self: center;
    background: #ff4d4f;
    color: #fff;
    border-radius: 12px;
}

#wp-chat-form {
    display: flex;
    padding: 10px;
    width: 100%;
    border-top: 1.5px solid #ddd;
    gap: 8px;
    margin: 0px !important;
}

#wp-chat-input {
    flex: 1;
    padding: 10px 14px;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
}

#wp-chat-form button {
    background: #7649d4; 
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

#wp-chat-form button:hover {
    background: #5e34b3; 
}

