/* Allô Paulette — panier et paiement : uniquement les ajustements non natifs. */

.ap-more-themes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35em;
  margin-block: 0 var(--space-m);
}

.ap-more-themes__link {
  color: var(--brand);
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-underline-offset: .3em;
}

.ap-more-themes__link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.ap-more-themes__rule {
  margin: 0;
  color: var(--color-text, var(--text));
  font-size: var(--text-s);
  line-height: var(--line-height-normal);
}

/* Boutons d'action natifs, classiques ET blocs. Exclut les liens discrets de suppression. */
body.woocommerce-cart .woocommerce :is(a.button, button.button, input.button),
body.woocommerce-checkout .woocommerce :is(a.button, button.button, input.button, #place_order),
body.woocommerce-cart .wc-block-cart :is(.wc-block-components-button:not(.is-link), .wp-element-button),
body.woocommerce-checkout .wc-block-checkout :is(.wc-block-components-button:not(.is-link), .wp-element-button) {
  background-color: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
  font-family: 'Ranchers', sans-serif;
  letter-spacing: 1.3px;
  min-height: 44px;
}

body.woocommerce-cart .woocommerce :is(a.button, button.button, input.button):hover,
body.woocommerce-checkout .woocommerce :is(a.button, button.button, input.button, #place_order):hover,
body.woocommerce-cart .wc-block-cart .wc-block-components-button:not(.is-link):hover,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-button:not(.is-link):hover {
  background-color: var(--brand-hover);
  border-color: var(--brand-hover);
  color: var(--on-brand);
}

/* Titres des thèmes : le texte ne doit pas hériter de l'espacement des titres Ranchers. */
body.woocommerce-checkout .wc-block-checkout .wc-block-components-product-name,
body.woocommerce-checkout .woocommerce-checkout-review-order-table .product-name {
  letter-spacing: 0;
}

/* Checkout en blocs : conserver le prix récapitulatif à droite, masquer seulement sa répétition sous le titre. */
body.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-checkout .wc-block-components-order-summary-item__individual-prices {
  display: none;
}

/* Le coupon de palier est automatique : pas de croix de retrait dans les blocs. */
body.ap-has-theme-discount :is(.wc-block-cart, .wc-block-checkout)
  :is(.wc-block-components-totals-discount, .wc-block-components-totals-coupon)
  .wc-block-components-chip__remove {
  display: none;
}
