/*
 * Mini-cart drawer + cart page (includes/store/cart.php, assets/js/cart.js). Every colour, font and
 * radius is a theme token; a store adjusts the look with the --nsb-cart-* custom properties below
 * from its child theme instead of overriding rules.
 */
:root {
	--nsb-cart-panel: var(--wp--preset--color--base);
	--nsb-cart-tint: var(--wp--preset--color--surface);
	--nsb-cart-head: var(--wp--preset--color--base);
	--nsb-cart-head-ink: var(--wp--preset--color--contrast);
	--nsb-cart-badge: var(--wp--preset--color--accent);
	--nsb-cart-badge-ink: var(--wp--preset--color--on-accent);
	--nsb-cart-bar: var(--wp--preset--color--accent);
	--nsb-cart-bar-track: var(--wp--preset--color--muted);
	--nsb-cart-deal: var(--wp--preset--color--success);
	--nsb-cart-width: 420px;
	--nsb-cart-shadow: 0 0 0 1px var(--wp--preset--color--line), -12px 0 40px rgb(0 0 0 / 0.14);
}

/* ---------- Header button ---------- */
.nsb-cartbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	min-width: var(--nsb-tap); min-height: var(--nsb-tap); color: var(--wp--preset--color--contrast); text-decoration: none;
}
.nsb-cartbtn__icon { display: block; }
.nsb-cartbtn__count {
	position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
	border-radius: 9px; background: var(--nsb-cart-badge); color: var(--nsb-cart-badge-ink);
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums;
}
.nsb-cartbtn__count[hidden] { display: none; }

/* ---------- Drawer ---------- */
html.nsb-drawer-open { overflow: hidden; }
.nsb-drawer {
	position: fixed; inset: 0 0 0 auto; margin: 0; padding: 0; border: 0;
	width: min(var(--nsb-cart-width), 100vw); max-width: 100vw; height: 100%; max-height: 100dvh; box-sizing: border-box;
	background: var(--nsb-cart-panel); color: var(--wp--preset--color--contrast); box-shadow: var(--nsb-cart-shadow);
	flex-direction: column; overflow: hidden;
}
.nsb-drawer[open] { display: flex; animation: nsb-drawer-in 0.22s ease-out; }
.nsb-drawer.is-closing { animation: nsb-drawer-out 0.18s ease-in forwards; }
.nsb-drawer::backdrop { background: rgb(10 16 12 / 0.45); animation: nsb-fade 0.22s ease-out; }
@keyframes nsb-drawer-in { from { transform: translateX(100%); } }
@keyframes nsb-drawer-out { to { transform: translateX(100%); } }
@keyframes nsb-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.nsb-drawer[open], .nsb-drawer.is-closing, .nsb-drawer::backdrop { animation: none; }
}
.nsb-drawer__head {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex: none;
	padding: 0.5rem 8px 0.5rem 16px; background: var(--nsb-cart-head); color: var(--nsb-cart-head-ink);
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.nsb-drawer__title { color: inherit; margin: 0; font-size: 1.15rem; line-height: 1.2; font-family: var(--wp--preset--font-family--body, inherit); font-weight: 700; }
/* Explicit, and stronger than any theme heading colour, so the title can never match the header. */
.nsb-drawer .nsb-drawer__head .nsb-drawer__title { color: var(--nsb-cart-head-ink); }
.nsb-drawer__title:focus { outline: none; }
.nsb-drawer__title span { font-weight: 500; opacity: 0.75; font-variant-numeric: tabular-nums; }
.nsb-drawer__close {
	display: inline-flex; align-items: center; justify-content: center; width: var(--nsb-tap); height: var(--nsb-tap);
	padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.nsb-drawer__close .nsb-ico { width: 24px; height: 24px; }
.nsb-drawer__close:hover { background: color-mix(in srgb, currentColor 10%, transparent); }

.nsb-cart--drawer { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nsb-cart__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px; }
.nsb-cart--drawer .nsb-sum {
	flex: none; padding: 0.9rem 16px calc(0.9rem + env(safe-area-inset-bottom));
	border-top: 1px solid var(--wp--preset--color--line); background: var(--nsb-cart-tint);
}
.nsb-cart--drawer .nsb-sum__rows { margin-bottom: 0.25rem; }
.nsb-cart--drawer .nsb-sum__row:not(.nsb-sum__row--total):not(.nsb-sum__row--deal) { display: none; }
.nsb-cart--drawer .nsb-sum__row--total { border-top: 0; padding-top: 0; }
/* Drawer footer, design F3 "receipt": a fern rule, small-caps Total over a serif figure, View cart beside it, one lime Checkout. */
.nsb-cart--drawer .nsb-sum--receipt .nsb-sum__row--total { display: none; }
.nsb-cart--drawer .nsb-sum--receipt .nsb-sum__rows:not(:has(.nsb-sum__row--deal)) { display: none; }
.nsb-sum__head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
	padding-top: 0.75rem; border-top: 1.5px solid var(--wp--custom--editorial--rule, var(--wp--preset--color--accent));
}
.nsb-sum__total { margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.nsb-sum__eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-soft); line-height: 1; }
.nsb-sum__figure {
	font-family: var(--wp--preset--font-family--evidence, var(--wp--preset--font-family--display)); font-weight: var(--wp--custom--editorial--heading-weight, 400);
	font-size: 2rem; line-height: 1; letter-spacing: -0.01em; color: var(--wp--preset--color--contrast); font-variant-numeric: tabular-nums;
}
.nsb-sum--receipt .nsb-sum__view {
	display: inline-flex; align-items: center; gap: 0.35rem; min-height: var(--nsb-tap); margin: 0 0 -0.55rem; padding: 0 0.1rem;
	color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px;
}
.nsb-sum--receipt .nsb-sum__saved { margin: 0.5rem 0 0; }
.nsb-sum--receipt .nsb-sum__checkout { margin-top: 0.85rem; min-height: 54px; }
.nsb-sum--receipt .nsb-sum__promises { margin-top: 0.7rem; }

