/* Frontend Styles - Botão Flutuante WhatsApp */

#cwwp-floating-button {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

#cwwp-floating-button.cwwp-position-right {
    right: 20px;
}

#cwwp-floating-button.cwwp-position-left {
    left: 20px;
}

.cwwp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--cwwp-primary-color, #25D366);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#cwwp-floating-button.cwwp-size-small .cwwp-button {
    width: 50px;
    height: 50px;
}

#cwwp-floating-button.cwwp-size-large .cwwp-button {
    width: 70px;
    height: 70px;
}

.cwwp-button:hover {
    background: var(--cwwp-hover-color, #128C7E);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cwwp-button svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

#cwwp-floating-button.cwwp-size-small .cwwp-button svg {
    width: 26px;
    height: 26px;
}

#cwwp-floating-button.cwwp-size-large .cwwp-button svg {
    width: 38px;
    height: 38px;
}

.cwwp-contacts-list {
    position: absolute;
    bottom: 80px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

#cwwp-floating-button.cwwp-position-right .cwwp-contacts-list {
    right: 0;
}

#cwwp-floating-button.cwwp-position-left .cwwp-contacts-list {
    left: 0;
}

#cwwp-floating-button:hover .cwwp-contacts-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cwwp-contact-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.cwwp-contact-item:first-child {
    border-radius: 12px 12px 0 0;
}

.cwwp-contact-item:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
}

.cwwp-contact-item:hover {
    background: #f8f9fa;
}

.cwwp-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.cwwp-contact-info {
    flex: 1;
}

.cwwp-contact-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
}

.cwwp-contact-phone {
    font-size: 12px;
    color: #666;
}

/* Animação de pulse */
@keyframes cwwp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.cwwp-button.cwwp-pulse {
    animation: cwwp-pulse 2s infinite;
}

/* Responsivo */
@media (max-width: 768px) {
    #cwwp-floating-button {
        bottom: 15px;
    }
    
    #cwwp-floating-button.cwwp-position-right {
        right: 15px;
    }
    
    #cwwp-floating-button.cwwp-position-left {
        left: 15px;
    }
    
    .cwwp-contacts-list {
        min-width: 260px;
        max-width: 280px;
    }
}
