/* Panier et commande : structure de la recette PDF, pages 11 a 13. */
body:is(#cart, #checkout) #wrapper {
  background: #f4f1ec;
  color: #2b3824;
}
body:is(#cart, #checkout) #main {
  font-family: var(--pb-font-body);
  font-size: 14px;
  line-height: 1.5;
}
body:is(#cart, #checkout) #main > .page-title {
  margin: 8px 0 24px;
  padding: 0;
  font-family: var(--pb-font-display);
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.2;
  color: #2b3824;
  text-align: left;
  background: none;
  border: 0;
}
body:is(#cart, #checkout) #main .card,
body#checkout #checkout-personal-information-step,
body#checkout .checkout-step.-current {
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body#cart .cart-container { background: transparent; }
body#cart .cart-items { margin: 0; padding: 0; }
body#cart .cart-item {
  margin-bottom: 12px;
  padding: 20px;
  background: #fff;
  border: 0;
}
body#cart .product-line-grid .product-image {
  flex: 0 0 84px;
  max-width: 84px;
}
body#cart .product-line-grid .product-image img {
  width: 76px;
  height: 100px;
  object-fit: contain;
}
body#cart .product-line-grid-body .col-9 { flex: 1; max-width: none; }
body#cart .product-line-info > .label {
  font-family: var(--pb-font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #2b3824;
}
body#cart .product-line-info-secondary,
body#cart .product-line-info-secondary > .label,
body#cart .unit-price { font-size: 12px; font-weight: 400; }
body#cart .product-line-grid .product-price { font-size: 15px; color: #2b3824; }
body#cart .product-line-grid .product-price strong { font-weight: 500; }
body#cart .product-line-grid .qty .input-group { min-width: 80px; }
body#cart .remove-from-cart { color: #727d6c; }
.pb-cart-intro { margin-bottom: 14px; }
.pb-cart-count { margin: 0 0 10px; font-size: 13px; }
.pb-shipping-progress {
  padding: 18px 20px;
  margin: 12px 0;
  background: #fff;
  color: #2b3824;
  font-family: var(--pb-font-body);
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid #e0e4dc;
}
.pb-shipping-progress__message { margin: 0 0 12px; }
.pb-shipping-progress__message strong { font-weight: 500; }
.pb-shipping-progress__bar {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: #e0e4dc;
  color: #727d6c;
  accent-color: #727d6c;
}
.pb-shipping-progress__bar::-webkit-progress-bar { background: #e0e4dc; }
.pb-shipping-progress__bar::-webkit-progress-value { background: #727d6c; }
.pb-shipping-progress__bar::-moz-progress-bar { background: #727d6c; }
.pb-shipping-progress__caption,
.pb-shipping-progress__conditions { margin: 10px 0 0; font-size: 11px; }
body#cart .cart-summary .pb-shipping-progress { display: none; }
.pb-cart-summary-title {
  padding: 20px;
  margin: 0;
  font-family: var(--pb-font-title);
  font-size: 18px;
  font-weight: 400;
  border-bottom: 1px solid #e1e4dd;
}
body#cart .cart-summary .card-body { padding: 16px 20px; }
body#cart .cart-summary hr { display: none; }
body#cart .cart-voucher-area { padding: 18px 20px; border-bottom: 1px solid #e1e4dd; }
body#cart .cart-voucher .form-control { min-width: 0; font-size: 13px; }
body#cart .cart-voucher .voucher-icon { display: none; }
body:is(#cart, #checkout) .cart-summary-line { margin-bottom: 8px; }
body:is(#cart, #checkout) .cart-summary-line .label,
body:is(#cart, #checkout) .cart-summary-line .value { font-family: var(--pb-font-body); font-size: 14px; font-weight: 400; }
body:is(#cart, #checkout) .cart-summary-line.cart-total { padding-top: 12px; border-top: 1px solid #e1e4dd; }
body:is(#cart, #checkout) .cart-summary-line.cart-total :is(.label, .value) { font-size: 17px; font-weight: 500; color: #2b3824; }
.pb-continue-shopping { display: inline-block; margin: 18px 0 26px; color: #2b3824; text-decoration: underline; text-underline-offset: 4px; }
body:is(#cart, #checkout) #main .btn,
#blockcart-modal .btn {
  font-family: var(--pb-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  padding: 12px 18px;
  border-radius: 3px;
  text-transform: none;
}
body:is(#cart, #checkout) #main .btn-primary,
#blockcart-modal .btn-primary { background: #727d6c; border-color: #727d6c; color: #fff; }
body:is(#cart, #checkout) #main .btn-primary:hover,
#blockcart-modal .btn-primary:hover { background: #2b3824; border-color: #2b3824; }
body:is(#cart, #checkout) #main .btn-secondary,
#blockcart-modal .btn-secondary { background: #fff; color: #2b3824; border: 1px solid #727d6c; }
body#checkout #main .checkout-step .step-title {
  padding: 16px 18px;
  margin: 0;
  font-family: var(--pb-font-title);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.35;
  color: #2b3824;
  text-transform: none;
  letter-spacing: 0;
}
body#checkout .checkout-step .step-number { font-family: var(--pb-font-body); font-size: 14px; margin-right: 10px; }
body#checkout .checkout-step .step-edit { font-family: var(--pb-font-body); font-size: 12px; }
body#checkout .checkout-step { border-bottom: 1px solid #dce1d7; }
body#checkout .checkout-step .content { padding: 10px 20px 24px; }
body#checkout #main :is(.form-control-label, .custom-checkbox, .custom-radio, .form-control, .form-control-comment) {
  font-family: var(--pb-font-body);
  font-size: 13px;
  font-weight: 400;
}
body#checkout #main .form-control { border-color: #b9c1b3; background-color: #fff; }
body#checkout #main .form-control:focus { border-color: #727d6c; box-shadow: 0 0 0 2px rgb(114 125 108 / 16%); }
body#checkout #main .custom-radio input[type=radio]:checked + span { background-color: #727d6c; }
body#checkout #main input { accent-color: #727d6c; }
body#checkout .delivery-option { background: #f4f1ec; border-color: #dce1d7; }
body#checkout .delivery-option :is(.carrier-name, .carrier-price) { font-size: 14px; font-weight: 500; }
#blockcart-modal { color: #2b3824; font-family: var(--pb-font-body); font-size: 14px; }
#blockcart-modal .modal-title { font-family: var(--pb-font-title); font-size: 19px; font-weight: 400; }
#blockcart-modal .modal-content { border-radius: 5px; }
#blockcart-modal .product-name { font-size: 14px; line-height: 1.4; }
#blockcart-modal .product-attributes { font-size: 12px; }
#blockcart-modal strong { font-weight: 500; }
#blockcart-modal .product-image { max-height: 150px; object-fit: contain; }
/* Reassurance compacte dans la colonne commande et sous le lexique. */
body:is(#cart, #checkout) .cart-grid-right .pb-reassurance {
  width: 100% !important;
  left: auto !important;
  margin: 16px 0 0;
  padding: 18px 10px !important;
  background: #fff;
}
body:is(#cart, #checkout) .cart-grid-right .pb-reassurance .elementor-row { flex-wrap: wrap; }
body:is(#cart, #checkout) .cart-grid-right .pb-reassurance .elementor-column { width: 100% !important; padding: 7px 0; }
body:is(#cart, #checkout) .cart-grid-right .pb-reassurance .elementor-icon-box-wrapper { display: flex; align-items: center; text-align: left; }
body:is(#cart, #checkout) .cart-grid-right .pb-reassurance .elementor-icon-box-icon { margin: 0 12px 0 0 !important; }
body:is(#cart, #checkout, .category-id-895) .pb-reassurance .elementor-icon { font-size: 25px !important; color: #727d6c; }
body:is(#cart, #checkout, .category-id-895) .pb-reassurance .elementor-icon svg { width: 25px !important; height: 25px !important; }
body:is(#cart, #checkout, .category-id-895) .pb-reassurance .elementor-icon-box-title { font-family: var(--pb-font-body); font-size: 11px !important; font-weight: 500; letter-spacing: .02em; }
body:is(#cart, #checkout, .category-id-895) .pb-reassurance .elementor-icon-box-description,
body:is(#cart, #checkout, .category-id-895) .pb-reassurance .elementor-icon-box-description p { font-family: var(--pb-font-body); font-size: 10px !important; }
@media (max-width: 767px) {
  body:is(#cart, #checkout) #main > .page-title { font-size: 23px; }
  body#cart .cart-item { padding: 14px; }
  body#cart .product-line-grid-right { margin-top: 14px; }
  body#checkout #main .checkout-step .step-title { font-size: 16px; padding: 14px 12px; }
  body#checkout .checkout-step .content { padding: 8px 12px 20px; }
}
/* Etape 1 : "Vous avez deja un compte ? Connectez-vous !" en bandeau, le lien devient un bouton. */
body#checkout #checkout-personal-information-step .content > p:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 4px 0 22px;
  padding: 14px 16px;
  background: #f4f1ec;
  border: 1px solid rgb(43 56 36 / 16%);
  border-radius: 6px;
  color: #2b3824;
  font-size: 15px;
  font-weight: 500;
}
body#checkout #checkout-personal-information-step .content > p:first-child > .fa { color: #727d6c; font-size: 18px; }
body#checkout #checkout-personal-information-step .content > p:first-child > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 9px 18px;
  color: #fff !important;
  background: #727d6c;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 180ms ease;
}
body#checkout #checkout-personal-information-step .content > p:first-child > a:is(:hover, :focus-visible) { background: #2b3824; }
body#checkout #checkout-personal-information-step .content > p:first-child > a u { text-decoration: none; }
body#checkout #checkout-personal-information-step .content > p:first-child > a[aria-expanded="true"] .fa-angle-right { transform: rotate(90deg); }

/* ==========================================================
   Confirmation de commande : deux cartes (message + consignes / recapitulatif),
   texte courant a 15px, titres institutionnels, totaux lisibles.
   ========================================================== */
body#order-confirmation #content-hook_order_confirmation > .row { row-gap: 24px; }
/* Le parent trace un filet vertical entre les deux colonnes : les cartes suffisent a les separer. */
body#order-confirmation .order-confirmation-title-payment { border-right: 0; }
body#order-confirmation :is(.order-confirmation-title-payment, .order-confirmation-details) { display: flex; }
body#order-confirmation :is(.order-confirmation-title-payment, .order-confirmation-details) > * { width: 100%; }
body#order-confirmation :is(.order-confirmation-title-payment, .order-confirmation-details) {
  flex-direction: column;
  gap: 18px;
}
body#order-confirmation .order-confirmation-title-payment,
body#order-confirmation .order-confirmation-details > #order-details {
  color: #2b3824;
  font-size: 15px;
  line-height: 1.6;
}
/* Carte de gauche : le titre, l'e-mail envoye et les consignes de paiement. */
body#order-confirmation .order-confirmation-title-payment > :first-child { margin-top: 0; }
body#order-confirmation .order-confirmation-title-payment .page-title {
  margin: 0;
  padding: 26px 24px;
  background: #e9e4db;
  border-radius: 6px;
  color: #2b3824;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.3;
  text-align: center;
}
body#order-confirmation .order-confirmation-title-payment .page-title .fa-check {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-right: 10px;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: #fff;
  background: #727d6c;
  border-radius: 50%;
  font-size: 16px;
}
body#order-confirmation .mail-sent-info {
  margin: 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgb(43 56 36 / 16%);
  border-left: 4px solid #727d6c;
  border-radius: 6px;
  font-size: 15px;
}
body#order-confirmation #content-hook_payment_return {
  padding: 24px;
  background: #fff;
  border: 1px solid rgb(43 56 36 / 16%);
  border-radius: 6px;
}
body#order-confirmation #content-hook_payment_return :is(.row, .col-md-12) { margin: 0; padding: 0; }
body#order-confirmation #content-hook_payment_return p { margin: 0 0 12px; font-size: 15px; }
body#order-confirmation #content-hook_payment_return p:last-child { margin-bottom: 0; }
/* Consignes (montant, ordre, adresse, reference) : un encadre ligne par ligne. */
body#order-confirmation #content-hook_payment_return ul {
  margin: 4px 0 16px;
  padding: 4px 18px;
  list-style: none;
  background: #f4f1ec;
  border-radius: 6px;
}
body#order-confirmation #content-hook_payment_return li {
  padding: 10px 0;
  border-bottom: 1px solid rgb(43 56 36 / 12%);
  font-size: 15px;
}
body#order-confirmation #content-hook_payment_return li:last-child { border-bottom: 0; }
body#order-confirmation #content-hook_payment_return strong { font-weight: 600; }
/* Colonne de droite : deux cartes, details puis articles et totaux. */
body#order-confirmation .order-confirmation-details > :is(#order-details, #order-items) {
  padding: 24px;
  background: #fff;
  border: 1px solid rgb(43 56 36 / 16%);
  border-radius: 6px;
}
body#order-confirmation .order-confirmation-details .card-title {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgb(43 56 36 / 16%);
  color: #2b3824;
  font-family: var(--pb-font-institutional, "PB Copperplate"), serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
}
body#order-confirmation #order-details ul { margin: 0; padding: 0; list-style: none; }
body#order-confirmation #order-details li { padding: 5px 0; font-size: 15px; }
body#order-confirmation #order-details li em { display: block; margin-top: 2px; font-size: 13px; }
body#order-confirmation #order-items { color: #2b3824; font-size: 15px; }
body#order-confirmation #order-items .order-line {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgb(43 56 36 / 12%);
  font-size: 14px;
  line-height: 1.45;
}
body#order-confirmation #order-items .order-line .image img {
  border: 1px solid rgb(43 56 36 / 12%);
  border-radius: 4px;
}
body#order-confirmation #order-items .order-line .bold { font-weight: 600; }
/* Ligne article : vignette | nom (prend la place) | prix x qte = total, au lieu des colonnes 2/4/6. */
body#order-confirmation #order-items .order-line { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 14px; }
body#order-confirmation #order-items .order-line > div { width: auto; max-width: none; flex: none; padding: 0; }
body#order-confirmation #order-items .order-line .qty > .row { display: flex; flex-wrap: nowrap; gap: 12px; margin: 0; white-space: nowrap; }
body#order-confirmation #order-items .order-line .qty > .row > div { width: auto; max-width: none; flex: none; padding: 0; }
@media (max-width: 575px) {
  body#order-confirmation #order-items .order-line { grid-template-columns: 56px minmax(0, 1fr); }
  body#order-confirmation #order-items .order-line .qty { grid-column: 2; }
}
body#order-confirmation #order-items hr { display: none; }
body#order-confirmation #order-items table { width: 100%; margin-top: 12px; font-size: 15px; }
body#order-confirmation #order-items td { padding: 5px 0; }
body#order-confirmation #order-items td:last-child { text-align: right; }
body#order-confirmation #order-items tr.totals td {
  padding-top: 12px;
  border-top: 1px solid rgb(43 56 36 / 20%);
  font-size: 18px;
  font-weight: 600;
}
body#order-confirmation #order-items tr.totals .text-uppercase { font-weight: 600; }
@media (max-width: 767px) {
  body#order-confirmation :is(#content-hook_payment_return, #order-details, #order-items) { padding: 18px; }
}
