/* Toutibox — Panier & commande premium clair */
:root{
  --tbx-bg:#f7f3ed;
  --tbx-card:#ffffff;
  --tbx-text:#171412;
  --tbx-muted:#746a63;
  --tbx-line:#e8dfd7;
  --tbx-orange:#e76d0b;
  --tbx-orange-dark:#c85800;
  --tbx-soft:#fff8f2;
  --tbx-shadow:0 10px 28px rgba(37,25,17,.07);
  --tbx-radius:18px;
}

body.woocommerce-cart .site-content,
body.woocommerce-checkout .site-content,
body.woocommerce-cart #content,
body.woocommerce-checkout #content{
  background:var(--tbx-bg)!important;
  color:var(--tbx-text)!important;
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart .woocommerce,
body.woocommerce-checkout .woocommerce{
  color:var(--tbx-text)!important;
}

body.woocommerce-cart .woocommerce a,
body.woocommerce-checkout .woocommerce a{color:var(--tbx-orange);}

/* ===== PANIER ===== */
body.woocommerce-cart .woocommerce-cart-form{
  margin-bottom:28px;
}

body.woocommerce-cart table.shop_table.cart{
  border:0!important;
  border-collapse:separate!important;
  border-spacing:0 14px!important;
  background:transparent!important;
}
body.woocommerce-cart table.shop_table.cart thead{display:none!important;}
body.woocommerce-cart table.shop_table.cart tbody{display:block!important;}
body.woocommerce-cart table.shop_table.cart tr.cart_item{
  display:grid!important;
  grid-template-columns:44px 150px minmax(260px,1fr) 130px 150px 140px;
  align-items:center;
  gap:18px;
  background:var(--tbx-card)!important;
  border:1px solid var(--tbx-line)!important;
  border-radius:var(--tbx-radius)!important;
  box-shadow:var(--tbx-shadow);
  padding:22px!important;
  overflow:hidden;
}
body.woocommerce-cart table.shop_table.cart tr.cart_item td{
  display:block!important;
  border:0!important;
  padding:0!important;
  background:transparent!important;
  color:var(--tbx-text)!important;
}
body.woocommerce-cart td.product-remove a.remove{
  width:30px!important;height:30px!important;line-height:28px!important;
  border:1px solid var(--tbx-line)!important;border-radius:50%!important;
  color:var(--tbx-muted)!important;background:#fff!important;
  font-size:20px!important;text-align:center!important;
}
body.woocommerce-cart td.product-remove a.remove:hover{
  background:#fff1eb!important;color:var(--tbx-orange)!important;border-color:#f3c5ac!important;
}
body.woocommerce-cart td.product-thumbnail img,
body.woocommerce-cart .tfc-upload-preview img{
  width:140px!important;max-width:140px!important;height:105px!important;
  object-fit:contain!important;background:#faf8f5!important;border:1px solid var(--tbx-line)!important;
  border-radius:12px!important;padding:8px!important;
}
body.woocommerce-cart td.product-name{
  font-size:15px!important;line-height:1.45!important;
}
body.woocommerce-cart td.product-name>a{
  display:block;margin-bottom:10px;color:var(--tbx-text)!important;font-size:18px!important;font-weight:800!important;text-decoration:none!important;
}
body.woocommerce-cart td.product-name dl.variation{
  display:grid!important;grid-template-columns:max-content 1fr;gap:3px 6px!important;
  margin:0!important;color:var(--tbx-muted)!important;font-size:14px!important;
}
body.woocommerce-cart td.product-name dl.variation dt,
body.woocommerce-cart td.product-name dl.variation dd{margin:0!important;padding:0!important;float:none!important;}
body.woocommerce-cart td.product-name dl.variation dt{font-weight:600!important;color:var(--tbx-muted)!important;}
body.woocommerce-cart td.product-name dl.variation dd{color:var(--tbx-text)!important;}

body.woocommerce-cart td.product-price,
body.woocommerce-cart td.product-subtotal{text-align:right!important;}
body.woocommerce-cart .tfc-cart-price-ht{font-size:13px!important;color:var(--tbx-muted)!important;font-weight:500!important;}
body.woocommerce-cart .tfc-cart-price-ttc{font-size:17px!important;color:var(--tbx-text)!important;font-weight:800!important;}
body.woocommerce-cart td.product-quantity .quantity{
  display:inline-flex!important;align-items:center!important;border:1px solid var(--tbx-line)!important;border-radius:10px!important;background:#fff!important;padding:2px!important;
}
body.woocommerce-cart td.product-quantity input.qty{
  border:0!important;background:#fff!important;color:var(--tbx-text)!important;width:66px!important;min-height:42px!important;text-align:center!important;box-shadow:none!important;
}

