/**
 * Cultiva Chat Button - Frontend Styles
 * Versão: 1.0.0
 * Autor: Robinson D. - Cultiva Tech
 */

/* Container Principal */
.ccb-container {
    position: fixed !important;
    bottom: 20px !important;
    z-index: 999998 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Botão WhatsApp - TAMANHO FIXO 60PX */
.ccb-button {
    display: block !important;
    width: 60px !important;
    height: 60px !important;
    min-width: 60px !important;
    min-height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: #25D366 !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    text-decoration: none !important;
    position: relative !important;
    overflow: visible !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.ccb-button:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25) !important;
}

/* Ícone SVG */
.ccb-icon {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 36px !important;
    height: 36px !important;
    fill: #fff !important;
    color: #fff !important;
    pointer-events: none !important;
}

/* Animações via box-shadow */
.ccb-animation-pulse {
    animation: ccbPulseButton 2s infinite !important;
}

@keyframes ccbPulseButton {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(37, 211, 102, 0);
    }
}

.ccb-animation-waves {
    animation: ccbWavesButton 3s infinite !important;
}

@keyframes ccbWavesButton {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.8), 0 0 0 0 rgba(37, 211, 102, 0.8);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 10px rgba(37, 211, 102, 0), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.ccb-animation-glow {
    animation: ccbGlow 2s infinite alternate !important;
}

@keyframes ccbGlow {
    from {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    to {
        box-shadow: 0 0 25px rgba(37, 211, 102, 0.8);
    }
}

.ccb-animation-ripple {
    animation: ccbRippleButton 2s infinite !important;
}

@keyframes ccbRippleButton {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    50% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.ccb-animation-none {
    animation: none !important;
}

/* Tooltip */
.ccb-tooltip {
    position: absolute !important;
    bottom: calc(100% + 15px) !important;
    right: 0 !important;
    background: #fff !important;
    color: #333 !important;
    padding: 12px 40px 12px 16px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    min-width: 200px !important;
    max-width: 280px !important;
    z-index: 999999 !important;
    animation: ccbFadeIn 0.3s ease-out !important;
}

.ccb-tooltip::after {
    content: '' !important;
    position: absolute !important;
    bottom: -8px !important;
    right: 20px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-top: 8px solid #fff !important;
}

.ccb-tooltip-text {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ccb-tooltip-close {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    width: 24px !important;
    height: 24px !important;
    border: none !important;
    background: #ff4444 !important;
    color: #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 16px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.ccb-tooltip-close:hover {
    background: #cc0000 !important;
    transform: scale(1.1) !important;
}

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

/* Banner LGPD */
.ccb-lgpd-banner {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    background: #fff !important;
    padding: 20px 40px 20px 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    max-width: 380px !important;
    z-index: 999999 !important;
    animation: ccbSlideInLeft 0.5s ease-out !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

@keyframes ccbSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ccb-lgpd-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #333 !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

.ccb-lgpd-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    background: #ff4444 !important;
    color: #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.ccb-lgpd-close:hover {
    background: #cc0000 !important;
    transform: scale(1.1) !important;
}

.ccb-lgpd-links {
    margin: 0 0 15px 0 !important;
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.ccb-lgpd-link {
    font-size: 13px !important;
    color: #25D366 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease !important;
}

.ccb-lgpd-link:hover {
    color: #128C7E !important;
}

.ccb-lgpd-accept {
    background: #25D366 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    width: 100% !important;
}

.ccb-lgpd-accept:hover {
    background: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3) !important;
}

/* Responsivo Mobile */
@media (max-width: 768px) {
    .ccb-button {
        width: 50px !important;
        height: 50px !important;
        min-width: 50px !important;
        min-height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
    
    .ccb-icon {
        width: 30px !important;
        height: 30px !important;
    }
    
    .ccb-tooltip {
        max-width: 220px !important;
        font-size: 13px !important;
    }
    
    .ccb-lgpd-banner {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        max-width: none !important;
        padding: 15px 35px 15px 15px !important;
    }
    
    .ccb-lgpd-text {
        font-size: 13px !important;
    }
}
