/* =========================================================
   🔵 GPA CHECKOUT — MINI PRODUIT CLEAN
   ========================================================= */

.mini-product .thumbnail-container {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.mini-product .product-thumbnail {
  flex: 0 0 70px;
  max-width: 70px;
}

.mini-product .product-description {
  flex: 1;
  min-width: 0;
}

/* STRUCTURE HEADER PRODUIT */
.gpa-product-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

/* NOM PRODUIT */
.mini-product .product-title {
  margin: 0;
  flex: 1;
}

/* PRIX À DROITE */
.gpa-product-price {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  text-align: right;
}
/* ATTRIBUTS PRODUIT */
.gpa-mini-product-attributes {
  margin-top: 4px;
}

.gpa-mini-product-attribute {
  font-size: 11px;       /* 🔥 plus petit */
  line-height: 1.4;
  color: #888;           /* plus discret */
}

/* label */
.gpa-attr-label {
  font-weight: 400;
}

/* valeur */
.gpa-attr-value {
  font-weight: 500;
  color: #444;
}

/* =========================================================
   🔵 GPA CHECKOUT — COLONNE GAUCHE PLUS PREMIUM
   ========================================================= */

body#checkout .checkout-step-items {
  padding-right: 28px;
}

body#checkout .checkout-step {
  margin-bottom: 34px !important;
  padding-bottom: 24px !important;
  border-bottom: 1px solid #e7e7e7 !important;
}

body#checkout .checkout-step h1,
body#checkout .checkout-step h2,
body#checkout .checkout-step h3,
body#checkout .checkout-step .step-title {
  font-size: 18px !important;
  line-height: 1.2 !important;
  letter-spacing: 2px !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  color: #1f2328 !important;
  margin-bottom: 18px !important;
}

body#checkout .step-edit,
body#checkout .checkout-step .step-edit {
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  color: #9a9a9a !important;
  text-decoration: none !important;
}

body#checkout .step-edit:hover {
  color: #1f2328 !important;
}


/* =========================================================
   🔵 GPA CHECKOUT — TEXTES ET BLOCS
   ========================================================= */

body#checkout .checkout-step p,
body#checkout .checkout-step label,
body#checkout .checkout-step .form-control-comment,
body#checkout .checkout-step .help-block {
  color: #666 !important;
  line-height: 1.6 !important;
}

body#checkout .checkout-step .address,
body#checkout .checkout-step .js-address-form,
body#checkout .checkout-step .delivery-option,
body#checkout .checkout-step .payment-option {
  background: #fafafa !important;
  border: 1px solid #e6e6e6 !important;
  padding: 20px !important;
  margin-bottom: 16px !important;
}

body#checkout .checkout-step .address:hover,
body#checkout .checkout-step .delivery-option:hover,
body#checkout .checkout-step .payment-option:hover {
  border-color: #cfcfcf !important;
  background: #fcfcfc !important;
}


/* =========================================================
   🔵 GPA CHECKOUT — ADRESSES
   ========================================================= */

body#checkout .checkout-step .address {
  box-shadow: none !important;
}

body#checkout .checkout-step .address-footer {
  margin-top: 18px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e2e2e2 !important;
}

body#checkout .checkout-step .address-footer a {
  font-size: 14px !important;
  text-decoration: none !important;
}


/* =========================================================
   🔵 GPA CHECKOUT — LIVRAISON SAFE
   ========================================================= */

body#checkout .delivery-options-list {
  margin-top: 18px !important;
}

body#checkout .delivery-option {
  background: #fafafa !important;
  border: 1px solid #e3e3e3 !important;
  padding: 16px 18px !important;
  margin-bottom: 14px !important;
}

body#checkout .delivery-option label,
body#checkout .delivery-option .carrier-name,
body#checkout .delivery-option .carrier-delay,
body#checkout .delivery-option .carrier-price {
  font-size: 14px !important;
  line-height: 1.5 !important;
}

body#checkout .delivery-option .carrier-price {
  font-weight: 600 !important;
}

body#checkout .carrier-extra-content,
body#checkout .extra-carrier,
body#checkout .pickup-point-info,
body#checkout .pickup-points {
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid #e7e7e7 !important;
}

body#checkout #js-pickup-points-map,
body#checkout .leaflet-container {
  border: 1px solid #dedede !important;
  margin-top: 12px !important;
  height: 320px !important;
  max-height: 320px !important;
}

body#checkout .pickup-points-list,
body#checkout .js-pickup-points-list {
  margin-top: 12px !important;
}