/* ---------- Shared pieces ---------- */
.nsb-cart { position: relative; }
.nsb-cart[aria-busy="true"] .nsb-cart__lines, .nsb-cart[aria-busy="true"] .nsb-sum { opacity: 0.55; pointer-events: none; transition: opacity 0.15s; }
.nsb-cart__loading { padding: 3rem 16px; text-align: center; color: var(--wp--preset--color--contrast-soft); }
.nsb-cart__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: 0; }
.nsb-cart__live.is-error {
	position: static; width: auto; height: auto; clip-path: none; white-space: normal; margin: 0.75rem 16px 0;
	padding: 0.6rem 0.8rem; border-radius: var(--nsb-radius-small); background: color-mix(in srgb, var(--wp--preset--color--error) 9%, var(--wp--preset--color--base));
	color: var(--wp--preset--color--error); font-size: var(--wp--preset--font-size--small);
}
.nsb-cart--page .nsb-cart__live.is-error { margin-inline: 0; grid-column: 1 / -1; }
.nsb-cart__error { margin: 0.75rem 0 0; padding: 0.6rem 0.8rem; border-radius: var(--nsb-radius-small); background: color-mix(in srgb, var(--wp--preset--color--warning) 10%, var(--wp--preset--color--base)); color: var(--wp--preset--color--warning); font-size: var(--wp--preset--font-size--small); }

.nsb-cart__note, .nsb-cart__ship {
	margin: 0.9rem 0 0; padding: 0.65rem 0.8rem; border-radius: var(--nsb-radius-small);
	background: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); font-weight: 600;
}
.nsb-cart__note { display: flex; align-items: center; gap: 0.55rem; }
.nsb-cart__note .nsb-ico, .nsb-cart__ship .nsb-ico { width: 20px; height: 20px; color: var(--wp--preset--color--accent); vertical-align: -5px; }
.nsb-cart__ship p { margin: 0 0 0.45rem; }
.nsb-cart__bar { height: 6px; border-radius: 3px; background: var(--nsb-cart-bar-track); overflow: hidden; }
.nsb-cart__bar span { display: block; height: 100%; border-radius: inherit; background: var(--nsb-cart-bar); transition: width 0.3s ease; }

