/* Cart drawer (replaces WPC Fly Cart). Reuses the menu drawer shell (.m-drawer/.d-panel/.d-top in
   layout.css); --end puts the panel on the inline-end side. Colours and sizes come from tokens.css. */
.m-drawer--end .d-panel{inset-inline-start:auto;inset-inline-end:0;transform:translateX(calc(-100% * var(--x-start)));width:min(92vw,420px);padding:0;display:flex;flex-direction:column}
.m-drawer--end.on .d-panel{transform:none}
.c-top{padding-inline:16px;border-bottom:1px solid var(--line)}
.c-title{font-size:var(--fs-h3);font-weight:800;margin:0;display:flex;align-items:center;gap:8px}
.c-panel .widget_shopping_cart_content{flex:1;display:flex;flex-direction:column;min-height:0}

/* lines */
.c-lines{list-style:none;margin:0;padding:0 16px;flex:1;overflow-y:auto;overscroll-behavior:contain}
.c-line{position:relative;display:grid;grid-template-columns:84px 1fr;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);transition:opacity var(--dur-2)}
.c-line.is-busy{opacity:.45;pointer-events:none}
.c-thumb img{width:84px;height:84px;object-fit:contain;border-radius:var(--r-sm);background:var(--tile)}
.c-body{min-width:0;padding-inline-end:30px}
.c-name{margin:0;font-weight:700;font-size:var(--fs-base);line-height:1.3}
.c-name a{color:var(--ink)}
.c-meta{color:var(--mute);font-size:var(--fs-sm);line-height:1.4;margin-top:4px}
.c-meta dl,.c-meta dd,.c-meta p{margin:0}
.c-meta dt{display:inline;font-weight:600}
.c-meta dd{display:inline}
.c-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.c-price{font-weight:800;font-size:var(--fs-base)}
.c-price del{color:var(--mute);font-weight:400;font-size:.88em;margin-inline-end:4px}
.c-price ins{text-decoration:none;color:var(--sale)}
.c-qty{display:inline-flex;align-items:center;border:1px solid var(--line-strong);border-radius:var(--pill);height:36px}
.c-step{width:36px;height:34px;display:grid;place-items:center;background:none;border:0;color:var(--ink);cursor:pointer;border-radius:var(--pill)}
.c-step .ic{width:16px;height:16px}
.c-step:disabled{color:var(--line-strong);cursor:default}
.c-step:focus-visible,.c-remove:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.c-n{min-width:22px;text-align:center;font-weight:700}
.c-remove{position:absolute;top:10px;inset-inline-end:-6px;width:36px;height:36px;color:var(--mute)}
.c-remove .ic{width:18px;height:18px}
.c-remove:hover{color:var(--sale)}

/* footer */
.c-foot{border-top:1px solid var(--line);padding:12px 16px 16px;background:var(--paper);display:grid;gap:10px}
.c-foot .kl-sum-side{padding:10px 12px;border:0;border-radius:var(--r-sm);background:var(--tile)}
.c-foot .kitline-min-hint{margin:0;font-size:var(--fs-sm);padding:10px 12px}
.c-sub{display:flex;justify-content:space-between;align-items:baseline;margin:0;font-size:var(--fs-md)}
.c-sub strong{font-size:20px}
.c-btns{display:grid;gap:8px}
.c-btns .btn{width:100%}
.btn-line{background:var(--paper);color:var(--ink);border:1px solid var(--ink)}

/* empty: the site's one empty state (template-parts/empty-state.php, base.css), centred in the drawer */
.cart-drawer .empty{flex:1;justify-content:center;padding:var(--s-6) var(--s-4)}

/* 2+1: "one more and the cheapest is free" (inc/cart.php jny_promo_next_hint), in the drawer and above the cart table */
.promo-next{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r-sm);background:var(--ink);color:var(--paper);font-size:var(--fs-sm);line-height:1.4}
.promo-next .ic{flex:none;width:20px;height:20px;stroke:var(--brand)}
.promo-next span{flex:1;min-width:0}
.promo-next a{flex:none;color:var(--brand);font-weight:800;text-decoration:underline;text-underline-offset:3px}
.woocommerce-cart-form .promo-next{margin-bottom:var(--s-4)}
