/*
 * MT-Preisanzeige – Preis-Baustein und Etikett (Klassen tpa-* wie in Trefz Preisanzeige).
 * Wird nur eingebunden, wenn die Anzeige für den Besucher aktiv ist.
 * Farben und Größen kommen als CSS-Variablen aus den Plugin-Einstellungen.
 * Keine Layout-Verschiebung: Etiketten im Textbereich/Bild liegen absolut über dem Inhalt.
 */
:root {
    --tpa-badge-bg: #2e7d32;
    --tpa-badge-color: #fff;
    --tpa-badge-size: .8rem;
    --tpa-action-bg: #111;
    --tpa-action-color: #fff;
    --tpa-uvp-bg: #455a64;
    --tpa-uvp-color: #fff;
    --tpa-ref-color: #555;
    --tpa-ref-size: .8rem;
    --tpa-saving-color: #2e7d32;
}

/* Preis-Baustein (Zeile mit dem 30-Tage-Preis) */
.tpa-box {
    display: block;
    width: 100%;
    margin-top: .25rem;
    font-size: var(--tpa-ref-size);
    line-height: 1.3;
    color: var(--tpa-ref-color);
}
.tpa-box--none {
    display: none !important;
}
.tpa-ref__label {
    margin-right: .25em;
}
.tpa-ref__value {
    white-space: nowrap;
}
.tpa-saving {
    font-weight: 600;
    color: var(--tpa-saving-color);
}

/* Etikett */
.tpa-badge {
    display: inline-block;
    padding: .2em .55em;
    border-radius: .25rem;
    background: var(--tpa-badge-bg);
    color: var(--tpa-badge-color);
    font-size: var(--tpa-badge-size);
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
}
.tpa-badge--action {
    background: var(--tpa-action-bg);
    color: var(--tpa-action-color);
}
.tpa-badge--uvp {
    background: var(--tpa-uvp-bg);
    color: var(--tpa-uvp-color);
}
.tpa-badge--inline {
    margin-bottom: .25rem;
}
.tpa-badge-host {
    position: relative;
}
.tpa-badge--overlay {
    position: absolute;
    top: .5rem;
    right: .5rem;
    z-index: 2;
    pointer-events: none;
}
/* Textbereich: rechts oben über dem Textbereich (am unteren Bildrand), überdeckt den Artikelnamen nicht */
.tpa-badge--at-text {
    top: auto;
    bottom: 100%;
    right: .25rem;
    margin-bottom: .4rem;
}

/* BM-Suche (1.1.11): Baustein als eigene Zeile unter Preis und Warenkorb-Knopf, innerhalb der Kachel */
.bms_article_item .row > .tpa-box {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 .9rem;
    margin-top: .4rem;
}
.bms_article_item .tpa-box .tpa-badge--inline {
    white-space: normal;
}
