#cp-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #5e40c7;
    color: #fff;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

#cp-box {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 9999;
}

#cp-header {
    padding: 15px;
    background: #5e40c7;
    color: #fff;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#cp-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

#cp-header-avatar {
    width: 30px; /* Adjust size as needed */
    height: 30px; /* Adjust size as needed */
    border-radius: 50%; /* Make it circular */
    margin-right: 10px; /* Space between avatar and name */
    vertical-align: middle; /* Align with text */
}

/* Ensure the AI name is aligned correctly with the avatar */
#cp-header span {
    display: flex;
    align-items: center;
}

#cp-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-size: 14px;
    background: #f9f9f9;
}

#cp-messages div {
    margin-bottom: 10px;
    line-height: 1.4;
}

#cp-typing {
    font-style: italic;
    color: #888;
}

#cp-quick-questions {
    padding: 10px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.cp-question-chip {
    display: inline-block;
    background: #e0e0ff;
    color: #5e40c7;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 5px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.cp-question-chip:hover {
    background: #d0d0ff;
}

#cp-input-area {
    display: flex;
    border-top: 1px solid #eee;
    padding: 10px;
    background: #fff;
}

#cp-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

#cp-send {
    margin-left: 8px;
    padding: 10px 15px;
    background: #5e40c7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cp-voice {
    margin-left: 8px;
    padding: 10px;
    background: #5e40c7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cp-contact-form {
    padding: 15px;
    display: none; /* Hidden by default, shown by JS */
    border-top: 1px solid #eee;
    background: #fff;
}

#cp-contact-form h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
}

#cp-contact-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

#cp-contact-submit {
    width: 100%;
    padding: 10px;
    background: #5e40c7;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#cp-footer {
    text-align: center;
    font-size: 11px;
    color: #888;
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f9f9f9;
    border-top: 1px solid #eee;
}

#cp-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}

#cp-voice.recording {
    background-color: #d9534f; /* Red color when recording */
}