/* ==========================================================================
   Affiliate Links Component
   ========================================================================== */

.affiliate-purchase-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.best-price-banner {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.best-price-banner i {
    font-size: 1.5rem;
}

.best-price-banner .price-value {
    font-size: 1.5rem;
    color: white;
}

.affiliate-links-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.affiliate-link-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.affiliate-link-card:hover {
    border-color: #6366f1;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
    transform: translateY(-2px);
}

.affiliate-link-card.best-price-card {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.affiliate-link-card.best-price-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.merchant-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
}

.merchant-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.5rem;
}

.merchant-icon {
    font-size: 1.75rem;
}

.merchant-details {
    flex: 1;
}

.merchant-name {
    margin-bottom: 0.25rem;
}

.merchant-name strong {
    font-size: 1.1rem;
    color: #1f2937;
}

.merchant-price {
    margin-top: 0.25rem;
}

.merchant-price .price-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: #059669;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cashback-badge {
    text-align: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    min-width: 70px;
}

.cashback-percentage {
    font-size: 1.25rem;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.cashback-badge small {
    font-size: 0.7rem;
    opacity: 0.9;
    color: white;
}

.buy-button {
    width: 40px;
    height: 40px;
    background: #6366f1;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.affiliate-link-card:hover .buy-button {
    background: #4f46e5;
}

.cashback-info {
    margin-bottom: 0;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #6366f1;
}

@media (max-width: 768px) {
    .best-price-banner {
        flex-wrap: wrap;
        font-size: 0.95rem;
        padding: 0.75rem 1rem;
    }

    .best-price-banner .price-value {
        font-size: 1.25rem;
    }

    .affiliate-link-card {
        padding: 1rem;
    }

    .merchant-logo {
        width: 40px;
        height: 40px;
    }

    .merchant-icon {
        font-size: 1.5rem;
    }

    .merchant-price .price-amount {
        font-size: 1.25rem;
    }

    .action-group {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cashback-badge {
        padding: 0.5rem 0.75rem;
        min-width: 60px;
    }

    .cashback-percentage {
        font-size: 1.1rem;
    }

    .buy-button {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}
