/* Refuge imprévu — Panier V17. Aucun modèle WooCommerce remplacé. */
body.woocommerce-cart {
  background: #f5e8d8;
}
body.woocommerce-cart .ri-cart-page {
  width: min(100%, 1350px);
  margin-inline: auto;
  padding: clamp(24px, 3.5vw, 54px) clamp(15px, 4vw, 45px) 75px;
}
body.woocommerce-cart .ri-cart-page .section {max-width: none;}
body.woocommerce-cart .ri-cart-page .section > .wp-block-heading:first-child,
body.woocommerce-cart .ri-cart-page .section > h1:first-child {display:none;}

/* Un en-tête cohérent avec l'orange, le vert forêt et le papier du Refuge. */
.ri-cart-page .ri-cart-hero {
  display:flex; gap:18px; justify-content:space-between; align-items:center;
  border-bottom:2px solid #e4bd94; padding:0 2px 24px; margin:0 0 20px;
}
.ri-cart-page .ri-cart-eyebrow {
  font-size:12px; font-weight:800; letter-spacing:.1em; color:#bd5c20;
  margin:0 0 6px; text-transform:uppercase;
}
.ri-cart-page .ri-cart-hero h1 {
  font:700 clamp(32px,3.6vw,48px)/1.1 Georgia,serif;
  color:#163e32; margin:0 0 8px;
}
.ri-cart-page .ri-cart-hero-copy > p:last-child {color:#546759; margin:0; font-size:15px;}
.ri-cart-page .ri-cart-back {
  color:#214d3a; border:1.5px solid #c6844c; background:#fff9f1;
  padding:12px 18px; border-radius:999px; text-decoration:none; white-space:nowrap;
  font-size:14px; font-weight:750; transition:background .15s,transform .15s;
}
.ri-cart-page .ri-cart-back:hover {background:#f5d8b9; transform:translateY(-1px);}
.ri-cart-page .ri-cart-shipping-note {
  display:flex; align-items:center; gap:13px; max-width:100%;
  background:#fff9f1; border:1px solid #edcfad; border-left:4px solid #cc752f;
  border-radius:12px; padding:14px 17px; margin:0 0 29px;
}
.ri-cart-page .ri-cart-shipping-note p {margin:0!important; font-size:14px; line-height:1.5; max-width:none; color:#385847;}
.ri-cart-page .ri-cart-shipping-note strong {color:#174334;}
.ri-cart-page .ri-cart-note-icon {font-size:23px; line-height:1; color:#c96526;}

/* WooCommerce Panier moderne (blocs) : grandes zones crème, produits lisibles. */
.ri-cart-page .wp-block-woocommerce-cart,
.ri-cart-page .wc-block-cart {color:#194435; margin-block:0;}
.ri-cart-page .wc-block-cart__main,
.ri-cart-page .wc-block-cart__sidebar {
  min-width:0;
  background:#fffaf3;
  border:1px solid #dfc3a5;
  border-radius:19px;
  box-shadow:0 9px 27px rgba(69,46,25,.055);
  padding:clamp(16px,2.1vw,27px);
}
.ri-cart-page .wc-block-cart__main {flex: 1 1 64%;}
.ri-cart-page .wc-block-cart__sidebar {flex:1 1 31%;}
.ri-cart-page .wc-block-cart .wc-block-cart-items,
.ri-cart-page .wc-block-cart .wc-block-cart-items tr,
.ri-cart-page .wc-block-cart .wc-block-cart-items td,
.ri-cart-page .wc-block-cart .wc-block-cart-items th {
  border-color:#edddcc;
}
.ri-cart-page .wc-block-cart .wc-block-cart-items th {
  font-size:12px; font-weight:800; letter-spacing:.06em; color:#54705c;
  text-transform:uppercase;
}
.ri-cart-page .wc-block-cart .wc-block-cart-items td {padding-block:18px;}
.ri-cart-page .wc-block-cart-item__image img {
  background:white; border:1px solid #e8b98c; border-radius:12px;
  object-fit:contain; padding:5px; max-width:100%;
}
.ri-cart-page .wc-block-cart-item__product .wc-block-components-product-name,
.ri-cart-page .wc-block-cart-item__product a {
  color:#173d31; font-weight:750; font-size:17px; text-decoration:none;
}
.ri-cart-page .wc-block-components-product-details {color:#66796b; font-size:13px;}
.ri-cart-page .wc-block-components-quantity-selector {
  border-color:#dcc2a4; border-radius:9px; background:#fff;
}
.ri-cart-page .wc-block-cart__totals-title,
.ri-cart-page .wc-block-components-totals-item__label {
  color:#174333;
}
.ri-cart-page .wc-block-cart__totals-title {
  font-family:Georgia,serif; font-size:23px!important; font-weight:700;
}
.ri-cart-page .wc-block-components-totals-wrapper {
  border-color:#e7d3be; padding-block:15px;
}
.ri-cart-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.ri-cart-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-size:19px; font-weight:800; color:#174333;
}
.ri-cart-page .wc-block-components-button,
.ri-cart-page .wc-block-cart__submit-button {
  background:#ca6926!important; border:1px solid #ca6926!important;
  border-radius:11px!important; color:white!important; font-weight:800;
  min-height:52px; text-decoration:none; transition:background .15s, transform .15s;
}
.ri-cart-page .wc-block-components-button:hover:not(:disabled),
.ri-cart-page .wc-block-cart__submit-button:hover:not(:disabled) {
  background:#a9541c!important; border-color:#a9541c!important;
}
.ri-cart-page .wc-block-cart__submit-container {background:#fffaf3;}
.ri-cart-page .wc-block-cart__empty-cart__title {font-family:Georgia,serif; color:#173f32;}
.ri-cart-page .wc-block-cart__empty-cart__title:before {display:none;}
.ri-cart-page .wc-block-components-notice-banner {border-radius:12px;}
.ri-cart-page .wc-block-cart__sidebar .wc-block-components-panel__button {color:#194738;}
.ri-cart-page .wc-block-components-totals-shipping__via,
.ri-cart-page .wc-block-components-totals-shipping__change-address__link {color:#b65c22;}

/* Ancien shortcode [woocommerce_cart] : la même esthétique, sans changement PHP. */
.ri-cart-page .woocommerce {color:#194435;}
.ri-cart-page .woocommerce:after {content:''; display:block; clear:both;}
.ri-cart-page .woocommerce-cart-form {
  width:65%; float:left; margin-right:3%; background:#fffaf3;
  border:1px solid #dfc3a5; border-radius:19px; padding:clamp(15px,2vw,26px);
  box-shadow:0 9px 27px rgba(69,46,25,.055);
}
.ri-cart-page .woocommerce table.shop_table {border:0; border-collapse:collapse; width:100%; margin:0;}
.ri-cart-page .woocommerce table.shop_table th {
  color:#58705d; font-size:12px; letter-spacing:.06em;
  text-transform:uppercase; padding:15px 9px; border-bottom:1px solid #edd9c6;
}
.ri-cart-page .woocommerce table.shop_table td {
  padding:19px 9px; border-bottom:1px solid #edddcc; background:transparent;
}
.ri-cart-page .woocommerce table.shop_table td.product-name a {
  font-weight:750; font-size:16px; text-decoration:none; color:#174333;
}
.ri-cart-page .woocommerce table.shop_table img {
  width:83px; min-width:63px; height:auto; border:1px solid #e3b78b;
  border-radius:12px; background:white; padding:4px;
}
.ri-cart-page .woocommerce table.shop_table .product-remove a.remove {
  color:#b95e25!important; font-size:24px; border-radius:99px;
}
.ri-cart-page .woocommerce table.shop_table .product-remove a.remove:hover {background:#b95e25!important;color:white!important;}
.ri-cart-page .woocommerce .quantity input.qty {
  width:72px; min-height:41px; background:white; border:1px solid #dfbfa0;
  border-radius:9px; text-align:center; color:#174333;
}
.ri-cart-page .woocommerce .cart-collaterals {width:32%; float:right;}
.ri-cart-page .woocommerce .cart-collaterals .cart_totals {
  width:100%; float:none; background:#fffaf3; border:1px solid #dfc3a5;
  border-radius:19px; padding:clamp(16px,2vw,27px);
  box-shadow:0 9px 27px rgba(69,46,25,.055);
}
.ri-cart-page .woocommerce .cart-collaterals .cart_totals h2 {font-size:25px; margin:0 0 13px;}
.ri-cart-page .woocommerce .cart-collaterals .cart_totals table tr:last-child td {font-size:19px; font-weight:800;}
.ri-cart-page .woocommerce .actions .coupon {display:flex; flex-wrap:wrap; gap:8px;}
.ri-cart-page .woocommerce .actions input.input-text {
  border:1px solid #d8b993; background:white; border-radius:9px; min-height:42px;
  padding:7px 11px; max-width:210px;
}
.ri-cart-page .woocommerce .actions .button,
.ri-cart-page .woocommerce .wc-proceed-to-checkout a.checkout-button,
.ri-cart-page .woocommerce .return-to-shop a.button {
  border-radius:11px!important; border:1px solid #c46729!important;
  background:#ca6926!important; color:#fff!important; font-weight:800!important;
  padding:13px 21px!important; text-decoration:none; line-height:1.45;
}
.ri-cart-page .woocommerce .actions .button:hover,
.ri-cart-page .woocommerce .wc-proceed-to-checkout a.checkout-button:hover,
.ri-cart-page .woocommerce .return-to-shop a.button:hover {background:#a9541c!important;}
.ri-cart-page .woocommerce .cart-empty {
  max-width:760px; margin:15px auto; background:#fffaf3;
  border:1px solid #e3c8ac; border-radius:18px; padding:35px;
  text-align:center; font-size:18px;
}
.ri-cart-page .woocommerce .return-to-shop {text-align:center; margin:20px 0;}

@media(max-width:990px){
  .ri-cart-page .woocommerce-cart-form,.ri-cart-page .woocommerce .cart-collaterals {
    width:100%; float:none; margin:0 0 20px;
  }
  .ri-cart-page .wc-block-cart__main,.ri-cart-page .wc-block-cart__sidebar {padding:18px;}
}
@media(max-width:640px){
  .ri-cart-page .ri-cart-hero {align-items:flex-start; flex-direction:column; gap:16px;}
  .ri-cart-page .ri-cart-back {padding:10px 15px;}
  .ri-cart-page .ri-cart-shipping-note {padding:12px; margin-bottom:20px; align-items:flex-start;}
  .ri-cart-page .ri-cart-hero h1 {font-size:34px;}
  .ri-cart-page .wc-block-cart__main,.ri-cart-page .wc-block-cart__sidebar {padding:13px;border-radius:13px;}
  .ri-cart-page .woocommerce-cart-form,.ri-cart-page .woocommerce .cart-collaterals .cart_totals {padding:13px;border-radius:13px;}
  .ri-cart-page .woocommerce .actions input.input-text {max-width:100%;}
}