.nsb-cart__lines { list-style: none; margin: 0; padding: 0; }
.nsb-line { display: grid; grid-template-columns: 80px 1fr; gap: 0.85rem; padding: 1rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.nsb-line:last-child { border-bottom: 0; }
.nsb-line.is-removing { opacity: 0.35; transition: opacity 0.15s; }
.nsb-line__img { display: block; width: 80px; height: 80px; border-radius: var(--nsb-radius-small); overflow: hidden; background: var(--nsb-cart-tint); }
.nsb-line__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nsb-line__body { min-width: 0; }
.nsb-line__top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; }
.nsb-line__name { color: var(--wp--preset--color--contrast); font-weight: 600; text-decoration: none; line-height: 1.3; }
.nsb-line__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.nsb-line__price { flex: none; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nsb-line__was { display: block; font-weight: 400; font-size: 0.85em; color: var(--wp--preset--color--contrast-soft); }
.nsb-line__opts { margin: 0.15rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--contrast-soft); }
.nsb-line__terms {
	margin: 0.45rem 0 0; padding: 0.45rem 0.6rem; border-left: 3px solid var(--wp--preset--color--accent);
	background: var(--nsb-cart-tint); font-size: 0.82rem; line-height: 1.45; color: var(--wp--preset--color--contrast-soft);
}
.nsb-line__actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.6rem; }
.nsb-qty { display: inline-flex; align-items: center; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; }
.nsb-qty__btn {
	width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--wp--preset--color--contrast);
	font-size: 1.15rem; line-height: 1; border-radius: 50%; cursor: pointer;
}
.nsb-qty__btn:hover:not(:disabled) { background: var(--wp--preset--color--muted); }
.nsb-qty__btn:disabled { opacity: 0.35; cursor: default; }
.nsb-qty__n { min-width: 1.6em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.nsb-qty__fixed { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--contrast-soft); }
.nsb-line__remove {
	min-height: var(--nsb-tap); padding: 0 0.25rem; border: 0; background: none; cursor: pointer;
	color: var(--wp--preset--color--contrast-soft); font-family: inherit; font-weight: inherit; font-style: inherit; line-height: inherit; font-size: var(--wp--preset--font-size--small);
	text-decoration: underline; text-underline-offset: 3px;
}
.nsb-line__remove:hover { color: var(--wp--preset--color--error); }

.nsb-extras { margin: 0.5rem 0 1rem; padding: 0.85rem; border: 1px dashed var(--wp--preset--color--border); border-radius: var(--nsb-radius-card); }
.nsb-extras__title { margin: 0 0 0.5rem; font-size: 0.95rem; font-family: var(--wp--preset--font-family--body, inherit); }
.nsb-extras ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.nsb-extra { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 0.6rem; }
.nsb-extra img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--nsb-radius-small); }
.nsb-extra__name { color: var(--wp--preset--color--contrast); text-decoration: none; font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.nsb-extra__price { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 0.92rem; }
.nsb-extra__add {
	min-height: 40px; padding: 0 0.9rem; border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.9rem;
	border: 1.5px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--base); color: var(--wp--preset--color--accent);
}
.nsb-extra__add:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }

.nsb-sum__title { margin: 0 0 0.75rem; font-size: 1.2rem; }
.nsb-sum__rows { margin: 0 0 0.75rem; }
.nsb-sum__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; font-variant-numeric: tabular-nums; }
.nsb-sum__row dt, .nsb-sum__row dd { margin: 0; }
.nsb-sum__row--deal { color: var(--nsb-cart-deal); font-weight: 600; }
.nsb-sum__row--total { margin-top: 0.35rem; padding-top: 0.65rem; border-top: 1px solid var(--wp--preset--color--line); font-size: 1.15rem; font-weight: 700; }
.nsb-sum__x { margin-left: 0.35rem; padding: 0; border: 0; background: none; color: var(--wp--preset--color--contrast-soft); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
.nsb-sum__saved { margin: 0 0 0.6rem; color: var(--nsb-cart-deal); font-weight: 700; font-size: var(--wp--preset--font-size--small); }
.nsb-sum__checkout { display: flex !important; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; box-sizing: border-box; min-height: 52px; text-decoration: none; font-weight: 700; }
.nsb-sum__view {
	display: flex; align-items: center; justify-content: center; min-height: var(--nsb-tap); margin-top: 0.25rem;
	color: var(--wp--preset--color--contrast); font-weight: 600; text-underline-offset: 4px;
}
.nsb-sum__promises { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem 1rem; font-size: 0.82rem; color: var(--wp--preset--color--contrast-soft); }
.nsb-sum__promises li { display: inline-flex; align-items: center; gap: 0.35rem; }
.nsb-sum__promises .nsb-ico { width: 18px; height: 18px; color: var(--wp--preset--color--accent); }

.nsb-coupon { margin: 0 0 0.75rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.nsb-coupon summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--nsb-tap); cursor: pointer; font-weight: 600; color: var(--wp--preset--color--contrast); list-style: none; }
.nsb-coupon summary::-webkit-details-marker { display: none; }
.nsb-coupon summary::after { content: "+"; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.nsb-coupon[open] summary::after { content: "−"; }
.nsb-coupon__form { display: flex; gap: 0.5rem; padding-bottom: 0.85rem; }
.nsb-coupon__form input {
	flex: 1; min-width: 0; min-height: var(--nsb-tap); padding: 0 0.75rem; box-sizing: border-box;
	border: 1px solid var(--wp--preset--color--border); border-radius: var(--nsb-radius-small); background: var(--wp--preset--color--base); text-transform: uppercase;
}
.nsb-coupon__apply {
	min-height: var(--nsb-tap); padding: 0 1rem; border-radius: var(--nsb-radius-small); cursor: pointer; font: inherit; font-weight: 700;
	border: 1.5px solid var(--wp--preset--color--contrast); background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base);
}

