/* Fidélité Bandeau — page Panier à la charte de la page d'accueil (complète boutique.css). */

/* Titre du thème remplacé par l'en-tête de section */
body.fbq-panier #site-content .single-head,
body.fbq-panier #site-content #comments{display:none!important}
body.fbq-panier #site-content .single-entry-summary,
body.fbq-panier #site-content .main-content-page{margin:0!important;padding:0!important}

/* Mise en page : lignes à gauche, récapitulatif à droite */
body.fbq-panier #site-content .woocommerce{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:0 2rem;align-items:start}
body.fbq-panier #site-content .woocommerce > :is(.fbq-head,.woocommerce-notices-wrapper,.wc-empty-cart-message,.return-to-shop){grid-column:1 / -1}
body.fbq-panier #site-content .woocommerce > .woocommerce-notices-wrapper:empty{display:none}
body.fbq-panier #site-content .woocommerce > .woocommerce-notices-wrapper{margin-bottom:1.5rem}
body.fbq-panier #site-content form.woocommerce-cart-form{grid-column:1;margin:0}
body.fbq-panier #site-content .cart-collaterals{grid-column:2;position:sticky;top:96px;width:auto!important;margin:0!important}
body.fbq-panier #site-content .cart-collaterals::before,body.fbq-panier #site-content .cart-collaterals::after{display:none}

/* Notices : sous l'en-tête, en cartes */
body.fbq-panier #site-content ul.woocommerce-error{list-style:none;margin:0 0 .75rem!important}
body.fbq-panier #site-content ul.woocommerce-error li{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;width:100%}
body.fbq-panier #site-content ul.woocommerce-error{border-color:hsl(4 71% 41% / .35)!important;background:hsl(4 71% 41% / .05)!important}
body.fbq-panier #site-content .woocommerce-notices-wrapper :is(.woocommerce-message,.woocommerce-error,.woocommerce-info){margin:0 0 .75rem!important}
body.fbq-panier #site-content .woocommerce-notices-wrapper .button{order:2;margin-left:auto!important;border-radius:999px!important;background:var(--fbq-ink)!important;color:#fff!important;padding:.7rem 1.1rem!important;font:600 14px/1 var(--fbq-body)!important;border:0!important;text-transform:none!important}

/* ---------- Lignes du panier : une carte par formule ---------- */
body.fbq-panier #site-content table.shop_table.cart{display:block;border:0!important;margin:0!important;background:transparent!important;border-collapse:separate}
body.fbq-panier #site-content table.shop_table.cart thead{display:none}
body.fbq-panier #site-content table.shop_table.cart tbody{display:flex;flex-direction:column;gap:1rem}
body.fbq-panier #site-content table.shop_table.cart tr.cart_item{display:grid;grid-template-columns:84px minmax(0,1fr) auto 36px;grid-template-areas:"img nom total suppr";align-items:center;gap:1.25rem;padding:1.25rem 1.5rem;background:var(--fbq-card);border:1px solid var(--fbq-line);border-radius:1.75rem}
body.fbq-panier #site-content table.shop_table.cart tr.cart_item td{display:block;padding:0!important;border:0!important;background:transparent!important;text-align:left!important}
body.fbq-panier #site-content table.shop_table.cart tr.cart_item td::before{display:none!important}
body.fbq-panier #site-content table.shop_table.cart td.product-thumbnail{grid-area:img}
body.fbq-panier #site-content table.shop_table.cart td.product-thumbnail img{width:84px!important;height:84px;object-fit:cover;border-radius:1rem;background:var(--fbq-soft);border:1px solid var(--fbq-line);display:block}
body.fbq-panier #site-content table.shop_table.cart td.product-name{grid-area:nom;display:flex!important;flex-direction:column;gap:.3rem}
body.fbq-panier #site-content table.shop_table.cart td.product-name a{font:700 20px/1.2 var(--fbq-display)!important;letter-spacing:-.01em;color:var(--fbq-ink)!important;text-decoration:none!important}
body.fbq-panier #site-content table.shop_table.cart td.product-name a:hover{color:var(--fbq-primary)!important}
body.fbq-panier #site-content .fbq-cart-sub{display:block;font:500 13.5px/1.4 var(--fbq-body);color:var(--fbq-muted)}
body.fbq-panier #site-content table.shop_table.cart td.product-name dl.variation{display:none}
body.fbq-panier #site-content table.shop_table.cart :is(td.product-price,td.product-quantity){display:none!important}
body.fbq-panier #site-content table.shop_table.cart td.product-subtotal{grid-area:total;font:700 24px/1 var(--fbq-display);letter-spacing:-.02em;color:var(--fbq-ink);white-space:nowrap}
body.fbq-panier #site-content table.shop_table.cart td.product-remove{grid-area:suppr;justify-self:end}
body.fbq-panier #site-content table.shop_table.cart a.remove{display:grid!important;place-items:center;width:36px!important;height:36px!important;border-radius:999px!important;border:1px solid var(--fbq-line)!important;background:#fff!important;color:var(--fbq-muted)!important;font-size:20px!important;line-height:1!important;text-decoration:none!important;transition:border-color .15s,color .15s}
body.fbq-panier #site-content table.shop_table.cart a.remove:hover{border-color:var(--fbq-primary)!important;color:var(--fbq-primary)!important;background:#fff!important}