body.woocommerce-cart table.shop_table.cart tr:not(.cart_item){display:block!important;background:transparent!important;}
body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td.actions{
  display:flex!important;gap:12px!important;align-items:center!important;justify-content:space-between!important;
  border:0!important;padding:14px 0!important;background:transparent!important;
}
body.woocommerce-cart .coupon{display:flex!important;gap:10px!important;align-items:center!important;float:none!important;}
body.woocommerce-cart .coupon #coupon_code{
  width:230px!important;min-height:46px!important;border:1px solid var(--tbx-line)!important;border-radius:10px!important;background:#fff!important;color:var(--tbx-text)!important;padding:0 14px!important;
}

body.woocommerce-cart .button,
body.woocommerce-cart button.button,
body.woocommerce-checkout .button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout #place_order{
  background:var(--tbx-orange)!important;color:#fff!important;border:0!important;border-radius:10px!important;
  min-height:46px!important;padding:0 22px!important;font-weight:800!important;text-transform:none!important;letter-spacing:.01em!important;
  box-shadow:none!important;transition:.2s ease!important;
}
body.woocommerce-cart .button:hover,
body.woocommerce-checkout .button:hover,
body.woocommerce-checkout #place_order:hover{background:var(--tbx-orange-dark)!important;transform:translateY(-1px);}

body.woocommerce-cart .cart-collaterals{display:flex!important;justify-content:flex-end!important;margin-top:18px!important;}
body.woocommerce-cart .cart_totals{
  width:min(100%,500px)!important;float:none!important;background:var(--tbx-card)!important;
  border:1px solid var(--tbx-line)!important;border-radius:var(--tbx-radius)!important;box-shadow:var(--tbx-shadow)!important;padding:24px!important;
}
body.woocommerce-cart .cart_totals h2{font-size:23px!important;color:var(--tbx-text)!important;margin:0 0 14px!important;}
body.woocommerce-cart .cart_totals table{border:0!important;background:transparent!important;margin:0!important;}
body.woocommerce-cart .cart_totals table th,
body.woocommerce-cart .cart_totals table td{border:0!important;border-bottom:1px solid var(--tbx-line)!important;padding:14px 0!important;color:var(--tbx-text)!important;background:transparent!important;}
body.woocommerce-cart .cart_totals table td{text-align:right!important;}
body.woocommerce-cart .cart_totals tr.order-total th,
body.woocommerce-cart .cart_totals tr.order-total td{font-size:20px!important;font-weight:900!important;color:var(--tbx-text)!important;}
body.woocommerce-cart .cart_totals tr.order-total .amount{color:var(--tbx-orange)!important;}
body.woocommerce-cart .wc-proceed-to-checkout{padding:20px 0 0!important;}
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:block!important;width:100%!important;text-align:center!important;padding:15px 18px!important;border-radius:10px!important;background:var(--tbx-orange)!important;color:#fff!important;font-size:16px!important;font-weight:900!important;}

/* ===== CHECKOUT ===== */
body.woocommerce-checkout form.checkout{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr)!important;
  gap:28px!important;align-items:start!important;
}
body.woocommerce-checkout #customer_details{
  width:auto!important;float:none!important;margin:0!important;background:var(--tbx-card)!important;
  border:1px solid var(--tbx-line)!important;border-radius:var(--tbx-radius)!important;box-shadow:var(--tbx-shadow)!important;padding:26px!important;
}
body.woocommerce-checkout #customer_details .col-1,
body.woocommerce-checkout #customer_details .col-2{width:100%!important;float:none!important;padding:0!important;}
body.woocommerce-checkout #customer_details h3,
body.woocommerce-checkout #order_review_heading{color:var(--tbx-text)!important;font-size:22px!important;font-weight:900!important;margin:0 0 18px!important;}

