.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;
  }
}








/* CADDIE */

/* CADDIE : Encadré choix paiement */
.caddie-pay{
  margin: .75rem 0 1rem;
  padding: 14px 16px;
  background: linear-gradient(180deg,#eaeaea 0%, #ffffff 100%);
  border: 1px solid #e5f1f8;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

/* CADDIE : Encadré choix paiement - Titre très lisible en gras */
.caddie-pay-title, .caddie-recap-title {
  font-weight: 700;
  font-size: 1.125rem;   /* ~18px */
  line-height: 1.35;
  margin: .1rem 0 .5rem;
  color: #0b3a53;
}

/* CADDIE : Encadré choix paiement - Petite phrase discrète en italique */
.caddie-pay-note{
  margin: .2rem 0 .8rem;
  font-size: .95rem;     /* ~15px */
  font-style: italic;
  color: #075985;
  opacity: .85;
}

/* CADDIE : Encadré choix paiement - Logos CB (ligne + “blockquote”) */
.caddie-logoscb{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-left: 3rem;          /* léger décalage */
  margin: .25rem 0 .75rem;
}
.caddie-logoscb input[type="image"],
.caddie-logoscb img{
  height: 28px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  border: 0;
  background: transparent;
  line-height: 0;
  padding: 0;
  margin: 0;
}

/* CADDIE : Encadré choix paiement - Autres moyens : une seule ligne, sans <br> */
.caddie-pay-others{
  margin-top: .5rem;
  color: #6b7280;
  white-space: nowrap;
  font-size: .95rem;
}
.caddie-pay-others a{
  color: #1e40af;
  text-decoration: none;
}
.caddie-pay-others a:hover{
  text-decoration: underline;
}

/* CADDIE : Encadré choix paiement - Très petits écrans : autoriser le retour à la ligne */
@media (max-width: 380px){
  .caddie-pay-others{ white-space: normal; }
  .caddie-logoscb{ flex-wrap: wrap; row-gap: .5rem; }
}



/* ====== Mini récap commande (encart) ====== */
.caddie-recap{
  margin: .75rem 0 1rem;
  padding: 12px 14px;

  background: linear-gradient(180deg,#CCC 0%, #999 100%);
  border: 1px solid #666;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

}
.caddie-recap > h2{
  margin: .1rem 0 .5rem;
  color: #0288d1;
}

/* Table récap (cible tes classes existantes) */
.caddie-recap .tablecaddie thead th,
.caddie-recap .b-tablecaddie thead th{
  color: #075985;
  border: none;
  padding: 8px 0 6px;
}
.caddie-recap .tablecaddie tbody tr + tr td,
.caddie-recap .b-tablecaddie tbody tr + tr td{
  border-top: 1px dashed #e9eff5;
}
.caddie-recap .tablecaddie tbody tr:last-child td,
.caddie-recap .b-tablecaddie tbody tr:last-child td{
  border-top: 2px solid #dfeff8;
  font-weight: 700;
}
.caddie-recap .tablecaddie tbody tr:last-child td.b-text-right:last-child,
.caddie-recap .b-tablecaddie tbody tr:last-child td.b-text-right:last-child{
  color: #0288d1;
  font-size: 1.05rem;
}

/* ====== Récap non modifiable : caddie-tablerecap ====== */
.caddie-tablerecap{
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--caddie-border, #e5eef6);
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  font-family: Arial, sans-serif;
}
.caddie-tablerecap thead th{
  background: #f4f6f8;
  color: #444;
  font-weight: 700;
  padding: .75rem .5rem;
  border-bottom: 1px solid var(--caddie-border, #e5eef6);
}
.caddie-tablerecap tbody td{
  padding: .65rem .5rem;
  border-top: 1px solid var(--caddie-border, #e5eef6);
  vertical-align: top;
}
.caddie-tablerecap tbody tr:hover{
  background: #fbfdff;
}

/* dernière ligne (total) mise en avant */
.caddie-tablerecap tr.caddie-tablerecap-total td{
  border-top: 2px solid #dfeff8;
  font-weight: 700;
}
.caddie-tablerecap tr.caddie-tablerecap-total td:last-child{
  color: #0288d1;
  font-size: 1.05rem;
}

/* utilitaires d’alignement spécifiques recap */
.caddie-tablerecap-txtcenter  { text-align: center; }
.caddie-tablerecap-txtleft  { text-align: left; }
.caddie-tablerecap-txtright { text-align: right; }

/* prix (optionnel pour homogénéiser la typo) */
.caddie-tablerecap-price{
  color: #000;
  white-space: nowrap;
}

/* ====== Adresses : facturation + livraison ====== */
.caddie-address-container{
  display: flex;
  flex-wrap: wrap;        /* à côté sur desktop, l’un sous l’autre sur petit écran */
  gap: 1rem;
  margin-top: 1.25rem;
}
.caddie-address-block{
  background-color: #f8f8f8;
  padding: 1em;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
  flex: 1 1 320px;        /* 2 colonnes si largeur dispo, sinon 1 colonne */
  min-width: 280px;
}
.caddie-address-title{
  font-weight: 700;
  margin: 0 0 .35em;      /* petit décalage Titre → Contenu */
  color: #0b3a53;
}

.caddie-pay-address, .caddie-pay-telmail{
  margin-top: .15em;      /* renforce légèrement le décalage */
  line-height: 1.35;
  padding-left: 1rem;
  background-color: #FFF;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0,0,0,0.05);
}

.caddie-pay-telmail {
  background-color: #FFF;
}

/* Pastille action/quantité (remplace .b-entoure) */
.caddie-entoure{
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 2px solid #0288d1;   /* bleu cohérent */
  background: #eef9ff;
  color: #075985;
  border-radius: 999px;         /* pastille */
  padding: 2px 8px;
  margin: 0 4px;
  line-height: 1;               /* compacité */
}

/* Icônes +/- dans la pastille */
.caddie-entoure .b-icon{
  border: 0;
  padding: 0;
  fill: #0288d1;
  transition: transform .12s ease;
}
.caddie-entoure .b-icon:hover{
  transform: scale(1.06);
}


/* Bloc visuel du formulaire relais */
.caddie_relaysearch .b-fieldset,
.caddie-searchgls{
  background: linear-gradient(180deg,#f7fbff 0%, #ffffff 100%);
  border: 1px solid #e5f1f8;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

/* Ligne unique : 3 inputs + bouton */
.caddie-searchgls{
  display: flex;
  flex-wrap: nowrap;            /* une seule ligne */
  gap: 12px;
  align-items: flex-end;
}

/* Chaque champ prend sa place, le bouton garde sa largeur auto */
.caddie-searchgls > div{
  display: flex;
  flex-direction: column;       /* label au-dessus de l’input */
  flex: 1 1 0;                  /* 3 colonnes fluides */
  min-width: 180px;             /* évite de trop écraser les champs */
}
.caddie-searchgls > div:last-child{
  flex: 0 0 auto;               /* le bouton ne s’étire pas */
}

/* Label au-dessus, lisible */
.caddie-searchgls .b-label{
  display: block;
  margin: 0 0 4px;
  color: #075985;
  font-weight: 600;
}

/* Input : cohérence visuelle */
.caddie-searchgls .b-input{
  border-color: #d7e9f6;
  height: 38px;
}

/* Bouton : léger décalage */
.caddie-searchgls .b-button-grey{
  margin-left: 4px;
  height: 38px;                 /* aligné avec la hauteur des inputs */
  line-height: 36px;            /* vertical align */
  padding: 0 16px;
}

/* Responsive : empilement propre sous 900px */
@media (max-width: 900px){
  .caddie-searchgls{
    flex-wrap: wrap;            /* autorise le retour à la ligne */
  }
  .caddie-searchgls > div{
    flex: 1 1 100%;
    min-width: 100%;
  }
  .caddie-searchgls .b-button-grey{
    margin-left: 0;
    width: 100%;
  }
}


/* Liste des relais : grille d’items */
.caddie_relay-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: .6rem;
  margin: .6rem 0 0;
}

/* Style commun des items (chaque <table> dans .caddie_relay-list) */
.caddie_relay-list table{
  width: 100%;
  background: #fff;
  border: 1px solid #e9eff5;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
  border-collapse: separate;   /* garder le radius */
  border-spacing: 0;
  overflow: hidden;            /* radius propre */
}
.caddie_relay-list table th{
  width: 140px;
  text-align: center;
  vertical-align: middle;
  padding: 12px;
  background: linear-gradient(#f7fbff,#ffffff);
  border-right: 1px dashed #e9eff5;
}
.caddie_relay-list table td{
  padding: 12px;
  border: none;
  color: #0f172a;
}
.caddie_relay-list table td strong{ color: #0288d1; }
.caddie_relay-list table td small{ color: #6b7280; }

/* Bouton “Choisir” un peu plus présent */
.caddie_relay-list .b-button-green{
  min-width: 118px;
  padding: .5rem .9rem;
}

/* Si un <br> suit la liste, on le masque (ton markup actuel) */
.caddie_relay-list + br{ display: none; }

/* Responsive */
@media (max-width: 640px){
  .caddie_relay-list table th{ width: 120px; padding: 10px; }
  .caddie_relay-list table td{ padding: 10px; }
}