/*
 * Panier, paiement et confirmation.
 * Chargé uniquement sur ces pages (voir includes/checkout-ui.php).
 */
.yf-purchase {
  --yfc-ink: var(--yf-color-ink);
  --yfc-text: var(--yf-color-text);
  --yfc-muted: var(--yf-color-muted);
  --yfc-line: var(--yf-color-line);
  --yfc-line-strong: var(--yf-color-line-strong);
  --yfc-card: var(--yf-color-white);
  --yfc-soft: var(--yf-color-soft);
  --yfc-accent: var(--yf-color-accent-2);
  --yfc-gold: var(--yf-color-accent);
  --yfc-radius: 14px;
  --yfc-radius-sm: 10px;
  --yfc-shadow: 0 1px 2px color-mix(in srgb, var(--yf-color-ink) 4%, transparent), 0 12px 32px color-mix(in srgb, var(--yf-color-ink) 5%, transparent);
  --yfc-serif: var(--yf-font-display);
}

/* ---------- Cadre de page ---------- */
.yf-purchase article.content-bg {
  background: transparent !important;
  box-shadow: none !important;
}
.yf-purchase article > .entry-content-wrap {
  padding: 0 !important;
}
.yf-purchase .entry-content > .yf-inline-heading {
  margin: 0 0 6px !important;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--yfc-ink);
}
.yf-purchase .woocommerce-cart .cart-summary > h2,
.yf-purchase .woocommerce-cart-form .cart-summary {
  display: none;
}
@media (max-width: 767px) {
  .yf-purchase #primary.content-area,
  .yf-purchase .content-container.site-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Boutons des pages d'achat : sobres, lisibles, sans majuscules forcées. */
.yf-purchase .woocommerce .button,
.yf-purchase .woocommerce button.button,
.yf-purchase .woocommerce a.button {
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: var(--yfc-radius-sm) !important;
  font-weight: 600 !important;
}
.yf-purchase .wc-proceed-to-checkout .checkout-button,
.yf-purchase #place_order {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin: 0 !important;
  padding: 14px 20px !important;
  background: var(--yfc-ink) !important;
  border: 0 !important;
  color: var(--yf-color-white) !important;
  font-size: 16px !important;
  line-height: 1.2;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--yf-color-ink) 18%, transparent);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.yf-purchase .wc-proceed-to-checkout .checkout-button::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.2s ease;
}
.yf-purchase .wc-proceed-to-checkout .checkout-button:hover,
.yf-purchase #place_order:hover {
  background: var(--yf-color-ink-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px color-mix(in srgb, var(--yf-color-ink) 22%, transparent);
}
.yf-purchase .wc-proceed-to-checkout .checkout-button:hover::after {
  transform: translateX(3px);
}
.yf-purchase .woocommerce :focus-visible {
  outline: 2px solid var(--yfc-gold);
  outline-offset: 2px;
}

/* ---------- Étapes ---------- */
.yf-checkout-steps {
  margin: 0 0 28px;
}
.yf-checkout-steps ol {
  display: flex;
  max-width: 560px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.yf-checkout-step {
  position: relative;
  flex: 1 1 0;
  margin: 0;
  padding: 0;
}
.yf-checkout-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  border-radius: 2px;
  background: var(--yfc-line-strong);
}
.yf-checkout-step.is-done::after {
  background: var(--yfc-ink);
}
.yf-checkout-step > a,
.yf-checkout-step > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--yfc-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.yf-checkout-step.is-current > span {
  color: var(--yfc-ink);
  font-weight: 650;
}
.yf-checkout-step.is-done > a {
  color: var(--yfc-ink);
}
.yf-checkout-step.is-done > a:hover {
  color: var(--yfc-accent);
}
.yf-step-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--yfc-line-strong);
  background: var(--yfc-soft);
  color: var(--yfc-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}
.yf-checkout-step.is-current .yf-step-number {
  border-color: var(--yfc-ink);
  background: var(--yfc-ink);
  color: var(--yf-color-white);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--yf-color-ink) 8%, transparent);
}
.yf-checkout-step.is-done .yf-step-number {
  border-color: var(--yfc-ink);
  background: var(--yf-color-white);
  color: transparent;
  position: relative;
}
.yf-checkout-step.is-done .yf-step-number::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  border: solid var(--yfc-ink);
  border-width: 0 0 2px 2px;
  transform: translateY(-1px) rotate(-45deg);
}

/* ---------- Cartes communes ---------- */
.yf-purchase .woocommerce-cart-form,
.yf-purchase .cart-collaterals .cart_totals,
.yf-purchase #customer_details > .col-1,
.yf-purchase #customer_details > .col-2,
.yf-purchase .yf-order-summary {
  background: var(--yfc-card);
  border: 1px solid var(--yfc-line);
  border-radius: var(--yfc-radius);
  box-shadow: var(--yfc-shadow);
}
.yf-purchase .cart_totals h2,
.yf-purchase #order_review_heading,
.yf-purchase #customer_details h3,
.yf-purchase .yf-checkout-section-title {
  margin: 0 0 18px !important;
  padding: 0 !important;
  font-family: var(--yfc-serif) !important;
  font-size: 1.45rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.015em;
  color: var(--yfc-ink);
  border: 0 !important;
  background: none !important;
}

