/**
 * wsc_featurebadges - Webstart Consulting
 *
 * A blokk a rendelkezesre allas cimke (badge) ALATT jelenik meg, soronkent
 * egymas alatt. Szandekosan nem allit szint es betumeretet: a temat koveti,
 * hogy a sajat CSS-ed tudja felulirni.
 *
 * Fogodzok:
 *   .wsc-featurebadges                        a teljes blokk
 *   .wsc-featurebadges-item                   minden sor
 *   .wsc-featurebadges-stock                  a valos keszlet sora
 *   .wsc-featurebadges-feature                tulajdonsag-sor
 *   .wsc-featurebadges-feature-<id_feature>   konkret tulajdonsag sora
 *   .wsc-featurebadges-mode-move / -copy      athelyezett / duplikalt sor
 *   .wsc-featurebadges-label / -value         felirat / ertek
 *   .wsc-featurebadges-suffix                 az ertek utani mertekegyseg (pl. db)
 *   .wsc-featurebadges-cart                   a Kosarba gomb alatti blokk
 *   .wsc-featurebadges-icon-item              ikonos sor
 *   .wsc-featurebadges-icon                   maga a kep
 *   .wsc-featurebadges-bar                    a keszletsav sora
 *   .wsc-featurebadges-bar-high / -medium / -low / -out   a szint szerinti osztaly
 *   .wsc-featurebadges-bar-track / -fill      a sav hattere / kitoltese
 *
 * A keszletsav az egyetlen elem, amelynek a modul szint ad: a szint maga az
 * uzenet. A szinek CSS-valtozok, a temabol felulirhatok, pl.:
 *   .wsc-featurebadges-bar { --wsc-bar-high: #2e7d32; }
 */

.wsc-featurebadges {
    display: block;
    margin-top: 0.4rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.wsc-featurebadges-item {
    display: block;
}

.wsc-featurebadges-label {
    font-weight: 700;
    margin-right: 0.35rem;
}

.wsc-featurebadges-value {
    font-weight: 400;
}

.wsc-featurebadges-suffix {
    font-weight: 400;
    margin-left: 0.25rem;
}

/* A Kosarba gomb alatti blokk */
.wsc-featurebadges-cart {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Az ikonok egymas mellett allnak, nem egymas alatt */
.wsc-featurebadges-icon-item {
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.wsc-featurebadges-icon {
    max-height: 48px;
    width: auto;
    height: auto;
}

/* Keszletsav */
.wsc-featurebadges-bar {
    --wsc-bar-track: #e9ecef;
    --wsc-bar-high: #28a745;
    --wsc-bar-medium: #ffc107;
    --wsc-bar-low: #dc3545;
    --wsc-bar-out: #adb5bd;
    --wsc-bar-height: 6px;
    --wsc-bar-max-width: 100%;
    display: block;
    margin-top: 0.35rem;
}

.wsc-featurebadges-bar-caption {
    display: block;
    margin-bottom: 0.25rem;
}

.wsc-featurebadges-bar-track {
    display: block;
    width: 100%;
    max-width: var(--wsc-bar-max-width);
    height: var(--wsc-bar-height);
    background: var(--wsc-bar-track);
    border-radius: 8px;
    overflow: hidden;
}

.wsc-featurebadges-bar-fill {
    display: block;
    height: 100%;
    border-radius: 8px;
    background: var(--wsc-bar-out);
    transition: width 0.3s ease;
}

.wsc-featurebadges-bar-high .wsc-featurebadges-bar-fill,
.wsc-featurebadges-bar-high .wsc-featurebadges-bar-text {
    background-color: var(--wsc-bar-high);
}

.wsc-featurebadges-bar-medium .wsc-featurebadges-bar-fill,
.wsc-featurebadges-bar-medium .wsc-featurebadges-bar-text {
    background-color: var(--wsc-bar-medium);
}

.wsc-featurebadges-bar-low .wsc-featurebadges-bar-fill,
.wsc-featurebadges-bar-low .wsc-featurebadges-bar-text {
    background-color: var(--wsc-bar-low);
}

.wsc-featurebadges-bar-out .wsc-featurebadges-bar-fill,
.wsc-featurebadges-bar-out .wsc-featurebadges-bar-text {
    background-color: var(--wsc-bar-out);
}

/* A szint szovege: a szoveg csak szinezett, nem hatteres */
.wsc-featurebadges-bar-text {
    background-color: transparent !important;
    font-weight: 700;
}

.wsc-featurebadges-bar-high .wsc-featurebadges-bar-text {
    color: var(--wsc-bar-high);
}

.wsc-featurebadges-bar-medium .wsc-featurebadges-bar-text {
    color: #b8860b;
}

.wsc-featurebadges-bar-low .wsc-featurebadges-bar-text {
    color: var(--wsc-bar-low);
}

.wsc-featurebadges-bar-out .wsc-featurebadges-bar-text {
    color: #6c757d;
}