/* Ligne d'actions : code promo (mise à jour inutile, quantité fixée à 1) */
body.fbq-panier #site-content table.shop_table.cart tr:not(.cart_item){display:block}
body.fbq-panier #site-content table.shop_table.cart td.actions{display:block;padding:0!important;border:0!important;background:transparent!important}
body.fbq-panier #site-content table.shop_table.cart td.actions > button[name="update_cart"]{display:none!important}
body.fbq-panier #site-content td.actions .coupon{display:flex!important;gap:.6rem;flex-wrap:wrap;align-items:center;float:none!important;width:100%;padding:1rem 1.25rem;border:1px dashed var(--fbq-line);border-radius:1.25rem;background:hsl(30 16% 94% / .5)}
body.fbq-panier #site-content td.actions .coupon input#coupon_code{flex:1 1 200px;width:auto!important;min-width:0;height:46px!important;margin:0!important;padding:0 1.1rem!important;border:1px solid var(--fbq-line)!important;border-radius:999px!important;background:#fff!important;font:500 15px/1 var(--fbq-body)!important;color:var(--fbq-ink)!important;box-shadow:none!important}
body.fbq-panier #site-content td.actions .coupon input#coupon_code:focus{border-color:var(--fbq-ink)!important;outline:none}
body.fbq-panier #site-content td.actions .coupon .button{height:46px;margin:0!important;padding:0 1.25rem!important;border-radius:999px!important;border:1px solid var(--fbq-ink)!important;background:#fff!important;color:var(--fbq-ink)!important;font:600 14.5px/1 var(--fbq-body)!important;text-transform:none!important;letter-spacing:0!important;box-shadow:none!important}
body.fbq-panier #site-content td.actions .coupon .button:hover{background:var(--fbq-ink)!important;color:#fff!important}