/* ---------- Panier ---------- */
.yf-purchase .kadence-woo-cart-form-wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
  gap: 28px;
  align-items: start;
}
.yf-purchase .kadence-woo-cart-form-wrap::before,
.yf-purchase .kadence-woo-cart-form-wrap::after {
  content: none !important;
  display: none !important;
}
.yf-purchase .woocommerce-cart-form,
.yf-purchase .cart-collaterals {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.yf-purchase .woocommerce-cart-form {
  padding: 8px 28px 22px;
}
.yf-purchase .woocommerce-cart-form table.shop_table,
.yf-purchase .woocommerce-cart-form table.shop_table tbody {
  display: block;
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
}
.yf-purchase .woocommerce-cart-form table.shop_table thead {
  display: none;
}
.yf-purchase .woocommerce-cart-form tr.cart_item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto 96px 32px;
  grid-template-areas:
    "thumb name qty subtotal remove"
    "thumb price qty subtotal remove";
  grid-template-rows: auto 1fr;
  column-gap: 20px;
  row-gap: 4px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--yfc-line);
}
.yf-purchase .woocommerce-cart-form tr.cart_item td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  text-align: left !important;
}
.yf-purchase .woocommerce-cart-form tr.cart_item td::before {
  content: none !important;
  display: none !important;
}
.yf-purchase .woocommerce-cart-form td.product-thumbnail {
  grid-area: thumb;
}
.yf-purchase .woocommerce-cart-form td.product-thumbnail img {
  display: block;
  width: 96px !important;
  height: 96px;
  object-fit: cover;
  border-radius: var(--yfc-radius-sm);
  background: var(--yfc-soft);
}
.yf-purchase .woocommerce-cart-form td.product-name {
  grid-area: name;
  min-width: 0;
}
.yf-purchase .woocommerce-cart-form td.product-name > a {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yfc-ink);
  text-decoration: none;
}
.yf-purchase .woocommerce-cart-form td.product-name > a:hover {
  color: var(--yfc-accent);
}
.yf-purchase .woocommerce-cart-form td.product-price {
  grid-area: price;
  font-size: 13px;
  color: var(--yfc-muted);
}
.yf-purchase .woocommerce-cart-form td.product-price::after {
  content: " / unité";
}
.yf-purchase .woocommerce-cart-form td.product-quantity {
  grid-area: qty;
  align-self: center;
}
.yf-purchase .woocommerce-cart-form td.product-subtotal {
  grid-area: subtotal;
  align-self: center;
  text-align: right !important;
  font-size: 16px;
  font-weight: 650;
  color: var(--yfc-ink);
}
.yf-purchase .woocommerce-cart-form td.product-remove {
  grid-area: remove;
  align-self: center;
  justify-self: end;
}
.yf-purchase .woocommerce-cart-form td.product-remove a.remove {
  display: grid !important;
  place-items: center;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50%;
  background: transparent !important;
  color: var(--yfc-muted) !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.yf-purchase .woocommerce-cart-form td.product-remove a.remove:hover {
  background: var(--yf-color-accent-2-soft) !important;
  color: var(--yfc-accent) !important;
}

/* « Personnaliser » / « Modifier la personnalisation » sous le nom (includes/cart-edit.php). */
.yf-purchase .woocommerce-cart-form td.product-name a.yf-cart-edit-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-top: 6px;
  color: var(--yfc-accent);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yf-purchase .woocommerce-cart-form td.product-name a.yf-cart-edit-link:hover {
  color: var(--yfc-ink);
}
.yf-purchase .woocommerce-cart-form td.product-name a.yf-cart-edit-link svg {
  flex: none;
}

/* Personnalisation affichée comme une petite fiche. */
.yf-purchase dl.variation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  margin: 8px 0 0 !important;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--yfc-soft);
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--yfc-text);
}
.yf-purchase dl.variation dt,
.yf-purchase dl.variation dd {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: none !important;
}
.yf-purchase dl.variation dt {
  font-weight: 500;
  color: var(--yfc-muted);
}
.yf-purchase dl.variation dd p {
  margin: 0 !important;
  font-size: inherit !important;
}

/* Quantité en pilule. */
.yf-purchase .woocommerce .quantity {
  display: inline-flex !important;
  align-items: center;
  height: 40px;
  margin: 0 !important;
  border: 1px solid var(--yfc-line-strong);
  border-radius: 999px;
  background: var(--yf-color-white);
  overflow: hidden;
}
.yf-purchase .woocommerce .quantity .qty {
  width: 38px !important;
  height: 38px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  color: var(--yfc-ink);
  -moz-appearance: textfield;
}
.yf-purchase .woocommerce .quantity .qty::-webkit-inner-spin-button,
.yf-purchase .woocommerce .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.yf-purchase .woocommerce .quantity .minus,
.yf-purchase .woocommerce .quantity .plus {
  width: 36px !important;
  height: 38px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--yfc-ink) !important;
  font-size: 17px !important;
  line-height: 1 !important;
  cursor: pointer;
}
.yf-purchase .woocommerce .quantity .minus:hover,
.yf-purchase .woocommerce .quantity .plus:hover {
  background: var(--yfc-soft) !important;
}

