/* WhatsApp Chat Button — whatsapp_chat.css */

#wa-chat-wrapper {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
}
#wa-chat-wrapper.wa-position-right { right: 24px; }
#wa-chat-wrapper.wa-position-left  { left: 24px; }

#wa-chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    text-decoration: none;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    outline: none;
}
#wa-chat-btn:hover  { transform: scale(1.1); }
#wa-chat-btn:active { transform: scale(.95); }

#wa-svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Verde oficial WhatsApp */
.wa-icon-whatsapp #wa-chat-btn {
    background: #25D366;
    box-shadow: 0 4px 16px rgba(37,211,102,.45);
}
.wa-icon-whatsapp #wa-chat-btn:hover { box-shadow: 0 6px 20px rgba(37,211,102,.6); }
.wa-icon-whatsapp #wa-svg { color: #fff; }

/* Balão branco com borda verde */
.wa-icon-bubble #wa-chat-btn {
    background: #fff;
    border: 2.5px solid #25D366;
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.wa-icon-bubble #wa-chat-btn:hover { box-shadow: 0 6px 20px rgba(0,0,0,.22); }
.wa-icon-bubble #wa-svg { color: #25D366; }

/* Minimalista */
.wa-icon-minimal #wa-chat-btn { background: transparent; box-shadow: none; width: 52px; height: 52px; }
.wa-icon-minimal #wa-chat-btn:hover { background: rgba(37,211,102,.1); }
.wa-icon-minimal #wa-svg { color: #25D366; width: 40px; height: 40px; }

/* Pulse ring */
.wa-pulse {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 58px; height: 58px;
    border-radius: 50%;
    background: rgba(37,211,102,.35);
    animation: wa-pulse-ring 2s ease-out infinite;
    pointer-events: none;
    z-index: 0;
}
@keyframes wa-pulse-ring {
    0%   { transform: translate(-50%,-50%) scale(1);    opacity: .7; }
    70%  { transform: translate(-50%,-50%) scale(1.55); opacity: 0; }
    100% { transform: translate(-50%,-50%) scale(1.55); opacity: 0; }
}
.wa-icon-minimal .wa-pulse { display: none; }

/* Tooltip */
#wa-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    white-space: nowrap;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-family: sans-serif;
    padding: 6px 12px;
    border-radius: 6px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 2;
}
#wa-tooltip::after {
    content: '';
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1a1a1a;
}
.wa-position-left  #wa-tooltip { left: 0; }
.wa-position-right #wa-tooltip { right: 0; }
#wa-chat-btn:hover #wa-tooltip,
#wa-chat-btn:focus #wa-tooltip { opacity: 1; transform: translateY(0); }

/* Mobile */
@media (max-width: 767px) {
    #wa-chat-wrapper { bottom: 16px; }
    #wa-chat-wrapper.wa-position-right { right: 16px; }
    #wa-chat-wrapper.wa-position-left  { left: 16px; }
    #wa-chat-btn { width: 52px; height: 52px; }
    #wa-svg      { width: 28px; height: 28px; }
    .wa-pulse    { width: 52px; height: 52px; }
    #wa-tooltip  { display: none; }
}