body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;}
body.woocommerce-checkout .form-row{width:100%!important;float:none!important;margin:0!important;padding:0!important;}
body.woocommerce-checkout .form-row-wide{grid-column:1/-1!important;}
body.woocommerce-checkout .form-row label{font-size:13px!important;font-weight:700!important;color:var(--tbx-text)!important;margin-bottom:6px!important;}
body.woocommerce-checkout input.input-text,
body.woocommerce-checkout textarea,
body.woocommerce-checkout select,
body.woocommerce-checkout .select2-selection{
  min-height:46px!important;border:1px solid var(--tbx-line)!important;border-radius:10px!important;background:#fff!important;color:var(--tbx-text)!important;box-shadow:none!important;padding:10px 13px!important;
}
body.woocommerce-checkout .select2-selection__rendered{line-height:25px!important;color:var(--tbx-text)!important;}

body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review{
  grid-column:2!important;width:auto!important;float:none!important;
}
body.woocommerce-checkout #order_review_heading{
  background:var(--tbx-card)!important;border:1px solid var(--tbx-line)!important;border-bottom:0!important;
  border-radius:var(--tbx-radius) var(--tbx-radius) 0 0!important;padding:24px 24px 8px!important;margin:0!important;
}
body.woocommerce-checkout #order_review{
  background:var(--tbx-card)!important;border:1px solid var(--tbx-line)!important;border-top:0!important;
  border-radius:0 0 var(--tbx-radius) var(--tbx-radius)!important;box-shadow:var(--tbx-shadow)!important;padding:8px 24px 24px!important;
}
body.woocommerce-checkout table.woocommerce-checkout-review-order-table{border:0!important;background:transparent!important;margin:0 0 18px!important;}
body.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td{border:0!important;border-bottom:1px solid var(--tbx-line)!important;padding:13px 0!important;color:var(--tbx-text)!important;background:transparent!important;vertical-align:top!important;}
body.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-total{text-align:right!important;}
body.woocommerce-checkout tr.order-total th,
body.woocommerce-checkout tr.order-total td{font-size:20px!important;font-weight:900!important;}
body.woocommerce-checkout tr.order-total .amount{color:var(--tbx-orange)!important;}

/* Livraison : transforme les radios en cartes lisibles */
body.woocommerce-checkout #shipping_method,
body.woocommerce-cart #shipping_method{display:grid!important;gap:9px!important;list-style:none!important;margin:0!important;padding:0!important;}
body.woocommerce-checkout #shipping_method li,
body.woocommerce-cart #shipping_method li{
  position:relative!important;margin:0!important;padding:12px 14px!important;border:1px solid var(--tbx-line)!important;border-radius:11px!important;background:#fff!important;color:var(--tbx-text)!important;line-height:1.35!important;
}
body.woocommerce-checkout #shipping_method li:has(input:checked),
body.woocommerce-cart #shipping_method li:has(input:checked){border-color:var(--tbx-orange)!important;background:var(--tbx-soft)!important;box-shadow:0 0 0 1px rgba(231,109,11,.08)!important;}
body.woocommerce-checkout #shipping_method label,
body.woocommerce-cart #shipping_method label{color:var(--tbx-text)!important;font-weight:700!important;cursor:pointer!important;}

body.woocommerce-checkout #payment{
  background:#fff!important;border:1px solid var(--tbx-line)!important;border-radius:14px!important;overflow:hidden!important;color:var(--tbx-text)!important;
}
body.woocommerce-checkout #payment ul.payment_methods{border:0!important;padding:6px 18px!important;background:#fff!important;}
body.woocommerce-checkout #payment ul.payment_methods li{padding:12px 0!important;border-bottom:1px solid var(--tbx-line)!important;color:var(--tbx-text)!important;}
body.woocommerce-checkout #payment ul.payment_methods li:last-child{border-bottom:0!important;}
body.woocommerce-checkout #payment label{color:var(--tbx-text)!important;font-weight:700!important;}
body.woocommerce-checkout #payment div.payment_box{
  background:var(--tbx-soft)!important;color:var(--tbx-text)!important;border-radius:10px!important;margin:10px 0 4px!important;padding:14px!important;
}
body.woocommerce-checkout #payment div.payment_box:before{border-bottom-color:var(--tbx-soft)!important;}
body.woocommerce-checkout #payment .place-order{padding:18px!important;background:#fff!important;color:var(--tbx-text)!important;}
body.woocommerce-checkout #place_order{width:100%!important;font-size:16px!important;margin-top:10px!important;}
body.woocommerce-checkout .woocommerce-privacy-policy-text{color:var(--tbx-muted)!important;font-size:13px!important;line-height:1.5!important;}

