/*
 * Tariff marking on the list tiles (13.11.2026): "Top-Empfehlung" pill next
 * to the Black Weeks badge and the green add-on panel (variant 4.1).
 * Colour world C "green as benefit colour" — deliberately not black/yellow,
 * that belongs to the Black Weeks badge. Partials:
 * Product/Kennzeichnung/Reiter.html and Zugabe.html (jkr_shop).
 */
:root {
    --tarif-kennzeichnung: #1e8e3e;
    --tarif-kennzeichnung-flaeche: #e8f5ec;
    --tarif-kennzeichnung-dunkel: #14652c;
}

/* "Top-Empfehlung" and "Black Weeks" in the badge row of the card header.
   Since 17.11.2026 both are black tabs flush with the top edge of the card
   (.reiter-badge, aktion-hinweis.css; Marketing template), "Top-Empfehlung"
   first; before that a green pill next to the Black Weeks pill. */
.tx-shop .card .aktion-badges--reiter {
    top: 0;
    left: 20px;
    flex-direction: row;
    flex-wrap: wrap;
}

/* 992-1199px: three columns make the cards only 296px wide, and "Black Weeks"
   plus the tab ran 17px into the provider logo (43px, top right of the card
   header). Measured 17.11.2026; every other width keeps at least 23px. */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .tx-shop .card .aktion-badges--reiter {
        left: 12px;
        gap: 4px;
    }

    .tx-shop .card .aktion-badges--reiter > * {
        font-size: 11px;
    }
}

/* Add-on panel in front of the card footer. */
.tarif-zugabe {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 16px 14px;
    padding: 10px 12px;
    border-left: 4px solid var(--tarif-kennzeichnung);
    background: var(--tarif-kennzeichnung-flaeche);
    text-align: left;
}

.tarif-zugabe__bild {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.tarif-zugabe__titel {
    color: var(--tarif-kennzeichnung-dunkel);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.tarif-zugabe__text {
    margin-top: 2px;
    color: #333;
    font-size: 13px;
    line-height: 1.35;
}

/* Term below the threshold (e.g. 1 month Flex): panel greys out. */
.tarif-zugabe--aus {
    border-left-color: #adb5bd;
    background: #f1f3f5;
}

.tarif-zugabe--aus .tarif-zugabe__titel {
    color: #6c757d;
    text-decoration: line-through;
}

.tarif-zugabe--aus .tarif-zugabe__bild {
    opacity: .4;
}

/* Basket, checkout: combined image (tariff + add-on) and the add-on line. */
.zugabe-zeile {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
    padding: 8px 10px;
    border-left: 4px solid var(--tarif-kennzeichnung);
    background: var(--tarif-kennzeichnung-flaeche);
    font-size: 14px;
}

.zugabe-zeile__bild {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.zugabe-zeile__titel {
    color: var(--tarif-kennzeichnung-dunkel);
    font-weight: 700;
}

.zugabe-zeile__preis {
    margin-left: auto;
    color: var(--tarif-kennzeichnung-dunkel);
    font-weight: 700;
    white-space: nowrap;
}

/* Order summary (basket sidebar): compact add-on line in the summary row format. */
.zugabe-uebersicht__titel,
.zugabe-uebersicht__preis {
    color: var(--tarif-kennzeichnung-dunkel);
    font-weight: 700;
}

/* Mini basket (offcanvas): add-on line below the tariff block, same colour. */
.mini-cart-card-zugabe-titel,
.mini-cart-card-zugabe-preis {
    color: var(--tarif-kennzeichnung-dunkel);
    font-weight: 700;
}