.nsb-cart__empty { padding: 3rem 16px; text-align: center; }
.nsb-cart__empty p { margin: 0.75rem 0 1.25rem; font-size: 1.1rem; }
.nsb-cart__empty .nsb-cart__fallback { margin: 1rem 0 0; font-size: var(--wp--preset--font-size--small); }
.nsb-line__name { overflow-wrap: anywhere; }
.nsb-cart__emptyicon {
	display: inline-block; width: 56px; height: 56px; background: var(--wp--preset--color--accent); opacity: 0.85;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 8h14l-1.2 11.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9z%22/%3E%3Cpath d=%22M9 10V7a3 3 0 0 1 6 0v3%22/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.4%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 8h14l-1.2 11.1a2 2 0 0 1-2 1.9H8.2a2 2 0 0 1-2-1.9z%22/%3E%3Cpath d=%22M9 10V7a3 3 0 0 1 6 0v3%22/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Cart page ---------- */
.nsb-cart--page { min-height: 360px; margin-top: 0.5rem; }
.nsb-cart--page:not(.is-empty) { display: grid; gap: 1.5rem 3rem; }
.nsb-cart--page .nsb-cart__main { min-width: 0; }
.nsb-cart--page .nsb-cart__main > .nsb-cart__note:first-child, .nsb-cart--page .nsb-cart__main > .nsb-cart__ship:first-child { margin-top: 0; }
.nsb-cart--page .nsb-line { grid-template-columns: 96px 1fr; }
.nsb-cart--page .nsb-line__img { width: 96px; height: 96px; }
.nsb-cart--page .nsb-sum { padding: 1.25rem; border-radius: var(--nsb-radius-panel); background: var(--nsb-cart-tint); border: 1px solid var(--wp--preset--color--line); }
.nsb-cart__bar-phone { display: none; }
@media (min-width: 900px) {
	.nsb-cart--page:not(.is-empty) { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
	.nsb-cart--page .nsb-cart__side { position: sticky; top: 1.5rem; }
}
@media (max-width: 899px) {
	/* Phones: a slim bar keeps the total and Checkout on screen until the summary's own button is reached. */
	.nsb-cart--page:not(.is-empty) { padding-bottom: 72px; }
	.nsb-cart__bar-phone {
		display: flex; align-items: center; justify-content: space-between; gap: 1rem;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; box-sizing: border-box;
		padding: 0.6rem 16px calc(0.6rem + env(safe-area-inset-bottom));
		background: var(--nsb-cart-panel); border-top: 1px solid var(--wp--preset--color--line); box-shadow: 0 -6px 20px rgb(0 0 0 / 0.08);
	}
	.nsb-cart__bar-phone { transition: transform 0.2s ease; }
	.nsb-cart__bar-phone.is-hidden { transform: translateY(110%); }
	.nsb-cart__bar-phone strong { font-variant-numeric: tabular-nums; }
	.nsb-cart__bar-phone .wp-element-button { min-height: var(--nsb-tap); display: inline-flex; align-items: center; text-decoration: none; }
}

/* ---------- Plan offer on a buy-once line (cart, drawer) and at the top of checkout ---------- */
.nsb-upgrade {
	margin-top: 0.7rem; padding: 0.75rem 0.85rem; border-radius: var(--nsb-radius-small);
	border: 1.5px solid var(--wp--preset--color--accent); background: var(--wp--preset--color--muted);
}
.nsb-upgrade__text { margin: 0 0 0.6rem; font-size: 0.9rem; line-height: 1.45; font-weight: 600; color: var(--wp--preset--color--contrast); }
.nsb-upgrade__btn { display: inline-flex !important; align-items: center; justify-content: center; min-height: var(--nsb-tap); width: 100%; box-sizing: border-box; font-weight: 700; }
.nsb-upgrade__btn:disabled { opacity: 0.6; cursor: progress; }
.nsb-upgrade__msg { margin: 0.5rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--error); }
.nsb-upgrade__msg:empty { display: none; }
.nsb-upgrade--checkout { margin: 0 0 1.5rem; padding: 1rem 1.1rem; }
/* The page's flow layout zeroes the gap, and WooCommerce hangs its "Express checkout" label above the
   payment buttons, so the card needs a firm gap that clears it. */
.wp-block-post-content > .nsb-upgrade--checkout, .nsb-upgrade--checkout { margin: 0 0 2.5rem !important; }
@media (min-width: 700px) {
	.nsb-upgrade--checkout { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem 1.25rem; }
	.nsb-upgrade--checkout .nsb-upgrade__text { flex: 1 1 320px; margin: 0; font-size: 1rem; }
	.nsb-upgrade--checkout .nsb-upgrade__btn { width: auto; padding-inline: 1.4rem; }
	.nsb-upgrade--checkout .nsb-upgrade__msg { flex-basis: 100%; }
}

/* ---------- "Adding…" row while WooCommerce's add request is on its way ---------- */
.nsb-skel { position: relative; overflow: hidden; background: var(--wp--preset--color--muted); }
.nsb-skel::after {
	content: ""; position: absolute; inset: 0; transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent); animation: nsb-shimmer 1.1s infinite;
}
.nsb-line--adding .nsb-line__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nsb-line__adding { animation: nsb-pulse 1.2s ease-in-out infinite; }
.nsb-sum--skel { display: grid; gap: 0.75rem; }
.nsb-skel--row { display: block; height: 1.4rem; width: 55%; border-radius: 6px; }
.nsb-skel--btn { display: block; height: 52px; border-radius: 999px; }
@keyframes nsb-pulse { 50% { opacity: 0.45; } }
.nsb-line__adding { margin: 0.35rem 0 0; font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--contrast-soft); }
@keyframes nsb-shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .nsb-skel::after, .nsb-line__adding { animation: none; } }

