/* ASMAE HF65 — One continuous native OPC card, including payment and confirmation.
   CSS only: do not move or nest the payment form, alter AJAX containers,
   change the payment provider, or touch Cathedis. */

/* The native .tab-content already wraps the checkout form AND the separate
   payment / terms blocks. It is therefore the safe single visual surface. */
body:is(#order,#checkout) .as-opc-shell .checkout-grid__content > .tab-content {
  background:#fff!important;
  border:1px solid #eadce0!important;
  border-radius:20px!important;
  box-shadow:0 12px 36px rgba(48,30,38,.045)!important;
  margin:0!important;
  padding:0!important;
  min-width:0;
  overflow:visible;
}

/* Remove ONLY the competing outer card on the form. Keep the native desktop
   grid, all form input spacing, required fields and event listeners intact. */
body:is(#order,#checkout) .as-opc-shell #opc-form.one-page-checkout {
  width:100%!important;
  margin:0!important;
  padding:16px 22px 11px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

/* Payment is a sibling of #opc-form by design. Give it a simple section
   separator INSIDE the shared card, not a new outlined/rounded panel. */
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section {
  margin:0!important;
  padding:16px 22px 2px!important;
  border:0!important;
  border-top:1px solid #f0e4e8!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  min-width:0;
}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section .one-page-checkout__title {
  margin:0 0 12px!important;
}

/* Drop redundant inner card wrappers but keep the actual selectable payment
   methods and address-incomplete notice visible. */
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section :is(
  #opc-payment-methods,
  .payment-options,
  .payment-options__list,
  .payment-methods,
  .opc-payment-methods,
  .one-page-checkout__section
) {
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section > :last-child,
body:is(#order,#checkout) .as-opc-shell #opc-payment-methods > :last-child {
  margin-bottom:0!important;
}

/* The legal acceptance and order button finish the SAME shared card. */
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer {
  margin:0!important;
  padding:5px 22px 20px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  min-width:0;
}
body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer > :first-child {
  margin-top:0!important;
}
body:is(#order,#checkout) .as-opc-shell :is(.js-conditions-to-approve,.conditions-to-approve) {
  margin:0 0 10px!important;
}
body:is(#order,#checkout) .as-opc-shell #payment-confirmation {
  margin:9px 0 0!important;
}

/* Consistent padding and corner radius on phones and tablets. */
@media (max-width:1199.98px) {
  body:is(#order,#checkout) .as-opc-shell #opc-form.one-page-checkout {
    padding:14px 18px 10px!important;
  }
  body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section {
    padding:14px 18px 2px!important;
  }
  body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer {
    padding:5px 18px 18px!important;
  }
}
@media (max-width:767.98px) {
  body:is(#order,#checkout) .as-opc-shell .checkout-grid__content > .tab-content {
    border-radius:15px!important;
  }
  body:is(#order,#checkout) .as-opc-shell #opc-form.one-page-checkout {
    padding:10px 14px 8px!important;
  }
  body:is(#order,#checkout) .as-opc-shell .js-opc-payment-section {
    padding:14px 14px 2px!important;
  }
  body:is(#order,#checkout) .as-opc-shell .one-page-checkout__footer {
    padding:5px 14px 17px!important;
  }
}
