/* CSS Dinâmico Baseado em Variáveis */


@keyframes sbttFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sbttPulse {
    0% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0.2);
    }

    50% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 15px rgba(0, 0, 0, 0);
    }

    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.sbtt-btn {
    position: fixed;
    bottom: var(--sbtt-bottom, 90px);
    right: var(--sbtt-right, 20px);
    left: var(--sbtt-left, auto);
    /* Suporte a esquerda */
    width: var(--sbtt-size, 60px);
    height: var(--sbtt-size, 60px);
    background-color: var(--sbtt-bg-color, #333333);
    color: var(--sbtt-icon-color, #ffffff) !important;
    border: 2px solid var(--sbtt-border-color, rgba(255, 255, 255, 0.2));
    border-radius: 50%;
    box-sizing: border-box;
    /* Maintain size with border */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    /* Remove padding padrão do navegador */

    /* Estado Inicial (Escondido) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Efeito Bouncy */

    z-index: 99990;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sbtt-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.sbtt-btn:hover {
    background-color: var(--sbtt-bg-color, #333333) !important;
    /* Trava a cor! */
    color: var(--sbtt-icon-color, #ffffff) !important;
    transform: translateY(-5px) scale(1.1);
    /* Pulo e Aumento Restaurado */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    /* filter: none; -> Sem mudança de cor */
}

/* Ícone */
.sbtt-btn svg {
    width: var(--sbtt-icon-size, 40%) !important;
    height: var(--sbtt-icon-size, 40%) !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    stroke-width: 2.5px;
    display: block !important;
    transition: none;
}

.sbtt-btn:hover svg {
    transform: translateY(-2px);
    /* Ícone sobe um pouquinho */
}

/* Tablet Responsiveness */
@media (max-width: 768px) {
    .sbtt-btn {
        right: 10px !important;
        /* Tablet: Uses same config as desktop */
        bottom: var(--sbtt-bottom, 90px) !important;
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .sbtt-btn {
        /* STRICT MOBILE ALIGNMENT */
        width: 56px !important;
        height: 56px !important;
        right: var(--sbtt-mob-right) !important;
        left: var(--sbtt-mob-left) !important;
        /* Mobile: Uses same config as desktop (1:1) */
        bottom: var(--sbtt-bottom, 90px) !important;
        /* Stacked above WhatsApp */

        /* Reset box model */
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        border-radius: 50% !important;

        /* Match WhatsApp Animation (Ease) */
        transition: all 0.3s ease !important;
        animation: sbttPulse 2s infinite !important;


    }

    /* Force Hover to match WhatsApp (Scale only, no Translate) */
    .sbtt-btn:hover {
        transform: scale(1.1) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
        background-color: var(--sbtt-bg-color, #333333) !important;
        /* Prevent color flicker */
    }
}