/* Post-Purchase Upsell – Darstellung auf der Success-Page */

.elo-upsell {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    background: #fafafa;
}

.elo-upsell__headline {
    margin: 0 0 1.25rem;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
}

.elo-upsell__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.elo-upsell__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.elo-upsell__card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.elo-upsell__card.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.elo-upsell__card.is-added {
    display: none;
}

.elo-upsell__image-link {
    display: block;
    text-align: center;
    background: #fff;
    padding: 0.75rem;
}

.elo-upsell__image {
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
}

.elo-upsell__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    flex: 1 1 auto;
}

.elo-upsell__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #222;
    text-decoration: none;
    line-height: 1.3;
    min-height: 2.4em;
    overflow: hidden;
}

.elo-upsell__name:hover {
    text-decoration: underline;
}

.elo-upsell__prices {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.elo-upsell__price-old {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9rem;
}

.elo-upsell__price-new {
    color: #d0021b;
    font-size: 1.15rem;
    font-weight: 700;
}

.elo-upsell__badge {
    display: inline-block;
    background: #d0021b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.elo-upsell__savings {
    font-size: 0.8rem;
    color: #2e7d32;
    font-weight: 600;
}

.elo-upsell__button {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

.elo-upsell__spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: elo-upsell-spin 0.6s linear infinite;
}

.elo-upsell__button.is-loading .elo-upsell__spinner {
    display: inline-block;
}

@keyframes elo-upsell-spin {
    to {
        transform: rotate(360deg);
    }
}

.elo-upsell__message {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
}

.elo-upsell__message.is-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.elo-upsell__message.is-error {
    background: #fdecea;
    color: #c62828;
    border: 1px solid #f5c6cb;
}