/* Messages WooCommerce */
body.woocommerce-cart .woocommerce-message,
body.woocommerce-cart .woocommerce-info,
body.woocommerce-checkout .woocommerce-message,
body.woocommerce-checkout .woocommerce-info{
  background:#fff!important;color:var(--tbx-text)!important;border:1px solid var(--tbx-line)!important;border-left:4px solid var(--tbx-orange)!important;border-radius:12px!important;box-shadow:var(--tbx-shadow)!important;
}

@media (max-width:1100px){
  body.woocommerce-cart table.shop_table.cart tr.cart_item{grid-template-columns:40px 120px minmax(230px,1fr) 110px 120px;}
  body.woocommerce-cart td.product-subtotal{grid-column:5;}
  body.woocommerce-cart td.product-quantity{grid-column:4;}
  body.woocommerce-cart td.product-price{display:none!important;}
  body.woocommerce-checkout form.checkout{grid-template-columns:1fr!important;}
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review{grid-column:1!important;}
}

@media (max-width:768px){
  body.woocommerce-cart table.shop_table.cart{display:block!important;}
  body.woocommerce-cart table.shop_table.cart tr.cart_item{
    grid-template-columns:34px 88px 1fr!important;gap:12px!important;padding:16px!important;
  }
  body.woocommerce-cart td.product-remove{grid-column:1;grid-row:1;}
  body.woocommerce-cart td.product-thumbnail{grid-column:2;grid-row:1/3;}
  body.woocommerce-cart td.product-name{grid-column:3;grid-row:1/3;}
  body.woocommerce-cart td.product-price{display:none!important;}
  body.woocommerce-cart td.product-quantity{grid-column:2/3;grid-row:3;text-align:left!important;}
  body.woocommerce-cart td.product-subtotal{grid-column:3;grid-row:3;text-align:right!important;align-self:center!important;}
  body.woocommerce-cart td.product-thumbnail img,
  body.woocommerce-cart .tfc-upload-preview img{width:82px!important;max-width:82px!important;height:82px!important;}
  body.woocommerce-cart td.product-name>a{font-size:16px!important;}
  body.woocommerce-cart td.product-name dl.variation{font-size:12px!important;grid-template-columns:1fr!important;gap:0!important;}
  body.woocommerce-cart td.product-name dl.variation dt{display:none!important;}
  body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td.actions{display:grid!important;gap:10px!important;}
  body.woocommerce-cart .coupon{display:grid!important;grid-template-columns:1fr auto!important;width:100%!important;}
  body.woocommerce-cart .coupon #coupon_code{width:100%!important;}
  body.woocommerce-cart .cart-collaterals{display:block!important;}
  body.woocommerce-cart .cart_totals{width:100%!important;padding:18px!important;}
  body.woocommerce-checkout #customer_details{padding:18px!important;}
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-shipping-fields__field-wrapper,
  body.woocommerce-checkout .woocommerce-additional-fields__field-wrapper{grid-template-columns:1fr!important;}
  body.woocommerce-checkout .form-row-wide{grid-column:auto!important;}
  body.woocommerce-checkout #order_review_heading{padding:18px 18px 6px!important;}
  body.woocommerce-checkout #order_review{padding:6px 18px 18px!important;}
}

/* ===== v5.8.1 — corrections Astra/Toutibox ===== */
/* Conserver l'en-tête noir Toutibox : le thème utilise des textes clairs. */
body.woocommerce-cart #masthead,
body.woocommerce-checkout #masthead,
body.woocommerce-cart .site-header,
body.woocommerce-checkout .site-header,
body.woocommerce-cart .ast-primary-header-bar,
body.woocommerce-checkout .ast-primary-header-bar,
body.woocommerce-cart .main-header-bar,
body.woocommerce-checkout .main-header-bar,
body.woocommerce-cart header.site-header,
body.woocommerce-checkout header.site-header {
  background:#050505!important;
  color:#fff!important;
}
body.woocommerce-cart #masthead a,
body.woocommerce-checkout #masthead a,
body.woocommerce-cart .site-header a,
body.woocommerce-checkout .site-header a,
body.woocommerce-cart .ast-primary-header-bar a,
body.woocommerce-checkout .ast-primary-header-bar a {
  color:#fff!important;
}
body.woocommerce-cart #masthead a:hover,
body.woocommerce-checkout #masthead a:hover,
body.woocommerce-cart .site-header a:hover,
body.woocommerce-checkout .site-header a:hover {
  color:var(--tbx-orange)!important;
}

