/* NX Cart Boost – frontend */
.nxcb-slot:empty { display: none; }

.nxcb-bar {
	--_c: var(--nxcb-color, #2e7d32);
	--_bg: var(--nxcb-bg, #e8f5e9);
	background: var(--_bg);
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0 0 1.25em;
	font-size: .95em;
	line-height: 1.4;
}
.nxcb-bar--mini { margin: 0 0 .75em; padding: 10px 12px; font-size: .875em; }
.nxcb-bar__text { margin-bottom: 8px; }
.nxcb-bar__text .woocommerce-Price-amount { font-weight: 700; }
.nxcb-bar__track {
	height: 8px;
	border-radius: 99px;
	background: rgba(0, 0, 0, .08);
	overflow: hidden;
}
.nxcb-bar__fill {
	display: block;
	height: 100%;
	background: var(--_c);
	border-radius: inherit;
	transition: width .5s ease;
}
.nxcb-bar.is-reached .nxcb-bar__text { font-weight: 600; color: var(--_c); }

.nxcb-recs { margin: 1.5em 0; clear: both; }
.nxcb-recs--mini { margin: .5em 0 1em; }
.nxcb-recs__title { font-weight: 700; margin-bottom: .75em; }
.nxcb-recs__title .woocommerce-Price-amount { color: var(--nxcb-color, #2e7d32); }
.nxcb-recs__list { list-style: none; margin: 0; padding: 0; }

/* Koszyk: siatka kart */
.nxcb-recs--cart .nxcb-recs__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 16px;
}
.nxcb-recs--cart .nxcb-rec {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 10px;
	border: 1px solid rgba(0, 0, 0, .08);
	border-radius: 8px;
	background: #fff;
	margin: 0;
}
.nxcb-recs--cart .nxcb-rec__img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; display: block; }
.nxcb-recs--cart .nxcb-rec__body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.nxcb-recs--cart .nxcb-rec__add { width: 100%; text-align: center; }

/* Mini koszyk: kompaktowa lista */
.nxcb-recs--mini .nxcb-rec {
	display: grid;
	grid-template-columns: 48px 1fr auto;
	align-items: center;
	gap: 10px;
	padding: 6px 0;
	border-top: 1px solid rgba(0, 0, 0, .06);
	margin: 0;
}
.nxcb-recs--mini .nxcb-rec__img img { width: 48px; height: 48px; object-fit: contain; display: block; margin: 0; float: none; }
.nxcb-recs--mini .nxcb-rec__body { display: flex; flex-direction: column; min-width: 0; font-size: .875em; line-height: 1.3; }
.nxcb-recs--mini .nxcb-rec__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxcb-recs--mini .nxcb-rec__add { padding: .4em .8em; font-size: .8em; white-space: nowrap; }

.nxcb-rec__name { text-decoration: none; font-weight: 500; }
.nxcb-rec__price { font-size: .95em; }
.nxcb-rec__badge { font-size: .78em; color: var(--nxcb-color, #2e7d32); font-weight: 600; }
.nxcb-rec.is-completing { border-color: var(--nxcb-color, #2e7d32); }
.nxcb-add.loading { opacity: .6; pointer-events: none; }
.nxcb-add.added::after { content: " ✓"; }

/* Blok mini koszyka */
.wc-block-mini-cart__drawer .nxcb-slot { padding: 0 16px; }