/* ---------- Récapitulatif ---------- */
body.fbq-panier #site-content .cart_totals{width:100%!important;float:none!important;padding:1.75rem!important;background:var(--fbq-card);border:1px solid var(--fbq-line);border-radius:1.75rem;box-shadow:0 18px 40px -32px rgba(25,23,20,.45)}
body.fbq-panier #site-content .cart_totals h2{margin:0 0 1rem!important;padding:0!important;font:700 22px/1.2 var(--fbq-display)!important;letter-spacing:-.01em;color:var(--fbq-ink)!important;text-transform:none!important;border:0!important}
body.fbq-panier #site-content .cart_totals table.shop_table{width:100%;margin:0 0 1.25rem!important;border:0!important;border-collapse:collapse;background:transparent!important}
body.fbq-panier #site-content .cart_totals table.shop_table tr{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;border-top:1px solid var(--fbq-line)}
body.fbq-panier #site-content .cart_totals table.shop_table tr:first-child{border-top:0}
body.fbq-panier #site-content .cart_totals table.shop_table :is(th,td){display:block;padding:.75rem 0!important;border:0!important;background:transparent!important;font:500 15px/1.4 var(--fbq-body)!important;color:var(--fbq-muted)!important;text-align:left}
body.fbq-panier #site-content .cart_totals table.shop_table td{text-align:right!important;color:var(--fbq-ink)!important}
body.fbq-panier #site-content .cart_totals table.shop_table td::before{display:none!important}
body.fbq-panier #site-content .cart_totals tr.order-total :is(th,td){padding-top:1rem!important;color:var(--fbq-ink)!important;font-weight:600!important}
body.fbq-panier #site-content .cart_totals tr.order-total td,body.fbq-panier #site-content .cart_totals tr.order-total td strong{font:700 30px/1 var(--fbq-display)!important;letter-spacing:-.02em}
body.fbq-panier #site-content .cart_totals tr.order-total small{display:block;font:400 12.5px/1.3 var(--fbq-body);color:var(--fbq-muted)}
body.fbq-panier #site-content .cart_totals tr.cart-discount td{color:var(--fbq-success)!important}
body.fbq-panier #site-content .cart_totals tr.cart-discount a{color:var(--fbq-muted)!important;font-size:13px}
body.fbq-panier #site-content .wc-proceed-to-checkout{padding:0!important;margin:0}
body.fbq-panier #site-content .wc-proceed-to-checkout a.checkout-button{display:flex!important;align-items:center;justify-content:center;width:100%;min-height:54px;margin:0 0 .75rem!important;padding:0 1.5rem!important;border-radius:999px!important;border:0!important;background:var(--fbq-primary)!important;color:#fff!important;font:600 16.5px/1 var(--fbq-body)!important;text-transform:none!important;letter-spacing:0!important;box-shadow:0 14px 30px -18px hsl(4 71% 41% / .9)!important;transition:filter .15s,transform .15s}
body.fbq-panier #site-content .wc-proceed-to-checkout a.checkout-button:hover{filter:brightness(1.08);transform:translateY(-1px)}
body.fbq-panier #site-content .fbq-cart-trust{margin:.75rem 0 0;text-align:center;font:500 12.5px/1.4 var(--fbq-body);color:var(--fbq-muted)}

/* ---------- Panier vide ---------- */
body.fbq-panier #site-content .wc-empty-cart-message{display:none}
body.fbq-panier #site-content p.return-to-shop{margin:0!important}
body.fbq-panier #site-content p.return-to-shop a.button{display:inline-flex!important;align-items:center;min-height:52px;padding:0 1.75rem!important;border-radius:999px!important;border:0!important;background:var(--fbq-primary)!important;color:#fff!important;font:600 16px/1 var(--fbq-body)!important;text-transform:none!important;text-decoration:none!important;box-shadow:0 14px 30px -18px hsl(4 71% 41% / .9)!important}
body.fbq-panier #site-content p.return-to-shop a.button:hover{filter:brightness(1.08)}

/* ---------- Petits écrans ---------- */
@media (max-width:900px){
	body.fbq-panier #site-content .woocommerce{grid-template-columns:minmax(0,1fr)}
	body.fbq-panier #site-content .cart-collaterals{grid-column:1;position:static;margin-top:1.5rem!important}
}
@media (max-width:600px){
	body.fbq-panier #site-content table.shop_table.cart tr.cart_item{grid-template-columns:64px minmax(0,1fr) 32px;grid-template-areas:"img nom suppr" "img total suppr";gap:.25rem 1rem;padding:1rem 1.1rem}
	body.fbq-panier #site-content table.shop_table.cart td.product-thumbnail img{width:64px!important;height:64px}
	body.fbq-panier #site-content table.shop_table.cart td.product-subtotal{font-size:20px;align-self:start}
	body.fbq-panier #site-content table.shop_table.cart td.product-remove{align-self:start}
	body.fbq-panier #site-content table.shop_table.cart a.remove{width:32px!important;height:32px!important}
	body.fbq-panier #site-content td.actions .coupon{padding:.85rem!important}
	body.fbq-panier #site-content td.actions .coupon :is(input#coupon_code,.button){float:none!important;flex:1 1 100%!important;width:100%!important;max-width:none!important}
}
