/* Botão Flutuante de Cotação */
.elex-floating-quote-button {
    position: fixed;
    bottom: 100px !important;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #10518D 0%, #0c4071 100%);
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(16, 81, 141, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.elex-floating-quote-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(16, 81, 141, 0.6);
    background: linear-gradient(135deg, #0c4071 0%, #083d5f 100%);
}

.elex-floating-quote-button.show {
    display: flex;
    animation: slideInUp 0.5s ease-out;
}

.elex-floating-quote-button.hide {
    animation: slideOutDown 0.3s ease-in forwards;
}

.elex-floating-quote-button .quote-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: transform 0.3s ease;
}

.elex-floating-quote-button:hover .quote-icon {
    transform: rotate(10deg);
}

.elex-floating-quote-button .quote-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff4757;
    color: #ffffff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #ffffff;
    animation: pulse 2s infinite;
}

.elex-floating-quote-button .quote-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #333333;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.elex-floating-quote-button .quote-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border: 5px solid transparent;
    border-top-color: #333333;
}

.elex-floating-quote-button:hover .quote-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Animações */
@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100px);
        opacity: 0;
    }
}

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

/* Responsividade */
@media (max-width: 768px) {
    .elex-floating-quote-button {
        bottom: 80px !important;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .elex-floating-quote-button .quote-icon {
        width: 20px;
        height: 20px;
    }
    
    .elex-floating-quote-button .quote-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
        top: -6px;
        right: -6px;
    }
    
    .elex-floating-quote-button .quote-tooltip {
        bottom: 60px;
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Modo escuro */
@media (prefers-color-scheme: dark) {
    .elex-floating-quote-button {
        border-color: #2c2c2c;
    }
    
    .elex-floating-quote-button .quote-tooltip {
        background: #1a1a1a;
        border: 1px solid #333333;
    }
    
    .elex-floating-quote-button .quote-tooltip::after {
        border-top-color: #1a1a1a;
    }
}
