.whatsapp-button {
    position: fixed;
    bottom: 50px;
    right: -210px;
    height: 60px;
    border: none;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    width: 280px;
    background-color: #008169;
    border-radius: 5px 0 0 5px;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.whatsapp-button-description
{
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.whatsapp-button-description-title
{
    text-transform: uppercase;
    font-size: 0.8em;
}
.whatsapp-button-description-phone
{
    font-weight: bold;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
    right: 0px;
}

.whatsapp-icon {
    font-size: 45px;
    color: white;
}

.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #111b21;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: none;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #e9edef;
}

.chat-header {
    background-color: #202c33;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.back-button {
    margin-right: 2px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: right;
    color: #aebac1;
    position: relative;
    left: -6px;
}

.back-icon {
    font-size: 20px;
}

.profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;
    background-color: #6a7175;
    background-image: url('https://i.pravatar.cc/150?img=3');
    background-size: cover;
    background-position: center;
}

.contact-info {
    flex-grow: 1;
}

.contact-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
    color: #e9edef;
}

.contact-status {
    font-size: 12px;
    color: #aebac1;
    font-weight: 400;
}

/* Chat body */
.chat-body {
    padding: 10px 16px;
    background-color: #0b141a;
    min-height: 100px;
    max-height: 300px;
    overflow-y: auto;
    padding-bottom: 30px;
}

.message-preview {
    background-color: #202c33;
    padding: 8px 12px;
    border-radius: 7.5px;
    max-width: 80%;
    margin-bottom: 10px;
    position: relative;
    font-size: 14px;
    line-height: 1.4;
}

.message-preview:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -7px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 0;
    border-color: transparent #202c33 transparent transparent;
}

/* Input area */
.chat-input {
    padding: 8px 12px;
    background-color: #202c33;
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.message-input {
    flex-grow: 1;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    outline: none;
    resize: none;
    height: 45px;
    max-height: 100px;
    overflow-y: auto;
    background-color: #2a3942;
    color: #e9edef;
    margin: 0px;
}

.message-input::placeholder {
    color: #8696a0;
}

.send-button {
    background-color: #00a884;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s;
}

.send-button:hover {
    background-color: #128c7e;
}

.send-icon {
    font-size: 16px;
}

/* Scrollbar styling */
.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-track {
    background-color: transparent;
}