/* RJ Pro — formats fourrage sur la fiche produit */
.rjpro-badge-pro {
  display: inline-block;
  margin-left: .4em;
  padding: 0 .4em;
  border-radius: 3px;
  background: #2e7d32;
  color: #fff;
  font-size: .75em;
  font-weight: 700;
  line-height: 1.6;
  vertical-align: middle;
}
.rjpro-format-fiche {
  clear: both;
  margin: .75rem 0 1rem;
  padding: .75rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fafafa;
}
.rjpro-format-fiche dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .25rem 1rem;
  margin: 0;
}
.rjpro-format-fiche dt {
  font-weight: 600;
}
.rjpro-format-fiche dd {
  margin: 0;
}
.rjpro-format-fiche .rjpro-dispo-ok {
  color: #2e7d32;
  font-weight: 600;
}
.rjpro-format-fiche .rjpro-dispo-non {
  color: #c62828;
  font-weight: 600;
}
.rjpro-colonnes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem 1.5rem;
  clear: both;
}
.rjpro-colonne-titre {
  margin: 0 0 .4rem;
  font-weight: 700;
}
.rjpro-colonnes ul {
  margin: 0;
  padding: 0;
}
.rjpro-colonnes li.input-container {
  float: none !important;
  display: block;
  margin: 0 0 .5rem;
}
@media (max-width: 575px) {
  .rjpro-colonnes {
    grid-template-columns: 1fr;
  }
}

/* Commande à la tonne */
.rjpro-tonne {
  margin: 0 0 1rem;
  padding: 1rem;
  border: 2px solid #2e7d32;
  border-radius: 6px;
  background: #f1f8e9;
}
.rjpro-tonne-label {
  display: block;
  margin: 0 0 .35rem;
  font-weight: 700;
}
.rjpro-tonne-saisie {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}
.rjpro-tonne-saisie input {
  max-width: 7rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: right;
}
.rjpro-tonne-unite {
  font-size: 1.4rem;
  font-weight: 700;
}
.rjpro-tonne-estimation {
  margin: 0 0 .2rem;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1b5e20;
}
.rjpro-tonne-indicatif {
  margin: 0 0 .6rem;
  font-size: .85rem;
  font-style: italic;
}
.rjpro-tonne-prix {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .2rem 1rem;
  margin: 0 0 .6rem;
}
.rjpro-tonne-prix dt {
  font-weight: 600;
}
.rjpro-tonne-prix dd {
  margin: 0;
}
.rjpro-tonne-mention {
  margin: 0;
  padding: .5rem .75rem;
  border-left: 4px solid #f9a825;
  background: #fffde7;
  font-size: .9rem;
  font-weight: 600;
}
.rjpro-tonne-reserve {
  border-color: #f9a825;
  background: #fffde7;
}
.rjpro-tonne-reserve-texte {
  margin: 0 0 .6rem;
  font-weight: 700;
}
.product-add-to-cart .rjpro-bloque {
  opacity: .45;
  cursor: not-allowed;
}

