.moom-mp {
--moom-mp-largeur: 440px;
--moom-mp-fond: #fff;
--moom-mp-ombre: 0 6px 24px rgba(0, 0, 0, .15);
--moom-mp-marge-interne: 28px;
--moom-mp-decalage: 14px; --moom-mp-texte: #1e1e1e;
--moom-mp-police: inherit;
--moom-mp-titre-couleur: var(--main, #004200);
--moom-mp-titre-police: inherit;
--moom-mp-separateur: #ddd;
--moom-mp-image: 76px;
--moom-mp-compteur-fond: var(--main, #004200);
--moom-mp-compteur-texte: #fff;
--moom-mp-supprimer: var(--sanguine, #ff5500);
--moom-mp-btn-secondaire-bordure: var(--terra, #b74e16);
--moom-mp-btn-secondaire-fond: transparent;
--moom-mp-btn-secondaire-texte: #000;
--moom-mp-btn-principal-fond: var(--jaune, #f7cf50);
--moom-mp-btn-principal-texte: #000;
--moom-mp-btn-survol: var(--orange, #fb8d22);
position: relative;
display: inline-flex;
align-items: center;
font-family: var(--moom-mp-police);
} .moom-mp__bouton {
position: relative;
display: inline-flex;
align-items: center;
gap: 4px;
padding: 0;
border: 0;
background: none;
cursor: pointer;
line-height: 1;
}
.moom-mp__icone { width: 24px; height: 24px; display: block; }
.moom-mp__compteur {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 22px;
height: 22px;
padding: 0 5px;
border-radius: 999px;
background: var(--moom-mp-compteur-fond);
color: var(--moom-mp-compteur-texte);
font-size: 13px;
font-weight: 700;
}
.moom-mp__compteur--vide { opacity: .6; } .moom-mp__volet {
position: absolute;
top: calc(100% + var(--moom-mp-decalage));
right: 0;
z-index: 100000;
width: var(--moom-mp-largeur);
max-width: calc(100vw - 20px);
max-height: calc(100vh - 140px);
overflow-y: auto;
padding: var(--moom-mp-marge-interne);
background: var(--moom-mp-fond);
box-shadow: var(--moom-mp-ombre);
color: var(--moom-mp-texte);
text-align: left;
}
.moom-mp__volet[hidden] { display: none; }
.moom-mp.is-chargement .moom-mp__contenu { opacity: .55; pointer-events: none; transition: opacity .15s; }
.moom-mp__sous-total {
margin: 0 0 20px;
padding: 0 0 20px;
border-bottom: 1px solid var(--moom-mp-separateur);
font-weight: 700;
font-size: 18px;
}
.moom-mp__sous-total-label {
color: var(--moom-mp-titre-couleur);
font-family: var(--moom-mp-titre-police);
font-size: 22px;
}
.moom-mp__liste { list-style: none; margin: 0; padding: 0; }
.moom-mp__article {
position: relative;
display: grid;
grid-template-columns: var(--moom-mp-image) 1fr auto;
gap: 14px;
align-items: start;
padding: 14px 0;
border-bottom: 1px solid var(--moom-mp-separateur);
list-style: none;
}
.moom-mp__image img { width: var(--moom-mp-image); height: var(--moom-mp-image); object-fit: cover; display: block; }
.moom-mp__nom { margin: 0 0 8px; padding: 0; font-size: 18px; line-height: 1.25; }
.moom-mp__nom a { color: inherit; text-decoration: none; }
.moom-mp__infos { display: block; font-size: 14px; opacity: .75; }
.moom-mp__ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.moom-mp__prix { font-weight: 700; font-size: 18px; } .moom-mp__quantite { display: inline-flex; align-items: center; border: 1px solid #000; border-radius: 4px; }
.moom-mp__quantite button {
width: 30px; height: 34px; padding: 0; border: 0; background: none;
cursor: pointer; font-size: 18px; line-height: 1; color: inherit;
}
.moom-mp__qte {
width: 34px; height: 34px; padding: 0; border: 0; background: none;
text-align: center; font-size: 16px; font-weight: 700; color: inherit;
-moz-appearance: textfield; appearance: textfield;
}
.moom-mp__qte::-webkit-outer-spin-button,
.moom-mp__qte::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.moom-mp__supprimer {
padding: 0 4px; border: 0; background: none; cursor: pointer;
color: var(--moom-mp-supprimer); font-size: 20px; line-height: 1;
} .moom-mp__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; }
.moom-mp__btn {
display: block; padding: 12px 16px; text-align: center; text-decoration: none;
font-size: 20px; line-height: 1.2; transition: background-color .15s;
}
.moom-mp__btn--secondaire {
border: 1px solid var(--moom-mp-btn-secondaire-bordure);
background: var(--moom-mp-btn-secondaire-fond);
color: var(--moom-mp-btn-secondaire-texte) !important;
}
.moom-mp__btn--principal {
border: 1px solid var(--moom-mp-btn-principal-fond);
background: var(--moom-mp-btn-principal-fond);
color: var(--moom-mp-btn-principal-texte) !important;
}
.moom-mp__btn:hover { background: var(--moom-mp-btn-survol); }
.moom-mp__vide { margin: 0; font-size: 18px; }
@media (max-width: 767px) {
.moom-mp__volet { position: fixed; top: 70px; right: 10px; left: 10px; width: auto; max-width: none; }
}