/* ASMAE HF43 / PrestaShop 9.2.1 One Page Checkout.
 * No modifications to payment/guest-processing logic or native AJAX anchors. */

/* Remove the top stroke above the address column; keep its vertical separator. */
body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-addresses-section,
body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-addresses-section > .one-page-checkout__section,
body:is(#order,#checkout) .as-opc-shell #opc-form > .js-opc-contact-section + .js-opc-addresses-section {
  border-top:0!important;
}
/* Some native address sections include an hr from the legacy checkout. */
body:is(#order,#checkout) .as-opc-shell #checkout-addresses-step .step__title hr {display:none!important;}

/* Ensure the native guest email field occupies the full available width. */
body:is(#order,#checkout) .as-opc-shell .as-opc-contact-minimal #field-email {width:100%!important;}

/* Wider order summary to prevent the price/MAD currency from breaking. */
@media(min-width:1200px) {
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__content {
    flex:0 0 68%!important;width:68%!important;max-width:68%!important;min-width:0!important;
  }
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside {
    flex:0 0 32%!important;width:32%!important;max-width:32%!important;min-width:0!important;
  }
}
@media(min-width:1200px) and (max-width:1340px) {
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__content {flex-basis:65%!important;width:65%!important;max-width:65%!important;}
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside {flex-basis:35%!important;width:35%!important;max-width:35%!important;}
}

/* Native Hummingbird product summary: image, flexible name, fixed price on the right. */
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product,
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__content {
  min-width:0!important;max-width:100%!important;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__content {
  display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;
  column-gap:12px!important;align-items:start!important;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__content-left {
  min-width:0!important;width:auto!important;overflow-wrap:break-word!important;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__content-right {
  min-width:max-content!important;width:max-content!important;max-width:none!important;
  justify-self:end!important;text-align:right!important;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__total,
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__prices,
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__content-right .price {
  white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none!important;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__total {
  display:block!important;text-align:right!important;font-size:clamp(12px,0.9vw,15px)!important;
}
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__link {
  display:block!important;overflow-wrap:break-word!important;word-break:normal!important;
}

/* Keep monetary subtotals/totals together even in the condensed sidebar. */
body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper :is(.cart-summary__total-value,.cart-summary__subtotal-value,.cart-summary__price,.cart-summary__total .value,.cart-summary__subtotal .value) {
  white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important;
}
@media(max-width:575.98px){
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__content {column-gap:8px!important;}
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__aside-wrapper .cart-summary-product__total {font-size:12px!important;}
}