/* Code promo et actions. */
.yf-purchase .woocommerce-cart-form tr:not(.cart_item) {
  display: block;
}
.yf-purchase .woocommerce-cart-form td.actions {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 0 0 !important;
  border: 0 !important;
  background: none !important;
}
.yf-purchase .woocommerce-cart-form td.actions::before {
  content: none !important;
}
.yf-purchase .woocommerce-cart-form .coupon {
  display: flex !important;
  gap: 8px;
  flex: 1 1 320px;
  max-width: 420px;
  float: none !important;
}
.yf-purchase .woocommerce-cart-form .coupon input.input-text {
  flex: 1 1 auto;
  width: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 14px !important;
  border: 1px solid var(--yfc-line-strong) !important;
  border-radius: var(--yfc-radius-sm) !important;
  background: var(--yf-color-white) !important;
  font-size: 14px;
}
.yf-purchase .woocommerce-cart-form .coupon .button,
.yf-purchase .woocommerce-cart-form td.actions > .button {
  min-height: 44px;
  padding: 0 18px !important;
  border: 1px solid var(--yfc-line-strong) !important;
  background: var(--yf-color-white) !important;
  color: var(--yfc-ink) !important;
  font-size: 14px !important;
  white-space: nowrap;
  float: none !important;
}
.yf-purchase .woocommerce-cart-form .coupon .button:hover,
.yf-purchase .woocommerce-cart-form td.actions > .button:hover {
  border-color: var(--yfc-ink) !important;
}
.yf-purchase .woocommerce-cart-form td.actions > button:disabled {
  display: none !important;
}
.yf-continue-shopping {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--yfc-ink);
  text-decoration: none;
}
.yf-continue-shopping:hover {
  color: var(--yfc-accent);
}

