/* MAX Widget Styles */

#max-widget-container {
    position: fixed;
    bottom: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
}

#max-widget-container.max-widget-right {
    right: 24px;
    flex-direction: row;
}

#max-widget-container.max-widget-left {
    left: 24px;
    flex-direction: row-reverse;
}

.max-widget-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(123, 104, 238, 0.4);
    transition: all 0.3s ease;
    text-decoration: none !important;
    animation: max-widget-pulse 2s infinite;
}

.max-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(123, 104, 238, 0.6);
}

.max-widget-button svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.max-widget-tooltip {
    background: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    max-width: 250px;
}

.max-widget-button:hover + .max-widget-tooltip,
.max-widget-tooltip:hover {
    opacity: 1;
    transform: translateY(0);
}

@keyframes max-widget-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(123, 104, 238, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(123, 104, 238, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(123, 104, 238, 0.4);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    #max-widget-container {
        bottom: 16px;
    }
    
    #max-widget-container.max-widget-right {
        right: 16px;
    }
    
    #max-widget-container.max-widget-left {
        left: 16px;
    }
    
    .max-widget-button {
        width: 50px;
        height: 50px;
    }
    
    .max-widget-button svg {
        width: 24px;
        height: 24px;
    }
    
    .max-widget-tooltip {
        display: none;
    }
}