/* PANIER : garder le tableau natif stable d'Astra, mais plus propre et lisible. */
body.woocommerce-cart table.shop_table.cart {
  display:table!important;
  width:100%!important;
  border-collapse:separate!important;
  border-spacing:0!important;
  border:1px solid var(--tbx-line)!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#fff!important;
  box-shadow:var(--tbx-shadow)!important;
}
body.woocommerce-cart table.shop_table.cart thead {
  display:table-header-group!important;
  background:#111!important;
}
body.woocommerce-cart table.shop_table.cart thead tr {display:table-row!important;}
body.woocommerce-cart table.shop_table.cart thead th {
  display:table-cell!important;
  background:#111!important;
  color:#fff!important;
  border:0!important;
  padding:16px 14px!important;
  font-weight:800!important;
}
body.woocommerce-cart table.shop_table.cart tbody {display:table-row-group!important;}
body.woocommerce-cart table.shop_table.cart tr.cart_item {
  display:table-row!important;
  background:#fff!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
}
body.woocommerce-cart table.shop_table.cart tr.cart_item td {
  display:table-cell!important;
  vertical-align:middle!important;
  padding:18px 14px!important;
  border:0!important;
  border-bottom:1px solid var(--tbx-line)!important;
  background:#fff!important;
  color:var(--tbx-text)!important;
}
body.woocommerce-cart table.shop_table.cart td.product-remove {width:48px!important;text-align:center!important;}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail {width:150px!important;}
body.woocommerce-cart table.shop_table.cart td.product-thumbnail img,
body.woocommerce-cart table.shop_table.cart .tfc-upload-preview img {
  width:125px!important;
  max-width:125px!important;
  height:90px!important;
}
body.woocommerce-cart table.shop_table.cart td.product-name {min-width:310px!important;}
body.woocommerce-cart table.shop_table.cart td.product-price {width:130px!important;}
body.woocommerce-cart table.shop_table.cart td.product-quantity {width:120px!important;text-align:center!important;}
body.woocommerce-cart table.shop_table.cart td.product-subtotal {width:145px!important;}
body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) {display:table-row!important;}
body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td.actions {
  display:table-cell!important;
  padding:14px!important;
  background:#fffaf6!important;
  border:0!important;
}
body.woocommerce-cart table.shop_table.cart td.actions .coupon {float:left!important;display:flex!important;}
body.woocommerce-cart table.shop_table.cart td.actions > button,
body.woocommerce-cart table.shop_table.cart td.actions > .button {float:right!important;}

/* CHECKOUT : deux colonnes indépendantes pour supprimer le grand vide. */
body.woocommerce-checkout form.checkout {
  display:block!important;
  width:100%!important;
}
body.woocommerce-checkout form.checkout::after {
  content:"";
  display:block;
  clear:both;
}
body.woocommerce-checkout #customer_details {
  float:left!important;
  width:56.5%!important;
  box-sizing:border-box!important;
}
body.woocommerce-checkout #order_review_heading {
  float:right!important;
  width:41.5%!important;
  box-sizing:border-box!important;
  clear:right!important;
}
body.woocommerce-checkout #order_review {
  float:right!important;
  width:41.5%!important;
  box-sizing:border-box!important;
  clear:right!important;
}
/* Evite que certains styles Astra imposent une hauteur/min-height énorme. */
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout #order_review,
body.woocommerce-checkout .woocommerce-checkout-review-order {
  min-height:0!important;
  height:auto!important;
}

@media (max-width:1100px){
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review_heading,
  body.woocommerce-checkout #order_review {
    float:none!important;
    width:100%!important;
    clear:both!important;
  }
  body.woocommerce-checkout #order_review_heading {margin-top:22px!important;}
}