/* Récapitulatif du panier. */
.yf-purchase .cart-collaterals {
  position: sticky;
  top: 24px;
}
.yf-purchase .cart-collaterals .cart_totals {
  float: none !important;
  width: 100% !important;
  padding: 26px;
}
.yf-purchase .cart_totals table.shop_table,
.yf-purchase .yf-order-summary table.shop_table {
  width: 100%;
  margin: 0 !important;
  border: 0 !important;
  border-collapse: collapse !important;
  font-size: 14px;
}
.yf-purchase .cart_totals table.shop_table tr,
.yf-purchase .yf-order-summary table.shop_table tfoot tr {
  display: table-row;
}
.yf-purchase .cart_totals table.shop_table th,
.yf-purchase .cart_totals table.shop_table td,
.yf-purchase .yf-order-summary table.shop_table tfoot th,
.yf-purchase .yf-order-summary table.shop_table tfoot td {
  display: table-cell !important;
  padding: 10px 0 !important;
  border: 0 !important;
  background: none !important;
  vertical-align: top;
  font-weight: 400;
  color: var(--yfc-text);
}
.yf-purchase .cart_totals table.shop_table td,
.yf-purchase .yf-order-summary table.shop_table tfoot td {
  text-align: right !important;
}
.yf-purchase .cart_totals table.shop_table td::before {
  content: none !important;
  display: none !important;
}
.yf-purchase .cart_totals .order-total th,
.yf-purchase .cart_totals .order-total td,
.yf-purchase .yf-order-summary .order-total th,
.yf-purchase .yf-order-summary .order-total td {
  padding-top: 16px !important;
  border-top: 1px solid var(--yfc-line) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--yfc-ink) !important;
}
.yf-purchase .order-total strong {
  font-weight: inherit;
}
/* Totaux en lignes souples : la ligne Livraison peut ainsi occuper toute la largeur. */
.yf-purchase .cart_totals table.shop_table,
.yf-purchase .cart_totals table.shop_table tbody,
.yf-purchase .yf-order-summary table.shop_table,
.yf-purchase .yf-order-summary table.shop_table tbody,
.yf-purchase .yf-order-summary table.shop_table tfoot {
  display: block !important;
  width: 100%;
}
.yf-purchase .yf-order-summary table.shop_table tbody tr {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.yf-purchase .yf-order-summary table.shop_table tbody td.product-name {
  flex: 1 1 auto;
  min-width: 0;
}
.yf-purchase .yf-order-summary table.shop_table tbody td.product-total {
  flex: none;
}
.yf-purchase .yf-order-summary table.shop_table tbody tr:last-child {
  border-bottom: 1px solid var(--yfc-line);
}
.yf-purchase .yf-order-summary table.shop_table tbody tr:last-child > td.product-name,
.yf-purchase .yf-order-summary table.shop_table tbody tr:last-child > td.product-total {
  border-bottom: 0 !important;
}
.yf-purchase .cart_totals table.shop_table tr,
.yf-purchase .yf-order-summary table.shop_table tfoot tr {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  column-gap: 16px;
}
.yf-purchase .cart_totals table.shop_table th,
.yf-purchase .yf-order-summary table.shop_table tfoot th {
  flex: 1 1 auto;
}
.yf-purchase .cart_totals table.shop_table td,
.yf-purchase .yf-order-summary table.shop_table tfoot td {
  flex: 0 1 auto;
}
.yf-purchase tr.woocommerce-shipping-totals th {
  flex-basis: 100% !important;
  padding-bottom: 8px !important;
}
.yf-purchase tr.woocommerce-shipping-totals td {
  flex: 1 1 100% !important;
  padding-top: 0 !important;
  text-align: left !important;
}

/* Modes de livraison : une carte par transporteur, prix à droite */
.yf-purchase .woocommerce-shipping-methods {
  display: grid;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.yf-purchase .woocommerce-shipping-methods li {
  position: relative;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin: 0 !important;
  padding: 12px 14px !important;
  border: 1px solid var(--yfc-line);
  border-radius: 12px;
  background: var(--yf-color-white);
  text-indent: 0 !important;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.yf-purchase .woocommerce-shipping-methods li:has(input:checked),
.yf-purchase .woocommerce-shipping-methods li:only-child {
  border-color: var(--yf-color-ink);
  box-shadow: 0 0 0 1px var(--yf-color-ink);
}
.yf-purchase .woocommerce-shipping-methods li:hover {
  border-color: var(--yf-color-line-strong);
}
.yf-purchase .woocommerce-shipping-methods li:has(input:checked):hover {
  border-color: var(--yf-color-ink);
}
.yf-purchase .woocommerce-shipping-methods input.shipping_method {
  grid-column: 1;
  margin: 3px 0 0 !important;
  accent-color: var(--yf-color-ink);
}
.yf-purchase .woocommerce-shipping-methods input[type="hidden"] + label {
  grid-column: 1 / -1;
}
.yf-purchase .woocommerce-shipping-methods label {
  grid-column: 2;
  display: flex !important;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 !important;
  font-weight: 500;
  line-height: 1.4;
  color: var(--yfc-ink);
  cursor: pointer;
}
/* Toute la carte est cliquable */
.yf-purchase .woocommerce-shipping-methods label::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.yf-purchase .woocommerce-shipping-methods .yf-ship-price {
  flex: none;
  font-weight: 600;
  white-space: nowrap;
}
.yf-purchase .woocommerce-shipping-methods .yf-ship-price.is-free {
  color: var(--yf-color-success);
}
.yf-purchase .woocommerce-shipping-methods .bw-parcel-point {
  position: relative;
  z-index: 1;
  grid-column: 2;
}
/* Point relais choisi (extension Boxtal), sous le mode de livraison sélectionné */
.yf-purchase .woocommerce-shipping-methods .bw-parcel-point {
  display: block;
  margin: 8px 0 6px;
  padding: 10px 12px;
  border: 1px solid var(--yfc-line);
  border-radius: 10px;
  background: var(--yf-color-soft);
  font-size: 13px;
  line-height: 1.45;
  color: var(--yfc-text);
  text-align: left;
}
.yf-purchase .woocommerce-shipping-methods .bw-parcel-point br {
  display: none;
}
.yf-purchase .woocommerce-shipping-methods .bw-parcel-point > span,
.yf-purchase .woocommerce-shipping-methods .bw-parcel-point > small {
  display: block;
}
.yf-purchase .woocommerce-shipping-methods .bw-parcel-point [class^="bw-parcel-name"] {
  font-weight: 600;
  color: var(--yfc-ink);
}
.yf-purchase .woocommerce-shipping-methods .bw-parcel-point small {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--yfc-muted);
}
.yf-purchase .woocommerce-shipping-methods .bw-select-parcel {
  display: inline-block !important;
  margin-top: 6px;
  font-weight: 600;
  color: var(--yfc-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.yf-purchase .woocommerce-shipping-methods .bw-select-parcel:hover {
  color: var(--yf-color-accent-2-dark);
}
.yf-purchase .woocommerce-shipping-destination {
  display: none;
}
.yf-purchase .shipping-calculator-button {
  display: inline-block;
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--yfc-muted) !important;
}
.yf-purchase .cart_totals .wc-proceed-to-checkout {
  padding: 20px 0 0 !important;
}

/* ---------- Panier vide ---------- */
.yf-purchase .woocommerce .cart-empty.woocommerce-info,
.yf-purchase .woocommerce .wc-empty-cart-message .cart-empty {
  position: relative;
  margin: 24px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-family: var(--yfc-serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem) !important;
  font-weight: 500 !important;
  text-align: center;
  color: var(--yfc-ink) !important;
}
.yf-purchase .woocommerce .cart-empty.woocommerce-info::before {
  content: "";
  position: static;
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--yf-color-cream);
}
.yf-purchase .woocommerce .cart-empty.woocommerce-info::after {
  /* Le clearfix des messages WooCommerce masque ce pseudo-élément : on force l'affichage de l'icône. */
  content: "" !important;
  display: block !important;
  clear: none !important;
  position: absolute;
  top: 20px;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  background: var(--yf-color-accent-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7z'/%3E%3Cpath d='M9 7V6a3 3 0 016 0v1'/%3E%3C/svg%3E") center / 32px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l-1 13H7z'/%3E%3Cpath d='M9 7V6a3 3 0 016 0v1'/%3E%3C/svg%3E") center / 32px no-repeat;
}
.yf-empty-cart-hint {
  max-width: 420px;
  margin: 10px auto 0 !important;
  text-align: center;
  font-size: 15px;
  color: var(--yfc-muted);
}
.yf-purchase .return-to-shop {
  margin: 24px 0 40px !important;
  text-align: center;
}
.yf-purchase .return-to-shop .button {
  border: 0 !important;
  min-height: 50px;
  padding: 14px 28px !important;
  background: var(--yfc-ink) !important;
  color: var(--yf-color-white) !important;
  font-size: 15px !important;
}

/* ---------- Paiement ---------- */
.yf-purchase .woocommerce-form-coupon-toggle .woocommerce-info {
  margin: 0 0 20px !important;
  padding: 14px 18px !important;
  border: 1px dashed var(--yfc-line-strong) !important;
  border-radius: var(--yfc-radius-sm);
  background: transparent !important;
  font-size: 14px;
  color: var(--yfc-text);
}
.yf-purchase .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none;
}
.yf-purchase .woocommerce-form-coupon-toggle .showcoupon {
  font-weight: 600;
  color: var(--yfc-ink) !important;
}
.yf-purchase form.checkout_coupon {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: -8px 0 20px !important;
  padding: 0 !important;
  border: 0 !important;
}
.yf-purchase form.checkout_coupon[style*="display:none"],
.yf-purchase form.checkout_coupon[style*="display: none"] {
  display: none !important;
}
.yf-purchase form.checkout_coupon .form-row {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.yf-purchase form.checkout_coupon .form-row-first {
  flex: 1 1 auto;
}
.yf-purchase form.checkout_coupon .clear {
  display: none;
}

.yf-purchase form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  gap: 28px;
  align-items: start;
}
.yf-purchase form.checkout > wc-order-attribution-inputs,
.yf-purchase form.checkout > input[type="hidden"] {
  display: none;
}
.yf-purchase #customer_details {
  grid-column: 1;
  display: grid;
  gap: 20px;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}
.yf-purchase #customer_details::before,
.yf-purchase #customer_details::after {
  content: none !important;
}
.yf-purchase #customer_details > .col-1,
.yf-purchase #customer_details > .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 28px;
}
.yf-purchase .yf-order-summary {
  grid-column: 2;
  position: sticky;
  top: 24px;
  padding: 26px;
}
.yf-purchase #order_review_heading,
.yf-purchase #order_review {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.yf-purchase #order_review_heading {
  margin-bottom: 16px !important;
}
.yf-checkout-section-hint {
  margin: -10px 0 14px !important;
  font-size: 13.5px;
  color: var(--yfc-muted);
}

