/* HBUREAUTIQUE V59 - CHECKOUT : correctif prix HT/TTC + alignement totaux.
   Scope strict order/order-opc. */

/* Prix unitaire : deux valeurs visibles, pas seulement le titre HT/TTC */
body#order #cart_summary th.cart_unit,
body#order-opc #cart_summary th.cart_unit{min-width:150px!important;text-align:center!important;}
body#order #cart_summary th.cart_unit span,
body#order-opc #cart_summary th.cart_unit span{display:block!important;}
body#order #cart_summary th.cart_unit small,
body#order-opc #cart_summary th.cart_unit small{display:block!important;margin-top:2px!important;color:#5d7690!important;font-size:10px!important;font-weight:800!important;letter-spacing:.4px!important;}
body#order #cart_summary td.cart_unit,
body#order-opc #cart_summary td.cart_unit{min-width:150px!important;vertical-align:middle!important;text-align:center!important;}
body#order .hlb59-unit-price,
body#order-opc .hlb59-unit-price{display:inline-flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important;min-width:105px!important;white-space:nowrap!important;}
body#order .hlb59-unit-price>div,
body#order-opc .hlb59-unit-price>div{display:grid!important;grid-template-columns:30px auto!important;align-items:center!important;gap:8px!important;width:100%!important;}
body#order .hlb59-unit-price span,
body#order-opc .hlb59-unit-price span{font-size:10px!important;font-weight:800!important;color:#617a8e!important;text-align:left!important;}
body#order .hlb59-unit-price strong,
body#order-opc .hlb59-unit-price strong{font-size:12px!important;font-weight:800!important;color:#244f70!important;text-align:right!important;}
body#order .hlb59-price-ttc strong,
body#order-opc .hlb59-price-ttc strong{color:#e91379!important;}

/* Quantité : - 1 + côte à côte */
body#order #cart_summary td.cart_quantity,
body#order-opc #cart_summary td.cart_quantity{min-width:128px!important;text-align:center!important;vertical-align:middle!important;}
body#order .hlb59-qty-inline,
body#order-opc .hlb59-qty-inline{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:0!important;white-space:nowrap!important;}
body#order .hlb59-qty-inline .cart_quantity_down,
body#order-opc .hlb59-qty-inline .cart_quantity_down,
body#order .hlb59-qty-inline .cart_quantity_up,
body#order-opc .hlb59-qty-inline .cart_quantity_up{float:none!important;display:flex!important;align-items:center!important;justify-content:center!important;width:34px!important;height:34px!important;margin:0!important;padding:0!important;}
body#order .hlb59-qty-inline .cart_quantity_down,
body#order-opc .hlb59-qty-inline .cart_quantity_down{border-radius:9px 0 0 9px!important;}
body#order .hlb59-qty-inline .cart_quantity_up,
body#order-opc .hlb59-qty-inline .cart_quantity_up{border-radius:0 9px 9px 0!important;}
body#order .hlb59-qty-inline .cart_quantity_input,
body#order-opc .hlb59-qty-inline .cart_quantity_input{float:none!important;width:44px!important;height:34px!important;margin:0!important;padding:0!important;border-radius:0!important;border-left:0!important;border-right:0!important;text-align:center!important;}
body#order .cart_quantity_button.hlb59-hide-empty,
body#order-opc .cart_quantity_button.hlb59-hide-empty{display:none!important;}