@media (max-width:768px){
  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table.cart tbody,
  body.woocommerce-cart table.shop_table.cart tr.cart_item,
  body.woocommerce-cart table.shop_table.cart tr.cart_item td {
    display:block!important;
    width:100%!important;
  }
  body.woocommerce-cart table.shop_table.cart thead {display:none!important;}
  body.woocommerce-cart table.shop_table.cart tr.cart_item {padding:14px!important;}
  body.woocommerce-cart table.shop_table.cart tr.cart_item td {
    padding:8px 0!important;
    border-bottom:0!important;
    text-align:left!important;
  }
  body.woocommerce-cart table.shop_table.cart td.product-remove {width:auto!important;}
  body.woocommerce-cart table.shop_table.cart td.product-thumbnail img,
  body.woocommerce-cart table.shop_table.cart .tfc-upload-preview img {
    width:130px!important;max-width:130px!important;height:95px!important;
  }
  body.woocommerce-cart table.shop_table.cart tr:not(.cart_item),
  body.woocommerce-cart table.shop_table.cart tr:not(.cart_item) td.actions {display:block!important;}
  body.woocommerce-cart table.shop_table.cart td.actions .coupon,
  body.woocommerce-cart table.shop_table.cart td.actions > button,
  body.woocommerce-cart table.shop_table.cart td.actions > .button {float:none!important;width:100%!important;}
}

/* v5.8.3 - quantité panier : neutralise les styles Astra/WooCommerce qui rognent les chiffres */
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity,
body.woocommerce-cart table.shop_table.cart td.product-quantity div.quantity {
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  height:46px!important;
  padding:0!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}
body.woocommerce-cart table.shop_table.cart td.product-quantity input.qty,
body.woocommerce-cart table.shop_table.cart td.product-quantity input.input-text.qty,
body.woocommerce-cart table.shop_table.cart td.product-quantity input[type="number"] {
  width:94px!important;
  min-width:94px!important;
  max-width:94px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 12px!important;
  margin:0!important;
  border:0!important;
  border-radius:10px!important;
  box-sizing:border-box!important;
  text-align:center!important;
  line-height:44px!important;
  font-size:18px!important;
  font-weight:700!important;
  color:var(--tbx-text)!important;
  background:#fff!important;
  overflow:visible!important;
  -moz-appearance:textfield!important;
  appearance:textfield!important;
}
body.woocommerce-cart table.shop_table.cart td.product-quantity input.qty::-webkit-outer-spin-button,
body.woocommerce-cart table.shop_table.cart td.product-quantity input.qty::-webkit-inner-spin-button {
  -webkit-appearance:none!important;
  margin:0!important;
}
@media (max-width: 768px) {
  body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity,
  body.woocommerce-cart table.shop_table.cart td.product-quantity div.quantity {
    width:96px!important;
    min-width:96px!important;
  }
  body.woocommerce-cart table.shop_table.cart td.product-quantity input.qty {
    width:94px!important;
    min-width:94px!important;
    max-width:94px!important;
  }
}

/* v5.8.4 - champ quantité sans spinner natif, valeur entièrement visible */
body.woocommerce-cart table.shop_table.cart td.product-quantity input.tfc-qty-clean {
  display:block!important;
  width:82px!important;
  min-width:82px!important;
  max-width:82px!important;
  height:44px!important;
  min-height:44px!important;
  padding:0 10px!important;
  margin:0 auto!important;
  border:0!important;
  outline:0!important;
  border-radius:9px!important;
  box-sizing:border-box!important;
  background:#fff!important;
  color:#111!important;
  text-align:center!important;
  font-size:18px!important;
  font-weight:700!important;
  line-height:44px!important;
  letter-spacing:0!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:textfield!important;
}
body.woocommerce-cart table.shop_table.cart td.product-quantity .quantity:has(input.tfc-qty-clean){
  width:86px!important;
  min-width:86px!important;
  max-width:86px!important;
  overflow:visible!important;
}
\n/* v5.8.5 — quantité panier rendue côté PHP en texte numérique */
body.woocommerce-cart td.product-quantity .tfc-cart-quantity{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:96px!important;
  min-width:96px!important;
  max-width:96px!important;
  height:48px!important;
  padding:0!important;
  margin:0 auto!important;
  overflow:visible!important;
  border:1px solid var(--tbx-line)!important;
  border-radius:10px!important;
  background:#fff!important;
  box-sizing:border-box!important;
}
body.woocommerce-cart td.product-quantity input.tfc-qty-text,
body.woocommerce-cart td.product-quantity .tfc-cart-quantity input.qty{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:46px!important;
  min-height:46px!important;
  padding:0 12px!important;
  margin:0!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:#fff!important;
  color:#171412!important;
  -webkit-text-fill-color:#171412!important;
  font-size:18px!important;
  font-weight:700!important;
  line-height:46px!important;
  text-align:center!important;
  appearance:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:textfield!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}