/* Champs. */
.yf-purchase .woocommerce-billing-fields__field-wrapper,
.yf-purchase .woocommerce-shipping-fields__field-wrapper {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.yf-purchase .woocommerce-billing-fields__field-wrapper::before,
.yf-purchase .woocommerce-billing-fields__field-wrapper::after,
.yf-purchase .woocommerce-shipping-fields__field-wrapper::before,
.yf-purchase .woocommerce-shipping-fields__field-wrapper::after {
  content: none !important;
}
.yf-purchase form.checkout .form-row {
  grid-column: 1 / -1;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.yf-purchase form.checkout .form-row-first,
.yf-purchase form.checkout #billing_postcode_field,
.yf-purchase form.checkout #shipping_postcode_field {
  grid-column: 1;
}
.yf-purchase form.checkout .form-row-last,
.yf-purchase form.checkout #billing_city_field,
.yf-purchase form.checkout #shipping_city_field {
  grid-column: 2;
}
.yf-purchase form.checkout #billing_address_2_field,
.yf-purchase form.checkout #shipping_address_2_field {
  margin-top: -8px !important;
}
.yf-purchase form.checkout .form-row label:not(.checkbox) {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--yfc-text);
}
.yf-purchase form.checkout .form-row .required {
  color: var(--yfc-accent) !important;
  text-decoration: none;
  border: 0;
}
.yf-purchase form.checkout .form-row .optional {
  font-weight: 400;
  color: var(--yfc-muted);
}
.yf-purchase form.checkout input.input-text,
.yf-purchase form.checkout textarea,
.yf-purchase form.checkout select,
.yf-purchase form.checkout .select2-container .select2-selection--single {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--yfc-line-strong) !important;
  border-radius: var(--yfc-radius-sm) !important;
  background: var(--yf-color-white) !important;
  box-shadow: none !important;
  font-size: 15px;
  color: var(--yfc-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.yf-purchase form.checkout textarea {
  min-height: 96px;
  resize: vertical;
}
.yf-purchase form.checkout input.input-text::placeholder,
.yf-purchase form.checkout textarea::placeholder {
  color: var(--yf-color-muted);
}
.yf-purchase form.checkout input.input-text:hover,
.yf-purchase form.checkout textarea:hover {
  border-color: var(--yf-color-line-strong) !important;
}
.yf-purchase form.checkout input.input-text:focus,
.yf-purchase form.checkout textarea:focus,
.yf-purchase form.checkout .select2-container--focus .select2-selection--single,
.yf-purchase form.checkout .select2-container--open .select2-selection--single {
  border-color: var(--yfc-ink) !important;
  outline: none !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--yf-color-ink) 8%, transparent) !important;
}
.yf-purchase form.checkout .woocommerce-invalid input.input-text,
.yf-purchase form.checkout .woocommerce-invalid .select2-selection {
  border-color: var(--yf-color-error) !important;
}
.yf-purchase form.checkout .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.yf-purchase form.checkout .select2-selection__rendered {
  padding: 0 !important;
  line-height: 1.3 !important;
  color: var(--yfc-ink) !important;
}
.yf-purchase form.checkout .select2-selection__arrow {
  top: 50% !important;
  right: 10px !important;
  transform: translateY(-50%);
}

/* Livrer ailleurs : une ligne à cocher bien visible. */
.yf-purchase #customer_details h3#ship-to-different-address {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
}
.yf-purchase #ship-to-different-address span {
  font: inherit;
}
.yf-purchase #ship-to-different-address label,
.yf-purchase form.checkout label.checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.yf-purchase #ship-to-different-address label {
  padding: 14px 16px;
  border: 1px solid var(--yfc-line-strong);
  border-radius: var(--yfc-radius-sm);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.yf-purchase #ship-to-different-address label:has(input:checked) {
  border-color: var(--yfc-ink);
  background: var(--yfc-soft);
}
.yf-purchase form.checkout input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0 !important;
  accent-color: var(--yfc-ink);
}
.yf-purchase .shipping_address {
  padding-top: 18px;
}
.yf-purchase .woocommerce-additional-fields {
  margin-top: 20px;
}
.yf-purchase .woocommerce-additional-fields > h3 {
  display: none;
}

