/**
 * Pricing Loader CSS
 * Styles for dynamic price loading and animations
 */

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Price Display */
.price-display {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--rx-primary-color, #d4a977);
    transition: opacity 0.3s ease;
}

.price-display.price-loaded {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Price Update Animation */
.price-update {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0% { 
        transform: scale(1); 
        background-color: transparent;
    }
    50% { 
        transform: scale(1.05); 
        background-color: rgba(40, 167, 69, 0.1);
        color: var(--rx-secondary-color, #28a745);
    }
    100% { 
        transform: scale(1);
        background-color: transparent;
    }
}

/* Smooth transition for price changes */
.price-display {
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Special styling for updated prices */
.rum-item-price .price-update {
    padding: 2px 6px;
    border-radius: 4px;
    position: relative;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .price-display {
        font-size: 1rem;
    }
}

/* Integration with existing RumX styles */
.sticky-add-to-cart .price-display {
    font-size: 1.25rem;
    font-weight: 700;
}

.btn-buy .price-display {
    color: white;
    font-size: 1.125rem;
}

/* Rum item card price display */
.rum-item-price {
    font-weight: 600;
    color: var(--rx-secondary-color);
    font-size: 0.95rem;
    white-space: nowrap;
}

.rum-item-price .price-display {
    min-width: 60px;
    display: inline-block;
    text-align: right;
}

/* Ensure price is visible when loaded */
.rum-item-price .price-display {
    animation: fadeIn 0.3s ease;
}