/**
 * Composant Livraison offerte
 */

.livraison-offerte{
    margin-bottom: 3rem;
    padding: 1.6rem 2rem;
    background-color: rgb(var(--blanc));
    background-image: linear-gradient(rgba(var(--beige), 0.4), rgba(var(--beige), 0.4));
    color: rgb(var(--marron-fonce));
}
.livraison-offerte[hidden]{
    display: none;
}
.livraison-offerte__texte{
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 1.4vw, 1.6rem);
}
main#main .entry-content .livraison-offerte__texte{
    font-size: clamp(1.4rem, 1.4vw, 1.6rem);
}
.livraison-offerte__texte strong{
    font-weight: 600;
}

/* Barre de progression */
.livraison-offerte__barre{
    display: block;
    width: 100%;
    height: 0.6rem;
    border: 0;
    border-radius: 0;
    appearance: none;
    background-color: rgb(var(--gris));
    color: rgb(var(--marron-texte));
}
.livraison-offerte__barre::-webkit-progress-bar{
    background-color: rgb(var(--gris));
}
.livraison-offerte__barre::-webkit-progress-value{
    background-color: rgb(var(--marron-texte));
    transition: 0.4s width ease;
}
.livraison-offerte__barre::-moz-progress-bar{
    background-color: rgb(var(--marron-texte));
}

/* Seuil atteint */
.livraison-offerte--atteinte .livraison-offerte__barre::-webkit-progress-value{
    background-color: rgb(var(--vert-fonce));
}
.livraison-offerte--atteinte .livraison-offerte__barre::-moz-progress-bar{
    background-color: rgb(var(--vert-fonce));
}