/* Récapitulatif de commande. */
.yf-purchase .yf-order-summary table.shop_table thead {
  display: none;
}
.yf-purchase .yf-order-summary table.shop_table tbody td {
  padding: 0 0 14px !important;
  border: 0 !important;
  background: none !important;
  vertical-align: top;
  font-size: 14px;
  color: var(--yfc-text);
}
.yf-purchase .yf-order-summary table.shop_table tbody tr:last-child td {
  padding-bottom: 18px !important;
  border-bottom: 1px solid var(--yfc-line) !important;
}
.yf-purchase .yf-order-summary tbody td.product-total {
  padding-top: 4px !important;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  color: var(--yfc-ink);
}
.yf-review-item {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  vertical-align: top;
}
.yf-review-thumb {
  position: relative;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
}
.yf-review-thumb img {
  display: block;
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border: 1px solid var(--yfc-line);
  border-radius: var(--yfc-radius-sm);
  background: var(--yfc-soft);
}
.yf-review-qty {
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  border: 2px solid var(--yf-color-white);
  border-radius: 999px;
  background: var(--yfc-ink);
  color: var(--yf-color-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.yf-review-name {
  padding-top: 4px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--yfc-ink);
}
/* La pastille remplace « × 1 » à l'écran ; le texte reste lu par les lecteurs d'écran. */
.yf-purchase .yf-order-summary td.product-name .product-quantity {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.yf-purchase .yf-order-summary td.product-name {
  position: relative;
}
.yf-review-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.yf-purchase .yf-review-name dl.variation {
  display: block;
  margin: 6px 0 0 !important;
  padding: 0;
  background: none;
  font-size: 12.5px;
  font-weight: 400;
  color: var(--yfc-muted);
}
.yf-purchase .yf-review-name dl.variation dt {
  display: inline;
  margin-right: 4px !important;
}
.yf-purchase .yf-review-name dl.variation dd {
  display: inline;
  color: var(--yfc-text);
}
.yf-purchase .yf-review-name dl.variation dd::after {
  content: "";
  display: block;
}
.yf-purchase .yf-review-name dl.variation dd p {
  display: inline;
}
.yf-purchase .yf-order-summary tfoot th {
  text-align: left;
}

/* Moyens de paiement. */
.yf-purchase #payment {
  margin: 20px 0 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}
.yf-purchase #payment ul.payment_methods {
  display: grid;
  gap: 10px;
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
}
.yf-purchase #payment ul.payment_methods::before,
.yf-purchase #payment ul.payment_methods::after {
  content: none !important;
}
.yf-purchase #payment ul.payment_methods li {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid var(--yfc-line-strong);
  border-radius: var(--yfc-radius-sm);
  background: var(--yf-color-white);
  line-height: 1.4 !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.yf-purchase #payment ul.payment_methods li:has(input:checked) {
  border-color: var(--yfc-ink);
  background: var(--yfc-soft);
}
.yf-purchase #payment ul.payment_methods li > label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  font-size: 15px;
  font-weight: 600;
  color: var(--yfc-ink);
  cursor: pointer;
}
.yf-purchase #payment ul.payment_methods li > input.input-radio {
  accent-color: var(--yfc-ink);
  margin-right: 8px !important;
}
.yf-purchase #payment .payment_box {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  font-size: 13.5px !important;
  line-height: 1.45;
  color: var(--yfc-muted) !important;
}
.yf-purchase #payment .payment_box::before {
  display: none !important;
}
.yf-purchase #payment .payment_box p:last-child {
  margin-bottom: 0;
}
.yf-purchase #payment .place-order {
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
}
.yf-purchase .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 16px;
}
.yf-purchase .woocommerce-privacy-policy-text p {
  margin: 0 0 10px !important;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--yfc-muted);
}
.yf-purchase .woocommerce-terms-and-conditions-wrapper .form-row {
  margin: 0 !important;
}
.yf-purchase .woocommerce-terms-and-conditions-wrapper label.checkbox {
  display: block !important;
  position: relative;
  padding-left: 28px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--yfc-text);
}
.yf-purchase .woocommerce-terms-and-conditions-wrapper label.checkbox input {
  position: absolute;
  top: 1px;
  left: 0;
}
.yf-purchase .woocommerce-terms-and-conditions-checkbox-text {
  display: inline !important;
}
.yf-purchase .woocommerce-terms-and-conditions-wrapper abbr.required {
  display: inline !important;
  position: static !important;
  float: none !important;
  margin-left: 2px;
  color: var(--yfc-accent);
  text-decoration: none;
  border: 0;
}
.yf-purchase .woocommerce-terms-and-conditions-wrapper a,
.yf-purchase .woocommerce-privacy-policy-text a {
  color: var(--yfc-ink) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.yf-purchase #place_order::before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

/* Chargement AJAX plus discret. */
.yf-purchase .blockUI.blockOverlay {
  background: color-mix(in srgb, var(--yf-color-white) 65%, transparent) !important;
  border-radius: var(--yfc-radius);
}

/* ---------- Messages ---------- */
.yf-purchase .woocommerce-error,
.yf-purchase .woocommerce-message,
.yf-purchase .woocommerce-notices-wrapper .woocommerce-info {
  border-radius: var(--yfc-radius-sm);
  font-size: 14px;
}

/* ---------- Confirmation ---------- */
.yf-purchase .woocommerce-order {
  max-width: 820px;
}
.yf-purchase .woocommerce-order .woocommerce-thankyou-order-received {
  margin: 0 0 20px;
  font-family: var(--yfc-serif);
  font-size: 1.6rem;
  color: var(--yfc-ink);
}
.yf-purchase ul.woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  margin: 0 0 28px !important;
  padding: 0 !important;
  border: 1px solid var(--yfc-line);
  border-radius: var(--yfc-radius);
  background: var(--yf-color-white);
  overflow: hidden;
}
.yf-purchase ul.woocommerce-order-overview li {
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 0 !important;
  border-right: 1px solid var(--yfc-line) !important;
  font-size: 12px;
  text-transform: none;
  color: var(--yfc-muted);
}
.yf-purchase ul.woocommerce-order-overview li strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  color: var(--yfc-ink);
  /* L'e-mail ne se coupe que s'il ne tient vraiment pas sur sa ligne. */
  overflow-wrap: break-word;
  word-break: normal;
}
/* Ordinateur : l'e-mail prend sa largeur naturelle, les autres cases se partagent le reste. */
@media (min-width: 641px) {
  .yf-purchase ul.woocommerce-order-overview {
    display: flex;
  }
  .yf-purchase ul.woocommerce-order-overview li {
    flex: 1 1 0;
    min-width: 0;
  }
  .yf-purchase ul.woocommerce-order-overview li.woocommerce-order-overview__email {
    flex: 0 1 auto;
  }
  .yf-purchase ul.woocommerce-order-overview li.woocommerce-order-overview__total {
    flex-grow: 0.7;
  }
  .yf-purchase ul.woocommerce-order-overview li.woocommerce-order-overview__payment-method {
    flex-grow: 1.4;
  }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 1024px) {
  .yf-purchase .kadence-woo-cart-form-wrap,
  .yf-purchase form.checkout {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 20px;
  }
  .yf-purchase .woocommerce-cart-form,
  .yf-purchase .cart-collaterals,
  .yf-purchase #customer_details,
  .yf-purchase .yf-order-summary {
    min-width: 0;
  }
  .yf-purchase .cart-collaterals,
  .yf-purchase .yf-order-summary {
    position: static;
  }
  .yf-purchase #customer_details,
  .yf-purchase .yf-order-summary {
    grid-column: 1;
  }
}
@media (max-width: 640px) {
  .yf-checkout-steps {
    margin-bottom: 20px;
  }
  .yf-checkout-step > a,
  .yf-checkout-step > span {
    font-size: 11.5px;
  }
  .yf-purchase .woocommerce-cart-form {
    padding: 4px 16px 18px;
  }
  .yf-purchase .woocommerce-cart-form tr.cart_item {
    grid-template-columns: 76px minmax(0, 1fr) 32px;
    grid-template-areas:
      "thumb name remove"
      "thumb price price"
      "foot foot foot";
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 6px;
    padding: 18px 0;
  }
  .yf-purchase .woocommerce-cart-form td.product-thumbnail img {
    width: 76px !important;
    height: 76px;
  }
  .yf-purchase .woocommerce-cart-form td.product-name > a {
    font-size: 15px;
  }
  .yf-purchase .woocommerce-cart-form td.product-remove {
    align-self: start;
  }
  .yf-purchase .woocommerce-cart-form td.product-quantity {
    grid-area: foot;
    justify-self: start;
    margin-top: 8px;
  }
  .yf-purchase .woocommerce-cart-form td.product-subtotal {
    grid-area: foot;
    justify-self: end;
    margin-top: 8px;
  }
  .yf-purchase .woocommerce-cart-form .coupon {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
  }
  .yf-purchase .woocommerce-cart-form .coupon input.input-text {
    min-width: 0;
  }
  .yf-purchase .woocommerce-cart-form .coupon .button {
    padding: 0 14px !important;
  }
  .yf-purchase .cart-collaterals .cart_totals,
  .yf-purchase #customer_details > .col-1,
  .yf-purchase #customer_details > .col-2,
  .yf-purchase .yf-order-summary {
    padding: 20px 16px;
  }
  .yf-purchase .cart_totals h2,
  .yf-purchase #order_review_heading,
  .yf-purchase #customer_details h3,
  .yf-purchase .yf-checkout-section-title {
    font-size: 1.3rem !important;
  }
}
@media (max-width: 380px) {
  .yf-purchase .woocommerce-billing-fields__field-wrapper,
  .yf-purchase .woocommerce-shipping-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
  .yf-purchase form.checkout .form-row-first,
  .yf-purchase form.checkout .form-row-last,
  .yf-purchase form.checkout #billing_postcode_field,
  .yf-purchase form.checkout #billing_city_field,
  .yf-purchase form.checkout #shipping_postcode_field,
  .yf-purchase form.checkout #shipping_city_field {
    grid-column: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .yf-purchase * {
    transition: none !important;
  }
}

