/**
 * Bume Connector Frontend Styles
 */

/* Cart tracking indicators (optional visual feedback) */
.bume-cart-tracking {
    position: relative;
}

.bume-cart-tracking.tracking-active::after {
    content: "";
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #46b450;
    border-radius: 50%;
    animation: bume-pulse 2s infinite;
}

@keyframes bume-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(70, 180, 80, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(70, 180, 80, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(70, 180, 80, 0);
    }
}

/* Exit intent modal (if implemented) */
.bume-exit-intent-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.bume-exit-intent-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.bume-exit-intent-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.bume-exit-intent-close:hover {
    color: #000;
}

/* Cart abandonment notification */
.bume-cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 300px;
    display: none;
}

.bume-cart-notification.show {
    display: block;
    animation: bume-slide-in 0.3s ease-out;
}

@keyframes bume-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.bume-cart-notification h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
}

.bume-cart-notification p {
    margin: 0 0 10px 0;
    font-size: 14px;
    opacity: 0.9;
}

.bume-cart-notification .button {
    background: white;
    color: #0073aa;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 10px;
}

.bume-cart-notification .button:hover {
    background: #f0f0f0;
}

.bume-cart-notification .dismiss {
    background: transparent;
    color: white;
    text-decoration: underline;
}

.bume-cart-notification .dismiss:hover {
    background: transparent;
    color: #f0f0f0;
}

/* Responsive design */
@media (max-width: 768px) {
    .bume-exit-intent-content {
        width: 95%;
        padding: 20px;
    }
    
    .bume-cart-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Debug mode styles */
.bume-debug-info {
    position: fixed;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    font-family: monospace;
    font-size: 12px;
    border-radius: 4px;
    z-index: 99999;
    max-width: 300px;
}

.bume-debug-info h5 {
    margin: 0 0 5px 0;
    color: #46b450;
}

.bume-debug-info ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bume-debug-info li {
    margin: 2px 0;
    padding: 0;
}

/* Hide debug info by default */
body:not(.bume-debug) .bume-debug-info {
    display: none;
}
