/* =====================================================================
   NK CART – „Koszyk” board of the approved creator design (SPEC §3.8,
   §4.29 cartLine, T5 cartLine mobile): H1 row, lines card, coupon,
   totals card. Classic [woocommerce_cart] on funnel pages (step 1);
   markup: woocommerce/cart/cart.php, cart-totals.php, cart-empty.php.
   Layout: ≥1200 lines + sticky totals (910 / 470 at 1440) · ≤1199 totals 360 ·
   ≤991 one column · ≤767 mobile cartLine. Line layout follows the width of
   the lines card (container query) with a medium layout as the fallback.
   ===================================================================== */

/* ---------- neutralise Digic's cart skin for this markup ---------- */
body.nk-skin.nk-funnel .nk-cart .woocommerce-cart-form{margin:0;border:0}
body.nk-skin.nk-funnel .nk-cart .cart-collaterals{max-width:none;margin:0;padding:0;background:transparent}
body.nk-skin.nk-funnel .nk-cart .cart-collaterals h2{padding:0;background:transparent;text-transform:none}

/* ---------- page ---------- */
body.nk-skin .nk-cart{display:block;padding-bottom:48px;background:transparent}
body.nk-skin .nk-cart-head{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:4px 24px;padding:18px 0 24px}
body.nk-skin .nk-cart-head__t{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 12px;min-width:0}
body.nk-skin .nk-cart-h1{font:400 40px/46px var(--f-display);letter-spacing:-.01em;color:var(--ink)}
body.nk-skin .nk-cart-head__n{font:400 15px/24px var(--f-ui);color:var(--ink-2);white-space:nowrap}
body.nk-skin .nk-cart-more{min-height:44px;white-space:nowrap}
body.nk-skin .nk-cart .woocommerce-notices-wrapper:not(:empty){margin:0 0 16px}
body.nk-skin .nk-cart-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,470px);column-gap:30px;row-gap:24px;align-items:start}
body.nk-skin .nk-cart-form,body.nk-skin .nk-cart-side{min-width:0}

/* ---------- lines card ---------- */
body.nk-skin .nk-cart .nk-cart-list{padding:0}
body.nk-skin .nk-cart-lines{container:nkcart / inline-size}

/* cartLine – medium layout (fallback): well 120 · head + price · rows below */
body.nk-skin .nk-cart-line{position:relative;display:grid;grid-template-columns:120px minmax(0,1fr) auto;
	grid-template-areas:"well head pr" "well chips chips" "well meta meta" "well qty qty" "well next next" "well acts acts";
	column-gap:20px;align-items:start;padding:24px}
