/**
 * Price Fetcher Styles
 * Styling for real-time price updates and notifications
 */

/* Price Loading Indicator */
.price-loading {
    display: inline-block;
    padding: 10px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    font-style: italic;
    margin: 10px 0;
}

td{
    font-size: 15px;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper .zoomImg{
    max-width: none!important;
    transform: scale(1.01)!important;
}

.woocommerce-product-gallery__image{
    display: flex;
    justify-content: center;
}

.woocommerce div.product .product_title{
    word-break: break-word;
}

.woocommerce-product-gallery, .set-logo{
    margin: 0 0 5em 0;
}

.set-info-box strong{
    color: #333232;
    min-width: none!important;
}
/* Price Update Notification */
.price-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
}

.price-update-notification .notification-icon {
    font-size: 18px;
    font-weight: bold;
}

.price-update-notification .notification-message {
    font-size: 14px;
}

/* Price Error Notification */
.price-error-notification {
    background: #ff9800;
    color: white;
    padding: 15px;
    border-radius: 4px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 4px solid #e65100;
}

.price-error-notification .notification-icon {
    font-size: 18px;
    font-weight: bold;
}

.price-error-notification .notification-message {
    font-size: 14px;
    line-height: 1.4;
}

/* Price Sections */
.cardmarket-price-section,
.tcgplayer-price-section {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.cardmarket-price-section h4,
.tcgplayer-price-section h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    font-weight: 500;
    color: #666;
}

.price-value {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.price-updated {
    font-size: 12px;
    color: #888;
    margin-top: 10px;
    font-style: italic;
}

.price-box { border: 1px solid #e0e0e0; padding: 1em; margin-bottom: 1em; background: #fafbfc; border-radius: 6px; max-width: 350px; }
.price-spinner { color: #888; font-style: italic; display: none; text-align: center; }
.price-spinner.show { display: block; text-align: center;}
.price-content { font-size: 1.1em; }
.price-content.hide { display: none; }
.price-warning { color: #b8860b; font-size: 0.13px; margin-top: 0.5em; }
.price-error { color: #c00; font-weight: bold; }
.live { color: #2a8f2a; font-weight: bold; }
.price-update-info { font-size: 12px; margin-top: 0.5em; }
.loading-text { margin-top: 8px; font-size: 12px; color: #666; text-align: center;}

/* Spinner CSS */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .price-box { max-width: 100%; font-size: 1em; }
}

/* Animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .price-update-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        position: fixed;
    }
    
    .cardmarket-price-section,
    .tcgplayer-price-section {
        padding: 10px;
        margin: 10px 0;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
} 