/*
 * Nova-möbelando – Aktionspreisdarstellung
 * JTL-Shop 5.7.2 / NOVA
 */

:root {
    --moebelando-action-red: #c91522;
    --moebelando-brand-green: #a6e63f;
    --moebelando-brand-dark: #3f4a3b;
}

/* Alter Preis direkt oberhalb des aktuellen Preises. */
.price_wrapper > .moebelando-old-price {
    margin: 0 0 0.15rem;
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.35;
}

.moebelando-old-price__label {
    margin-right: 0.2rem;
}

.moebelando-old-price__value {
    color: inherit;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
}

/*
 * Nur bei ausgegebenem Möbelando-Streichpreis wird der unmittelbar
 * folgende aktuelle Preis rot dargestellt.
 */
.price_wrapper > .moebelando-old-price + .price,
.price_wrapper > .moebelando-old-price + .price * {
    color: var(--moebelando-action-red) !important;
}

/* Möbelando-Sparbanner. */
.moebelando-saving-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    margin: 0;
    padding: 0.5rem 0.8rem;
    border-left: 4px solid var(--moebelando-brand-dark);
    border-radius: 2px;
    background: var(--moebelando-brand-green);
    color: var(--moebelando-brand-dark);
    box-shadow: 0 1px 2px rgb(0 0 0 / 12%);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Detailseite: Banner bleibt direkt hinter dem Preis, mit sichtbarem Abstand. */
.moebelando-saving-banner--detail {
    margin: 0 0 0.65rem 0.9rem;
    vertical-align: middle;
}

/* Artikellisten: Banner erhält eine eigene Zeile unterhalb des Preises. */
.moebelando-saving-banner--list {
    display: flex;
    width: fit-content;
    margin: 0.45rem 0 0.55rem;
    padding: 0.38rem 0.62rem;
    border-left-width: 3px;
    font-size: 0.82rem;
}

.moebelando-saving-banner__label {
    font-weight: 600;
}

.moebelando-saving-banner__value {
    font-weight: 800;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .moebelando-saving-banner--detail {
        display: flex;
        width: 100%;
        margin: 0.5rem 0 0.65rem;
        justify-content: center;
    }

    .moebelando-saving-banner--list {
        width: 100%;
        justify-content: center;
    }
}