/* Totaux : structure native V59 = mêmes colonnes sur les 4 lignes */
body#order #cart_summary tfoot.hlb59-cart-totals,
body#order-opc #cart_summary tfoot.hlb59-cart-totals{background:#fff!important;}
body#order #cart_summary tfoot.hlb59-cart-totals tr td,
body#order-opc #cart_summary tfoot.hlb59-cart-totals tr td{padding:10px 16px!important;border:0!important;font:600 11px/16px Montserrat,Arial,sans-serif!important;}
body#order #cart_summary tfoot.hlb59-cart-totals tr:not(.hlb59-voucher-row) td:first-child,
body#order-opc #cart_summary tfoot.hlb59-cart-totals tr:not(.hlb59-voucher-row) td:first-child{text-align:right!important;font-weight:700!important;}
body#order #cart_summary tfoot.hlb59-cart-totals td.price,
body#order-opc #cart_summary tfoot.hlb59-cart-totals td.price{text-align:right!important;min-width:155px!important;font-weight:800!important;white-space:nowrap!important;}
body#order #cart_summary tr.hlb59-total-ht td,
body#order-opc #cart_summary tr.hlb59-total-ht td{background:#eef6fc!important;color:#0a4e9a!important;border-top:1px solid #dce8f0!important;}
body#order #cart_summary tr.hlb59-total-shipping td,
body#order-opc #cart_summary tr.hlb59-total-shipping td{background:#f2faf5!important;color:#248449!important;}
body#order #cart_summary tr.hlb59-total-products-ttc td,
body#order-opc #cart_summary tr.hlb59-total-products-ttc td{background:#f7fafc!important;color:#365d77!important;border-bottom:1px solid #e2ebf1!important;}
body#order #cart_summary tr.hlb59-final-total td,
body#order-opc #cart_summary tr.hlb59-final-total td{background:#fff0f7!important;border-top:2px solid #f2b4d2!important;border-bottom:1px solid #f2c9dc!important;}
body#order #cart_summary tr.hlb59-final-total .total_price_container span,
body#order-opc #cart_summary tr.hlb59-final-total .total_price_container span{color:#173e61!important;font-size:13px!important;font-weight:800!important;}
body#order #cart_summary tr.hlb59-final-total #total_price_container,
body#order-opc #cart_summary tr.hlb59-final-total #total_price_container,
body#order #cart_summary tr.hlb59-final-total #total_price,
body#order-opc #cart_summary tr.hlb59-final-total #total_price{color:#e91379!important;font-size:25px!important;font-weight:800!important;white-space:nowrap!important;}
body#order #cart_summary .hlb59-voucher-row #cart_voucher,
body#order-opc #cart_summary .hlb59-voucher-row #cart_voucher{background:#f8fbfd!important;border-radius:12px!important;padding:12px!important;}

/* Sélection adresse validée : libellé gauche / select droite */
body#order .addresses .address_delivery.select,
body#order-opc .addresses .address_delivery.select,
body#order .addresses p.select.address_delivery,
body#order-opc .addresses p.select.address_delivery{display:grid!important;grid-template-columns:minmax(230px,1fr) minmax(260px,360px)!important;align-items:center!important;gap:16px!important;width:100%!important;margin:0 0 12px!important;padding:10px 12px!important;border:1px solid #cae2f1!important;border-left:4px solid #0a75bf!important;border-radius:12px!important;background:#eef7fd!important;}
body#order .addresses .address_delivery.select label,
body#order-opc .addresses .address_delivery.select label,
body#order .addresses p.select.address_delivery label,
body#order-opc .addresses p.select.address_delivery label{float:none!important;clear:none!important;width:auto!important;margin:0!important;color:#214f72!important;font-weight:700!important;}
body#order .addresses .address_delivery.select .selector,
body#order-opc .addresses .address_delivery.select .selector,
body#order .addresses p.select.address_delivery .selector,
body#order-opc .addresses p.select.address_delivery .selector{float:none!important;clear:none!important;width:100%!important;margin:0!important;}
body#order #id_address_delivery.form-control,
body#order-opc #id_address_delivery.form-control{width:100%!important;max-width:none!important;height:40px!important;margin:0!important;border:1px solid #a9cde4!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;}

@media(max-width:760px){
  body#order .addresses .address_delivery.select,
  body#order-opc .addresses .address_delivery.select,
  body#order .addresses p.select.address_delivery,
  body#order-opc .addresses p.select.address_delivery{grid-template-columns:1fr!important;gap:7px!important;}
  body#order .hlb59-unit-price,body#order-opc .hlb59-unit-price{align-items:flex-start!important;}
}