body.nk-skin .nk-cart-line+.nk-cart-line::before{content:"";position:absolute;left:24px;right:24px;top:0;height:1px;background:var(--rule)}
body.nk-skin .nk-cart-line__well{grid-area:well;display:grid;place-items:center;width:120px;height:120px;border-radius:var(--r-sm);background:var(--paper-2);overflow:hidden}
body.nk-skin .nk-cart-line__well img,body.nk-skin .nk-cart-line__well svg{display:block;width:100%;height:100%;object-fit:contain}
body.nk-skin .nk-cart-line__well img{box-sizing:border-box;padding:12px}
body.nk-skin .nk-cart-line__well svg.nk-i,body.nk-skin .nk-cart-line__well svg.wlk-i{width:48px;height:48px;color:var(--ink-2)}
body.nk-skin .nk-cart-line__well a{display:block;width:100%;height:100%}
body.nk-skin .nk-cart-line__head{grid-area:head;min-width:0}
body.nk-skin .nk-cart-line__name{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;min-height:28px}
body.nk-skin .nk-cart-line__t{font:600 17px/24px var(--f-ui);color:var(--ink);overflow-wrap:anywhere}
body.nk-skin .nk-cart-line__t a{color:inherit}
body.nk-skin .nk-cart-line__own{background:var(--surface)}
body.nk-skin .nk-cart-line__chips{grid-area:chips;display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
body.nk-skin .nk-cart-line__meta{grid-area:meta;margin-top:12px;font:400 12px/18px var(--f-ui);color:var(--ink-2);overflow-wrap:anywhere}
body.nk-skin .nk-cart-line__meta>span{display:block}
body.nk-skin .nk-cart-line__meta .nk-i{display:inline-block;width:14px;height:14px;margin-right:4px;vertical-align:-3px;color:var(--ink)}
body.nk-skin .nk-cart-line__meta dl.variation{display:grid;grid-template-columns:auto 1fr;gap:0 6px;margin:0}
body.nk-skin .nk-cart-line__meta dl.variation dt{font-weight:600;color:var(--ink-2)}
body.nk-skin .nk-cart-line__meta dl.variation dd,body.nk-skin .nk-cart-line__meta dl.variation p{margin:0}
body.nk-skin .nk-cart-line__qty{grid-area:qty;display:flex;align-items:baseline;flex-wrap:wrap;gap:0 8px;margin-top:12px}
body.nk-skin .nk-cart-line__q{font:600 15px/24px var(--f-ui);color:var(--ink);white-space:nowrap}
body.nk-skin .nk-cart-line__pr{grid-area:pr;text-align:right;white-space:nowrap}
body.nk-skin .nk-cart-line__v{font:700 17px/24px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart-line__u{margin-top:4px;font:400 12px/18px var(--f-ui);color:var(--ink-2)}
body.nk-skin .nk-cart-line__n{font:400 12px/18px var(--f-ui);color:var(--ink-3)}
body.nk-skin .nk-cart-line__next{grid-area:next;margin-top:8px;font:400 12px/18px var(--f-ui);color:var(--ink-2)}
body.nk-skin .nk-cart-line__acts{grid-area:acts;display:flex;align-items:center;flex-wrap:wrap;gap:0 20px;margin-top:8px}
body.nk-skin .nk-cart-line__edit{min-height:44px;font-size:13px}
body.nk-skin .nk-cart-line__edit .nk-i{width:18px;height:18px}
body.nk-skin .nk-cart-tb{display:inline-flex;align-items:center;gap:6px;min-height:44px;font:600 13px/20px var(--f-ui);color:var(--ink-2);white-space:nowrap;cursor:pointer}
body.nk-skin .nk-cart-tb .nk-i{width:18px;height:18px}
body.nk-skin .nk-cart .nk-cart-tb:hover{color:var(--ink)}
body.nk-skin .nk-cart-line .product-remove{display:inline-flex}
/* quantity input of non-creator products (WooCommerce standard field) */
body.nk-skin .nk-cart-line--std .quantity .qty{width:88px;height:44px;margin:0;padding:0 10px;border:0;border-radius:var(--r-sm);background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--control);font:500 15px/20px var(--f-ui);color:var(--ink);text-align:center}

/* cartLine – desktop board layout (lines card ≥ 800): well 144 · info · nakład 128 · price */
@container nkcart (min-width:800px){
	body.nk-skin .nk-cart-line{grid-template-columns:144px minmax(0,1fr) 128px auto;
		grid-template-areas:"well head qty pr" "well chips qty pr" "well meta qty pr" "well acts next next";
		grid-template-rows:auto auto minmax(0,1fr) auto;column-gap:24px;min-height:234px}
	body.nk-skin .nk-cart-line__well{width:144px;height:144px}
	body.nk-skin .nk-cart-line__qty{display:block;margin-top:2px}
	body.nk-skin .nk-cart-line__qh{margin-top:4px}
	body.nk-skin .nk-cart-line__pr{margin-top:2px}
	body.nk-skin .nk-cart-line__acts{align-self:end;margin-top:14px}
	body.nk-skin .nk-cart-line__next{align-self:center;margin-top:14px;white-space:nowrap}
}

/* ---------- lines footer: coupon ---------- */
body.nk-skin .nk-cart-lfoot{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:88px;padding:20px 24px;box-shadow:inset 0 1px 0 var(--rule)}
body.nk-skin .nk-cart-coupon{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-width:0}
body.nk-skin .nk-cart .nk-cart-coupon__l{margin:0 4px 0 0;white-space:nowrap}
body.nk-skin .nk-cart-coupon__f{flex:none;width:240px;max-width:100%}
body.nk-skin .nk-cart .nk-cart-coupon__f input{min-width:0;width:100%;height:44px;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font:500 15px/20px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart .nk-cart-coupon__f:focus-within{box-shadow:inset 0 0 0 1.5px var(--accent),0 0 0 4px var(--tint)}
body.nk-skin .nk-cart .nk-cart-coupon__b,body.nk-skin .nk-cart .nk-cart-update{min-height:48px;box-shadow:inset 0 0 0 1.5px var(--ink);background:transparent;color:var(--ink);border-radius:var(--r-pill);padding:0 24px;font:600 14px/20px var(--f-ui);text-transform:none;letter-spacing:.01em}
body.nk-skin .nk-cart .nk-cart-coupon__b:hover,body.nk-skin .nk-cart .nk-cart-update:hover{background:var(--ink);color:#fff}
body.nk-skin .nk-cart .nk-cart-update{margin-left:auto}
body.nk-skin .nk-cart .nk-cart-update:disabled{opacity:.6;cursor:not-allowed}
/* creator lines have no quantity inputs: the WooCommerce update button stays in the form (cart.js, Enter) but out of sight */
body.nk-skin .nk-cart .nk-cart-update--hidden{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
body.nk-skin .nk-cart .coupon-error-notice{flex-basis:100%;margin:0;font:500 13px/20px var(--f-ui);color:var(--danger)}

/* ---------- totals card (sticky on desktop) ---------- */
body.nk-skin .nk-cart .nk-cart-tot{display:flex;flex-direction:column;padding:28px;outline:0}
body.nk-skin .nk-cart-tot>*{flex:none}
body.nk-skin .nk-cart-tot__head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;min-height:26px}
body.nk-skin .nk-cart-tot__h{font:600 17px/24px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart-tot__rows{margin-top:20px}
body.nk-skin .nk-cart-tot__rows+.nk-cart-tot__rows{margin-top:0}
body.nk-skin .nk-cart-tot__row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:28px;padding:4px 0}
body.nk-skin .nk-cart-tot__row dt{font:400 13px/20px var(--f-ui);color:var(--ink-2)}
body.nk-skin .nk-cart-tot__row dd{margin:0;font:600 13px/20px var(--f-ui);color:var(--ink);text-align:right;white-space:nowrap}
body.nk-skin .nk-cart-tot__row dd a{color:var(--accent);font-weight:600}
/* shipping (WooCommerce / Digic markup, label „Dostawa”) */
body.nk-skin .nk-cart-tot__ship{margin-top:4px;font:400 13px/20px var(--f-ui);color:var(--ink-2)}
body.nk-skin .nk-cart .nk-cart-tot__ship .woocommerce-shipping-totals{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:4px 12px;padding:4px 0}
body.nk-skin .nk-cart .nk-cart-tot__ship .woocommerce-shipping-totals h2,
body.nk-skin .nk-cart .nk-cart-tot__shipt{margin:0;padding:0;background:transparent;font:400 13px/20px var(--f-ui);letter-spacing:0;text-transform:none;color:var(--ink-2)}
body.nk-skin .nk-cart .nk-cart-tot__ship .woocommerce-shipping-totals>div{text-align:right}
body.nk-skin .nk-cart .nk-cart-tot__ship ul.woocommerce-shipping-methods{margin:0;padding:0;list-style:none}
body.nk-skin .nk-cart .nk-cart-tot__ship ul.woocommerce-shipping-methods li{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0;min-height:28px;font:600 13px/20px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart .nk-cart-tot__ship ul.woocommerce-shipping-methods li .shipping_method{display:inline-block;position:static;width:18px;height:18px;margin:0;accent-color:var(--ink)}
body.nk-skin .nk-cart .nk-cart-tot__ship ul.woocommerce-shipping-methods li label{margin:0;padding:0;font:inherit;color:inherit}
body.nk-skin .nk-cart .nk-cart-tot__ship ul.woocommerce-shipping-methods li label::before{display:none}
body.nk-skin .nk-cart .nk-cart-tot__ship .woocommerce-shipping-destination{margin:4px 0 0;font:400 12px/18px var(--f-ui);color:var(--ink-3)}
body.nk-skin .nk-cart .nk-cart-tot__ship .woocommerce-shipping-destination strong{font-weight:600;color:var(--ink-2)}
body.nk-skin .nk-cart .nk-cart-tot__ship a.shipping-calculator-button{display:inline-flex;align-items:center;min-height:44px;padding:0;font:600 13px/20px var(--f-ui);text-transform:none;color:var(--accent)}
body.nk-skin .nk-cart .nk-cart-tot__ship a.shipping-calculator-button::before{display:none}
body.nk-skin .nk-cart .nk-cart-tot__ship .shipping-calculator-form{margin-top:8px;text-align:left}
body.nk-skin .nk-cart .nk-cart-tot__ship .shipping-calculator-form p{margin:0 0 8px}
body.nk-skin .nk-cart .nk-cart-tot__ship .shipping-calculator-form .input-text,
body.nk-skin .nk-cart .nk-cart-tot__ship .shipping-calculator-form select{width:100%;height:44px;padding:0 12px;border:0;border-radius:var(--r-sm);background:var(--surface);box-shadow:inset 0 0 0 1.5px var(--control);font:500 15px/20px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart .nk-cart-tot__ship .shipping-calculator-form .button{min-height:44px;padding:0 20px;border-radius:var(--r-pill);background:var(--ink);color:#fff;font:600 13px/20px var(--f-ui);letter-spacing:.01em;text-transform:none}
/* free shipping: pill or meter */
body.nk-skin .nk-cart-tot__free{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-top:12px}
body.nk-skin .nk-cart-tot__free .hint{margin:0}
body.nk-skin .nk-cart-tot__left{font:400 13px/20px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart-tot__meter{display:block;width:100%;height:6px;border-radius:var(--r-pill);background:var(--rule);overflow:hidden}
body.nk-skin .nk-cart-tot__meter>span{display:block;height:100%;border-radius:var(--r-pill);background:var(--accent)}
body.nk-skin .nk-cart-tot__hr{height:1px;margin-top:16px;background:var(--rule)}
body.nk-skin .nk-cart-tot__total{margin-top:16px}
body.nk-skin .nk-cart-tot__big{margin-top:4px;font:400 44px/48px var(--f-display);letter-spacing:-.01em;color:var(--ink);white-space:nowrap}
body.nk-skin .nk-cart-tot__net{margin-top:4px;font:400 13px/20px var(--f-ui);color:var(--ink-2)}
body.nk-skin .nk-cart-tot__date{display:flex;align-items:flex-start;gap:10px;margin-top:16px;color:var(--ink)}
body.nk-skin .nk-cart-tot__date .nk-i{width:20px;height:20px}
body.nk-skin .nk-cart-tot__datet{font:600 13px/20px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart-tot__dates{font:400 12px/18px var(--f-ui);color:var(--ink-3)}
body.nk-skin .nk-cart .nk-cart-tot__cta{margin-top:20px;padding:0}
body.nk-skin .nk-cart .nk-cart-tot__cta>*+*{margin-top:8px}
/* our CTA also carries WooCommerce's checkout-button / wc-forward classes: beat Digic's and nk-layout's rules for them */
body.nk-skin .nk-cart .nk-cart-tot .wc-proceed-to-checkout>a.nk-cart-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;height:auto;min-height:56px;margin:0;padding:6px 6px 6px 22px;border:0;border-radius:var(--r-pill);background:var(--ink);color:#fff;font:600 15px/20px var(--f-ui);letter-spacing:.01em;text-transform:none;text-align:left;white-space:normal}
body.nk-skin .nk-cart .nk-cart-tot .wc-proceed-to-checkout>a.nk-cart-cta:hover{background:#000;color:#fff}
body.nk-skin .nk-cart .nk-cart-tot .wc-proceed-to-checkout>a.nk-cart-cta .btn__dot{width:44px;height:44px}
body.nk-skin .nk-cart-tot__vat{margin-top:8px}
body.nk-skin .nk-cart-tot__pay{display:flex;align-items:center;gap:6px;margin-top:8px;font:400 12px/18px var(--f-ui);color:var(--ink-3)}
body.nk-skin .nk-cart-tot__pay .nk-i{width:14px;height:14px}
body.nk-skin .nk-cart .blockUI.blockOverlay{border-radius:var(--r-md)}
@media (min-width:1200px) and (min-height:640px){
	body.nk-skin .nk-cart-side{position:sticky;top:16px}
	body.admin-bar.nk-skin .nk-cart-side{top:48px}
}

/* ---------- empty cart ---------- */
body.nk-skin .nk-cart-empty{display:flex;flex-direction:column;align-items:flex-start;gap:16px;max-width:720px;padding:28px}
body.nk-skin .nk-cart-empty .cart-empty,body.nk-skin .nk-cart-empty .woocommerce-info{margin:0;padding:0;border:0;background:transparent;box-shadow:none;font:500 15px/24px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart-empty .woocommerce-info::before{display:none}
body.nk-skin .nk-cart-empty__back{margin:0}
body.nk-skin .nk-cart-empty .wc-backward{min-height:48px;text-transform:none}

/* ---------- responsive ---------- */
@media (max-width:1199px){
	body.nk-skin .nk-cart-grid{grid-template-columns:minmax(0,1fr) 360px;column-gap:24px}
	body.nk-skin .nk-cart .nk-cart-tot{padding:24px}
	body.nk-skin .nk-cart-tot__big{font-size:40px;line-height:46px}
}
@media (max-width:991px){
	body.nk-skin .nk-cart-grid{grid-template-columns:minmax(0,1fr)}
	body.nk-skin .nk-cart-side{max-width:560px}
}
/* mobile cartLine (T5): thumb 88 · title / own chip / price under the title; chips, meta, nakład, hint, actions full width */
@media (max-width:767px){
	body.nk-skin .nk-cart{padding-bottom:32px}
	body.nk-skin .nk-cart-head{padding:12px 0 16px}
	body.nk-skin .nk-cart-h1{font-size:28px;line-height:32px}
	body.nk-skin .nk-cart-head__n{font-size:13px;line-height:20px}
	body.nk-skin .nk-cart-line{grid-template-columns:88px minmax(0,1fr);
		grid-template-areas:"well head" "well pr" "chips chips" "meta meta" "qty qty" "next next" "acts acts";
		grid-template-rows:auto 1fr;column-gap:12px;min-height:0;padding:16px}
	body.nk-skin .nk-cart-line+.nk-cart-line::before{left:16px;right:16px}
	body.nk-skin .nk-cart-line__well{width:88px;height:88px}
	body.nk-skin .nk-cart-line__name{display:block}
	body.nk-skin .nk-cart-line__own{margin-top:4px}
	body.nk-skin .nk-cart-line__pr{margin-top:6px;text-align:left;white-space:normal}
	body.nk-skin .nk-cart-line__u,body.nk-skin .nk-cart-line__n{display:inline;margin:0}
	body.nk-skin .nk-cart-line__n{color:var(--ink-2)}
	body.nk-skin .nk-cart-line__n::before{content:" · "}
	body.nk-skin .nk-cart-line__chips{margin-top:16px}
	body.nk-skin .nk-cart-line__q{font-size:13px;line-height:20px}
	body.nk-skin .nk-cart-line__next{margin-top:4px}
	body.nk-skin .nk-cart-line__acts{gap:0 4px;margin:4px 0 0 -8px}
	body.nk-skin .nk-cart-line__acts>*{padding:0 8px}
	body.nk-skin .nk-cart-lfoot{padding:16px}
	body.nk-skin .nk-cart-coupon{width:100%}
	body.nk-skin .nk-cart-coupon__l{flex-basis:100%}
	body.nk-skin .nk-cart-coupon__f{flex:1 1 160px;width:auto}
	body.nk-skin .nk-cart .nk-cart-coupon__f input,body.nk-skin .nk-cart-line--std .quantity .qty{font-size:16px}
	body.nk-skin .nk-cart .nk-cart-update{margin-left:0}
	body.nk-skin .nk-cart .nk-cart-tot{padding:20px 16px}
	body.nk-skin .nk-cart-tot__big{font-size:36px;line-height:40px}
	body.nk-skin .nk-cart-tot__net{white-space:normal}
	body.nk-skin .nk-cart-empty{padding:20px 16px}
}

/* pre-launch: orders open soon (nk-checkout-gate.php) */
body.nk-skin .nk-cart-soon{display:flex;gap:12px;align-items:flex-start;padding:16px 18px;border-radius:12px;background:var(--paper);box-shadow:inset 0 0 0 1.5px var(--ink);color:var(--ink)}
body.nk-skin .nk-cart-soon .nk-i{flex:none;margin-top:2px;color:var(--accent)}
body.nk-skin .nk-cart-soon__t{margin:0;font:600 15px/22px var(--f-ui);color:var(--ink)}
body.nk-skin .nk-cart-soon__p{margin:4px 0 0;font:400 14px/22px var(--f-ui);color:var(--ink-2)}
body.nk-skin .nk-cart-soon a{color:var(--accent);font-weight:600}

/* A4 sheet delivery note (cart + checkout) */
body.nk-skin .nk-a4-note{display:flex;align-items:center;gap:8px;margin:0 0 12px;font:500 14px/22px var(--f-ui);color:var(--ink-2)}
body.nk-skin .nk-a4-note .nk-i{flex:none;color:var(--accent)}
