/**
 * Quick Wins CSS
 * Styles for conversion optimization features
 */

/* Social Proof */
.livora-social-proof {
    animation: fadeIn 0.5s ease-in;
}

.livora-proof-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Exit Intent Popup */
#livora-exit-intent-popup {
    animation: fadeIn 0.3s ease-in;
}

#livora-exit-intent-popup > div {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Trust Badges */
.livora-trust-badges {
    transition: all 0.3s ease;
}

.livora-trust-badge {
    transition: transform 0.2s ease;
}

.livora-trust-badge:hover {
    transform: scale(1.1);
}

.livora-trust-badges {
    margin: 18px 0;
    padding: 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(212, 160, 131, 0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.livora-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fdf7f1;
    border: 1px solid rgba(212, 160, 131, 0.2);
    font-size: 0.85rem;
    color: #5c4a37;
}

.livora-trust-icon {
    font-size: 1rem;
}

/* Countdown Timer */
.livora-countdown-timer {
    animation: fadeIn 0.5s ease-in;
}

#livora-countdown-* {
    font-family: 'Courier New', monospace;
}

/* Sticky Cart */
#livora-sticky-cart {
    animation: slideUp 0.3s ease-out;
    transition: all 0.3s ease;
}

/* Product sticky CTA */
.livora-product-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1006;
}

.livora-product-sticky-cta.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.livora-product-sticky-inner {
    width: min(1100px, 92%);
    background: #fff;
    border: 1px solid rgba(212, 160, 131, 0.25);
    border-radius: 18px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 18px 40px rgba(72, 56, 36, 0.12);
}

.livora-product-sticky-price {
    font-weight: 700;
    color: var(--lv-primary);
}

.livora-product-sticky-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--lv-primary), var(--lv-secondary));
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.livora-product-sticky-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.livora-cta-highlight {
    box-shadow: 0 0 0 3px rgba(212, 160, 131, 0.35);
    transition: box-shadow 0.3s ease;
}

@media (max-width: 768px) {
    #livora-sticky-cart > div {
        flex-direction: column;
        text-align: center;
    }
    
    #livora-sticky-cart a {
        width: 100%;
    }

    .livora-product-sticky-cta {
        display: flex;
    }
}

@media (min-width: 769px) {
    .livora-product-sticky-cta {
        display: none;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .livora-social-proof,
    .livora-countdown-timer {
        padding: 10px !important;
        font-size: 14px;
    }
    
    .livora-trust-badges {
        gap: 10px !important;
    }
    
    #livora-exit-intent-popup > div {
        margin: 10px;
        padding: 20px;
        max-width: calc(100% - 20px);
    }
}

