#wfb-float {
    position: fixed;
    z-index: 9999;
    
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    
    box-shadow: 2px 2px 3px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

#wfb-float:hover {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    transform: scale(1.05);
}

@media print {
    #wfb-float {
        display: none !important;
    }
}

/* --- Custom Image & Chat Bubble Styling --- */

#wfb-float:has(.wfb-custom-icon) {
    border-radius: 8px;
    background-color: var(--wfb-color) !important;
    padding: 5px; 
    width: 60px; 
    height: 60px;
}

#wfb-float:has(.wfb-custom-icon)::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 0;
    height: 0;
    
    border: 5px solid transparent;
    border-top-color: var(--wfb-color);
    
    left: auto;
    right: auto;
}

#wfb-float[style*="right"]:has(.wfb-custom-icon)::after {
    right: 15px;
}

#wfb-float[style*="left"]:has(.wfb-custom-icon)::after {
    left: 15px;
}

.wfb-custom-icon {
    width: 100%; 
    height: 100%;
    object-fit: cover; 
    border-radius: 50%;
}

/* Animations */
@keyframes wfb-bounce-keyframes {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes wfb-roll-keyframes {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.wfb-bounce {
    animation: wfb-bounce-keyframes 2s infinite;
}

.wfb-roll {
    animation: wfb-roll-keyframes 3s linear infinite;
}

/* Modal/Popup Styling */
#wfb-modal {
    position: fixed;
    z-index: 9998;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    padding: 15px;
    width: 250px;
    
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
}

.wfb-hidden {
    display: none;
    opacity: 0;
    visibility: hidden;
}

#wfb-modal.wfb-visible {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#wfb-modal h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

#wfb-modal p {
    margin: 0 0 10px 0;
    font-size: 0.9em;
    color: #666;
}

.wfb-contact-option {
    display: block;
    padding: 10px;
    margin-bottom: 5px;
    background-color: var(--wfb-color, #25D366);
    color: #fff;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wfb-contact-option:hover {
    background-color: #128C7E;
}

#wfb-close-modal {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #666;
    line-height: 1;
}