.affiliate-placement {
    position: relative;
    overflow: hidden;
    border: 1px solid #ebeef3;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(20, 32, 56, .12);
}

.affiliate-placement::before {
    position: absolute;
    top: -85px;
    right: -70px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(229, 57, 53, .08);
    content: "";
    pointer-events: none;
}

.affiliate-placement__eyebrow {
    display: flex;
    position: relative;
    z-index: 1;
    align-items: center;
    gap: 8px;
    padding: 15px 18px 10px;
    color: #5e6675;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.affiliate-placement__pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53935;
    box-shadow: 0 0 0 5px rgba(229, 57, 53, .12);
}

.affiliate-offer-card {
    position: relative;
    padding: 0 14px 15px;
}

.affiliate-offer-card__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.affiliate-offer-card__badge,
.affiliate-offer-card__platform {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.affiliate-offer-card__badge {
    padding: 7px 10px;
    color: #fff;
    background: linear-gradient(135deg, #e53935, #b91c1c);
    box-shadow: 0 6px 14px rgba(185, 28, 28, .22);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.affiliate-offer-card__platform {
    max-width: 47%;
    overflow: hidden;
    padding: 7px 9px;
    color: #344054;
    background: #f2f4f7;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.affiliate-offer-card__link {
    display: block;
    overflow: hidden;
    border: 1px solid #edf0f4;
    border-radius: 14px;
    color: #172033;
    background: #fff;
    box-shadow: 0 8px 24px rgba(25, 38, 65, .08);
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.affiliate-offer-card__link:hover,
.affiliate-offer-card__link:focus-visible {
    border-color: rgba(229, 57, 53, .35);
    color: #172033;
    box-shadow: 0 14px 32px rgba(25, 38, 65, .15);
    outline: none;
    transform: translateY(-3px);
}

.affiliate-offer-card__link:focus-visible {
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .2), 0 14px 32px rgba(25, 38, 65, .15);
}

.affiliate-offer-card__media {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    min-height: 205px;
    padding: 15px;
    background:
        radial-gradient(circle at 82% 12%, rgba(249, 168, 37, .14), transparent 36%),
        linear-gradient(145deg, #fff 0%, #f7f8fb 100%);
}

.affiliate-offer-card__image {
    display: block;
    width: 100%;
    height: 205px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(31, 41, 55, .13));
    transition: transform .25s ease;
}

.affiliate-offer-card__link:hover .affiliate-offer-card__image {
    transform: scale(1.035);
}

.affiliate-offer-card__image-fallback {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 175px;
    color: #667085;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.affiliate-offer-card__fallback-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #e53935);
    box-shadow: 0 10px 20px rgba(229, 57, 53, .2);
    font-size: 22px;
    place-items: center;
}

.affiliate-offer-card__content {
    display: block;
    padding: 17px;
    border-top: 1px solid #edf0f4;
}

.affiliate-offer-card__recommendation {
    display: block;
    margin-bottom: 6px;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.affiliate-offer-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin-bottom: 14px;
    color: #172033;
    font-size: 17px;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.affiliate-offer-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #e53935 0%, #c62828 100%);
    box-shadow: 0 9px 18px rgba(198, 40, 40, .24);
    font-size: 13px;
    font-weight: 700;
}

.affiliate-offer-card__disclosure {
    margin: 11px 5px 0;
    color: #6b7280;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 991.98px) {
    .affiliate-placement {
        max-width: 420px;
        margin: 25px auto 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .affiliate-offer-card__link,
    .affiliate-offer-card__image {
        transition: none;
    }
}