/* v5.8.9 — page “Commande reçue” : structure WooCommerce native, habillage Toutibox uniquement */
body.woocommerce-order-received .woocommerce,
body.woocommerce-view-order .woocommerce {
  color:var(--tbx-text)!important;
}
body.woocommerce-order-received .woocommerce-order,
body.woocommerce-view-order .woocommerce-MyAccount-content {
  width:100%!important;
  max-width:1180px!important;
  margin:0 auto!important;
}

/* Résumé haut de commande : compact, sans déplacer les blocs natifs. */
body.woocommerce-order-received .woocommerce-order-overview,
body.woocommerce-view-order .woocommerce-order-overview {
  display:flex!important;
  flex-wrap:wrap!important;
  gap:0!important;
  width:100%!important;
  margin:18px 0 24px!important;
  padding:0!important;
  background:#fff!important;
  border:1px solid var(--tbx-line)!important;
  border-radius:14px!important;
  overflow:hidden!important;
}
body.woocommerce-order-received .woocommerce-order-overview li,
body.woocommerce-view-order .woocommerce-order-overview li {
  float:none!important;
  flex:1 1 180px!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:14px 16px!important;
  border:0!important;
  border-right:1px solid var(--tbx-line)!important;
  color:var(--tbx-muted)!important;
  font-size:12px!important;
}
body.woocommerce-order-received .woocommerce-order-overview li:last-child,
body.woocommerce-view-order .woocommerce-order-overview li:last-child {border-right:0!important;}
body.woocommerce-order-received .woocommerce-order-overview strong,
body.woocommerce-view-order .woocommerce-order-overview strong {
  display:block!important;
  margin-top:4px!important;
  color:var(--tbx-text)!important;
  font-size:15px!important;
}

/* Détails de commande : un seul bloc pleine largeur, structure native conservée. */
body.woocommerce-order-received .woocommerce-order-details,
body.woocommerce-view-order .woocommerce-order-details {
  display:block!important;
  position:static!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 24px!important;
  padding:22px!important;
  background:#fff!important;
  border:1px solid var(--tbx-line)!important;
  border-radius:16px!important;
  box-shadow:0 8px 26px rgba(60,40,20,.05)!important;
  transform:none!important;
}
body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-view-order .woocommerce-order-details__title {
  margin:0 0 16px!important;
  padding:0!important;
  color:var(--tbx-text)!important;
  font-size:22px!important;
  font-weight:900!important;
}
body.woocommerce-order-received table.woocommerce-table--order-details,
body.woocommerce-view-order table.woocommerce-table--order-details {
  width:100%!important;
  margin:0!important;
  table-layout:auto!important;
  border-collapse:collapse!important;
  border:0!important;
  background:#fff!important;
}
body.woocommerce-order-received table.woocommerce-table--order-details th,
body.woocommerce-order-received table.woocommerce-table--order-details td,
body.woocommerce-view-order table.woocommerce-table--order-details th,
body.woocommerce-view-order table.woocommerce-table--order-details td {
  padding:11px 14px!important;
  border:0!important;
  border-bottom:1px solid var(--tbx-line)!important;
  background:#fff!important;
  color:var(--tbx-text)!important;
  vertical-align:top!important;
  line-height:1.45!important;
}
body.woocommerce-order-received table.woocommerce-table--order-details th.product-total,
body.woocommerce-order-received table.woocommerce-table--order-details td.product-total,
body.woocommerce-view-order table.woocommerce-table--order-details th.product-total,
body.woocommerce-view-order table.woocommerce-table--order-details td.product-total {
  width:180px!important;
  text-align:right!important;
  white-space:nowrap!important;
}
body.woocommerce-order-received table.woocommerce-table--order-details tfoot th,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot th {
  text-align:right!important;
  font-weight:700!important;
}
body.woocommerce-order-received table.woocommerce-table--order-details tfoot td,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot td {
  width:180px!important;
  text-align:right!important;
  white-space:nowrap!important;
}
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-order-received table.woocommerce-table--order-details tfoot tr:last-child td,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child th,
body.woocommerce-view-order table.woocommerce-table--order-details tfoot tr:last-child td {
  padding-top:16px!important;
  font-size:20px!important;
  font-weight:900!important;
}