/* ---------- What plugins add to a line (nsb_cart_line): choices, attached lines ---------- */
.nsb-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.4rem; margin-top: 0.55rem; }
.nsb-choice {
	display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.1rem;
	min-height: var(--nsb-tap); padding: 0.35rem 0.75rem; box-sizing: border-box; cursor: pointer; text-align: left;
	border: 1.5px solid var(--wp--preset--color--border); border-radius: var(--nsb-radius-small);
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); font: inherit;
}
.nsb-choice__label { font-weight: 600; font-size: 0.88rem; line-height: 1.2; }
.nsb-choice__sub { font-size: 0.78rem; color: var(--wp--preset--color--contrast-soft); }
.nsb-choice__was { text-decoration: line-through; }
.nsb-choice:hover { border-color: var(--wp--preset--color--accent); }
.nsb-choice.is-selected { border-color: var(--wp--preset--color--accent); box-shadow: inset 0 0 0 1px var(--wp--preset--color--accent); background: var(--wp--preset--color--muted); cursor: default; }
.nsb-line--child { grid-template-columns: 48px 1fr; padding-top: 0.6rem; margin-left: 40px; position: relative; }
.nsb-line--child::before { content: ""; position: absolute; left: -22px; top: 0; height: 2.1rem; width: 14px; border-left: 1.5px solid var(--wp--preset--color--line); border-bottom: 1.5px solid var(--wp--preset--color--line); border-bottom-left-radius: 6px; }
.nsb-line--child .nsb-line__img { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--wp--preset--color--accent); }
.nsb-line--child .nsb-line__img .nsb-ico { width: 24px; height: 24px; }
.nsb-ico--repeat { --nsb-ico: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%221.8%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M17 2l3 3-3 3%22/%3E%3Cpath d=%22M4 11V9a4 4 0 0 1 4-4h12%22/%3E%3Cpath d=%22M7 22l-3-3 3-3%22/%3E%3Cpath d=%22M20 13v2a4 4 0 0 1-4 4H4%22/%3E%3C/svg%3E"); }
.nsb-cart--page .nsb-line--child { grid-template-columns: 56px 1fr; margin-left: 48px; }
.nsb-cart--page .nsb-line--child .nsb-line__img { width: 56px; height: 56px; }
.nsb-line--child .nsb-line__name { font-size: 0.92rem; }

/* Wallet buttons' places on the cart page, until Stripe and PayPal draw them (cart-wallets.js). */
.nsb-wallets { display: grid; gap: 0.5rem; margin-top: 0.75rem; }
.nsb-wallets[hidden] { display: none; }
.nsb-wallets__ph, .nsb-wallets__box[data-wait] { display: block; min-height: 48px; border-radius: 999px; background: #000; animation: nsb-wallets-pulse 1.2s ease-in-out infinite; }
.nsb-wallets__ph--paypal, .nsb-wallets__box[data-wait="paypal"] { background: #ffc439; }
.nsb-wallets__box[data-wait] > * { opacity: 0; }
@keyframes nsb-wallets-pulse { 50% { opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) { .nsb-wallets__ph, .nsb-wallets__box[data-wait] { animation: none; } }

/* ---------- An offer a plugin draws under its line (nsb_cart_line → offer): editorial, quiet, never lime ---------- */
.nsb-offer {
	margin-top: 0.9rem; padding-top: 0.75rem; border-top: 1.5px solid var(--wp--custom--editorial--rule, var(--wp--preset--color--accent));
	color: var(--wp--preset--color--contrast);
}
.nsb-offer p { margin: 0; }
.nsb-offer__eyebrow { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--contrast-soft); }
.nsb-offer__title {
	margin-top: 0.35rem !important; font-family: var(--wp--preset--font-family--evidence, var(--wp--preset--font-family--display));
	font-weight: var(--wp--custom--editorial--heading-weight, 400); font-size: 1.25rem; line-height: 1.15; letter-spacing: -0.01em;
}
.nsb-offer__title em { color: var(--wp--custom--editorial--italic, var(--wp--preset--color--accent)); white-space: nowrap; }
.nsb-offer__lead {
	margin-top: 0.4rem !important; padding-left: 1.4rem; position: relative;
	font-size: 0.875rem; font-weight: 500; line-height: 1.4; color: var(--wp--preset--color--accent);
}
.nsb-offer__lead::before {
	content: ""; position: absolute; left: 0.15rem; top: 0.3rem; width: 0.6rem; height: 0.3rem;
	border-left: 2.2px solid var(--wp--custom--editorial--italic, var(--wp--preset--color--accent));
	border-bottom: 2.2px solid var(--wp--custom--editorial--italic, var(--wp--preset--color--accent)); transform: rotate(-45deg);
}
.nsb-offer__rows { margin-top: 0.6rem; border-top: 1px solid var(--wp--preset--color--line); }
.nsb-offer__row {
	display: flex; align-items: center; gap: 0.75rem; width: 100%; min-height: 3.75rem; padding: 0.5rem 0; box-sizing: border-box;
	border: 0; border-bottom: 1px solid var(--wp--preset--color--line); border-radius: 0; background: none;
	color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.nsb-offer__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.nsb-offer__label { font-weight: 600; font-size: 0.9rem; line-height: 1.3; }
.nsb-offer__sub { font-size: 0.8125rem; line-height: 1.35; color: var(--wp--preset--color--contrast-soft); }
.nsb-offer__add {
	flex: none; display: inline-flex; align-items: center; min-height: var(--nsb-tap); padding: 0 1.1rem; box-sizing: border-box;
	border: 1.5px solid var(--wp--preset--color--accent); border-radius: 999px; color: var(--wp--preset--color--accent); font-weight: 700; font-size: 0.875rem;
}
.nsb-offer__row:hover:not(:disabled) .nsb-offer__add,
.nsb-offer__row:focus-visible .nsb-offer__add { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.nsb-offer__row:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 2px; }
.nsb-offer__row:disabled { cursor: progress; opacity: 0.6; }
.nsb-offer__foot { margin-top: 0.5rem !important; font-size: 0.8125rem; line-height: 1.45; color: var(--wp--preset--color--contrast-soft); }

/* Cart page summary, the same receipt (tej 15 Nov 2026): rows stay, the total moves under a fern rule. */
.nsb-sum--page .nsb-sum__rows { margin-bottom: 0.9rem; }
.nsb-sum--page .nsb-sum__head { padding-top: 0.85rem; }
.nsb-sum--page .nsb-sum__figure { font-size: 2.25rem; }
.nsb-sum--page .nsb-sum__checkout { margin-top: 1rem; }
