.mkd-stock {
    display: block;
    font-family: inherit;
    line-height: 1.2;
}

.mkd-stock__row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mkd-stock__dot {
    display: inline-block;
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
}

.mkd-stock__label {
    font-weight: 600;
    font-size: 15px;
}

.mkd-stock__bar {
    display: block;
    margin-top: 10px;
    height: 4px;
    border-radius: 4px;
    background: #ebe7e1;
    overflow: hidden;
}

.mkd-stock__fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: currentColor;
}

.mkd-stock--critical {
    color: #d0382b !important;
}

.mkd-stock--limited {
    color: #c9a15c !important;
}

.mkd-stock--in {
    color: #3a7d44 !important;
}

.mkd-stock-wrap {
    margin: 14px 0;
}

.mkd-stock--single {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 16px;
    max-width: 420px;
}

/* Masqué par défaut sur les grilles avant le repositionnement JS */
.mkd-stock--grid {
    display: none;
}

.mkd-stock--grid.is-overlay {
    display: block;
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 20;
    margin: 0;
    padding: 12px 18px;
    background-color: oklab(0.2 0 0 / 0.8);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    pointer-events: none;
}

.mkd-stock--grid.is-overlay .mkd-stock__label {
    font-size: 14px;
}

.mkd-discount {
    display: inline-block;
    margin-left: 10px;
    padding: 3px 8px;
    background: #000;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .03em;
    border-radius: 3px;
    vertical-align: middle;
    white-space: nowrap;
}