/* ==========================================================================
   Fortron WhatsApp Button — Frontend Styles
   Desktop: botão flutuante pill no canto inferior direito
   Mobile:  barra fixa no footer, 100% largura
   ========================================================================== */

/* --- Reset & Wrapper --- */
#fortron-wa-float {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 9999;
    line-height: 1;
}

/* --- Botão base (Desktop Default) --- */
.fortron-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
    
    /* Desktop Pill Style */
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 22px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    z-index: 9999;
    animation: fortron-wa-pulse 2.5s infinite;
}

.fortron-wa-btn:hover,
.fortron-wa-btn:focus {
    text-decoration: none !important;
    outline: none;
    transform: scale(1.06);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
    animation: none;
}

/* Garante que o GTM pegue apenas o clique no <a> */
.fortron-wa-btn * {
    pointer-events: none !important;
}

/* --- Ícone SVG --- */
.fortron-wa-svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.fortron-wa-text {
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* Pulse animation */
@keyframes fortron-wa-pulse {
    0%   { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70%  { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 12px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================================================
   MOBILE — Barra fixa no footer
   ========================================================================== */
@media (max-width: 768px) {
    .fortron-wa-btn {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        padding: 0 20px;
        border-radius: 0;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
        font-size: 15px;
        animation: none;
        transform: none !important;
    }

    .fortron-wa-btn .fortron-wa-svg {
        width: 26px;
        height: 26px;
    }

    .fortron-wa-btn:active {
        filter: brightness(0.92);
    }
}

/* ==========================================================================
   Visibilidade condicional (classes do wrapper)
   ========================================================================== */

/* Esconder no desktop (>768px) */
@media (min-width: 769px) {
    .fortron-wa-hide-desktop .fortron-wa-btn {
        display: none !important;
    }
}

/* Esconder no mobile (<=768px) */
@media (max-width: 768px) {
    .fortron-wa-hide-mobile .fortron-wa-btn {
        display: none !important;
    }
}
