/* ═══════════════════════════════════════════════════
 * RNF Front Fixes — corrections UI globales
 * Version nettoyée : wishlist + panier RAF complet
 * ═══════════════════════════════════════════════════ */


/* ======================================================
   VARIABLES RAF — uniquement panier
   ====================================================== */

body.rnf-cart-raf {
  --rnf-bordeaux: #a14b68;
  --rnf-bordeaux-dark: #2b2b2b;
  --rnf-rose-soft: #f7e8ed;
  --rnf-rose-light: #fff7fa;
  --rnf-border: #ecdce2;
  --rnf-border-strong: #eab0c0;
  --rnf-muted: #6f6a6c;
  --rnf-card: #ffffff;
  --rnf-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  --rnf-shadow-strong: 0 10px 28px rgba(0, 0, 0, 0.06);
}


/* ======================================================
   1) WISHLIST YITH — fiche produit
   Objectif : bouton coeur à côté de Ajouter au panier
   ====================================================== */

.single-product .yith-wcwl-add-to-wishlist,
.single-product div.yith-wcwl-add-to-wishlist {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
  display: inline-flex !important;
  vertical-align: middle;
}

.single-product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px !important;
}

.single-product form.cart .quantity {
  flex-shrink: 0;
}

.single-product form.cart button.single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 200px;
}

.single-product form.cart .yith-wcwl-add-to-wishlist {
  order: 99;
  flex-shrink: 0;
}

.single-product .yith-wcwl-add-to-wishlist a.add_to_wishlist,
.single-product .yith-wcwl-add-to-wishlist a.delete_item,
.single-product .yith-wcwl-add-to-wishlist a.feedback {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0 !important;
  border: 1.5px solid #eab0c0 !important;
  border-radius: 50%;
  background: #fff;
  color: #a14b68 !important;
  text-decoration: none;
  font-size: 0;
  line-height: 0;
  transition: background 0.2s, transform 0.1s, border-color 0.2s, color 0.2s;
}

.single-product .yith-wcwl-add-to-wishlist a:hover {
  background: #fff7fa !important;
  border-color: #a14b68 !important;
  transform: translateY(-1px);
}

.single-product .yith-wcwl-add-to-wishlist a > i,
.single-product .yith-wcwl-add-to-wishlist a > span,
.single-product .yith-wcwl-add-to-wishlist a > svg {
  color: inherit !important;
  font-size: 20px !important;
  line-height: 1 !important;
}

.single-product .yith-wcwl-add-to-wishlist .yith-wcwl-add-button > a span:not(.yith-wcwl-icon),
.single-product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistaddedbrowse > a span:not(.yith-wcwl-icon),
.single-product .yith-wcwl-add-to-wishlist .yith-wcwl-wishlistexistsbrowse > a span:not(.yith-wcwl-icon) {
  display: none !important;
}

.single-product .yith-wcwl-wishlistexistsbrowse a,
.single-product .yith-wcwl-wishlistaddedbrowse a {
  background: #a14b68 !important;
  border-color: #a14b68 !important;
  color: #fff !important;
}

.single-product .yith-wcwl-add-to-wishlist .feedback {
  display: none !important;
}

@media (max-width: 600px) {
  .single-product form.cart .yith-wcwl-add-to-wishlist {
    order: 99;
    flex: 0 0 auto;
  }
}


/* ======================================================
   2) CART RAF — layout global propre
   Dépendance PHP obligatoire : body.rnf-cart-raf sur is_cart()
   ====================================================== */

body.rnf-cart-raf .woocommerce-cart-form {
  margin-top: 16px;
}

