﻿.wa-widget {
    position: fixed;
    bottom: 50px;
    left: 20px;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

/* Floating button */
.wa-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 28px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .wa-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    }

/* Chat box */
.wa-box {
    width: 320px;
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header */
.wa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #90BC79;
    padding: 12px 14px;
    color: #fff;
}

.profile-wrapper {
    position: relative;
    display: inline-block;
}

.profile-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
}

.profile-text h4 {
    font-size: 1rem !important;
    color:#FFFFFF !important
}

.active-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #25D366;
    border: 2px solid white;
    border-radius: 50%;
}

.wa-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.wa-header strong {
    font-size: 15px;
    line-height: 1.2;
}

.wa-header p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.wa-close {
    cursor: pointer;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

    .wa-close:hover {
        opacity: 1;
    }

/* Body */
.wa-body {
    padding: 15px;
    background: #f9f9f9;
}

.wa-message {
    background: #e7f9ef;
    color: #333;
    padding: 12px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    max-width: 80%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Footer */
.wa-footer {
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

    .wa-footer button {
        width: 100%;
        padding: 10px;
        background: #90BC79;
         color: #FFFFFF;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background 0.2s ease;
    }

        .wa-footer button:hover {
            background: #1c2900;
        }

@media (max-width: 767.98px) {
    .wa-widget {
        right: 5px !important;
    }
}
