/* ==========================================================================
   Boutique « demande de devis » : aucun prix, boutons et champs du site.
   Chargé seulement sur la boutique, les produits, la liste de devis (panier),
   la demande (commande) et le compte client. Voir inc/quote-fields.php.
   ========================================================================== */

/* --- Aucun prix, aucun total (le panier et la commande en blocs les affichent sinon) --- */
.woocommerce .price,
.woocommerce-Price-amount,
.wc-block-components-product-price,
.wc-block-cart-item__prices,
.wc-block-cart-item__total,
.wc-block-cart-items__header-total,
.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper,
.wc-block-components-totals-item,
.wc-block-components-totals-footer-item,
.wc-block-components-order-summary-item__total-price,
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-sale-badge,
.woocommerce span.onsale {
  display: none;
}

/* --- Largeur et couleurs : liste de devis et demande --- */
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
  color: var(--papco-text, #1e293b);
}

.wp-block-woocommerce-cart .wc-block-components-product-name,
.wp-block-woocommerce-checkout .wc-block-components-product-name,
.wc-block-components-title,
.wc-block-components-checkout-step__title {
  color: var(--papco-navy, #0f1d3a);
  font-weight: 700;
}

.wp-block-woocommerce-cart a,
.wp-block-woocommerce-checkout a {
  color: var(--papco-navy, #0f1d3a);
}

.wp-block-woocommerce-cart a:hover,
.wp-block-woocommerce-checkout a:hover {
  color: var(--papco-red, #b41412);
}

/* --- Boutons dans le style du site (rouge, capitales) --- */
.wc-block-components-button:not(.is-link),
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce .add_to_cart_button {
  border: 0;
  border-radius: 0.125rem;
  background: var(--papco-red, #b41412);
  color: var(--papco-white, #fff);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease;
}

.wc-block-components-button:not(.is-link):hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .add_to_cart_button:hover {
  background: #8f0f0e;
  color: var(--papco-white, #fff);
}

.wc-block-components-button:not(.is-link):focus-visible,
.woocommerce a.button:focus-visible,
.woocommerce button.button:focus-visible {
  outline: 2px solid var(--papco-navy, #0f1d3a);
  outline-offset: 2px;
}

/* --- Champs : focus rouge, cases à cocher rouges --- */
.wc-block-components-text-input input:focus,
.wc-block-components-textarea:focus,
.wc-blocks-components-select__select:focus,
.wc-block-components-combobox .wc-block-components-combobox-control input:focus {
  border-color: var(--papco-red, #b41412);
  box-shadow: 0 0 0 1px var(--papco-red, #b41412);
  outline: none;
}

.wc-block-components-checkbox input[type="checkbox"],
.wc-block-components-checkbox__input {
  accent-color: var(--papco-red, #b41412);
}

.wc-block-components-checkbox input[type="checkbox"]:checked {
  border-color: var(--papco-red, #b41412);
  background: var(--papco-red, #b41412);
}

/* --- Mobile : boutons pleine largeur --- */
@media (max-width: 47.99rem) {
  .wc-block-cart__submit-button,
  .wc-block-components-checkout-place-order-button {
    width: 100%;
  }
}

/* --- Mention sous la liste des produits de la demande de devis --- */
.papco-image-note--cart {
  margin: 0.75rem 0 1rem;
  color: var(--papco-muted, #64748b);
  font-size: 0.75rem;
  line-height: 1.5;
}