@media (min-width: 921px) {

  body.rnf-cart-raf.woocommerce-cart .woocommerce {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(330px, 30vw, 420px) !important;
    column-gap: 32px !important;
    row-gap: 18px !important;
    align-items: flex-start !important;
  }

  body.rnf-cart-raf.woocommerce-cart .woocommerce > * {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  body.rnf-cart-raf.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper,
  body.rnf-cart-raf.woocommerce-cart .woocommerce > .woocommerce-message,
  body.rnf-cart-raf.woocommerce-cart .woocommerce > .woocommerce-info,
  body.rnf-cart-raf.woocommerce-cart .woocommerce > .woocommerce-error {
    grid-column: 1 / -1 !important;
  }

  body.rnf-cart-raf.woocommerce-cart .woocommerce > #ast-cart-wrapper {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.rnf-cart-raf.woocommerce-cart .woocommerce > .cart-collaterals {
    grid-column: 2 !important;
    grid-row: 1 / span 80 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    position: sticky !important;
    top: 100px !important;
    align-self: flex-start !important;
  }

  body.rnf-cart-raf #ast-cart-wrapper {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) clamp(330px, 30vw, 420px) !important;
    column-gap: 32px !important;
    row-gap: 18px !important;
    align-items: flex-start !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.rnf-cart-raf #ast-cart-wrapper > * {
    grid-column: 1 !important;
    min-width: 0 !important;
  }

  body.rnf-cart-raf #ast-cart-wrapper > .ast-cart-non-sticky {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.rnf-cart-raf #ast-cart-wrapper > .cart-collaterals {
    grid-column: 2 !important;
    grid-row: 1 / span 80 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    float: none !important;
    position: sticky !important;
    top: 100px !important;
    align-self: flex-start !important;
  }

  body.rnf-cart-raf .cart-collaterals::before,
  body.rnf-cart-raf .cart-collaterals::after {
    content: none !important;
    display: none !important;
  }

  body.rnf-cart-raf .cart-collaterals .cart_totals {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
  }
}

@media (max-width: 920px) {

  body.rnf-cart-raf.woocommerce-cart .woocommerce,
  body.rnf-cart-raf #ast-cart-wrapper {
    display: block !important;
  }

  body.rnf-cart-raf .cart-collaterals {
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    margin-top: 24px !important;
  }
}


/* ======================================================
   3) RESET TABLE WOOCOMMERCE / ASTRA
   ====================================================== */

body.rnf-cart-raf table.shop_table,
body.rnf-cart-raf table.shop_table thead,
body.rnf-cart-raf table.shop_table tbody,
body.rnf-cart-raf table.shop_table tr,
body.rnf-cart-raf table.shop_table td {
  border: 0 !important;
  background: transparent !important;
}

body.rnf-cart-raf table.shop_table thead {
  display: none !important;
}


/* ======================================================
   4) CART ITEM — carte produit desktop
   ====================================================== */

body.rnf-cart-raf tr.cart_item {
  display: grid !important;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 16px;
  row-gap: 8px;
  min-width: 0 !important;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--rnf-border);
  border-radius: 16px;
  background: var(--rnf-card);
  box-shadow: var(--rnf-shadow);
}

