.whatsapp-preview-container {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 20px;
    z-index: 1000;
}

.whatsapp-preview {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background: #fff;
    font-family: 'Segoe UI', sans-serif;
}

.whatsapp-header {
    background: #00a884;
    color: white;
    padding: 10px;
    font-size: 16px;
    text-align: center;
}

.whatsapp-body {
    background: #ece5dd url('whatsapp-bg.png'); /* WhatsApp chat background */ 
    padding: 15px;
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.whatsapp-message {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    position: relative;
    word-wrap: break-word;
    max-width: 90%;
}

.whatsapp-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -8px;
    border-width: 8px 0 0 8px;
    border-style: solid;
    border-color: transparent #fff;
}

#preview_header {
    font-weight: bold;
    color: #333;
} 

#preview_body {
    margin: 5px 0;
    color: #333;
}

#preview_footer {
    color: #666;
    font-size: 12px;
}

#preview_buttons .btn {
    display: block;
    width: 100%;
    margin: 5px 0;
    text-align: center;
    background: #f0f0f0;
    border: none;
    color: #00a884;
    font-weight: bold;
}