.megh-whats-container {
    position: fixed;
    z-index: 9999;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    /* Removed global opacity: 0 to ensure visibility when no animation is set */
}

/* Hide only when an entrance animation is active and has not yet started */
.megh-whats-container.has-entrance-animation:not(.animated) {
    opacity: 0;
}

/* Ensure visibility when animation starts or in editor */
.megh-whats-container.animated,
.megh-whats-container.elementor-element-editable {
    opacity: 1;
}


.megh-whats-button {
    width: 60px;
    height: 60px;
    background-color: var(--megh-whats-btn-bg, #25D366);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: megh-whats-pulse 2s infinite;
    --megh-whats-pulse-color: rgba(37, 211, 102, 0.7);
}

.megh-whats-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.megh-whats-icon-wrapper svg {
    transition: transform 0.2s ease;
}

@keyframes megh-whats-pulse {
    0% { box-shadow: 0 0 0 0 var(--megh-whats-pulse-color); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}




/* Contact Panel */
.megh-whats-panel {
    position: absolute;
    bottom: 80px;
    width: 320px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transform-origin: bottom;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55), opacity 0.3s ease, visibility 0.3s ease;
    border: 1px solid #eee;
    opacity: 0;
    transform: scale(0.8);
    visibility: hidden;
    pointer-events: none;
}

.megh-whats-container.is-active .megh-whats-panel {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: all;
}

.position-right .megh-whats-panel { right: 0; }
.position-left .megh-whats-panel { left: 0; }


.megh-whats-header {
    background-color: #25D366;
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.megh-whats-title {
    font-weight: 600;
    font-size: 18px;
}

.megh-whats-close {
    background: rgba(0,0,0,0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.megh-whats-body {
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
    background-color: #f0f7f2;
}

.megh-whats-contact-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #fff;
    margin-bottom: 8px;
    border-radius: 12px;
    transition: background 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.megh-whats-contact-item:hover {
    background: #f9f9f9;
    border-color: #e0e0e0;
}

.megh-whats-contact-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
    background: #eee;
}

.megh-whats-contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.megh-whats-contact-name {
    display: block;
    color: #0076BE;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 2px;
    text-decoration: none;
}

.megh-whats-contact-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* Custom Scrollbar */
.megh-whats-body::-webkit-scrollbar {
    width: 6px;
}
.megh-whats-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.megh-whats-body::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}