/* Livraison d'une commande à la tonne */
.rjpro-livraison {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #c5e1a5;
}
.rjpro-livraison-pastilles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
  margin-bottom: .75rem;
}
@media (max-width: 575px) {
  .rjpro-livraison-pastilles {
    grid-template-columns: 1fr;
  }
}
.rjpro-livraison-pastille {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .15rem;
  padding: .6rem .75rem;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.rjpro-livraison-pastille.is-selected {
  border: 2px solid #2e7d32;
  box-shadow: 0 0 0 1px #2e7d32 inset;
}
.rjpro-livraison-pastille:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.rjpro-livraison-nom {
  font-weight: 700;
}
.rjpro-livraison-tarif {
  color: #1b5e20;
  font-weight: 600;
}
.rjpro-livraison-zone {
  font-size: .8rem;
  color: #666;
}
.rjpro-livraison-adresse {
  margin-bottom: .5rem;
}
.rjpro-livraison-adresse label {
  display: block;
  margin: 0 0 .25rem;
  font-weight: 600;
}
.rjpro-livraison-cp {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.rjpro-livraison-cp input {
  max-width: 7rem;
}
.rjpro-livraison-cp select {
  max-width: 16rem;
}
.rjpro-livraison-message {
  margin: 0 0 .5rem;
  font-size: .9rem;
}
.rjpro-livraison-message.is-ok {
  color: #2e7d32;
  font-weight: 600;
}
.rjpro-livraison-message.is-hors {
  color: #c62828;
  font-weight: 600;
}
.rjpro-livraison-tours {
  margin: 0 0 .5rem;
  font-weight: 600;
}

/* Panier et commande */
.rjpro-tonne-ligne {
  margin-top: .35rem;
  font-size: .9rem;
  line-height: 1.35;
}
.rjpro-tonne-ligne strong {
  display: block;
  color: #1b5e20;
}
.rjpro-tonne-ligne small {
  display: block;
  font-style: italic;
}
.rjpro-qte-tonnes {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Outil pro à la place du bouton panier (format « à la tonne ») */
.rjpro-outil-produit {
  margin: 1rem 0 1.5rem;
  padding: 1rem;
  border: 2px solid #2e7d32;
  border-radius: 6px;
  background: #fff;
}
.rjpro-outil-produit-titre {
  margin: 0 0 .75rem;
  font-size: 1.3rem;
}
.rjpro-outil-produit .rjpro-explications > summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: .5rem;
}
.rjpro-outil-produit .rjpro-produit-choisi {
  outline: 2px solid #2e7d32;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Encart matériel du format choisi */
.rjpro-format-encart {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-radius: 6px;
}
.rjpro-format-encart-texte {
  margin: 0;
  line-height: 1.45;
}
.rjpro-format-encart-icone {
  flex: 0 0 auto;
  font-size: 1.4rem;
  line-height: 1;
}
.rjpro-format-encart.is-info {
  border: 1px solid #90caf9;
  background: #e3f2fd;
}
.rjpro-format-encart.is-alerte {
  border: 3px solid #e65100;
  background: #fff3e0;
}
.rjpro-format-encart.is-alerte .rjpro-format-encart-texte {
  font-size: 1.05rem;
  font-weight: 700;
  color: #7a2e00;
}
.rjpro-format-encart.is-alerte .rjpro-format-encart-icone {
  font-size: 2rem;
  color: #e65100;
}

/* « Je suis professionnel » sur la fiche */
.rjpro-je-suis-pro {
  margin: 0 0 1.5rem;
  padding: 1rem;
  border: 2px solid #f9a825;
  border-radius: 6px;
  background: #fffde7;
}
.rjpro-je-suis-pro-entete {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.rjpro-je-suis-pro-entete h3 {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
}
.rjpro-je-suis-pro-fermer {
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.rjpro-je-suis-pro-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
@media (max-width: 575px) {
  .rjpro-je-suis-pro-2col {
    grid-template-columns: 1fr;
  }
}
.rjpro-je-suis-pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.rjpro-je-suis-pro-erreur {
  color: #c62828;
  font-weight: 600;
}
.rjpro-tonne-stock {
  margin: 0 0 .6rem;
  padding: .5rem .75rem;
  border-left: 4px solid #c62828;
  background: #ffebee;
  color: #b71c1c;
  font-weight: 700;
}

/* Pro : livraison des grands cubes à partir du minimum tracteur */
.rjpro-format-note {
  margin: 0 0 1rem;
  padding: .6rem .9rem;
  border-left: 4px solid #1565c0;
  background: #e3f2fd;
  font-weight: 600;
}

/* Onglets « Description / Détails du produit » en haut de la fiche */
.rjpro-onglets-bas {
  margin: 2.5rem 0 1.5rem;
}
