/*
 * Front "Promo" badge styling (T31). Injected on the product page
 * via the displayProductPriceBlock hook when the active supplier
 * offer carries is_promo=1.
 *
 * Each supplier gets a distinct accent so the buyer can read at a
 * glance which channel sourced the promo:
 *   - Wortmann/TERRA → orange-red (matches the marque's identity)
 *   - Ingram        → blue
 */

.kp-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    margin-left: 8px;
    vertical-align: middle;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.kp-promo-badge.kp-supplier-wortmann {
    background: linear-gradient(135deg, #d32f2f 0%, #f4511e 100%);
}

.kp-promo-badge.kp-supplier-ingram {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

.kp-promo-icon {
    font-size: 1em;
}

.kp-promo-text {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Mobile: keep the badge compact but legible. */
@media (max-width: 480px) {
    .kp-promo-badge {
        padding: 3px 8px;
        font-size: 0.78em;
    }
}

/*
 * Warranty badge (4.5.2 / W4) — rendered via displayProductAdditionalInfo.
 * Toned-down palette compared to promo: the warranty signal is
 * informational, not promotional, so muted neutrals + a subtle accent
 * border matching the supplier.
 */
.kp-warranty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    line-height: 1.3;
    background: #f5f7fa;
    color: #2c3e50;
    border-left: 3px solid #95a5a6;
    margin: 8px 0;
}

.kp-warranty-badge.kp-supplier-wortmann {
    border-left-color: #d32f2f;
}

.kp-warranty-badge.kp-supplier-ingram {
    border-left-color: #1565c0;
}

.kp-warranty-icon {
    font-size: 1.05em;
}

.kp-warranty-text {
    font-weight: 500;
}