/* Bloc Toutibox du produit : compact, jamais pleine largeur inutile. */
body.woocommerce-order-received .tfc-order-customer-summary,
body.woocommerce-view-order .tfc-order-customer-summary {
  display:block!important;
  width:min(100%,760px)!important;
  max-width:760px!important;
  margin:10px 0 2px!important;
  padding:12px 14px!important;
  background:#fffaf5!important;
  border:1px solid #f1e2d5!important;
  border-radius:10px!important;
  box-sizing:border-box!important;
}
body.woocommerce-order-received .tfc-order-customer-summary img,
body.woocommerce-view-order .tfc-order-customer-summary img {
  width:auto!important;
  max-width:180px!important;
  height:auto!important;
  max-height:110px!important;
  object-fit:contain!important;
}

/* Coordonnées : un seul groupe, deux cartes côte à côte. */
body.woocommerce-order-received .woocommerce-customer-details,
body.woocommerce-view-order .woocommerce-customer-details {
  display:block!important;
  position:static!important;
  float:none!important;
  clear:both!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
  transform:none!important;
}
body.woocommerce-order-received .woocommerce-customer-details > .woocommerce-column__title,
body.woocommerce-view-order .woocommerce-customer-details > .woocommerce-column__title {
  margin:0 0 14px!important;
}
body.woocommerce-order-received .woocommerce-columns--addresses,
body.woocommerce-view-order .woocommerce-columns--addresses,
body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns,
body.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns {
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:stretch!important;
  gap:20px!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
body.woocommerce-order-received .woocommerce-column--billing-address,
body.woocommerce-order-received .woocommerce-column--shipping-address,
body.woocommerce-view-order .woocommerce-column--billing-address,
body.woocommerce-view-order .woocommerce-column--shipping-address {
  display:block!important;
  position:static!important;
  float:none!important;
  clear:none!important;
  flex:1 1 calc(50% - 10px)!important;
  width:auto!important;
  min-width:300px!important;
  max-width:none!important;
  margin:0!important;
  padding:20px!important;
  background:#fff!important;
  border:1px solid var(--tbx-line)!important;
  border-radius:14px!important;
  box-sizing:border-box!important;
  transform:none!important;
}
body.woocommerce-order-received .woocommerce-column--billing-address address,
body.woocommerce-order-received .woocommerce-column--shipping-address address,
body.woocommerce-view-order .woocommerce-column--billing-address address,
body.woocommerce-view-order .woocommerce-column--shipping-address address {
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  border:0!important;
  background:transparent!important;
  line-height:1.55!important;
}

@media (max-width:780px){
  body.woocommerce-order-received .woocommerce-order-overview,
  body.woocommerce-view-order .woocommerce-order-overview {display:block!important;}
  body.woocommerce-order-received .woocommerce-order-overview li,
  body.woocommerce-view-order .woocommerce-order-overview li {
    width:100%!important;
    border-right:0!important;
    border-bottom:1px solid var(--tbx-line)!important;
  }
  body.woocommerce-order-received .woocommerce-order-overview li:last-child,
  body.woocommerce-view-order .woocommerce-order-overview li:last-child {border-bottom:0!important;}
  body.woocommerce-order-received .woocommerce-order-details,
  body.woocommerce-view-order .woocommerce-order-details {padding:16px!important;}
  body.woocommerce-order-received .woocommerce-columns--addresses,
  body.woocommerce-view-order .woocommerce-columns--addresses,
  body.woocommerce-order-received .woocommerce-customer-details .woocommerce-columns,
  body.woocommerce-view-order .woocommerce-customer-details .woocommerce-columns {display:block!important;}
  body.woocommerce-order-received .woocommerce-column--billing-address,
  body.woocommerce-order-received .woocommerce-column--shipping-address,
  body.woocommerce-view-order .woocommerce-column--billing-address,
  body.woocommerce-view-order .woocommerce-column--shipping-address {
    width:100%!important;
    min-width:0!important;
    margin:0 0 14px!important;
  }
  body.woocommerce-order-received table.woocommerce-table--order-details,
  body.woocommerce-view-order table.woocommerce-table--order-details {font-size:13px!important;}
  body.woocommerce-order-received table.woocommerce-table--order-details th,
  body.woocommerce-order-received table.woocommerce-table--order-details td,
  body.woocommerce-view-order table.woocommerce-table--order-details th,
  body.woocommerce-view-order table.woocommerce-table--order-details td {padding:9px 8px!important;}
}
