/* Bonplanscolmar V1.6 — readable, conversion-first cart and checkout. */

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) article.page,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) article.page > .entry-content {
  background: var(--bpc-ivory-soft) !important;
  background-image: none !important;
  color: var(--bpc-ink) !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) article.page > .entry-header {
  width: min(1480px, calc(100% - 40px)) !important;
  display: block !important;
  margin: 0 auto !important;
  padding: clamp(30px, 4vw, 54px) 0 10px !important;
  background: transparent !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) article.page > .entry-header .entry-title {
  color: var(--bpc-espresso) !important;
  -webkit-text-fill-color: var(--bpc-espresso) !important;
  font: 500 clamp(34px, 4vw, 54px)/1.05 var(--bpc-serif) !important;
  letter-spacing: -.025em !important;
  text-shadow: none !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .entry-content > .woocommerce {
  color: var(--bpc-ink) !important;
  -webkit-text-fill-color: var(--bpc-ink) !important;
}

/* Keep the trust information from the legacy checkout, but remove its black palette. */
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-trust-panel,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-trust-item {
  border: 1px solid var(--bpc-line) !important;
  border-radius: 4px !important;
  background: #fff !important;
  background-image: none !important;
  color: var(--bpc-espresso) !important;
  box-shadow: none !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px 28px !important;
  margin: 0 0 18px !important;
  padding: 20px 24px !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro *,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-trust-panel *,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-trust-item * {
  color: var(--bpc-espresso) !important;
  -webkit-text-fill-color: var(--bpc-espresso) !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro__copy strong {
  font-size: clamp(17px, 1.5vw, 21px) !important;
  line-height: 1.3 !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro__meta > * {
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 12px !important;
  border: 1px solid var(--bpc-line) !important;
  border-radius: 999px !important;
  background: var(--bpc-ivory) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-trust-panel {
  margin-top: 24px !important;
  padding: 24px !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-trust-panel__items {
  gap: 12px !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-trust-item {
  min-height: 92px !important;
  padding: 16px !important;
  background: var(--bpc-ivory-soft) !important;
}

/* Avoid competing messages once the customer reaches payment. */
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .entry-content > .woocommerce > [class*="wlr"],
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .wlr-message-info {
  display: none !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) form.checkout #customer_details,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #order_review_heading,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #order_review,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment ul.payment_methods,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment li.wc_payment_method {
  border-color: var(--bpc-line) !important;
  background: #fff !important;
  background-image: none !important;
  color: var(--bpc-espresso) !important;
  box-shadow: none !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .woocommerce form .form-row label,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #order_review,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #order_review *,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment label,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment p,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment span {
  color: var(--bpc-espresso) !important;
  -webkit-text-fill-color: var(--bpc-espresso) !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .woocommerce input.input-text,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .woocommerce input[type="tel"],
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .woocommerce input[type="email"],
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .woocommerce textarea,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .woocommerce select,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .woocommerce .select2-selection {
  min-height: 54px !important;
  border: 1px solid #b9aca1 !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: var(--bpc-ink) !important;
  -webkit-text-fill-color: var(--bpc-ink) !important;
  font-size: 16px !important;
  opacity: 1 !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) input[type="checkbox"],
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  margin-right: 9px !important;
  accent-color: var(--bpc-espresso) !important;
  opacity: 1 !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment div.payment_box,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment .mollie-components,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment .mollie-component {
  border: 1px solid #ded6cf !important;
  background: var(--bpc-ivory-soft) !important;
  color: var(--bpc-espresso) !important;
  box-shadow: none !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #payment .place-order,
body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-payment-reassurance {
  background: #fff !important;
  color: #5f534b !important;
  -webkit-text-fill-color: #5f534b !important;
}

body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) #place_order {
  min-height: 62px !important;
  border-radius: 4px !important;
  background: var(--bpc-espresso) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  letter-spacing: .055em !important;
  box-shadow: 0 10px 24px rgba(43, 33, 26, .16) !important;
  opacity: 1 !important;
}

/* Cart: strong text, clear secondary buttons and one dominant checkout action. */
body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form table.shop_table th,
body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form table.shop_table td,
body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form table.shop_table td *,
body.bpc-ivory-active.bpc-cart-focus .cart_totals table.shop_table th,
body.bpc-ivory-active.bpc-cart-focus .cart_totals table.shop_table td,
body.bpc-ivory-active.bpc-cart-focus .cart_totals table.shop_table td * {
  color: var(--bpc-espresso) !important;
  -webkit-text-fill-color: var(--bpc-espresso) !important;
  font-size: 15px !important;
  text-shadow: none !important;
  opacity: 1 !important;
}

body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions .coupon {
  display: inline-grid !important;
  grid-template-columns: minmax(190px, 1fr) auto !important;
  gap: 10px !important;
}

body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions .coupon .input-text,
body.bpc-ivory-active.bpc-cart-focus .cart_totals input[type="text"] {
  min-height: 54px !important;
  border: 1px solid #b9aca1 !important;
  background: #fff !important;
  color: var(--bpc-ink) !important;
  -webkit-text-fill-color: var(--bpc-ink) !important;
  font-size: 16px !important;
}

body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions button.button:not(:disabled),
body.bpc-ivory-active.bpc-cart-focus .cart_totals button:not(:disabled) {
  min-height: 54px !important;
  padding: 13px 20px !important;
  border: 1px solid var(--bpc-espresso) !important;
  border-radius: 3px !important;
  background: var(--bpc-espresso) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  opacity: 1 !important;
}

body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions button.button:disabled,
body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions button.button:disabled[disabled] {
  min-height: 54px !important;
  border-color: #c9beb5 !important;
  background: #e5dfd9 !important;
  color: #62564e !important;
  -webkit-text-fill-color: #62564e !important;
  font-size: 12px !important;
  opacity: 1 !important;
}

body.bpc-ivory-active.bpc-cart-focus .woocommerce-message .button {
  min-width: 180px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 12px !important;
  opacity: 1 !important;
}

body.bpc-ivory-active.bpc-cart-focus .cart-collaterals {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px) !important;
  gap: 28px !important;
  margin-top: 34px !important;
}

body.bpc-ivory-active.bpc-cart-focus .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  grid-column: 2 !important;
}

body.bpc-ivory-active.bpc-cart-focus .wc-proceed-to-checkout a.checkout-button {
  min-height: 62px !important;
  margin-bottom: 0 !important;
  border-radius: 4px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 15px !important;
  box-shadow: 0 10px 24px rgba(43, 33, 26, .16) !important;
}

.bpc-cart-reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 14px;
  margin: 14px 0 0 !important;
  color: #62564e !important;
  -webkit-text-fill-color: #62564e !important;
  font: 650 11px/1.45 var(--bpc-sans) !important;
  text-align: center;
}

.bpc-cart-reassurance span::before {
  margin-right: 5px;
  color: var(--bpc-title-brown);
  content: "✓";
}

@media (max-width: 920px) {
  body.bpc-ivory-active.bpc-cart-focus .cart-collaterals {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.bpc-ivory-active.bpc-cart-focus .cart-collaterals .cart_totals {
    grid-column: 1 !important;
  }
  body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
}

@media (max-width: 640px) {
  body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) article.page > .entry-header {
    width: calc(100% - 24px) !important;
    padding-top: 24px !important;
  }
  body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro {
    padding: 17px 16px !important;
  }
  body.bpc-ivory-active:is(.bpc-checkout-focus, .bpc-checkout-page, .woocommerce-checkout) .bpc-checkout-intro__meta {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }
  body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions .coupon {
    width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions .coupon .input-text,
  body.bpc-ivory-active.bpc-cart-focus .woocommerce-cart-form .actions .coupon button {
    width: 100% !important;
  }
}
