/* Floating Buttons CSS */

.floating-configurator-btn,
.floating-favorite-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--color-1st, #d5172d);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-configurator-btn:hover,
.floating-favorite-btn:hover {
    background: var(--color-1st-darken, #b91423);
    transform: scale(1.1);
    text-decoration: none;
    color: white;
}

.floating-configurator-btn.has-palette-button {
    bottom: 150px; /* Move up when palette button is also shown */
}

.floating-favorite-btn {
    bottom: 80px;
}

.floating-btn-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.floating-btn-loader {
    width: 24px;
    height: 24px;
}

.floating-btn-loader .spinner {
    width: 100%;
    height: 100%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-configurator-btn,
    .floating-favorite-btn {
        width: 56px;
        height: 56px;
        bottom: 70px;
        left: 15px;
    }
    
    .floating-configurator-btn.has-palette-button {
        bottom: 135px;
    }
    
    .floating-btn-icon {
        width: 20px;
        height: 20px;
    }
}