body#checkout textarea {
  min-height: 90px !important;
}

/* =========================================================
   🔵 GPA CHECKOUT — PAIEMENT
   ========================================================= */

body#checkout .payment-options {
  margin-top: 10px !important;
}

body#checkout .payment-option label {
  color: #222 !important;
  font-size: 15px !important;
}

body#checkout .condition-label {
  font-size: 14px !important;
  color: #555 !important;
}


/* =========================================================
   🔵 GPA CHECKOUT — BOUTONS
   ========================================================= */

body#checkout .btn,
body#checkout .btn-primary,
body#checkout button,
body#checkout button[type="submit"] {
  background: #1f2328 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  font-size: 13px !important;
  padding: 13px 22px !important;
  box-shadow: none !important;
}

body#checkout .btn:hover,
body#checkout .btn-primary:hover,
body#checkout button:hover {
  background: #000 !important;
}

body#checkout .btn-secondary,
body#checkout .btn-tertiary {
  background: transparent !important;
  color: #1f2328 !important;
  border: 1px solid #d7d7d7 !important;
}


/* =========================================================
   🔵 GPA CHECKOUT — CHRONORELAIS SOUS LA LIGNE TRANSPORT
   ========================================================= */

@media (max-width: 1024px) {

  /* la ligne transport reste en flex */
  body#checkout label.delivery-option-2 > .row.carrier.carrier-haslogo {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  /* les 3 colonnes de la ligne transport prennent toute la largeur */
  body#checkout label.delivery-option-2 > .row.carrier.carrier-haslogo > .col-sm-5,
  body#checkout label.delivery-option-2 > .row.carrier.carrier-haslogo > .col-sm-4,
  body#checkout label.delivery-option-2 > .row.carrier.carrier-haslogo > .col-sm-3 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    display: block !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 8px !important;
    float: none !important;
  }

  /* le conteneur point relais passe SOUS la ligne */
  body#checkout #chronorelais_container {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    float: none !important;
    margin-top: 14px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 14px !important;
    border-top: 1px solid #e5e5e5 !important;
    box-sizing: border-box !important;
  }

  /* tout le contenu interne doit se mettre en colonne */
  body#checkout #chronorelais_container .container-fluid,
  body#checkout #chronorelais_container .row,
  body#checkout #chronorelais_container [class*="col-"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* titre et textes */
  body#checkout #chronorelais_container h1,
  body#checkout #chronorelais_container h2,
  body#checkout #chronorelais_container h3,
  body#checkout #chronorelais_container h4,
  body#checkout #chronorelais_container .title {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
  }

  /* champ code postal */
  body#checkout #chronorelais_container input[type="text"],
  body#checkout #chronorelais_container input[type="search"],
  body#checkout #chronorelais_container input[type="number"],
  body#checkout #chronorelais_container select {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 10px 0 !important;
    box-sizing: border-box !important;
  }

  /* bouton sous le champ */
  body#checkout #chronorelais_container button,
  body#checkout #chronorelais_container .btn {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 12px 0 !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }

  /* masque la map sur tablette/mobile */
  body#checkout #chronorelais_container #map,
  body#checkout #chronorelais_container .leaflet-container,
  body#checkout #chronorelais_container #js-pickup-points-map {
    display: none !important;
  }

  /* la liste passe bien en dessous */
  body#checkout #chronorelais_container .liste,
  body#checkout #chronorelais_container .pickup-points-list,
  body#checkout #chronorelais_container .js-pickup-points-list {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
    overflow: hidden !important;
  }

  body#checkout #chronorelais_container .liste label,
  body#checkout #chronorelais_container .pickup-points-list label,
  body#checkout #chronorelais_container .js-pickup-points-list label,
  body#checkout #chronorelais_container li {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }
}

/* =========================================================
   🔵 GPA CHECKOUT — CHRONORELAIS MASQUÉ SUR TÉLÉPHONE
   ========================================================= */

@media (max-width: 767px) {
  body#checkout #chronorelais_container {
    display: none !important;
  }
}

/* =========================================================
   🔵 GPA CHECKOUT — FIX BOUTONS HEADER NON IMPACTÉS
   ========================================================= */

body#checkout #header .btn,
body#checkout #header button,
body#checkout header .btn,
body#checkout header button,
body#checkout .mobile-header .btn,
body#checkout .mobile-header button,
body#checkout .search-widget .btn,
body#checkout .search-widget button {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  box-shadow: none !important;
  min-width: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}