body.rnf-cart-raf tr.cart_item > td {
  position: static !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.rnf-cart-raf td.product-thumbnail {
  grid-column: 1;
  grid-row: 1 / span 2;
}

body.rnf-cart-raf td.product-thumbnail img {
  display: block;
  width: 96px;
  height: auto;
  border: 1px solid #f3e8ec;
  border-radius: 14px;
}

body.rnf-cart-raf td.product-name {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

body.rnf-cart-raf td.product-name a {
  color: var(--rnf-bordeaux-dark);
  font-weight: 700;
  text-decoration: none;
}

body.rnf-cart-raf td.product-name a:hover {
  text-decoration: underline;
}

body.rnf-cart-raf .rnf-cart-actions-inline {
  margin-top: 6px;
}

body.rnf-cart-raf .rnf-cart-actions-inline a {
  color: var(--rnf-bordeaux);
  font-size: 13px;
  text-decoration: none;
}

body.rnf-cart-raf .rnf-cart-actions-inline a:hover {
  text-decoration: underline;
}

body.rnf-cart-raf td.product-price {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: end;
  color: var(--rnf-bordeaux);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

body.rnf-cart-raf td.product-subtotal {
  display: none !important;
}

body.rnf-cart-raf td.product-quantity {
  grid-column: 2;
  grid-row: 2;
}

body.rnf-cart-raf td.product-quantity .quantity {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1px solid var(--rnf-border);
  border-radius: 999px;
  background: #fff;
}

body.rnf-cart-raf td.product-quantity .quantity a.minus,
body.rnf-cart-raf td.product-quantity .quantity a.plus {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rnf-border);
  border-radius: 999px;
  background: var(--rnf-rose-soft);
  color: var(--rnf-bordeaux);
  font-size: 16px;
  line-height: 1;
  text-decoration: none !important;
  user-select: none;
}

body.rnf-cart-raf td.product-quantity .quantity a.minus:hover,
body.rnf-cart-raf td.product-quantity .quantity a.plus:hover {
  background: #fdf7fa;
}

body.rnf-cart-raf td.product-quantity .quantity input.qty {
  width: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  text-align: center !important;
  font-weight: 700;
}

body.rnf-cart-raf td.product-quantity .quantity .screen-reader-text {
  position: absolute !important;
  left: -9999px !important;
}

body.rnf-cart-raf td.product-remove {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

body.rnf-cart-raf td.product-remove a.remove {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--rnf-border);
  border-radius: 999px;
  background: var(--rnf-rose-soft);
  color: var(--rnf-bordeaux) !important;
  opacity: 0.7;
}

body.rnf-cart-raf td.product-remove a.remove:hover {
  opacity: 1;
}


/* ======================================================
   5) CART ITEM — mobile
   ====================================================== */

@media (max-width: 767px) {

  body.rnf-cart-raf .shop_table_responsive tr.cart_item td::before {
    display: none !important;
    content: none !important;
  }

  body.rnf-cart-raf tr.cart_item {
    position: relative !important;
    grid-template-columns: 86px minmax(0, 1fr) !important;
    grid-template-rows: auto auto auto !important;
    gap: 8px 12px !important;
    padding: 12px 44px 14px 12px !important;
  }

  body.rnf-cart-raf td.product-remove {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    z-index: 2;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.rnf-cart-raf td.product-remove a.remove {
    width: 30px !important;
    height: 30px !important;
  }

  body.rnf-cart-raf td.product-thumbnail {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
  }

  body.rnf-cart-raf td.product-thumbnail img {
    width: 76px !important;
  }

  body.rnf-cart-raf td.product-name {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
  }

  body.rnf-cart-raf td.product-name .ast-product-image,
  body.rnf-cart-raf td.product-name .ast-product-name {
    display: block !important;
    text-align: left !important;
  }

  body.rnf-cart-raf td.product-name a {
    display: block !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  body.rnf-cart-raf .rnf-cart-actions-inline {
    margin-top: 6px !important;
  }

  body.rnf-cart-raf td.product-price {
    grid-column: 2 !important;
    grid-row: 2 !important;
    justify-self: start !important;
    margin: 0 !important;
    text-align: left !important;
    font-size: 15px !important;
  }

  body.rnf-cart-raf td.product-quantity {
    grid-column: 2 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    margin: 0 !important;
  }
}


/* ======================================================
   6) LIVRAISON ESTIMÉE
   ====================================================== */

body.rnf-cart-raf .rnf-delivery {
  display: flex;
  gap: 12px;
  padding: 14px;
  margin: 16px 0;
  border: 1px solid var(--rnf-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--rnf-shadow);
}

body.rnf-cart-raf .rnf-delivery__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--rnf-rose-soft);
  color: var(--rnf-bordeaux);
}

body.rnf-cart-raf .rnf-delivery__title {
  margin-bottom: 2px;
  color: var(--rnf-bordeaux-dark);
  font-weight: 800;
}

body.rnf-cart-raf .rnf-delivery__sub {
  color: var(--rnf-muted);
  font-size: 13px;
}


/* ======================================================
   7) MIS DE CÔTÉ
   ====================================================== */

body.rnf-cart-raf .rnf-saved {
  margin-top: 18px;
}

body.rnf-cart-raf .rnf-saved__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}

body.rnf-cart-raf .rnf-saved__title {
  margin: 0;
  color: var(--rnf-bordeaux-dark);
  font-size: 18px;
  font-weight: 800;
}

body.rnf-cart-raf .rnf-saved__clear {
  color: var(--rnf-bordeaux);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

body.rnf-cart-raf .rnf-saved__clear:hover {
  text-decoration: underline;
}

body.rnf-cart-raf .rnf-saved__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 768px) {
  body.rnf-cart-raf .rnf-saved__list {
    grid-template-columns: 1fr 1fr;
  }
}

body.rnf-cart-raf .rnf-saved__item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  column-gap: 16px;
  row-gap: 8px;
  padding: 14px;
  border: 1px solid var(--rnf-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--rnf-shadow);
}

