/* GP Carrier Hub — front */

/* « à partir de X € » = valeur de la ligne Livraison du récap tant qu'aucun
   transporteur n'est choisi. */
.gpch-ship-from { white-space: nowrap; }
.gpch-ship-from__from {
  font-weight: 400;
  font-size: .85em;
  color: var(--color-text-muted, #667572);
}

/* Config vendeur */
.gpch-panel { border: 1px solid #e0e4da; border-radius: 8px; padding: 1rem 1.25rem; margin: 1.25rem 0; background: #fff; }
.gpch-panel h3 { margin-top: 0; font-size: 1.1rem; }
.gpch-driver-card { border: 1px solid #eee; border-radius: 6px; padding: .75rem 1rem; margin: .5rem 0; }
.gpch-driver-head { font-size: .95rem; margin-bottom: .4rem; }
.gpch-driver-form .form-group { margin-bottom: .5rem; }
.gpch-driver-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.gpch-msg { font-size: .85rem; }
.gpch-gp { background: #f4f7f2; border-radius: 6px; padding: .75rem 1rem; margin-bottom: .75rem; }
.gpch-gp h4 { margin: 0 0 .25rem; font-size: 1rem; }
.gpch-gp-line { display: block; padding: .2rem 0; }

/* Espace vendeur — fiche commande : panneaux expéditions / retours */
.ets_mp_content_left .gpch-panel { margin: 0 0 1rem; }
.gpch-panel--alert { border-color: #e6b800; background: #fffdf3; }
.gpch-ship-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem;
  border-top: 1px solid #eee; padding: .6rem 0; font-size: .9rem; }
.gpch-ship-row:first-of-type { border-top: 0; }
.gpch-ship-main { flex: 1 1 60%; }
.gpch-ship-main .badge { margin: 0 .25rem; }
.gpch-ship-parcels { color: #888; font-size: .82rem; }
.gpch-ship-actions { flex: 0 0 auto; display: flex; gap: .5rem; }

/* Sélecteur relais */
.gpch-relay-picker { margin: 1rem 0; }
.gpch-relay-search { display: flex; gap: .5rem; margin-bottom: .5rem; }
.gpch-relay-search input { max-width: 200px; }
.gpch-relay-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; align-items: start; }
.gpch-relay-list { max-height: 380px; overflow-y: auto; }
.gpch-relay-map { width: 100%; height: 380px; }
@media (max-width: 780px) {
  .gpch-relay-layout { grid-template-columns: 1fr; }
  .gpch-relay-list { max-height: 260px; }
  .gpch-relay-map { height: 300px; }
}
.gpch-relay-item {
  position: relative; cursor: pointer;
  border: 1px solid var(--color-border, #e6e6e2); border-radius: 8px;
  padding: .55rem .7rem; margin-bottom: .5rem; font-size: .9rem;
}
.gpch-relay-item.gpch-relay-hl { border-color: var(--color-primary, #006d6d); }
.gpch-relay-item.gpch-relay-selected { border-color: var(--color-secondary, #00b894); background: var(--color-background-green, #edf8f4); }
.gpch-relay-item strong { display: block; }
.gpch-relay-addr { color: var(--color-text-muted, #667572); font-size: .84rem; margin-top: .1rem; }
.gpch-relay-dist { position: absolute; top: .55rem; right: .7rem; color: var(--color-text-muted, #888); font-size: .78rem; }
.gpch-relay-map { border-radius: 8px; overflow: hidden; z-index: 0; min-height: 240px; }
.gpch-relay-empty { color: var(--color-text-muted, #667572); font-size: .88rem; padding: .5rem 0; }

/* Badge type de point (commerce / consigne) */
.gpch-relay-kind {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .02em; padding: .06rem .4rem; border-radius: 3px; margin-bottom: .2rem;
}
.gpch-relay-kind--relay { background: var(--color-background-green, #e4f2ec); color: var(--color-primary, #006d6d); }
.gpch-relay-kind--locker { background: var(--color-secondary-light, #cdeede); color: var(--color-secondary-dark, #009879); }

/* Marqueur — DA du site (plus de bleu Leaflet par défaut) */
.gpch-pin-wrap { background: none; border: 0; }
.gpch-pin {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--color-primary, #006d6d);
  border: 2px solid var(--color-text-light, #fff);
  box-shadow: 0 3px 8px rgba(10, 46, 46, .38);
}
.gpch-pin svg { width: 15px; height: 15px; fill: var(--color-text-light, #fff); }
.gpch-pin .gpch-pin-ico--locker {
  display: block; width: 17px; height: 17px;
  background: var(--color-text-light, #fff);
  /* mask-image posé en style inline par relay-map.js (URL versionnée) */
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.gpch-pin::after {
  content: ''; position: absolute; left: 50%; bottom: -5px;
  width: 11px; height: 11px; background: inherit;
  border-right: 2px solid var(--color-text-light, #fff);
  border-bottom: 2px solid var(--color-text-light, #fff);
  transform: translateX(-50%) rotate(45deg);
}
.gpch-pin.is-selected { background: var(--color-secondary, #00b894); transform: scale(1.14); z-index: 400; }

/* Bouton « Choisir » compact (liste + bulle) */
.gpch-relay-choose,
.gpch-relay-pop-choose {
  display: inline-block; margin-top: .45rem;
  padding: .2rem .6rem; font-size: .78rem; line-height: 1.3; border-radius: 4px;
}

/* Horaires repliables (liste + bulle) */
.gpch-relay-hours { margin: .35rem 0 .1rem; font-size: .8rem; }
.gpch-relay-hours > summary {
  cursor: pointer; color: var(--color-primary, #006d6d); font-weight: 600;
  list-style: none; padding: .12rem 0;
}
.gpch-relay-hours > summary::-webkit-details-marker { display: none; }
.gpch-relay-hours > summary::before { content: '▸ '; font-size: .7em; }
.gpch-relay-hours[open] > summary::before { content: '▾ '; }
.gpch-relay-h-body { border-top: 1px solid var(--color-border, #eee); padding-top: .25rem; margin-top: .1rem; }
.gpch-relay-h-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--color-text-muted, #666); font-size: .78rem; }
.gpch-relay-h-row span:first-child { font-weight: 600; color: var(--color-text, #444); }

/* Bulle (popup Leaflet) */
.leaflet-popup.gpch-relay-popup .leaflet-popup-content-wrapper { border-radius: 10px; }
.leaflet-popup.gpch-relay-popup .leaflet-popup-content { margin: .7rem .85rem; }
.gpch-relay-pop { font-size: .88rem; line-height: 1.35; }
.gpch-relay-pop strong { display: block; font-size: .95rem; margin: .1rem 0 .15rem; }
.gpch-relay-pop-addr { color: var(--color-text-muted, #555); }

/* Retours (page commande client) */
.gpch-order-returns { margin-top: 1rem; }
.gpch-return-list { list-style: none; padding: 0; }
.gpch-return-list li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid #eee; }
.gpch-return-reason { font-weight: 600; }

/* Chip de statut de retour (client + panneau vendeur) */
.gpch-return-status {
  display: inline-flex; align-items: center;
  padding: .18rem .6rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .01em; white-space: nowrap;
  background: #eef1ee; color: #3f4a42; border: 1px solid #d7ddd7;
}
/* En attente : ambre */
.gpch-return-status--demande,
.gpch-return-status--discussion,
.gpch-return-status--attente_choix_client,
.gpch-return-status--attente_bordereau,
.gpch-return-status--attente_paiement {
  background: #fbf1dd; color: #8a5a12; border-color: #f0dcb4;
}
/* En cours / accepté : teal */
.gpch-return-status--accepte,
.gpch-return-status--bordereau_pret,
.gpch-return-status--en_transit,
.gpch-return-status--recu {
  background: #e4f4ee; color: #1f6b4c; border-color: #b4e2cd;
}
/* Terminé : vert */
.gpch-return-status--rembourse { background: #dff0d8; color: #2f7d33; border-color: #bfe0b4; }
/* Refusé : rouge */
.gpch-return-status--refuse { background: #fae3e3; color: #a3302f; border-color: #eec2c1; }
/* Clôturé : gris neutre (valeur par défaut) */

/* Panneau d'action retour greffé dans la colonne de droite de la conversation gpchat */
.gpchat-context .gpch-return-actions { border-top: 1px solid #e6e9e1; padding-top: .9rem; }
.gpchat-context .gpch-return-actions h3 { margin: 0 0 .4rem; }
.gpchat-context .gpch-return-actions .gpch-return-status { display: inline-block; margin-bottom: .6rem; }
.gpchat-context .gpch-return-actions .btn { margin: .2rem .3rem .2rem 0; }
.gpchat-context .gpch-return-actions .gpch-res-select { display: block; width: 100%; margin-bottom: .4rem; padding: .35rem .5rem; }

.gpch-modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10001; display: flex; align-items: center; justify-content: center; }
.gpch-modal[hidden] { display: none; }
.gpch-modal-box { background: #fff; border-radius: 12px; padding: 1.5rem; width: 480px; max-width: calc(100vw - 2rem); max-height: calc(100vh - 2rem); overflow-y: auto; position: relative; }
.gpch-modal-close { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; font-size: 1.6rem; line-height: 1; padding: .25rem .55rem; cursor: pointer; color: #666; }
.gpch-modal-close:hover { color: #000; }
.gpch-return-items label { display: block; margin: .3rem 0; }
.gpch-modal-actions { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; }
.gpch-photo-hint { color: #b0304a; margin: .35rem 0 0; }
.gpch-photos input[type=file] { display: block; margin-top: .25rem; }

/* Sélecteur relais checkout */
.gpch-relay-picker { margin: .5rem 0 .75rem; padding: .5rem .75rem; border: 1px solid var(--color-border, #e0e4da); border-radius: 8px; background: var(--color-background-soft, #fafbf8); }
.gpch-relay-head { font-weight: 600; display: flex; align-items: center; gap: .3rem; margin: 0 0 .3rem; }
.gpch-relay-current {
  font-size: .9rem; margin: .3rem 0 .1rem; padding: .4rem .6rem;
  background: var(--color-background-green, #edf8f4); border-radius: 6px;
  border: 1px solid var(--color-secondary-light, #a4e6c3);
}

/* Timeline suivi (front + BO) */
.gpch-timeline { list-style: none; margin: .5rem 0 0; padding-left: 1rem; border-left: 2px solid #e0e4da; }
.gpch-timeline li { position: relative; padding: .25rem 0 .25rem .75rem; font-size: .85rem; }
.gpch-timeline li::before { content: ""; position: absolute; left: -1.35rem; top: .6rem; width: 9px; height: 9px; border-radius: 50%; background: #b7c2ba; }
.gpch-timeline li.gpch-tl-delivered::before { background: #2f7d4f; }
.gpch-timeline li.gpch-tl-out_for_delivery::before { background: #9a6a1f; }
.gpch-tl-date { color: #888; margin-right: .4rem; }
.gpch-tl-loc { color: #888; display: block; }

/* Politique de retour vendeur — modale client */
.gpch-return-policies { margin-bottom: .9rem; }
.gpch-return-policy { background: #f4f8f2; border: 1px solid #dce9d4; border-radius: 8px; padding: .6rem .8rem; margin-bottom: .5rem; }
.gpch-return-policy strong { display: block; font-size: .9rem; margin-bottom: .2rem; }
.gpch-return-policy p { margin: 0; font-size: .85rem; color: #444; }

/* Politique de retour — panneau espace vendeur (« Mes transporteurs ») */
#gpch-return-policy .gpch-rp-addr { border-left: 3px solid #dce9d4; padding-left: .9rem; margin: .4rem 0 .8rem; }
#gpch-return-policy .gpch-rp-body .form-group { margin-bottom: .7rem; }

/* ================================================================= *
 *  Espace vendeur — « Mes transporteurs » (liste / assistant / édition)
 * ================================================================= */
#gpch-carrier-app {
  --gpch-teal: var(--color-primary, #006d6d);
  --gpch-ink: var(--color-text, #26332f);
  border: 1px solid var(--color-border, #e0e4da);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  background: #fff;
  color: var(--gpch-ink);
}
#gpch-carrier-app h2, #gpch-carrier-app h3, #gpch-carrier-app p,
#gpch-carrier-app td, #gpch-carrier-app label, #gpch-carrier-app strong { color: var(--gpch-ink); }
#gpch-carrier-app strong { display: inline; font-weight: 700; }
#gpch-carrier-app h2 { margin: 0 0 .15rem; font-size: 1.25rem; }
#gpch-carrier-app h3 { margin: 0 0 .8rem; font-size: 1.05rem; }
#gpch-carrier-app .gpch-muted,
#gpch-carrier-app p.gpch-muted { color: var(--color-text-muted, #667572); font-size: .9rem; }
#gpch-carrier-app .gpch-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--gpch-teal); font: inherit; text-decoration: underline;
}
#gpch-carrier-app .gpch-link.gpch-danger { color: #b0304a; }

.gpch-list-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.gpch-list-head p { margin: .15rem 0 0; }
/* Titre porté par l'en-tête unifié de l'espace vendeur : ici, action seule. */
.gpch-list-head--compact { justify-content: flex-end; margin-bottom: .75rem; }

/* Tableau */
.gpch-table-wrap { overflow-x: auto; }
.gpch-carrier-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.gpch-carrier-table th, .gpch-carrier-table td { padding: .65rem .7rem; text-align: left; border-bottom: 1px solid var(--color-border, #ecefe8); vertical-align: middle; }
.gpch-carrier-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .02em; color: var(--color-text-muted, #667572); }
.gpch-carrier-table tr.gpch-row--off td { opacity: .5; }
.gpch-row-actions { display: flex; gap: .8rem; white-space: nowrap; }

.gpch-yn { display: inline-block; font-weight: 700; font-size: .8rem; padding: .12rem .5rem; border-radius: 999px; }
.gpch-yn--yes { background: var(--color-background-green, #e4f2ec); color: var(--gpch-teal); }
.gpch-yn--no { background: #f0f1ee; color: #7a857d; }

.gpch-kind { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: .08rem .4rem; border-radius: 3px; margin-left: .35rem; }
.gpch-kind--gp { background: #e4f2ec; color: #006d6d; }
.gpch-kind--direct { background: #e8ecf7; color: #33518c; }
.gpch-kind--manual { background: #f3f0e6; color: #7c6a3c; }

.gpch-empty { padding: 1.5rem; text-align: center; color: var(--color-text-muted, #667572); background: var(--color-background-soft, #fafbf8); border-radius: 8px; }

/* Interrupteur */
.gpch-switch { position: relative; display: inline-block; width: 40px; height: 22px; }
.gpch-switch input { opacity: 0; width: 0; height: 0; }
.gpch-switch span { position: absolute; inset: 0; background: #c8ccc4; border-radius: 999px; transition: .15s; cursor: pointer; }
.gpch-switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.gpch-switch input:checked + span { background: var(--gpch-teal); }
.gpch-switch input:checked + span::before { transform: translateX(18px); }
.gpch-switch input:disabled + span { opacity: .5; }

/* Actions communes */
.gpch-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
#gpch-carrier-app .gpch-msg { font-size: .85rem; color: var(--color-text-muted, #667572); }

/* Bouton « Retour » de l'assistant : en bas de l'étape, au format bouton,
   calé à gauche (pousse les actions principales à droite quand il y en a). */
.gpch-actions--nav { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--color-border, #ecefe8); }
#gpch-carrier-app .gpch-wizard-back { margin-right: auto; }

/* Assistant */
.gpch-wizard-head { margin-bottom: 1rem; }
.gpch-wizard-head .gpch-link { display: inline-block; margin-bottom: .4rem; }
.gpch-breadcrumb, .gpch-wizard-crumb { font-size: .82rem; color: var(--color-text-muted, #667572); margin-top: .3rem; }
.gpch-breadcrumb__sep { margin: 0 .4rem; }
.gpch-wizard-step { margin-top: .5rem; }

.gpch-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.gpch-choice-card {
  display: flex; flex-direction: column; gap: .3rem; text-align: left;
  padding: 1rem 1.1rem; border: 1.5px solid var(--color-border, #e0e4da);
  border-radius: 10px; background: #fff; cursor: pointer; transition: .12s;
  color: var(--color-text, #26332f); font: inherit;
}
.gpch-choice-card:hover { border-color: var(--gpch-teal); box-shadow: 0 3px 12px rgba(10, 46, 46, .1); }
.gpch-choice-card strong { font-size: 1rem; color: var(--color-text, #26332f); }
.gpch-choice-card span { font-size: .85rem; color: var(--color-text-muted, #667572); }

.gpch-check-list { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0 1rem; }
.gpch-check { display: flex; align-items: center; gap: .55rem; padding: .55rem .7rem; border: 1px solid var(--color-border, #e0e4da); border-radius: 8px; cursor: pointer; }
.gpch-check input { margin: 0; }

.gpch-field { margin-bottom: .9rem; }
.gpch-field > label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3rem; }
.gpch-field--sub { margin-bottom: .55rem; }
.gpch-field--sub > label { font-weight: 400; color: var(--color-text-muted, #667572); }
.gpch-radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.gpch-radio-row label { font-weight: 400; }
#gpch-carrier-app .form-control { width: 100%; max-width: 420px; padding: .5rem .65rem; border: 1px solid var(--color-border, #c9cec4); border-radius: 6px; font: inherit; }
#gpch-carrier-app select.form-control { max-width: 260px; }
.gpch-flat { display: flex; gap: .6rem; margin-top: .5rem; }
.gpch-flat .form-control { max-width: 140px; }

.gpch-check--ok { color: #2f7d4f; }
.gpch-check--ko { color: #b0304a; }

/* ================================================================= *
 *  Création manuelle d'un transporteur — habillage GP du form natif
 *  ets_marketplace (#carrier_wizard). Sélecteurs préfixés .gpch-native-wrap
 *  pour battre fo_carrier.css sans dépendre de l'ordre de chargement.
 * ================================================================= */
.gpch-native-wrap {
  --gpch-teal: var(--color-primary, #006d6d);
  --gpch-ink: var(--color-text, #26332f);
  --gpch-line: var(--color-border, #e0e4da);
}
.gpch-native-wrap .gpch-wizard-head { padding-bottom: .9rem; border-bottom: 1px solid var(--gpch-line); margin-bottom: 1.4rem; }
.gpch-native-wrap .gpch-wizard-head h2 { margin: .1rem 0 0; font-size: 1.3rem; color: var(--gpch-ink); }
.gpch-native-wrap .gpch-wizard-head .gpch-muted { color: var(--color-text-muted, #667572); font-size: .9rem; margin: .5rem 0 0; }
.gpch-native-wrap .gpch-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--gpch-teal); font: inherit; text-decoration: underline; display: inline-block; margin-bottom: .4rem; }
.gpch-native-wrap .gpch-breadcrumb { font-size: .82rem; color: var(--color-text-muted, #667572); margin-top: .3rem; }
.gpch-native-wrap .gpch-breadcrumb__sep { margin: 0 .4rem; }

.gpch-native-wrap #carrier_wizard,
.gpch-native-wrap #carrier_wizard * { font-size: 14px; }
.gpch-native-wrap #carrier_wizard { margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; }
.gpch-native-wrap #carrier_wizard #fieldset_form,
.gpch-native-wrap #carrier_wizard #fieldset_form_1,
.gpch-native-wrap #carrier_wizard #fieldset_form_2,
.gpch-native-wrap #carrier_wizard #fieldset_form_3 {
  border: 0 !important; box-shadow: none !important; background: transparent; padding: 0 !important; margin: 0 !important;
}
.gpch-native-wrap #carrier_wizard .form-wrapper { padding: 0; }

/* smartWizard (jQuery, v3) positionne les étapes en absolute + anime `left` et
   fige la hauteur du conteneur → avec nos champs empilés la hauteur mesurée est
   fausse et le contenu déborde / se chevauche. On repasse en flux normal :
   l'étape active s'affiche, les autres restent masquées (display:none inline). */
.gpch-native-wrap #carrier_wizard .stepContainer {
  height: auto !important; min-height: 0 !important; overflow: visible !important;
  position: static !important; margin: 0; border: 0;
}
.gpch-native-wrap #carrier_wizard .stepContainer > .content { position: static !important; height: auto !important; }
.gpch-native-wrap #carrier_wizard .step_container {
  position: static !important; left: auto !important; top: auto !important; width: auto !important;
  height: auto !important; display: block;
}
.gpch-native-wrap #carrier_wizard .step_container[style*="display: none"],
.gpch-native-wrap #carrier_wizard .step_container[style*="display:none"] { display: none !important; }
.gpch-native-wrap #carrier_wizard .loader { display: none !important; }

/* --- Stepper --------------------------------------------------------- */
.gpch-native-wrap #carrier_wizard ul.steps {
  display: flex; list-style: none; margin: 0 0 1.6rem; padding: 0; border: 0; background: transparent;
}
.gpch-native-wrap #carrier_wizard ul.steps li {
  flex: 1 1 0; display: block; overflow: visible; position: relative; text-align: center; padding: 0; margin: 0; width: auto;
}
.gpch-native-wrap #carrier_wizard ul.steps li::after {
  content: ""; position: absolute; top: 16px; left: 50%; width: 100%; height: 2px; background: #e2e5df; z-index: 0;
}
.gpch-native-wrap #carrier_wizard ul.steps li:last-child::after { display: none; }
.gpch-native-wrap #carrier_wizard ul.steps li:has(a.done)::after { background: var(--gpch-teal); }
.gpch-native-wrap #carrier_wizard ul.steps li a {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  height: auto; margin: 0; padding: 0; text-decoration: none;
  background: transparent !important; color: var(--color-text-muted, #667572) !important; cursor: pointer;
}
.gpch-native-wrap #carrier_wizard ul.steps li a .stepNumber {
  float: none; width: 34px; height: 34px; margin: 0; padding: 0; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: .95rem; line-height: 1; font-weight: 700;
  background: #e9ece6; color: #8a938c; border: 2px solid #e9ece6;
}
.gpch-native-wrap #carrier_wizard ul.steps li a.selected .stepNumber { background: var(--gpch-teal); color: #fff; border-color: var(--gpch-teal); }
.gpch-native-wrap #carrier_wizard ul.steps li a.done .stepNumber { background: #fff; color: var(--gpch-teal); border-color: var(--gpch-teal); }
.gpch-native-wrap #carrier_wizard ul.steps li a .stepDesc {
  display: block; height: auto; font-size: .8rem; line-height: 1.25; text-align: center; max-width: 14ch;
}
.gpch-native-wrap #carrier_wizard ul.steps li a.selected .stepDesc { color: var(--gpch-ink); font-weight: 600; }
.gpch-native-wrap #carrier_wizard ul.steps li a .chevron { display: none; }
.gpch-native-wrap #carrier_wizard ul.steps li a .stepDesc br { display: none; }

/* --- Champs --------------------------------------------------------- */
.gpch-native-wrap #carrier_wizard .form-group.row { display: block; margin: 0 0 1.15rem; }
.gpch-native-wrap #carrier_wizard .control-label,
.gpch-native-wrap #carrier_wizard label.control-label.col-lg-3 {
  display: block !important; width: auto !important; float: none !important; text-align: left !important;
  padding: 0 0 .35rem !important; margin: 0; font-weight: 600; font-size: .9rem; color: var(--gpch-ink);
}
.gpch-native-wrap #carrier_wizard .control-label.required::after { content: " *"; color: #b0304a; }
.gpch-native-wrap #carrier_wizard .col-lg-2,
.gpch-native-wrap #carrier_wizard .col-lg-3,
.gpch-native-wrap #carrier_wizard .col-lg-6,
.gpch-native-wrap #carrier_wizard .col-lg-9,
.gpch-native-wrap #carrier_wizard .col-lg-10,
.gpch-native-wrap #carrier_wizard .col-lg-11 { width: 100% !important; max-width: 100% !important; float: none !important; padding: 0; }
.gpch-native-wrap #carrier_wizard label span.label-tooltip {
  background: transparent !important; border: 0 !important; color: inherit !important; padding: 0 !important;
}
.gpch-native-wrap #carrier_wizard input[type="text"],
.gpch-native-wrap #carrier_wizard input[type="file"],
.gpch-native-wrap #carrier_wizard input:not([type]),
.gpch-native-wrap #carrier_wizard select {
  width: 100%; max-width: 440px; min-height: 44px; box-sizing: border-box;
  border: 1px solid #c9cec4; border-radius: 8px; padding: .55rem .75rem;
  font: inherit; background: #fff; color: var(--gpch-ink); box-shadow: none;
}
.gpch-native-wrap #carrier_wizard input[type="text"]:focus,
.gpch-native-wrap #carrier_wizard select:focus {
  border-color: var(--gpch-teal); outline: 0; box-shadow: 0 0 0 3px rgba(0, 109, 109, .12);
}
.gpch-native-wrap #carrier_wizard p.help-block {
  font-style: normal; font-size: .82rem; color: var(--color-text-muted, #667572); line-height: 1.35; margin: .3rem 0 0;
}
.gpch-native-wrap #carrier_wizard .translatable-field { margin: 0; display: flex; gap: .4rem; align-items: flex-start; }
.gpch-native-wrap #carrier_wizard .translatable-field .col-lg-2 { width: auto !important; flex: 0 0 auto; }

/* --- Interrupteurs Oui/Non ----------------------------------------- */
/* Le thème force `.prestashop-switch { height:26px; overflow:hidden }` + labels
   `float:left; height:24px` → nos labels rembourrés étaient rognés verticalement.
   On neutralise hauteur / float / position. */
.gpch-native-wrap #carrier_wizard .switch.prestashop-switch {
  display: inline-flex !important; width: auto !important; height: auto !important;
  min-height: 0 !important; max-height: none !important; margin: 0; padding: 0;
  overflow: hidden; line-height: 1; vertical-align: middle;
  border: 1px solid #c9cec4; border-radius: 8px; background: #fff;
}
.gpch-native-wrap #carrier_wizard .prestashop-switch input {
  position: absolute !important; opacity: 0; width: 1px; height: 1px; pointer-events: none; margin: 0;
}
.gpch-native-wrap #carrier_wizard .prestashop-switch label {
  display: block; float: none !important; position: static !important;
  width: auto !important; height: auto !important; min-width: 56px; text-align: center;
  margin: 0 !important; padding: .5rem 1.15rem !important; cursor: pointer;
  font-weight: 600; font-size: .85rem; line-height: 1.2;
  background: #fff; color: var(--color-text-muted, #667572); border: 0; text-transform: none;
  transition: background .12s;
}
.gpch-native-wrap #carrier_wizard .prestashop-switch label + input + label { border-left: 1px solid #e2e5df; }
.gpch-native-wrap #carrier_wizard .prestashop-switch input:checked + label { background: var(--gpch-teal); color: #fff; }
.gpch-native-wrap #carrier_wizard .prestashop-switch .slide-button { display: none !important; }
.gpch-native-wrap #carrier_wizard .radio.t { display: block; padding: .2rem 0; }
.gpch-native-wrap #carrier_wizard .radio.t label { font-weight: 400; cursor: pointer; }

/* --- Sélecteurs taxe / hors-portée (étape 2) ---------------------- */
.gpch-native-wrap #carrier_wizard select#id_tax_rules_group,
.gpch-native-wrap #carrier_wizard select#range_behavior {
  max-width: 440px !important; width: 100%; height: 44px; font-size: 14px;
  background: #fff !important; border: 1px solid #c9cec4 !important; border-radius: 8px !important; color: var(--gpch-ink) !important;
}

/* --- Grille zones / tranches -------------------------------------- */
.gpch-native-wrap #carrier_wizard #zone_ranges { padding: 0; overflow-x: auto; }
.gpch-native-wrap #carrier_wizard #zone_ranges h4 { font-size: 1rem; margin: 0 0 .6rem; color: var(--gpch-ink); }
.gpch-native-wrap #carrier_wizard #zones_table td { padding: .3rem .4rem; height: auto; vertical-align: middle; }
.gpch-native-wrap #carrier_wizard #zones_table .input-group {
  display: flex; flex-wrap: nowrap; align-items: stretch; max-width: 190px; border-spacing: 0;
}
.gpch-native-wrap #carrier_wizard #zones_table .input-group .form-control {
  width: auto; flex: 1 1 auto; min-width: 0; height: 38px; min-height: 38px; max-width: none;
  border-radius: 0 6px 6px 0; padding: .4rem .55rem;
}
.gpch-native-wrap #carrier_wizard #zones_table .input-group span.input-group-addon {
  flex: 0 0 auto; width: auto; min-width: 32px; padding: 0 .5rem;
  background: #eef1ee; border: 1px solid #d7ddd7; border-right: 0; border-radius: 6px 0 0 6px; color: #55605a;
  display: flex; align-items: center; justify-content: center;
}
.gpch-native-wrap #carrier_wizard #zones_table .input-group span.input-group-addon + span.input-group-addon { border-radius: 0; }
/* Les cases de zone/tranche portent `class="form-control"` (template ETS) :
   le thème (theme.css) applique alors `appearance: none` + fond blanc + bordure,
   ce qui SUPPRIME le rendu natif de la case → l'état coché devient invisible
   (« impossible de sélectionner une zone »). On restaure la case native, teintée
   par l'`accent-color` global du thème. */
.gpch-native-wrap #carrier_wizard #zones_table input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: auto !important;
  width: 16px !important; height: 16px !important;
  min-height: 0 !important; max-width: none; flex: 0 0 auto;
  margin: 0; padding: 0 !important;
  background: initial !important; background-image: none !important;
  border: initial !important; border-radius: initial !important;
  box-shadow: none !important; cursor: pointer;
}
.gpch-native-wrap #carrier_wizard #zones_table td.zone { width: 44px; text-align: center; }
.gpch-native-wrap #carrier_wizard #zones_table .range_inf td,
.gpch-native-wrap #carrier_wizard #zones_table .range_sup td { background: var(--color-background-soft, #f4f7f2); }
.gpch-native-wrap #carrier_wizard #zones_table .range_type { width: auto; font-weight: 700; }
.gpch-native-wrap #carrier_wizard #zones_table tr.fees td:first-child { font-weight: 600; padding-right: 1rem; }
.gpch-native-wrap #carrier_wizard .new_range { padding: .6rem 0 0; }
.gpch-native-wrap #carrier_wizard .new_range .btn,
.gpch-native-wrap #carrier_wizard #zones_table .delete_range .btn {
  border: 1px solid #c9cec4; border-radius: 8px; background: #fff; color: var(--gpch-ink);
  padding: .4rem .8rem; font-weight: 600; font-size: .82rem;
}

/* --- Table accès groupe (étape 3) -------------------------------- */
.gpch-native-wrap #carrier_wizard #step_carrier_conf table.table {
  border: 1px solid var(--gpch-line) !important; border-radius: 8px; border-collapse: separate; overflow: hidden;
}
.gpch-native-wrap #carrier_wizard #step_carrier_conf .table th {
  background: #f4f7f2; border: 0 !important; border-bottom: 1px solid var(--gpch-line) !important;
  font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; color: var(--color-text-muted, #667572);
}
.gpch-native-wrap #carrier_wizard #step_carrier_conf .table td { border: 0 !important; border-bottom: 1px solid #eef1ee !important; }

/* --- Récapitulatif (étape 4) ------------------------------------- */
.gpch-native-wrap #carrier_wizard #step-4 > .defaultForm > .panel:first-child {
  background: var(--color-background-soft, #f4f7f2) !important; border: 1px solid var(--gpch-line) !important;
  border-radius: 10px !important; padding: 1rem 1.2rem !important;
}
.gpch-native-wrap #carrier_wizard #step-4 .panel-heading {
  background: transparent; border: 0; padding: 0 0 .5rem; font-weight: 600; color: var(--gpch-ink);
}
.gpch-native-wrap #carrier_wizard #step-4 .panel-body { padding: 0 !important; }

/* --- Barre d'action ---------------------------------------------- */
.gpch-native-wrap #carrier_wizard .actionBar {
  display: flex; gap: .6rem; justify-content: flex-end; align-items: center;
  padding: 1rem 0 0; margin: 1.4rem 0 0; border-top: 1px solid var(--gpch-line);
  position: static !important; float: none !important; height: auto !important; width: auto;
}
.gpch-native-wrap #carrier_wizard .actionBar a.btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .9rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; box-shadow: none; text-transform: none;
}
.gpch-native-wrap #carrier_wizard .actionBar a.btn svg { display: none; }
.gpch-native-wrap #carrier_wizard .actionBar a.buttonNext,
.gpch-native-wrap #carrier_wizard .actionBar a.buttonFinish { background: var(--gpch-teal); color: #fff; }
.gpch-native-wrap #carrier_wizard .actionBar a.buttonPrevious { background: #fff; border-color: #c9cec4; color: var(--gpch-ink); }
.gpch-native-wrap #carrier_wizard .actionBar a.buttonCancel,
.gpch-native-wrap #carrier_wizard .actionBar a.buttonCancel:hover {
  background: transparent !important; border: 0 !important; border-bottom: 1px solid !important; border-radius: 0 !important;
  color: #b0304a !important; font-weight: 600; padding: .3rem 0 !important; margin-right: auto; width: auto;
}
.gpch-native-wrap #carrier_wizard .actionBar a.btn.disabled { opacity: .5; }

@media (max-width: 620px) {
  .gpch-native-wrap #carrier_wizard ul.steps { flex-wrap: wrap; gap: .6rem 0; }
  .gpch-native-wrap #carrier_wizard ul.steps li { flex: 0 0 50%; }
  .gpch-native-wrap #carrier_wizard ul.steps li::after { display: none; }
  .gpch-native-wrap #carrier_wizard .actionBar { flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .gpch-carrier-table, .gpch-carrier-table tbody, .gpch-carrier-table tr, .gpch-carrier-table td { display: block; }
  .gpch-carrier-table thead { display: none; }
  .gpch-carrier-table tr { border: 1px solid var(--color-border, #e0e4da); border-radius: 8px; margin-bottom: .7rem; padding: .3rem .5rem; }
  .gpch-carrier-table td { border: 0; padding: .35rem .3rem; }
  .gpch-list-head { flex-direction: column; }
}