/* Corrections de spécificité face aux règles du thème. */
.yf-purchase .cart-collaterals .cart_totals > h2 {
  margin-top: 0 !important;
}
.yf-purchase .woocommerce-cart-form .coupon > label {
  position: absolute !important;
}
.yf-purchase .woocommerce-cart-form .coupon > input.input-text {
  grid-column: 1;
  grid-row: 1;
}
.yf-purchase .woocommerce-cart-form .coupon > .button {
  grid-column: 2;
  grid-row: 1;
}
.yf-purchase .woocommerce-cart-form .coupon > .button {
  width: auto !important;
  min-width: max-content;
}
.yf-purchase .woocommerce-cart-form.yf-auto-update td.actions > button[name="update_cart"] {
  display: none !important;
}

/* Confirmation de commande. */
.yf-purchase ul.woocommerce-order-overview li {
  padding-left: 18px !important;
}
.yf-purchase ul.woocommerce-order-overview li::before {
  content: none !important;
  display: none !important;
}
.yf-purchase ul.woocommerce-order-overview li:last-child {
  border-right: 0 !important;
}
.yf-purchase .woocommerce-order-details,
.yf-purchase .woocommerce-customer-details {
  margin: 0 0 24px !important;
  padding: 26px;
  border: 1px solid var(--yfc-line);
  border-radius: var(--yfc-radius);
  background: var(--yf-color-white);
  box-shadow: var(--yfc-shadow);
}
.yf-purchase .woocommerce-order h2,
.yf-purchase .woocommerce-order .woocommerce-column__title {
  margin: 0 0 16px !important;
  font-family: var(--yfc-serif);
  font-size: 1.45rem !important;
  font-weight: 500 !important;
  line-height: 1.2;
  color: var(--yfc-ink);
}
.yf-purchase .woocommerce-order table.shop_table {
  margin: 0 !important;
  border: 0 !important;
  font-size: 14px;
}
.yf-purchase .woocommerce-order table.shop_table th,
.yf-purchase .woocommerce-order table.shop_table td {
  padding: 12px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--yfc-line) !important;
  background: none !important;
}
.yf-purchase .woocommerce-order table.shop_table thead th {
  border-top: 0 !important;
  font-size: 12px;
  font-weight: 600;
  color: var(--yfc-muted);
}
.yf-purchase .woocommerce-order table.shop_table td:last-child,
.yf-purchase .woocommerce-order table.shop_table th:last-child {
  text-align: right;
}
.yf-purchase .woocommerce-order table.shop_table tfoot tr:last-child th,
.yf-purchase .woocommerce-order table.shop_table tfoot tr:last-child td {
  font-weight: 400;
}
.yf-purchase .woocommerce-order .product-name a {
  color: var(--yfc-ink) !important;
  font-weight: 600;
  text-decoration: none;
}
.yf-purchase .woocommerce-order .wc-item-meta {
  margin: 6px 0 0 !important;
  padding: 0 !important;
  list-style: none;
  font-size: 13px;
  color: var(--yfc-muted);
}
.yf-purchase .woocommerce-order .wc-item-meta li,
.yf-purchase .woocommerce-order .wc-item-meta p {
  display: inline;
  margin: 0 !important;
}
.yf-purchase .woocommerce-order .wc-item-meta li::after {
  content: "";
  display: block;
}
.yf-purchase .woocommerce-customer-details address {
  padding: 0 !important;
  border: 0 !important;
  font-size: 14px;
  line-height: 1.6;
  font-style: normal;
  color: var(--yfc-text);
}
.yf-purchase ul.woocommerce-order-overview::before,
.yf-purchase ul.woocommerce-order-overview::after {
  content: none !important;
  display: none !important;
}
.yf-purchase .woocommerce-order-details > h2,
.yf-purchase .woocommerce-customer-details h2 {
  margin-top: 0 !important;
}
@media (max-width: 640px) {
  .yf-purchase .woocommerce-order-details,
  .yf-purchase .woocommerce-customer-details {
    padding: 20px 16px;
  }
  .yf-purchase ul.woocommerce-order-overview li:nth-child(2n) {
    border-right: 0 !important;
  }
}

