/* 1.7.37 — clean card caption and white card-entry panel. */
body:is(.woocommerce-cart,.woocommerce-checkout) :is(.cart_totals,#order_review) tr.woocommerce-shipping-totals.shipping { display:table-row; }
body:is(.woocommerce-cart,.woocommerce-checkout) :is(.cart_totals,#order_review) tr.shipping > th { display:none!important; }
body:is(.woocommerce-cart,.woocommerce-checkout) :is(.cart_totals,#order_review) tr.shipping > td { display:table-cell!important; padding:18px 0!important; width:auto!important; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:clamp(8px,1.6vw,22px); padding:0!important; margin:0!important; width:100%!important; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method::before { content:'Livraison'; grid-column:1/-1; color:#5A3D5C; font:600 13px/1.5 Montserrat,sans-serif; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li { position:relative; display:block!important; box-sizing:border-box; width:auto!important; min-width:0; height:132px!important; margin:0!important; padding:0!important; border:3px solid transparent; border-radius:8px 8px 26px 26px; background:#fff; overflow:hidden; box-shadow:none; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li:has(input:checked) { border-color:#5A3D5C; box-shadow:none; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li > input { position:absolute; opacity:0; width:1px; height:1px; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li > label { display:grid!important; grid-template-rows:26px 62px 1fr; width:100%!important; height:100%; padding:0!important; margin:0!important; white-space:normal!important; text-align:center!important; font:700 12px/1.2 Montserrat,sans-serif; cursor:pointer; color:#5A3D5C; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method .meliss-delivery-title { display:flex; align-items:center; justify-content:center; box-sizing:border-box; width:calc(100% + 6px)!important; height:29px; min-height:0; margin:-3px -3px 0!important; padding:3px!important; color:#fff; background:#5A3D5C; font-size:clamp(9px,1vw,12px); }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method .meliss-delivery-icon { display:block; width:90%; height:44px; align-self:center; justify-self:center; background:center/contain no-repeat; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method .meliss-delivery-icon::before { content:none!important; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method [data-delivery-kind="relay"] .meliss-delivery-icon { background-image:url('../images/purchase/mondial-relay.png'); }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method [data-delivery-kind="home"] .meliss-delivery-icon { background-image:url('../images/purchase/home.png'); }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method [data-delivery-kind="delivery"] .meliss-delivery-icon { background-image:url('../images/purchase/delivery.png'); }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method [data-delivery-kind="pickup"] .meliss-delivery-icon { background-image:url('../images/purchase/delivery.png'); }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method .meliss-delivery-price { font:700 clamp(12px,1.3vw,16px)/1.4 Montserrat,sans-serif; text-transform:uppercase; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method li:focus-within { outline:2px solid #EFB8B8; outline-offset:3px; }
body:is(.woocommerce-cart,.woocommerce-checkout) .meliss-shipping-relay-details { box-sizing:border-box; width:100%; margin-top:14px; padding:14px 16px; border-radius:16px; background:#fff; color:#5A3D5C; font:400 12px/1.6 Montserrat,sans-serif; }
body:is(.woocommerce-cart,.woocommerce-checkout) .meliss-shipping-relay-details * { max-width:100%!important; white-space:normal!important; }
body:is(.woocommerce-cart,.woocommerce-checkout) .meliss-shipping-relay-details[hidden] { display:none!important; }
body.woocommerce-checkout #payment ul.payment_methods { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
body.woocommerce-checkout #payment ul.payment_methods::before,
body.woocommerce-checkout #payment ul.payment_methods::after { content:none!important; }
body.woocommerce-checkout #payment ul.payment_methods > li { display:contents!important; }
body.woocommerce-checkout #payment ul.payment_methods > li::before,
body.woocommerce-checkout #payment ul.payment_methods > li::after { content:none!important; display:none!important; }
/* Explicit cells resist gateway clearfix pseudo-elements and injected content. */
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="card"] > label { grid-area:1 / 1!important; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="paypal"] > label { grid-area:1 / 2!important; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="apple"] > label { grid-area:2 / 1!important; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="google"] > label { grid-area:2 / 2!important; }
body.woocommerce-checkout #payment ul.payment_methods > li > label { position:relative!important; inset:auto!important; display:flex!important; flex-direction:column; align-items:center; justify-content:flex-end; box-sizing:border-box; height:88px; min-height:0; border:2px solid transparent; border-radius:20px; background:#fff; color:#5A3D5C; margin:0!important; padding:8px 6px 12px!important; font:600 11px/1.4 Montserrat,sans-serif; overflow:hidden; cursor:pointer; transition:background-color .18s,border-color .18s; }
body.woocommerce-checkout #payment ul.payment_methods > li > label::after { content:''; display:block; position:absolute; top:20px; left:50%; transform:translateX(-50%); width:64%; max-width:88px; height:28px; background:center/contain no-repeat; pointer-events:none; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="card"] > label::after { background-image:url('../images/purchase/card.png'); }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="paypal"] > label::after { background-image:url('../images/purchase/paypal.png'); }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="apple"] > label::after { background-image:url('../images/purchase/apple-pay.png'); }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="google"] > label::after { background-image:url('../images/purchase/google-pay.png'); }
body.woocommerce-checkout #payment ul.payment_methods > li > label img { display:none!important; }
body.woocommerce-checkout #payment ul.payment_methods > li:has(> input:checked) > label { border-color:#5A3D5C; background:#fff0f3; }
body.woocommerce-checkout #payment ul.payment_methods > li:has(> input:checked) > label::before { content:'✓'; position:absolute; top:6px; right:6px; width:18px; height:18px; border-radius:50%; background:#5A3D5C; color:#fff; text-align:center; font:700 12px/18px Arial,sans-serif; pointer-events:none; }
body.woocommerce-checkout #payment ul.payment_methods > li:has(> input:focus-visible) > label { outline:3px solid #EFB8B8; outline-offset:2px; }
body.woocommerce-checkout #payment ul.payment_methods > li .payment_box { grid-column:1/-1; order:10; width:100%; box-sizing:border-box; margin:0!important; }
body.woocommerce-checkout #payment ul.payment_methods > li .payment_box::before { display:none!important; }
.meliss-wallet-availability { font:400 13px/1.6 Montserrat,sans-serif; color:#5A3D5C; }
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="card"] .payment_box {
  background:#fff!important;
  border-radius:20px;
  padding:20px;
}
body.woocommerce-checkout #payment ul.payment_methods > li[data-payment-kind="card"] .payment_box fieldset {
  background:#fff!important;
}
body.woocommerce-checkout #payment ul.payment_methods > li > label { background-clip:padding-box; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li > label { place-items:center; }
/* Override the older cart-specific !important block/left label rules. */
body.woocommerce-cart .cart_totals #shipping_method > li > label {
  display:grid!important;
  grid-template-columns:minmax(0,1fr);
  grid-template-rows:26px 62px 1fr;
  place-items:center;
  height:100%;
  padding:0!important;
  margin:0!important;
  text-align:center!important;
  line-height:1.2!important;
}
body.woocommerce-cart .cart_totals #shipping_method > li > label .meliss-delivery-title {
  max-width:none!important;
}
body.woocommerce-cart .cart_totals #shipping_method > li > label .meliss-delivery-price {
  justify-self:center;
  text-align:center!important;
}
/* Quiet delivery cards: artwork, caption, price; highlight only the selection. */
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li {
  height:154px!important;
  container-type:inline-size;
  border:2px solid transparent;
  border-radius:20px;
  transition:background-color .18s,border-color .18s;
}
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li:has(input:checked) {
  background:#fff0f3!important;
  border-color:#5A3D5C!important;
}
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li:not(:has(input:checked)) { background:#fff!important; border-color:transparent!important; }
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method > li:has(input:checked)::after {
  content:'✓'; position:absolute; top:6px; right:6px;
  width:18px; height:18px; border-radius:50%; background:#5A3D5C; color:white;
  text-align:center; font:700 12px/18px Arial,sans-serif; pointer-events:none;
}
body.woocommerce-cart .cart_totals #shipping_method > li > label,
body.woocommerce-checkout #order_review #shipping_method > li > label {
  grid-template-rows:76px 36px 1fr;
  padding:5px 6px 10px!important;
  box-sizing:border-box;
}
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method .meliss-delivery-icon {
  grid-row:1; width:72%; max-width:98px; height:32px;
}
body.woocommerce-cart .cart_totals #shipping_method > li > label .meliss-delivery-title,
body.woocommerce-checkout #order_review #shipping_method .meliss-delivery-title {
  grid-row:2; width:100%!important; height:auto; min-height:0;
  margin:0!important; padding:0!important; background:transparent; color:#5A3D5C;
  font:600 clamp(10px,1vw,12px)/1.35 Montserrat,sans-serif;
  font-size:clamp(8px,9cqw,12px);
  white-space:nowrap!important;
  max-width:none!important;
  letter-spacing:0;
}
body:is(.woocommerce-cart,.woocommerce-checkout) #shipping_method .meliss-delivery-price { grid-row:3; }
body.woocommerce-cart .woocommerce-cart-form .quantity.meliss-classic-quantity,
body.woocommerce-cart .wc-block-components-quantity-selector {
  border:1px solid #e2cfe1!important; border-radius:999px!important;
  background:white!important; overflow:hidden; color:#5A3D5C;
}
body.woocommerce-cart .woocommerce-cart-form .quantity.meliss-classic-quantity { display:grid!important; grid-template-columns:36px 40px 36px!important; width:114px!important; min-height:44px; }
body.woocommerce-cart .woocommerce-cart-form .quantity.meliss-classic-quantity .qty { height:44px!important; color:#5A3D5C!important; }
body.woocommerce-cart .woocommerce-cart-form .quantity .meliss-classic-qty-button {
  display:grid!important; width:36px!important; min-width:0!important; height:44px!important; min-height:44px!important;
  padding:0!important; border:0!important; border-radius:0!important; background:transparent!important;
  color:#5A3D5C!important; box-shadow:none!important; font:600 18px/1 Arial,sans-serif;
}
body.woocommerce-cart .woocommerce-cart-form .quantity .meliss-classic-qty-button:hover { background:#f8dfe5!important; }
body.woocommerce-cart .woocommerce-cart-form .quantity .meliss-classic-qty-button:disabled { opacity:.35; cursor:default; }
