.cwc-chat-container {
    position: relative;
    max-width: 350px;
}

.cwc-chat-trigger {
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    background: #25D366;
    color: white;
    border-radius: 8px;
}

.cwc-popup {
    background: #ece5dd;
    border-radius: 10px;
    position: absolute;
    bottom: 10px;
    right: 0;
    width: 350px;
    display: none;
    overflow: hidden;
}

.cwc-popup-header {
    background: linear-gradient(to right, #128C7E, #25D366);
    color: white;
    padding: 12px;
    display: flex;
    align-items: center;
    font-size: 18px;
    position: relative;
}

.cwc-popup-header img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
}

.cwc-close {
    position: absolute;
    right: 12px;
    font-size: 20px;
    cursor: pointer;
}

.cwc-messages {
    padding: 15px;
}

.cwc-message {
    background-color: #ffffff !important;
    color: #000 !important;
    padding: 12px 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    max-width: 80%;
    font-size: 14px;
    font-weight: normal;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    display: block;
    clear: both;
}

.cwc-input-container {
    display: flex;
    background: white;
    padding: 8px;
}

.cwc-input-container input {
    flex: 1;
    padding: 12px;
    border-radius: 32px;
    border: 1px solid #ccc;
}

#cwc-send-button {
    background: none !important;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
}

/* CUSTOM BUTTON STYLING BELOW */

.cwc-button-wrapper {
    position: relative;
    display: inline-block;
}

.cwc-pilled-button-v3 {
    background-color: #25D366;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 999px;
    padding: 14px 24px 14px 50px; /* More left padding to make room for the avatar */
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: background 0.3s ease;
}

.cwc-pilled-button-v3:hover {
    background-color: #1DA851;
}

.cwc-avatar-overlap {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-40%, -50%);
    width: 60px;
    height: 60px;
    background-color: white;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cwc-avatar-overlap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

