.b-entoure {
  display: inline-block;
  border: 2px solid rgba(240, 96, 7, 0.901);
  border-radius: 25px;
  padding: 2px 6px;
  margin: 0 4px;
}


.b-icon { 
    vertical-align: middle;
    fill: #333;
    cursor: pointer;
    /*transition: fill 0.2s ease;*/
    transition: transform 0.2s ease, fill 0.3s ease;
    border: 2px solid rgba(69,54,37,0.2);
    border-radius: 5px;
    padding:1px;
    
}
.b-icon:hover {
    fill: #ff5722;
    transform: scale(1.2) rotate(-5deg);
}


  /* Afficher uniquement sur desktop */
.b-desktop-only {
    display: block;
}

.b-mobile-only {
    display: none;
}

/* Afficher uniquement sur mobile */
@media (max-width: 768px) {
    .b-desktop-only {
        display: none;
    }
    .b-mobile-only {
        display: block;
    } 
}



table.b-tablecaddie {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    border: none;
}

table.b-tablecaddie thead th {
  background-color: #FFF;
    font-weight: bold;
    color: #000;
    padding: 12px 0 2px 0;
    /*text-align: left;*/
    /*border-bottom: 2px solid #2e50cc;*/
    border: none;
}

table.b-tablecaddie tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}

table.b-tablecaddie tbody tr:nth-child(even) {
    background-color: #ffffff;
}

table.b-tablecaddie tbody td {  
    padding: 10px;
    border: none;
    vertical-align:top;
/*    border-bottom: 1px solid #ddd;*/
}
.tablevide, .tablevide tr, .tablevide td
{ 
  padding: 0;
  margin:0;
  border:none;
}

.b-text-left {
  text-align: left;
}
.b-text-right {
  text-align: right;
}
.b-text-center {
  text-align: center;
}


/* boutique */

.b-form {
  max-width: 500px;
  margin: auto;
  padding: 1em;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.b-form-group {
  margin-bottom: 0.8em;
  display: flex;
  flex-direction: column;
}

.b-label {
  margin-bottom: 0.5em;
  font-weight: bold;
}
 
.b-input {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}


/* Sert à occuper la place du label à gauche */
.b-label-placeholder {
  width: 30%;
}

/* Le titre de section dans la colonne des champs */
.b-section-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  align-self: center;
}

/* alignement mobile / desktop */
.b-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8em;
}

 

.b-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 1.5em 0;
}

.b-textarea,
.b-select {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  height: auto;
  min-height: 45px;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpolygon points='0,0 14,0 7,10' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em top 50%;
  background-size: 0.65em auto;
}

.b-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  flex: 1;
  padding: 0;
  margin: 0;
  border: none;
}

.b-radio-option {
  display: flex;
  align-items: center;
  font-size: 1em;
  gap: 0.5em;
  cursor: pointer;
}

.b-radio-option input[type="radio"] {
  accent-color: #007BFF;
  transform: scale(1.2);
}






.b-button {
  display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: transparent;
    padding: .375rem .75rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    font-family: inherit;
    box-sizing: border-box; 
}

.b-button-green
{
      color: #28a745;
    border: 2px solid #28a745;
}
.b-button-green:hover
{
  background-color: #28a745;
  color: #FFF;
}
.b-button-red
{
      color: #dc3545;
    border: 2px solid #dc3545;
}
.b-button-red:hover
{
  background-color: #dc3545;
  color: #FFF;
}

.b-button-grey
{
      color: #999;
    
}
.b-button-grey:hover
{
  background-color: #999;
  color: #000;
}




/* responsive desktop : label à gauche, champ à droite */
@media (min-width: 768px) {
  .b-form-group {
    flex-direction: row;
    align-items: center;
  }

  .b-label {
    width: 30%;
    margin-bottom: 0;
    margin-right: 1em;
    text-align: right;
  }




  .b-label-top {
    align-self: flex-start;
    margin-top: 0; /* léger décalage visuel agréable */
  }
  .b-input,
  .b-select,
  .b-textarea {
    flex: 1;
  }
}

.b-field-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.b-field-hint {
  font-size: 0.9em;
  color: #666;
  margin-top: 0.25em;
}


/* adresse livraison + facturation  */

.b-address-container {
  display: flex;
  flex-direction: column;
  gap: 2em;
  margin-top: 2em;
}

