/**
 * Floating WhatsApp Button Styles
 */

.wppb-floating-btn {
    position: fixed;
    z-index: 9999;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: #ffffff;
}

.wppb-floating-btn:hover {
    background-color: #20BA5A;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: black;
    text-decoration: none;
}

.wppb-floating-btn:active {
    transform: scale(0.95);
}

.wppb-floating-btn svg {
    width: 60%;
    height: 60%;
    max-width: 28px;
    max-height: 28px;
    color: #ffffff;
}

.wppb-floating-conversation {
    position: fixed;
    z-index: 10000;
    max-width: 320px;
    bottom: 90px;
    right: 30px;
    background: #fff;
    color: #222;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    padding: 18px 22px;
    font-size: 1rem;
    font-family: inherit;
    animation: wppb-fade-in 0.7s;
    box-sizing: border-box;
}

.wppb-floating-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: transparent;
    border: none !important;
    font-size: 1.3rem;
    color: #888 !important;
    cursor: pointer;
    padding: 0 !important; 
    line-height: 1;
    z-index: 1;
    transition: color 0.2s;
}

.wppb-floating-close:hover {
    color: #222;
}

.wppb-floating-content {
    /* Para separar el texto del botón de cerrar */
    padding-top: 8px;
}

@keyframes wppb-fade-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wppb-floating-btn {
        width: 56px !important;
        height: 56px !important;
    }
    
    .wppb-floating-btn svg {
        max-width: 24px;
        max-height: 24px;
    }

    .wppb-floating-conversation {
        max-width: 90vw;
        bottom: 80px;
        right: 10px;
        font-size: 0.95rem;
        padding: 14px 12px;
    }
}