/* Les étapes indiquent déjà la page : le titre reste pour les lecteurs d'écran uniquement. */
.yf-purchase .entry-content:has(.yf-checkout-steps) > .yf-inline-heading {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px !important;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.yf-purchase .yf-checkout-steps {
  margin-top: 4px;
}

/* Résumé de confirmation sur mobile : lignes séparées, e-mail sur toute la largeur. */
@media (max-width: 640px) {
  .yf-purchase ul.woocommerce-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .yf-purchase ul.woocommerce-order-overview li {
    border-right: 0 !important;
    border-bottom: 1px solid var(--yfc-line) !important;
    overflow-wrap: break-word;
  }
  .yf-purchase ul.woocommerce-order-overview li.woocommerce-order-overview__email,
  .yf-purchase ul.woocommerce-order-overview li.woocommerce-order-overview__payment-method {
    grid-column: 1 / -1;
  }
  .yf-purchase ul.woocommerce-order-overview li:last-child {
    border-bottom: 0 !important;
  }
}

/* ---------- En-tête réduit du tunnel de commande ---------- */
.yf-funnel #masthead {
  display: none !important;
}
.yf-checkout-header {
  background: var(--yf-shell-bg);
  color: var(--yf-shell-text);
}
.yf-checkout-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1290px;
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 24px;
}
.yf-checkout-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  color: var(--yf-shell-text) !important;
  text-decoration: none !important;
}
.yf-checkout-brand-name {
  font-family: var(--yf-font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.yf-checkout-brand-tagline {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--yf-shell-muted);
}
.yf-checkout-header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  font-weight: 500;
}
.yf-checkout-header-back,
.yf-checkout-header-secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.yf-checkout-header-back {
  color: var(--yf-shell-text) !important;
  text-decoration: none !important;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}
.yf-checkout-header-back:hover {
  opacity: 1;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.yf-checkout-header-secure {
  color: var(--yf-shell-muted);
}
.yf-checkout-header-secure svg {
  color: var(--yf-shell-hover);
}
@media (max-width: 640px) {
  .yf-checkout-header-inner {
    min-height: 60px;
    padding: 8px 16px;
  }
  .yf-checkout-brand {
    align-items: flex-start;
  }
  .yf-checkout-brand-name {
    font-size: 20px;
  }
  .yf-checkout-brand-tagline {
    font-size: 10px;
  }
  .yf-checkout-header-actions {
    gap: 14px;
    font-size: 12.5px;
  }
  /* Le retour boutique reste disponible sous la liste des articles. */
  .yf-checkout-header-back {
    display: none;
  }
}

/* Progression vers la livraison offerte (seuil lu dans la méthode « Livraison gratuite » de WooCommerce). */
.yf-purchase .yf-free-shipping {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--yfc-radius-sm);
  background: var(--yf-color-cream);
}
.yf-purchase .yf-free-shipping p {
  margin: 0 0 10px !important;
  font-size: 14px;
  color: var(--yfc-text);
}
.yf-purchase .yf-free-shipping strong {
  color: var(--yfc-ink);
}
.yf-free-shipping-bar {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: var(--yf-color-line);
  overflow: hidden;
}
.yf-free-shipping-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--yf-color-accent-2);
  transition: width 0.4s ease;
}
.yf-purchase .yf-free-shipping.is-reached .yf-free-shipping-bar > span {
  background: var(--yf-color-success);
}
