/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.whatsapp-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-trigger svg {
    color: #fff;
}

.whatsapp-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-trigger:focus {
    outline: none;
    border: none;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
}

.whatsapp-bubble {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.whatsapp-bubble.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bubble-header {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%);
    padding: 20px;
    border-radius: 12px 12px 0 0;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bubble-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.bubble-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble-info {
    flex: 1;
}

.bubble-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.bubble-info p {
    margin: 0;
    font-size: 13px;
    opacity: 1;
    color: #fff;
}

.bubble-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.bubble-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.bubble-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin: 20px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
    min-height: 52px;
}

.bubble-button:hover {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    margin: 20px;
    background: #25D366;
    color: #fff !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s ease;
    min-height: 52px;

}

.bubble-button svg {
    flex-shrink: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-trigger {
        width: 50px;
        height: 50px;
    }

    .whatsapp-trigger i {
        font-size: 26px;
    }

    .whatsapp-bubble {
        width: calc(100vw - 30px);
        max-width: 320px;
    }
}