/* ASMAE HF39 / PS 9.2.1 : checkout compact, pas de scroll imbrique.
   Scope: uniquement checkout natif #opc-form ; ne modifie aucun ID d'API,
   aucun formulaire de paiement, consentement obligatoire ou AJAX. */
body:is(#order,#checkout):has(.as-opc-shell) .asx-nav { display:none!important; }
body:is(#order,#checkout):has(.as-opc-shell) .asx-header {position:relative!important;top:auto!important;}
body:is(#order,#checkout) .as-opc-shell {padding-top:8px!important;padding-bottom:36px!important;}
body:is(#order,#checkout) .as-opc-shell .as-opc-intro {margin-bottom:12px!important;gap:10px!important;}
body:is(#order,#checkout) .as-opc-shell .as-opc-intro__eyebrow {margin-bottom:3px!important;}
body:is(#order,#checkout) .as-opc-shell .as-opc-intro h1 {font-size:clamp(23px,2.2vw,29px)!important;line-height:1.2!important;margin:0 0 2px!important;}
body:is(#order,#checkout) .as-opc-shell .as-opc-intro p {font-size:12px!important;line-height:1.35!important;}
body:is(#order,#checkout) .as-opc-shell .as-opc-intro__back {font-size:12px;padding:8px 12px;}
body:is(#order,#checkout) .as-opc-shell .checkout-grid {row-gap:12px!important;}
body:is(#order,#checkout) .as-opc-shell .opc-express-checkout {padding:10px 14px 4px!important;margin-bottom:10px!important;}
/* Réduire le volume vertical sans créer des colonnes imbriquées ou un scroll interne. */
body:is(#order,#checkout) .as-opc-shell #opc-form.one-page-checkout {padding:3px 18px 0!important;}
body:is(#order,#checkout) .as-opc-shell #opc-form .one-page-checkout__section {padding:12px 0 13px!important;}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__title {font-size:17px!important;line-height:1.27!important;margin:0 0 9px!important;}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__links {margin:0 0 8px!important;gap:5px 14px!important;font-size:12px!important;}
body:is(#order,#checkout) .as-opc-shell :where(.one-page-checkout__field,#opc-form .form-group) {margin-bottom:8px!important;}
body:is(#order,#checkout) .as-opc-shell #opc-form :where(.form-label,label) {font-size:12px!important;margin-bottom:3px!important;}
body:is(#order,#checkout) .as-opc-shell #opc-form :where(input.form-control,select.form-control,select.form-select,textarea.form-control) {min-height:41px!important;border-radius:8px!important;font-size:13px!important;}
body:is(#order,#checkout) .as-opc-shell #opc-form textarea.form-control {min-height:62px!important;}
body:is(#order,#checkout) .as-opc-shell #opc-form :where(.form-check) {margin:7px 0!important;}
body:is(#order,#checkout) .as-opc-shell :where(.opc-address-item,.delivery-option__item,.opc-carrier-item,.payment-option,.opc-payment-method) {padding:9px!important;border-radius:9px!important;}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section {padding:13px 18px!important;}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer {padding:10px 18px 16px!important;}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer .form-check {margin-bottom:8px!important;}
body:is(#order,#checkout) .as-opc-shell #opc-pay-button {min-height:46px!important;}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper {padding:15px!important;border-radius:14px!important;}
body:is(#order,#checkout) .as-opc-shell .checkout__summary-accordion-header {padding-bottom:8px!important;margin-bottom:8px!important;}
body:is(#order,#checkout) .as-opc-shell .checkout__summary-accordion-header .accordion-button {font-size:17px!important;}
/* Sur grand écran : infos + livraison à gauche et adresse à droite, visibles sans changer l'ordre DOM.
   Le paiement reste, par contrat PrestaShop, EN DEHORS du formulaire principal. */
@media (min-width:1200px) {
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__content {flex:0 0 76%!important;width:76%!important;max-width:76%!important;}
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside {flex:0 0 24%!important;width:24%!important;max-width:24%!important;}
  body:is(#order,#checkout) .as-opc-shell #opc-form.one-page-checkout {
    display:grid!important;grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
    column-gap:24px!important;align-items:start!important;
  }
  body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-contact-section {
    grid-column:1;grid-row:1;min-width:0;align-self:start;
  }
  body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-addresses-section {
    grid-column:2;grid-row:1 / span 2;min-width:0;align-self:start;
    padding-left:18px;border-left:1px solid #efe5e9;
  }
  body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-delivery-section {
    grid-column:1;grid-row:2;min-width:0;align-self:start;
  }
  body:is(#order,#checkout) .as-opc-shell #opc-form > :not(.js-opc-contact-section):not(.js-opc-addresses-section):not(.js-opc-delivery-section) {grid-column:1/-1;}
  body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-addresses-section > .one-page-checkout__section:first-child {border-top:0!important;}
  body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-delivery-section {border-top:1px solid #efe5e9!important;}
  body:is(#order,#checkout) .as-opc-shell #opc-form .js-opc-addresses-section + .one-page-checkout__section {border-top:0!important;}
  /* Minimums de hauteur pour éléments tactiles/focus conservés ; jamais de découpage overflow. */
}
@media (min-width:768px) and (max-width:1199.98px) {
 body:is(#order,#checkout) .as-opc-shell .one-page-checkout__section {padding:13px 0!important;}
}
@media (max-width:767.98px) {
  body:is(#order,#checkout) .as-opc-shell .as-opc-intro {margin-bottom:12px!important;}
  body:is(#order,#checkout) .as-opc-shell .as-opc-intro h1 {font-size:23px!important;}
  body:is(#order,#checkout) .as-opc-shell .as-opc-intro p {display:none!important;}
  body:is(#order,#checkout) .as-opc-shell #opc-form.one-page-checkout {display:block!important;padding:2px 14px 0!important;}
  body:is(#order,#checkout) .as-opc-shell #opc-form .one-page-checkout__section {padding:14px 0!important;}
  body:is(#order,#checkout) .as-opc-shell #opc-form :where(input.form-control,select.form-control,select.form-select,textarea.form-control) {min-height:44px!important;font-size:16px!important;}
  body:is(#order,#checkout) .as-opc-shell #opc-form .one-page-checkout__links {flex-direction:row;flex-wrap:wrap;gap:6px 12px;}
  body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section {padding:14px!important;}
  body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer {padding:12px 14px 19px!important;}
}
