/**
 * Envíos Nonnamarket — nmshipping.css
 * Estilos de los mensajes de envío gratis en el header del side-cart.
 * Paleta Nonnamarket: verde #1A3D22 / #0F2818, dorado #C9A84C, crema #F9F7F2.
 */

/* El bloque siempre ocupa el ancho completo del header,
   aunque el header use flex: se fuerza a comportarse como bloque. */
.nmshipping {
    display: block;
    width: 100%;
    flex-basis: 100%;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(26, 61, 34, 0.12);
}

.nmshipping__rule {
    display: block;
    width: 100%;
    margin: 0 0 10px;
}

.nmshipping__rule:last-child {
    margin-bottom: 2px;
}

/* Texto adaptativo: crece/encoge entre móvil, tablet y desktop */
.nmshipping__text {
    display: block;
    margin: 0 0 5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(0.72rem, 0.62rem + 0.55vw, 0.85rem);
    line-height: 1.35;
    color: #1A3D22;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Barra de progreso */
.nmshipping__bar {
    display: block;
    width: 100%;
    height: var(--nm-bar-h, 7px);
    background: rgba(26, 61, 34, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.nmshipping__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--nm-bar-c, #1A3D22);
    transition: width 0.45s ease;
}

/* Estado conseguido */
.nmshipping__rule--done .nmshipping__text {
    color: #0F2818;
    font-weight: 600;
}

.nmshipping__rule--done .nmshipping__fill {
    background: var(--nm-bar-c-done, #C9A84C);
}

.nmshipping__check {
    display: inline-block;
    color: #C9A84C;
    font-weight: 700;
    margin-right: 2px;
}

/* Ajustes por dispositivo */
@media (max-width: 575px) {
    .nmshipping {
        margin-top: 8px;
        padding-top: 8px;
    }

    .nmshipping__rule {
        margin-bottom: 8px;
    }

}

