/* WhatsApp Float Button Styles */
.wfb-button {
    position: fixed;
    z-index: 999999;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    max-width: 250px;
    animation: wfb-bounce 2s infinite;
    pointer-events: auto;
    user-select: none;
    border: none;
    background: none;
}

.wfb-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
}

.wfb-button:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    color: white;
    text-decoration: none;
}

.wfb-button:active {
    transform: scale(0.95);
}

.wfb-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.wfb-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    pointer-events: none;
}

.wfb-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

/* Posições */
.wfb-bottom-right {
    bottom: 20px;
    right: 20px;
}

.wfb-bottom-left {
    bottom: 20px;
    left: 20px;
}

.wfb-top-right {
    top: 20px;
    right: 20px;
}

.wfb-top-left {
    top: 20px;
    left: 20px;
}

/* Visibilidade */
.wfb-mobile-only {
    display: none;
}

.wfb-desktop-only {
    display: flex;
}

/* Animação de bounce sutil */
@keyframes wfb-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .wfb-button {
        padding: 12px 16px;
        font-size: 13px;
        bottom: 15px;
        right: 15px;
        max-width: 200px;
    }
    
    .wfb-mobile-only {
        display: flex;
    }
    
    .wfb-desktop-only {
        display: none;
    }
    
    .wfb-bottom-right {
        bottom: 15px;
        right: 15px;
    }
    
    .wfb-bottom-left {
        bottom: 15px;
        left: 15px;
    }
    
    .wfb-top-right {
        top: 15px;
        right: 15px;
    }
    
    .wfb-top-left {
        top: 15px;
        left: 15px;
    }
}

@media (max-width: 480px) {
    .wfb-button {
        padding: 10px 14px;
        font-size: 12px;
        max-width: 180px;
    }
    
    .wfb-icon {
        width: 20px;
        height: 20px;
    }
}

/* Estado de carregamento */
.wfb-button.wfb-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Efeito pulse quando hover */
.wfb-button:hover .wfb-icon {
    animation: wfb-pulse 0.5s ease-in-out;
}

@keyframes wfb-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .wfb-button {
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    }
    
    .wfb-button:hover {
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    }
}

/* Acessibilidade */
.wfb-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .wfb-button {
        display: none !important;
    }
}

/* Estilos para múltiplos botões */
[id^="wfb-button-"] {
    position: fixed;
    z-index: 999999;
    padding: 15px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    max-width: 250px;
    animation: wfb-bounce 2s infinite;
    pointer-events: auto;
    user-select: none;
    border: none;
    background: none;
}

/* Hierarquia de z-index para múltiplos botões */
[id^="wfb-button-"]:nth-of-type(1) { z-index: 999999; }
[id^="wfb-button-"]:nth-of-type(2) { z-index: 999998; }
[id^="wfb-button-"]:nth-of-type(3) { z-index: 999997; }
[id^="wfb-button-"]:nth-of-type(4) { z-index: 999996; }
[id^="wfb-button-"]:nth-of-type(5) { z-index: 999995; }

/* Estados hover/focus para múltiplos botões */
[id^="wfb-button-"]:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    color: white;
    z-index: 1000000 !important; /* Sempre fica por cima ao fazer hover */
}

[id^="wfb-button-"]:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
    color: white;
    text-decoration: none;
    z-index: 1000000 !important;
}

[id^="wfb-button-"]:active {
    transform: scale(0.95);
}

/* Posições específicas para múltiplos botões */
.wfb-center-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.wfb-center-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

/* Responsividade para múltiplos botões */
@media (max-width: 768px) {
    [id^="wfb-button-"] {
        padding: 12px 16px;
        font-size: 13px;
        max-width: 200px;
    }
    
    /* Ajusta espaçamento entre botões em mobile */
    [id^="wfb-button-"].wfb-bottom-right,
    [id^="wfb-button-"].wfb-bottom-left {
        bottom: 15px;
    }
    
    [id^="wfb-button-"].wfb-top-right,
    [id^="wfb-button-"].wfb-top-left {
        top: 15px;
    }
    
    .wfb-bottom-right { right: 15px; }
    .wfb-bottom-left { left: 15px; }
    .wfb-top-right { right: 15px; }
    .wfb-top-left { left: 15px; }
    .wfb-center-right { right: 15px; }
    .wfb-center-left { left: 15px; }
}

@media (max-width: 480px) {
    [id^="wfb-button-"] {
        padding: 10px 14px;
        font-size: 12px;
        max-width: 180px;
    }
}

/* Animações para múltiplos botões */
@keyframes wfb-bounce-1 {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes wfb-bounce-2 {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
    50% { transform: translateY(-3px); }
}

@keyframes wfb-bounce-3 {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    20% { transform: translateY(-5px); }
    40% { transform: translateY(-3px); }
}

/* Aplica animações diferentes para cada botão */
[id^="wfb-button-"]:nth-of-type(1) { animation: wfb-bounce-1 2s infinite; }
[id^="wfb-button-"]:nth-of-type(2) { animation: wfb-bounce-2 2.5s infinite; }
[id^="wfb-button-"]:nth-of-type(3) { animation: wfb-bounce-3 3s infinite; }

/* Desativa animação bounce no hover */
[id^="wfb-button-"]:hover {
    animation: none;
}
