/* General Styles */
body {
    font-family: Arial, sans-serif;
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
background-image: url('https://gossipmotion.com/wp-content/uploads/2024/09/tr.jpeg'); background-size: cover;
    color: white;
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999; /* Ensure chat button stays on top */
}

.chat-button img {
    width: 30px;
    height: 30px;
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    height: 450px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    display: none; /* Hidden by default */
    flex-direction: column;
    overflow: hidden;
    z-index: 9999; /* Ensure chat window stays on top */
}

.chat-header {
    background-color: #25d366;
    padding: 15px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
}

.chat-body {
    padding: 15px;
    height: 280px;
    overflow-y: auto;
    background-color: #f1f1f1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Profile image styling */
.profile-image {
    border-radius: 50%;
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.welcome-message {
    background-position: center;
    background-repeat: no-repeat;
    padding: 15px;
    border-radius: 10px;
    width: 100%;
    color: white;
}

.welcome-message h6, .welcome-message p {
    margin: 5px 0;
}

.time-area {
    font-size: 12px;
    color: #ccc;
    margin-top: 10px;
}

.chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}

.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-right: 10px;
}

.chat-footer button {
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
}

.close-btn {
    cursor: pointer;
    font-size: 18px;
    color: white;
}

/* Extra Buttons for Telegram and Call Now */
.extra-buttons {
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
}

.extra-buttons button {
    background-color: green;
    color: white;
    border: none;
    border-radius: 50px;
    width: 200px;
    height: 50px;
    cursor: pointer;
    margin: 5px 0;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
}

.call-now-button {
    background-color: #34b7f1;
}

/* Welcome Message Animation */
.welcome-animation {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background-color: #007bff;
    color: white;
    padding: 10px; /* Reduce padding */
    font-size: 14px; /* Adjust font size */
    border-radius: 8px; /* Slightly reduce border-radius */
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 1;
    z-index: 9999; /* Ensure welcome message stays on top */
    animation: slideIn 1.5s forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        bottom: 60px;
    }
    to {
        opacity: 1;
        bottom: 90px;
    }
}

.close-welcome-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}