/* WhatsApp Chat Button and Popup Styles */

.whatsapp-chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-chat-button:hover {
    background-color: #20ba57;
    transform: scale(1.05);
}

.whatsapp-chat-popup {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow: hidden;
    display: none;
    transition: all 0.3s ease;
    max-height: 80vh;
}

.chat-popup-header {
    background-color: #25d366fa;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-info h3 {
    margin: 0;
    font-size: 16px;
}

.whatsapp-number {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 3px;
}

.chat-popup-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-popup {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.chat-popup-body {
    padding: 15px;
    background-color: #ddece7;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

/* Question Suggestions */
.question-suggestions {
    margin-bottom: 15px;
    background-color: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.suggestion-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: flex-start;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item.active {
    background-color: #e7f5f2;
    animation: pulse 0.5s;
}

@keyframes pulse {
    0% { background-color: #e7f5f2; }
    50% { background-color: #b3e6d7; }
    100% { background-color: #e7f5f2; }
}

.suggestion-item i {
    margin-right: 10px;
    color: #25d366fa;
    font-size: 16px;
}

.predefined-question {
    margin-bottom: 15px;
}

.predefined-question input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    cursor: default;
    transition: all 0.3s ease;
}

.predefined-question input.highlighted {
    background-color: #e7f5f2;
    border-color: #25d366fa;
    box-shadow: 0 0 0 2px rgba(18, 140, 126, 0.2);
}

.message-input {
    margin-bottom: 10px;
}

.message-input textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    resize: none;
    height: 70px;
}

.send-button-container {
    text-align: right;
    display: flex;
    justify-content: end;
}

.send-button {
    background-color: #25d366fa;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.send-button:hover {
    background-color: #0d7266;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    .whatsapp-chat-popup {
        width: 90%;
        right: 5%;
        bottom: 80px;
    }
    
    .whatsapp-chat-button {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
}

/* CSS for smooth animation */
.whatsapp-chat-popup.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.button-yellow {
    background-color: #ffba00;
    color: #333;
    padding: 8px 20px;
    border: none;
    border-radius: 20px; 
    font-weight: bold;
    cursor: pointer;
    display: inline-block;
    margin-top: 10px;
    text-align: center;
}

.button-yellow:hover {
    background-color: #e6a800;
}
