/*==================================================
=        WIDGET FLOTANTE DE WHATSAPP (POPUP)         =
==================================================*/
#mp-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99999;
    font-family: inherit;
}
.mp-whatsapp-float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    position: relative;
    padding: 0;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.mp-whatsapp-float-btn:hover {
    transform: scale(1.08);
}
.mp-whatsapp-float-btn img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    display: block;
}
.mp-whatsapp-notification-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background: #ff3b30;
    border: 2px solid #fff;
    border-radius: 50%;
    animation: mpWaPulse 1.8s infinite;
}
@keyframes mpWaPulse {
    0% { box-shadow: 0 0 0 0 rgba(255,59,48,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(255,59,48,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,59,48,0); }
}

.mp-whatsapp-popup {
    position: absolute;
    bottom: 78px;
    right: 0;
    width: 300px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.mp-whatsapp-popup.mp-wa-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.mp-whatsapp-popup-header {
    background: #25D366;
    padding: 18px;
    position: relative;
}
.mp-whatsapp-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.mp-whatsapp-popup-close:hover {
    background: rgba(255, 255, 255, 0.45);
    transform: scale(1.1);
}
.mp-whatsapp-popup-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mp-whatsapp-popup-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.mp-whatsapp-popup-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.mp-whatsapp-popup-title {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.mp-whatsapp-popup-subtitle {
    color: #eafff0;
    font-size: 13px;
    margin-top: 2px;
}

.mp-whatsapp-agent-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
}
.mp-whatsapp-agent-row:hover {
    background: #f7f7f7;
}
.mp-whatsapp-agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.mp-whatsapp-agent-info {
    flex-grow: 1;
}
.mp-whatsapp-agent-name {
    font-weight: 600;
    font-size: 14px;
    color: #111;
}
.mp-whatsapp-agent-role {
    font-size: 12px;
    color: #888;
}
.mp-whatsapp-online-badge {
    background: #e7f9ee;
    color: #1a5632;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .mp-whatsapp-popup { width: calc(100vw - 40px); }
}
