/* Refuge imprévu — largeur configurable des boutons PayPal (V19).
 * Les vrais boutons sont rendus dans des iframes PayPal; ne pas déformer
 * les iframes, réduire uniquement la largeur de leurs conteneurs.
 * Le paiement reste intégralement géré par WooCommerce PayPal Payments.
 */
body.single-product:not(.ri-noel-sans-achat) :is(
  .ppc-button-wrapper,
  .ppcp-button-wrapper,
  .ppcp-button-container,
  .woocommerce-paypal-payments-button,
  #ppc-button,
  [id^="ppc-button-"],
  [id^="ppcp-button-"]
),
body.woocommerce-cart :is(
  .ppc-button-wrapper,
  .ppcp-button-wrapper,
  .ppcp-button-container,
  .woocommerce-paypal-payments-button,
  #ppc-button,
  [id^="ppc-button-"],
  [id^="ppcp-button-"]
) {
  box-sizing: border-box;
  width: 100% !important;
  max-width: min(100%, var(--ri-paypal-button-width, 310px)) !important;
}
/* Le bouton PayPal est centré sous la commande dans le Panier. */
body.woocommerce-cart :is(
  .ppc-button-wrapper,
  .ppcp-button-wrapper,
  .ppcp-button-container,
  .woocommerce-paypal-payments-button,
  #ppc-button,
  [id^="ppc-button-"],
  [id^="ppcp-button-"]
) {
  margin-inline: auto !important;
}
/* Alignement à gauche sur les fiches produits, près des contrôles d'achat. */
body.single-product:not(.ri-noel-sans-achat) :is(
  .ppc-button-wrapper,
  .ppcp-button-wrapper,
  .ppcp-button-container,
  .woocommerce-paypal-payments-button,
  #ppc-button,
  [id^="ppc-button-"],
  [id^="ppcp-button-"]
) {
  margin-inline-start: 0 !important;
}
