/* Cohérence éditoriale : actions, formulaires et commande. */
.woocommerce-message .button,
.woocommerce-message a.button,
.woocommerce-info .button,
.woocommerce-info a.button {
  align-items:center;
  background:#111 !important;
  border:1px solid #111 !important;
  color:#fff !important;
  display:inline-flex;
  justify-content:center;
  min-height:42px;
  padding:.72rem 1.1rem !important;
  text-align:center;
}
.woocommerce-message .button:hover,
.woocommerce-message .button:focus,
.woocommerce-info .button:hover,
.woocommerce-info .button:focus { background:#2b2b2b !important; border-color:#2b2b2b !important; color:#fff !important; }

.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="password"],
.entry-content input[type="search"],
.entry-content textarea,
.entry-content select,
.woocommerce form input.input-text,
.woocommerce form textarea,
.woocommerce form select {
  background:#f7f6f2 !important;
  border:1px solid #d5d3cc !important;
  border-radius:0;
  color:#111 !important;
  min-height:42px;
  padding:.65rem .75rem;
}
.entry-content textarea,
.woocommerce form textarea { min-height:120px; }

body.woocommerce-checkout #content { background:#f7f6f2; }
body.woocommerce-checkout .site-main,
body.woocommerce-checkout .entry-content { max-width:1240px; }
body.woocommerce-checkout form.checkout {
  align-items:start;
  display:grid;
  font-size:.91rem;
  gap:clamp(28px, 4vw, 64px);
  grid-template-columns:minmax(0, 1.08fr) minmax(340px, .92fr);
}
body.woocommerce-checkout form.checkout > #customer_details { grid-column:1; margin:0; width:100%; }
body.woocommerce-checkout form.checkout > #order_review_heading,
body.woocommerce-checkout form.checkout > #order_review { grid-column:2; margin:0; width:100%; }
body.woocommerce-checkout form.checkout > #order_review_heading { grid-row:1; }
body.woocommerce-checkout form.checkout > #order_review { grid-row:1; margin-top:3.25rem; }
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2 { float:none; margin:0; width:100%; }
body.woocommerce-checkout #customer_details .col-2 { margin-top:1.5rem; }
body.woocommerce-checkout h3 { color:#111; font-size:1.18rem; line-height:1.25; margin-bottom:1rem; }
body.woocommerce-checkout .form-row { margin-bottom:.75rem; }
body.woocommerce-checkout .form-row label { font-size:.78rem; letter-spacing:.025em; margin-bottom:.28rem; }
body.woocommerce-checkout table.shop_table,
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td { border-color:#d5d3cc; }
body.woocommerce-checkout table.shop_table thead tr,
body.woocommerce-checkout table.shop_table tbody tr,
body.woocommerce-checkout table.shop_table tfoot tr,
body.woocommerce-checkout #payment,
body.woocommerce-checkout #payment .payment_box { background:#eeece6 !important; color:#111 !important; }
body.woocommerce-checkout #payment .payment_methods,
body.woocommerce-checkout #payment .place-order { border-color:#d5d3cc; }

/* Select2 : une destination par ligne, malgré l'ancienne règle globale des listes. */
body.woocommerce-checkout .select2-results__options,
body.woocommerce-checkout .select2-results__option { box-sizing:border-box; width:100%; }
body.woocommerce-checkout .select2-results__option {
  display:block !important;
  line-height:1.35;
  margin:0 !important;
  padding:.5rem .65rem !important;
  white-space:normal;
}

/* Le tarif reste contenu dans la colonne du récapitulatif. */
body.woocommerce-checkout #order_review tr.woocommerce-shipping-totals td {
  max-width:0;
  white-space:normal !important;
}
body.woocommerce-checkout #order_review ul#shipping_method {
  box-sizing:border-box;
  margin:0;
  padding:0;
  text-align:right;
  width:100%;
}
body.woocommerce-checkout #order_review ul#shipping_method li {
  display:block !important;
  margin:0;
  white-space:normal;
  width:100%;
}
body.woocommerce-checkout #order_review ul#shipping_method label {
  display:inline;
  overflow-wrap:anywhere;
}

body.woocommerce-checkout .payment_method_paypal img,
body.woocommerce-checkout .payment_method_ppcp-gateway img {
  height:auto !important;
  margin-left:.5rem !important;
  max-height:22px !important;
  max-width:92px !important;
  object-fit:contain;
  vertical-align:middle;
  width:auto !important;
}

@media (max-width:800px) {
  body.woocommerce-checkout form.checkout { display:block; font-size:.94rem; }
  body.woocommerce-checkout form.checkout > #order_review_heading { margin-top:2rem; }
  body.woocommerce-checkout form.checkout > #order_review { margin-top:0; }
  body.woocommerce-checkout #place_order { min-height:48px; width:100%; }
}