body.rnf-cart-raf .rnf-saved__media img,
body.rnf-cart-raf .rnf-saved__img {
  display: block;
  width: 96px;
  height: auto;
  border: 1px solid #f3e8ec;
  border-radius: 14px;
}

body.rnf-cart-raf .rnf-saved__name {
  margin: 0 0 6px;
  color: var(--rnf-bordeaux-dark);
  font-weight: 800;
}

body.rnf-cart-raf .rnf-saved__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--rnf-muted);
  font-size: 13px;
}

body.rnf-cart-raf .rnf-saved__move {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid var(--rnf-border);
  border-radius: 12px;
  background: var(--rnf-rose-soft);
  color: var(--rnf-bordeaux);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

body.rnf-cart-raf .rnf-saved__move:hover {
  background: #fdf7fa;
}


/* ======================================================
   8) WOO NOTICES
   ====================================================== */

body.rnf-cart-raf .woocommerce-notices-wrapper {
  margin: 12px 0 14px;
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-message,
body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-info,
body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-error {
  position: relative;
  padding: 12px 14px 12px 44px !important;
  margin: 0 0 10px !important;
  border: 1px solid var(--rnf-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--rnf-shadow);
  color: var(--rnf-bordeaux-dark) !important;
  font-weight: 700;
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-message::before,
body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-info::before,
body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-error::before {
  position: absolute;
  left: 14px;
  top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--rnf-border);
  border-radius: 999px;
  background: var(--rnf-rose-soft);
  color: var(--rnf-bordeaux);
  font-size: 14px;
  line-height: 1;
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-message::before {
  content: "♥";
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-info::before {
  content: "i";
  font-weight: 900;
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-error {
  border-color: #f1c9d6 !important;
  background: #fff7fa !important;
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-error::before {
  content: "!";
  border-color: #f1c9d6;
  font-weight: 900;
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-message a,
body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-info a {
  color: var(--rnf-bordeaux);
  font-weight: 800;
  text-decoration: none;
}

body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-message a:hover,
body.rnf-cart-raf .woocommerce-notices-wrapper .woocommerce-info a:hover {
  text-decoration: underline;
}


/* ======================================================
   9) MINI HEADER MOBILE
   ====================================================== */

@media (max-width: 767px) {

  body.rnf-cart-raf header.rf-mini-checkout-header {
    border-bottom: 1px solid #f3e8ec !important;
    background: #fff !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
  }

  body.rnf-cart-raf .rf-mini-checkout-header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px 12px !important;
  }

  body.rnf-cart-raf .rf-mch-center {
    order: 1;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  body.rnf-cart-raf a.rf-mch-logo img {
    display: block;
    width: auto !important;
    max-height: 34px !important;
  }

  body.rnf-cart-raf .rf-mch-right {
    order: 2;
    width: 100%;
  }

  body.rnf-cart-raf ul.rf-mch-reassurance {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 0 0 2px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    list-style: none !important;
    -webkit-overflow-scrolling: touch;
  }

  body.rnf-cart-raf ul.rf-mch-reassurance::-webkit-scrollbar {
    height: 0;
  }

  body.rnf-cart-raf ul.rf-mch-reassurance li {
    flex: 0 0 auto;
    padding: 9px 10px !important;
    border: 1px solid var(--rnf-border) !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
    color: var(--rnf-muted) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
  }

  body.rnf-cart-raf .rf-mch-left {
    order: 3;
    display: flex;
    justify-content: center;
    width: 100%;
  }

  body.rnf-cart-raf a.rf-mch-back {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 4px 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--rnf-bordeaux) !important;
    font-size: 0 !important;
    font-weight: 800 !important;
    text-decoration: none !important;
  }

  body.rnf-cart-raf a.rf-mch-back::before {
    content: "← Retour";
    font-size: 13px;
    font-weight: 800;
  }
}


/* ======================================================
   10) UPSELLS / CADEAUX — rails mobile
   ====================================================== */

@media (max-width: 767px) {

  body.rnf-cart-raf .rnf-fsp-upsell-items,
  body.rnf-cart-raf .rf-fg-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    padding: 6px 2px 10px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-items::-webkit-scrollbar,
  body.rnf-cart-raf .rf-fg-grid::-webkit-scrollbar {
    height: 0;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-item,
  body.rnf-cart-raf .rf-fg-item {
    flex: 0 0 74% !important;
    max-width: 320px;
    padding: 12px;
    border: 1px solid var(--rnf-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--rnf-shadow);
    scroll-snap-align: start;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-thumb,
  body.rnf-cart-raf .rf-fg-thumb {
    display: block;
    overflow: hidden;
    border: 1px solid #f3e8ec;
    border-radius: 14px;
    background: #fff;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-thumb img,
  body.rnf-cart-raf .rf-fg-thumb img {
    display: block;
    width: 100%;
    height: auto;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-name,
  body.rnf-cart-raf .rf-fg-title {
    margin-top: 10px;
    color: var(--rnf-bordeaux-dark);
    font-weight: 800;
    line-height: 1.25;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-name a {
    color: var(--rnf-bordeaux-dark);
    text-decoration: none;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-price,
  body.rnf-cart-raf .rf-fg-free {
    margin-top: 6px;
    color: var(--rnf-bordeaux);
    font-weight: 900;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-price del,
  body.rnf-cart-raf .rf-fg-old {
    margin-right: 6px;
    color: var(--rnf-muted);
    opacity: 0.8;
    text-decoration: line-through;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-btn,
  body.rnf-cart-raf .rf-fg-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    margin-top: 10px;
    border: 1px solid var(--rnf-border);
    border-radius: 14px;
    background: var(--rnf-rose-soft);
    color: var(--rnf-bordeaux);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
  }

  body.rnf-cart-raf .rnf-fsp-upsell-btn:hover,
  body.rnf-cart-raf .rf-fg-add:hover {
    background: #fdf7fa;
  }

  body.rnf-cart-raf .rf-fg-info {
    margin-top: 10px;
  }

  body.rnf-cart-raf .rf-fg-price {
    margin-bottom: 10px;
    font-size: 14px;
  }
}


/* ======================================================
   11) EXPÉDITION — cart totals
   ====================================================== */

body.rnf-cart-raf .cart_totals {
  min-width: 0 !important;
}

body.rnf-cart-raf .cart_totals table,
body.rnf-cart-raf .cart_totals td,
body.rnf-cart-raf .cart_totals th {
  min-width: 0 !important;
}

body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals {
  display: block !important;
}

body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals > th,
body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals > td {
  display: block !important;
  width: 100% !important;
}

body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals > th {
  padding: 0 0 8px !important;
  margin: 0 !important;
  border: 0 !important;
  color: var(--rnf-bordeaux);
  font-size: 16px;
  font-weight: 900;
}

body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals > td {
  padding: 0 !important;
  border: 0 !important;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 10px 0 12px !important;
  list-style: none !important;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li {
  position: relative;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 12px 12px 12px 56px !important;
  border: 1px solid var(--rnf-border) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: var(--rnf-shadow);
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li:hover {
  border-color: var(--rnf-border-strong) !important;
  background: #fdf7fa !important;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li input.shipping_method {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0 !important;
  padding-left: 0 !important;
  margin: 0 !important;
  color: var(--rnf-bordeaux-dark);
  font-weight: 800;
  line-height: 1.2;
  text-indent: 0 !important;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: visible !important;
  cursor: pointer;
  transform: none !important;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label .amount,
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label .woocommerce-Price-amount {
  color: var(--rnf-bordeaux);
  font-weight: 900;
  white-space: nowrap !important;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li::before {
  content: "";
  position: absolute;
  left: 14px !important;
  top: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  border: 1px solid var(--rnf-border);
  border-radius: 999px !important;
  background-color: var(--rnf-rose-soft);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%23a14b68'%3E%3Cpath%20d='M3%207a2%202%200%200%201%202-2h10v9h-1.1a2.5%202.5%200%200%200-4.8%200H8.9a2.5%202.5%200%200%200-4.8%200H3V7Zm14%202h3.3l1.7%202.3V14h-1.1a2.5%202.5%200%200%200-4.8%200H15V9h2ZM7%2015.5a1.5%201.5%200%201%201%200%203%201.5%201.5%200%200%201%200-3Zm12%200a1.5%201.5%200%201%201%200%203%201.5%201.5%200%200%201%200-3Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  line-height: 1 !important;
  transform: translateY(-50%) !important;
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 30px;
  height: 6px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(161, 75, 104, 0.22), rgba(161, 75, 104, 0.22)) center / 100% 2px no-repeat,
    repeating-linear-gradient(
      to right,
      rgba(161, 75, 104, 0.22) 0,
      rgba(161, 75, 104, 0.22) 4px,
      rgba(161, 75, 104, 0) 4px,
      rgba(161, 75, 104, 0) 8px
    ) center / 100% 2px no-repeat;
  transform: translateY(calc(-50% + 14px));
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li.rnf-ship-selected {
  border-color: var(--rnf-border-strong) !important;
  background: var(--rnf-rose-light) !important;
  box-shadow: var(--rnf-shadow-strong);
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li.rnf-ship-selected::before {
  border-color: var(--rnf-border-strong);
  background-color: var(--rnf-rose-light);
  transform: translateY(-50%) translateX(6px) !important;
  animation: rf-truck-roll-bounce 0.55s ease-in-out infinite;
}

body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li.rnf-ship-selected::after {
  opacity: 1;
  animation: rf-road-move 0.45s linear infinite;
}

@keyframes rf-road-move {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 14px 0;
  }
}

@keyframes rf-truck-roll-bounce {
  0%,
  100% {
    transform: translateY(-50%) translateX(6px);
  }
  50% {
    transform: translateY(calc(-50% - 1px)) translateX(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li::before,
  body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li::after {
    transition: none !important;
    animation: none !important;
  }
}

body.rnf-cart-raf .woocommerce-shipping-destination {
  margin: 10px 0 6px !important;
  color: var(--rnf-muted) !important;
  font-size: 13px;
}

body.rnf-cart-raf .woocommerce-shipping-calculator {
  margin-top: 8px;
}

body.rnf-cart-raf .woocommerce-shipping-calculator .shipping-calculator-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rnf-bordeaux);
  font-weight: 800;
  text-decoration: none;
}

body.rnf-cart-raf .woocommerce-shipping-calculator .shipping-calculator-button:hover {
  text-decoration: underline;
}

body.rnf-cart-raf .woocommerce-shipping-calculator-form {
  padding: 12px;
  margin-top: 10px;
  border: 1px solid var(--rnf-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--rnf-shadow);
}

body.rnf-cart-raf .woocommerce-shipping-calculator-form .form-row {
  margin-bottom: 10px;
}

body.rnf-cart-raf .woocommerce-shipping-calculator-form label {
  color: var(--rnf-bordeaux-dark);
  font-size: 13px;
  font-weight: 800;
}

body.rnf-cart-raf .woocommerce-shipping-calculator-form .input-text,
body.rnf-cart-raf .woocommerce-shipping-calculator-form select {
  padding: 10px 12px !important;
  border: 1px solid var(--rnf-border) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

body.rnf-cart-raf .woocommerce-shipping-calculator-form button.button {
  border: 1px solid var(--rnf-border) !important;
  border-radius: 14px !important;
  background: var(--rnf-rose-soft) !important;
  color: var(--rnf-bordeaux) !important;
  font-weight: 900 !important;
}

@media (max-width: 767px) {

  body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    row-gap: 6px;
  }

  body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label .amount,
  body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label .woocommerce-Price-amount {
    justify-self: start;
    font-size: 14px;
  }
}


/* ======================================================
   12) FIX MOBILE OVERFLOW
   ====================================================== */

@media (max-width: 767px) {

  body.rnf-cart-raf {
    overflow-x: hidden !important;
  }

  body.rnf-cart-raf #page,
  body.rnf-cart-raf .site,
  body.rnf-cart-raf .site-content,
  body.rnf-cart-raf .content-area,
  body.rnf-cart-raf .ast-container,
  body.rnf-cart-raf .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  body.rnf-cart-raf table.shop_table,
  body.rnf-cart-raf .cart_totals table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  body.rnf-cart-raf table.shop_table td,
  body.rnf-cart-raf table.shop_table th,
  body.rnf-cart-raf .cart_totals td,
  body.rnf-cart-raf .cart_totals th {
    min-width: 0 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  body.rnf-cart-raf img,
  body.rnf-cart-raf svg,
  body.rnf-cart-raf iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  body.rnf-cart-raf td.product-name,
  body.rnf-cart-raf td.product-price,
  body.rnf-cart-raf td.product-quantity,
  body.rnf-cart-raf .woocommerce-Price-amount,
  body.rnf-cart-raf #shipping_method label {
    max-width: 100% !important;
    min-width: 0 !important;
  }
}


/* ======================================================
   13) EMPTY CART — panier vide
   ====================================================== */

.rf-empty-cart-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 980px;
  padding: 28px 16px 36px;
  margin: 0 auto;
  text-align: center;
}

.rf-empty-cart-illu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}

.rf-empty-cart-illu img {
  display: block;
  width: min(170px, 40vw) !important;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(139, 58, 76, 0.12));
}

.rf-empty-cart-bubble {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 2px 0 4px;
}

.rf-empty-cart-title {
  padding: 10px 16px;
  margin: 0;
  border: 1px solid rgba(139, 58, 76, 0.12);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 238, 245, 0.95), rgba(253, 245, 247, 0.92));
  box-shadow: 0 10px 35px rgba(139, 58, 76, 0.08);
  color: var(--bordeaux, #8b3a4c);
  font-family: "Playfair Display", serif;
  font-size: clamp(18px, 2.3vw, 26px);
  line-height: 1.15;
}

.rf-empty-cart-cats {
  width: 100%;
  margin-top: 10px;
}

.rf-empty-cart-cats-title {
  margin: 0 0 14px;
  color: var(--texte, #5a4a4d);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.rfcc-grid {
  --rfcc-cols: 4;
  --rfcc-gap: 26px;
  --rfcc-size: 110px;

  display: grid;
  grid-template-columns: repeat(var(--rfcc-cols), minmax(0, 1fr));
  gap: var(--rfcc-gap);
  align-items: start;
  justify-items: center;
  width: 100%;
  margin: 0 auto;
}

.rfcc-item {
  width: 100%;
  max-width: 220px;
}

.rfcc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none !important;
  outline: none;
}

.rfcc-circle {
  position: relative;
  overflow: hidden;
  width: var(--rfcc-size);
  height: var(--rfcc-size);
  border: 1px solid rgba(139, 58, 76, 0.14);
  border-radius: 999px;
  background: rgba(253, 245, 247, 1);
  box-shadow: 0 10px 28px rgba(139, 58, 76, 0.10);
  transform: translateZ(0);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rfcc-circle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.28s ease, filter 0.28s ease;
}

.rfcc-title {
  max-width: 220px;
  color: var(--bordeaux, #8b3a4c);
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {

  .rfcc-link:hover .rfcc-circle,
  .rfcc-link:focus-visible .rfcc-circle {
    border-color: rgba(139, 58, 76, 0.22);
    box-shadow: 0 16px 40px rgba(139, 58, 76, 0.16);
    transform: translateY(-3px) scale(1.03);
  }

  .rfcc-link:hover .rfcc-circle img,
  .rfcc-link:focus-visible .rfcc-circle img {
    filter: saturate(1.02) contrast(1.02);
    transform: scale(1.08);
  }

  .rfcc-link:hover .rfcc-title {
    color: var(--rose-soutenu, #c96b7e);
  }
}

.rfcc-link:focus-visible {
  outline: none;
}

.rfcc-link:focus-visible .rfcc-circle {
  box-shadow: 0 0 0 3px rgba(201, 107, 126, 0.22), 0 16px 40px rgba(139, 58, 76, 0.16);
}

@media (max-width: 980px) {

  .rf-empty-cart-inner {
    max-width: 860px;
  }

  .rfcc-grid {
    --rfcc-cols: 3;
    --rfcc-size: 102px;
    --rfcc-gap: 22px;
  }
}

@media (max-width: 680px) {

  .rf-empty-cart-inner {
    gap: 12px;
    padding: 22px 14px 30px;
  }

  .rfcc-grid {
    --rfcc-cols: 2;
    --rfcc-size: 96px;
    --rfcc-gap: 18px;
  }

  .rfcc-title {
    font-size: 13px;
  }
}

@media (max-width: 380px) {

  .rfcc-grid {
    --rfcc-size: 90px;
  }
}

/* ======================================================
   PATCH FINAL — Expédition compacte / anti-texte vertical
   À mettre tout en bas du fichier
   ====================================================== */

body.rnf-cart-raf .cart_totals {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Table des totaux : plus compacte */
body.rnf-cart-raf .cart_totals table,
body.rnf-cart-raf .cart_totals tbody,
body.rnf-cart-raf .cart_totals tr,
body.rnf-cart-raf .cart_totals th,
body.rnf-cart-raf .cart_totals td {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Bloc expédition */
body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals {
  display: block !important;
  width: 100% !important;
}

body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals > th,
body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals > td {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Titre Expédition */
body.rnf-cart-raf .cart_totals tr.woocommerce-shipping-totals > th {
  margin: 0 0 10px !important;
  color: #a14b68 !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

/* Liste méthodes de livraison */
body.rnf-cart-raf #shipping_method,
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

/* Carte livraison : moins grosse */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;

  position: relative !important;

  padding: 11px 12px 11px 42px !important;
  border: 1px solid #ecdce2 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.035) !important;
}

/* Icône plus petite */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li::before {
  content: "🚚" !important;

  position: absolute !important;
  left: 12px !important;
  top: 13px !important;
  transform: none !important;

  width: 22px !important;
  height: 22px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 1px solid #ecdce2 !important;
  border-radius: 999px !important;
  background: #f7e8ed !important;

  color: #a14b68 !important;
  font-size: 12px !important;
  line-height: 1 !important;

  animation: none !important;
  mask: none !important;
  -webkit-mask: none !important;
  box-shadow: none !important;
}

/* On supprime la route animée */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li::after {
  content: none !important;
  display: none !important;
}

/* Radio caché proprement */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li input.shipping_method {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Label : surtout pas de texte vertical */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label {
  display: block !important;

  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  color: #2b2b2b !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  text-indent: 0 !important;
  transform: none !important;
}

/* Prix livraison */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label .amount,
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label .woocommerce-Price-amount {
  display: inline !important;
  color: #a14b68 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

/* État sélectionné */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li.rnf-ship-selected,
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li:has(input.shipping_method:checked) {
  border-color: #eab0c0 !important;
  background: #fff7fa !important;
}

/* Texte relais / aide sous la méthode */
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li .rnf-ship-help,
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li small,
body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li p {
  margin-top: 5px !important;
  color: #6f6a6c !important;
  font-size: 12px !important;
  line-height: 1.35 !important;

  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

/* Destination / calculateur */
body.rnf-cart-raf .woocommerce-shipping-destination,
body.rnf-cart-raf .woocommerce-shipping-calculator {
  margin-top: 8px !important;
  color: #6f6a6c !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

/* Mobile */
@media (max-width: 767px) {
  body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li {
    padding: 10px 11px 10px 40px !important;
  }

  body.rnf-cart-raf #shipping_method.woocommerce-shipping-methods > li label {
    font-size: 13px !important;
  }
}