.b-address-block {
  background-color: #f8f8f8;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}

/* Titre de chaque bloc */
.b-address-title {
  font-weight: bold;
  margin-bottom: 0.5em;
}

/* Texte de l’adresse */
.b-pay-address {
  line-height: 1.6;
  white-space: pre-line;
  font-style: normal;
} 



.cherchegls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.cherchegls > div, 
.cherchegls button {
  flex: 1;
  min-width: 150px;
}

@media (max-width: 900px) {
  .cherchegls {
    flex-direction: column;
    align-items: stretch;
  }

  .cherchegls > div,
  .cherchegls button {
    width: 100%;
    margin-bottom: 10px;
  }
}


/* Version desktop : aligner les blocs côte à côte */
@media (min-width: 768px) {
  .b-address-container {
    flex-direction: row;
    justify-content: space-between;
  } 

  .b-address-block {
    width: 48%;
  }
}


/* Responsive mobile */
@media (max-width: 480px) {
  .b-form {
    padding: 0.5em;
  }

  .b-input, .b-button {
    font-size: 1em;
  }
}




  /* RESPONSIVE TABLETTE & DESKTOP */
  @media (min-width: 768px) {
    .b-form-container {
    display: flex;
    gap: 20px; /* Espacement entre colonnes */
}

  .b-form-colonne {
      flex: 1; /* Chaque colonne prend la même largeur */
  }
  }





  /* === Harmonisation caddie avec le thème principal ==================== */
:root{
  /* Récupère les variables du thème si présentes, sinon fallback */
  --cad-primary: var(--dtc-primary, #0277bd);
  --cad-primary-2: var(--dtc-primary-2, #009ee0);
  --cad-border: var(--dtc-border, #e6e6e6);
}

/* Pastille quantité (+ / -) : rouge -> bleu */
.b-entoure{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  border:2px solid var(--cad-primary);
  background: rgba(0,158,224,.06);          /* bleu très clair */
  border-radius:9999px;
  padding:2px 8px;
  margin:0 6px;
  box-shadow:0 1px 2px rgba(0,0,0,.04) inset;
}
.b-entoure:hover{
  border-color:var(--cad-primary-2);
  background:rgba(0,158,224,.10);
}
.b-entoure .b-icon{ margin:0 2px; }

/* Icônes (loupe, +/-, etc.) */
.b-icon{
  vertical-align:middle;
  fill:var(--cad-primary);
  cursor:pointer;
  transition:transform .15s ease, fill .2s ease, box-shadow .2s ease;
  border:1px solid rgba(2,119,189,.25);
  background:#fff;
  border-radius:6px;
  padding:2px;
}
.b-icon:hover{
  fill:var(--cad-primary-2);
  transform:scale(1.08);
  box-shadow:0 0 0 2px rgba(0,158,224,.15);
}
.b-icon:active{ transform:scale(.98); }

/* Table panier : plus proche de dtc-table */
table.b-tablecaddie{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid var(--cad-border);
  box-shadow:0 2px 12px rgba(0,0,0,.04);
}
table.b-tablecaddie thead th{
  background:#f4f6f8;
  color:#444;
  font-weight:700;
  padding:.75rem .5rem;
  border-bottom:1px solid var(--cad-border);
}
table.b-tablecaddie tbody td{
  padding:.65rem .5rem;
  border-top:1px solid var(--cad-border);
  vertical-align:top;
}
table.b-tablecaddie tbody tr:hover{ background:#fbfdff; }

/* Boutons : teintes harmonisées (facultatif, on garde tes classes) */
.b-button-green{ color:#1f7a36; border:2px solid #1f7a36; }
.b-button-green:hover{ background:#1f7a36; color:#fff; }
.b-button-red{ color:#c62828; border:2px solid #c62828; }
.b-button-red:hover{ background:#c62828; color:#fff; }

/* Mobile : un peu plus de confort autour des quantités */
@media (max-width: 768px){
  .b-entoure{ padding:3px 10px; }
}





/* === Harmonisation page relais avec le thème principal ================= */
:root{
  /* Utilise les variables globales si dispo, sinon fallback */
  --cad-primary: var(--dtc-primary, #0277bd);
  --cad-primary-2: var(--dtc-primary-2, #009ee0);
  --cad-border: var(--dtc-border, #e6e6e6);
}

/* Icônes (loupe, etc.) – bleu + hover doux */
.b-icon{
  vertical-align: middle;
  fill: var(--cad-primary);
  cursor: pointer;
  transition: transform .15s ease, fill .2s ease, box-shadow .2s ease;
  border: 1px solid rgba(2,119,189,.25);
  background: #fff;
  border-radius: 6px;
  padding: 2px;
}
.b-icon:hover{
  fill: var(--cad-primary-2);
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(0,158,224,.15);
}

/* Bloc de recherche relais : carte claire avec liseré bleu */
.relay-search .b-fieldset{
  border: 1px solid var(--cad-border);
  border-left: 4px solid var(--cad-primary-2);
  background: #f8fdff;
  border-radius: 10px;
  padding: 1rem;
}

/* Inputs de la ligne de recherche */
.cherchegls .b-input,
.cherchegls .b-select{
  border: 1px solid var(--cad-border);
  border-radius: 8px;
}
.cherchegls .b-input:focus,
.cherchegls .b-select:focus{
  border-color: var(--cad-primary-2);
  box-shadow: 0 0 0 3px rgba(0,158,224,.15);
  outline: none;
}

/* Bouton "Rechercher" (b-button-grey -> bleu du thème) */
.b-button-grey{
  color: var(--cad-primary);
  border: 2px solid var(--cad-primary);
  background: #fff;
}
.b-button-grey:hover{
  background: var(--cad-primary);
  color: #fff;
}

/* Cartes liste de relais */
.relay-list{
  border: 1px solid var(--cad-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.relay-list table{
  width: 100%;
  border-collapse: collapse;
}
.relay-list th,
.relay-list td{
  padding: .8rem .9rem;
  border-top: 1px solid var(--cad-border);
}
.relay-list tr:first-child th,
.relay-list tr:first-child td{
  border-top: 0;
}
.relay-list th{
  width: 140px;
  background: #f4f6f8;
  text-align: center;
}
.relay-list:hover{
  box-shadow: 0 10px 36px rgba(0,0,0,.08);
}
.relay-list + .relay-list{  /* espace entre cartes lorsqu’il y a plusieurs relais */
  margin-top: .8rem;
}
.relay-list small{ color:#666; }

/* Mobile : meilleure lecture des cartes */
@media (max-width: 768px){
  .relay-list th{
    width: auto;
    display: block;
    text-align: center;
  }
  .relay-list td{
    display: block;
  }
}
