/* fwb-style.css */
.fwb-container {
    position: fixed;
    z-index: 99999;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.fwb-container.fwb-show {
    opacity: 1;
    pointer-events: auto;
}

/* Hide on specific devices based on classes */
@media (max-width: 767px) {
    .fwb-hide-mobile {
        display: none !important;
    }
}
@media (min-width: 768px) {
    .fwb-hide-desktop {
        display: none !important;
    }
}

.fwb-floating-button {
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.fwb-floating-button:hover {
    transform: scale(1.05);
    box-shadow: 2px 2px 12px rgba(0,0,0,0.3);
    color: #FFF;
}

/* Animations */
@keyframes fwb-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes fwb-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

@keyframes fwb-shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(5deg); }
    85% { transform: rotate(-5deg); }
}

.fwb-anim-pulse { animation: fwb-pulse 2s infinite; }
.fwb-anim-bounce { animation: fwb-bounce 2s infinite; }
.fwb-anim-shake { animation: fwb-shake 2s infinite; }

/* Button Sizes */
.fwb-size-small .fwb-floating-button { height: 45px; padding: 0 12px; }
.fwb-size-small .fwb-icon { width: 25px; height: 25px; }
.fwb-size-small .fwb-button-text { font-size: 14px; margin-left: 6px; }

.fwb-size-medium .fwb-floating-button { height: 60px; padding: 0 15px; }
.fwb-size-medium .fwb-icon { width: 35px; height: 35px; }
.fwb-size-medium .fwb-button-text { font-size: 16px; margin-left: 8px; }

.fwb-size-large .fwb-floating-button { height: 75px; padding: 0 20px; }
.fwb-size-large .fwb-icon { width: 45px; height: 45px; }
.fwb-size-large .fwb-button-text { font-size: 18px; margin-left: 10px; }

/* Icon only override padding */
.fwb-icon-only .fwb-size-small .fwb-floating-button { width: 45px; padding: 0; }
.fwb-icon-only .fwb-size-medium .fwb-floating-button { width: 60px; padding: 0; }
.fwb-icon-only .fwb-size-large .fwb-floating-button { width: 75px; padding: 0; }

.fwb-icon { fill: #FFF; transition: fill 0.3s ease; }
.fwb-button-text { font-weight: 600; white-space: nowrap; color: #FFF; }

/* Tooltip Styles */
.fwb-tooltip {
    position: absolute;
    background-color: #fff;
    color: #333;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.fwb-container:hover .fwb-tooltip {
    opacity: 1;
}

/* Tooltip positioning */
.fwb-position-right .fwb-tooltip {
    right: 100%;
    margin-right: 15px;
    transform: translateX(10px);
}
.fwb-position-right:hover .fwb-tooltip {
    transform: translateX(0);
}
.fwb-position-right .fwb-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.fwb-position-left .fwb-tooltip {
    left: 100%;
    margin-left: 15px;
    transform: translateX(-10px);
}
.fwb-position-left:hover .fwb-tooltip {
    transform: translateX(0);
}
.fwb-position-left .fwb-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: transparent #fff transparent transparent;
}
