/* Floating WhatsApp Button - Frontend Styles */
.fwa-button {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.fwa-button.fwa-right {
    right: 30px;
}

.fwa-button.fwa-left {
    left: 30px;
}

.fwa-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
}

.fwa-link:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
    color: white;
}

.fwa-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.5);
}

/* Sizes */
.fwa-small .fwa-link {
    padding: 8px 16px;
    font-size: 14px;
}

.fwa-medium .fwa-link {
    padding: 12px 24px;
    font-size: 16px;
}

.fwa-large .fwa-link {
    padding: 16px 32px;
    font-size: 18px;
}

/* Icon */
.fwa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fwa-icon svg {
    width: 24px;
    height: 24px;
}

.fwa-small .fwa-icon svg {
    width: 20px;
    height: 20px;
}

.fwa-large .fwa-icon svg {
    width: 28px;
    height: 28px;
}

/* Text */
.fwa-text {
    font-weight: 500;
    line-height: 1;
}

/* Greeting Message */
.fwa-greeting {
    position: absolute;
    bottom: 100%;
    margin-bottom: 15px;
    background: white;
    color: #333;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    font-size: 14px;
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fwa-right .fwa-greeting {
    right: 0;
}

.fwa-left .fwa-greeting {
    left: 0;
}

.fwa-greeting::after {
    content: "";
    position: absolute;
    top: 100%;
    border-width: 8px;
    border-style: solid;
}

.fwa-right .fwa-greeting::after {
    right: 20px;
    border-color: white transparent transparent transparent;
}

.fwa-left .fwa-greeting::after {
    left: 20px;
    border-color: white transparent transparent transparent;
}

/* Animations */
@keyframes fwa-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fwa-animation-pulse .fwa-link {
    animation: fwa-pulse 2s infinite;
}

@keyframes fwa-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.fwa-animation-shake:hover .fwa-link {
    animation: fwa-shake 0.8s ease;
}

@keyframes fwa-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

.fwa-animation-bounce .fwa-link {
    animation: fwa-bounce 2s infinite;
}

/* Hide on devices */
@media (max-width: 768px) {
    .fwa-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .fwa-hide-desktop {
        display: none !important;
    }
}

/* Shortcode button */
.fwa-shortcode-button {
    display: inline-block;
    margin: 10px 0;
}

.fwa-shortcode-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.fwa-shortcode-link:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    color: white;
}

.fwa-shortcode-icon {
    display: flex;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .fwa-button {
        bottom: 20px;
    }
    
    .fwa-right {
        right: 20px;
    }
    
    .fwa-left {
        left: 20px;
    }
    
    .fwa-greeting {
        max-width: 250px;
        font-size: 13px;
        padding: 10px 16px;
    }
}