/* Estilos para o frontend do botão WhatsApp flutuante */
.whatsapp-button {
    position: fixed;
    bottom: 25px;
    z-index: 1000;
}

.whatsapp-button.position-right {
    right: 25px;
}

.whatsapp-button.position-left {
    left: 25px;
}

.whatsapp-button-inner {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    position: relative;
}

.whatsapp-button .whatsapp-icon {
    width: 60px;
    height: 60px;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-button-shortcode .whatsapp-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.whatsapp-button-inner.animation-enabled {
    animation: shake 5s ease-in-out infinite;
    animation-delay: 6s;
}

.whatsapp-button-inner.size-small {
    width: 50px;
    height: 50px;
}

.whatsapp-button-inner.size-medium {
    width: 60px;
    height: 60px;
}

.whatsapp-button-inner.size-large {
    width: 70px;
    height: 70px;
}

.whatsapp-button-inner img {
    width: 60%;
    height: 60%;
}

/* Efeito Pulse */
.pulse-whatsapp {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(37, 211, 102, 0.7);
    animation: pulse 2s infinite;
}

.pulse-whatsapp.size-small {
    width: 50px;
    height: 50px;
}

.pulse-whatsapp.size-medium {
    width: 60px;
    height: 60px;
}

.pulse-whatsapp.size-large {
    width: 70px;
    height: 70px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Notificação com número */
.notification {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    animation: showNotification 0.5s forwards;
    animation-delay: 3s;
}

@keyframes showNotification {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Balão de chat */
.chat-balloon {
    position: absolute;
    background-color: white;
    border-radius: 8px;
    padding: 10px 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    animation: balloonLoop 45s infinite;
    animation-delay: 8s;
    color: #111111;
    font-weight: 500;
}

.whatsapp-button.position-right .chat-balloon {
    right: 75px;
    bottom: 10px;
}

.whatsapp-button.position-left .chat-balloon {
    left: 75px;
    bottom: 10px;
}

.whatsapp-button.position-right .chat-balloon:after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: 18px;
    border-width: 10px 0 10px 10px;
    border-style: solid;
    border-color: transparent transparent transparent white;
}

.whatsapp-button.position-left .chat-balloon:after {
    content: "";
    position: absolute;
    left: -5px;
    bottom: 18px;
    border-width: 10px 10px 10px 0;
    border-style: solid;
    border-color: transparent white transparent transparent;
}

@keyframes balloonLoop {
    0%, 100% {
        opacity: 0;
        transform: translateX(20px);
    }
    2%, 66.67% {
        opacity: 1;
        transform: translateX(0);
    }
    68.89%, 97.78% {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateY(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateY(-3px);
    }
    20%, 40%, 60%, 80% {
        transform: translateY(3px);
    }
}

/* Estilos para o shortcode */
.whatsapp-button-shortcode {
    display: inline-block;
    padding: 10px 15px;
    background-color: #25D366;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px 0;
    transition: all 0.3s ease;
}

.whatsapp-button-shortcode:hover {
    background-color: #128C7E;
    text-decoration: none;
    color: white;
}

.whatsapp-button-shortcode i {
    margin-right: 8px;
}