/**
 * WhatsApp Float - Base Styles
 * Estilos compartilhados por todas as variantes
 */

.sslp-whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: var(--sslp-font-body, 'Inter', sans-serif);
}

.sslp-whatsapp-float__button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.sslp-whatsapp-float__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.sslp-whatsapp-float__text {
    white-space: nowrap;
}

/* Badge de notificação */
.sslp-whatsapp-float__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Tooltip */
.sslp-whatsapp-float__tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    padding: 10px 16px;
    background: rgba(0,0,0,0.9);
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.sslp-whatsapp-float__tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0,0,0,0.9);
}

.sslp-whatsapp-float:hover .sslp-whatsapp-float__tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Status online */
.sslp-whatsapp-float__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.sslp-whatsapp-float__status-dot {
    width: 8px;
    height: 8px;
    background: #9CA846;
    border-radius: 50%;
    animation: sslp-pulse-dot 2s infinite;
}

@keyframes sslp-pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.2); }
}

/* Animação de entrada */
.sslp-whatsapp-float {
    animation: sslp-float-in 0.5s ease-out;
}

@keyframes sslp-float-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Step indicator (Variant B) */
.sslp-whatsapp-float__step {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 24px;
    height: 24px;
    background: var(--sslp-accent, #9CA846);
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
