/* Dažnai perkama kartu – Bonijana */
.bjfbt {
	--bj-green: #6f8f7a;
	--bj-green-dark: #5a7764;
	--bj-ink: #141414;
	--bj-muted: #767676;
	--bj-soft: #f5f7f5;
	--bj-line: #e6e9e6;
	clear: both;
	margin: 26px 0 8px;
	padding: 20px 18px 18px;
	border: 1px solid var(--bj-line);
	border-radius: 12px;
	background: var(--bj-soft);
	color: var(--bj-ink);
	font-family: inherit;
}
.bjfbt-title {
	margin: 0 0 14px;
	font-size: 20px;
	font-weight: 600;
	color: var(--bj-ink);
	text-transform: none;
	letter-spacing: 0;
}
.bjfbt-list { display: grid; gap: 10px; }

.bjfbt-item {
	display: grid;
	grid-template-columns: 24px 76px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid var(--bj-line);
	border-radius: 10px;
	background: #fff;
	transition: opacity .2s, box-shadow .2s;
}
.bjfbt-item:hover { box-shadow: 0 6px 18px rgba(20, 20, 20, .06); }
.bjfbt-item.is-unchecked { opacity: .5; }
.bjfbt-item.is-unchecked .bjfbt-img img { filter: grayscale(.6); }

/* Checkbox */
.bjfbt-check { position: relative; display: inline-flex; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.bjfbt-check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.bjfbt-check span {
	display: flex; align-items: center; justify-content: center;
	width: 24px; height: 24px;
	border: 1.5px solid #c9d1cb; border-radius: 6px;
	background: #fff; color: transparent;
	transition: background .2s, border-color .2s, color .2s;
}
.bjfbt-check span svg { width: 15px; height: 15px; }
.bjfbt-check input:checked + span { background: var(--bj-green); border-color: var(--bj-green); color: #fff; }
.bjfbt-check input:focus-visible + span { outline: 2px solid var(--bj-green); outline-offset: 2px; }

/* Image */
.bjfbt-img { display: block; width: 76px; height: 76px; overflow: hidden; border-radius: 8px; background: var(--bj-soft); }
.bjfbt .bjfbt-img img {
	float: none !important; width: 76px !important; min-width: 0 !important; max-width: none !important;
	height: 76px !important; margin: 0 !important; object-fit: cover;
}

/* Info */
.bjfbt-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; line-height: 1.35; font-weight: 500; }
.bjfbt-name a { color: var(--bj-ink) !important; text-decoration: none; }
.bjfbt-name a:hover { color: var(--bj-green) !important; }
.bjfbt-this {
	display: inline-block; padding: 2px 8px; border-radius: 999px;
	background: #e9efea; color: var(--bj-green-dark);
	font-size: 11px; font-weight: 600; white-space: nowrap;
}
.bjfbt-unit { margin: 3px 0 8px; font-size: 13px; color: var(--bj-muted); }
.bjfbt-unit .amount { color: var(--bj-ink); font-weight: 600; }
.bjfbt-unit del, .bjfbt-unit del .amount { color: var(--bj-muted); font-weight: 400; }

/* Quantity – the shop's own field, made compact */
.bjfbt-qtywrap .quantity { display: inline-flex !important; flex-wrap: wrap; align-items: center; gap: 0; margin: 0 !important; }
.bjfbt-qtywrap .quantity .wcmp-qty-label { flex: 0 0 100%; margin: 0 0 4px; font-size: 11.5px; font-weight: 600; color: var(--bj-muted); }
.bjfbt-qtywrap .quantity input.qty { width: 58px !important; height: 34px !important; min-height: 0 !important; padding: 0 4px !important; font-size: 14px; text-align: center; }
.bjfbt-qtywrap .quantity .plus,
.bjfbt-qtywrap .quantity .minus { width: 30px !important; height: 34px !important; min-height: 0 !important; padding: 0 !important; line-height: 1 !important; }

/* Line total */
.bjfbt-line { text-align: right; white-space: nowrap; }
.bjfbt-line-sum { font-size: 16px; font-weight: 700; color: var(--bj-ink); }

/* Footer */
.bjfbt-foot { margin-top: 14px; }
.bjfbt-sum { margin-bottom: 12px; text-align: center; font-size: 16px; }
.bjfbt-sum b { font-size: 20px; font-weight: 700; }
.bjfbt-count { color: var(--bj-muted); font-size: 13px; }
.bjfbt button.bjfbt-btn {
	display: block; width: 100% !important; min-height: 48px !important; margin: 0 !important;
	padding: 10px 20px !important; border: 0 !important; border-radius: 5px !important;
	background: var(--bj-green) !important; color: #fff !important; box-shadow: none !important;
	font-size: 14px !important; font-weight: 600 !important; letter-spacing: .04em !important; text-transform: uppercase !important;
	cursor: pointer; transition: background .2s, opacity .2s;
}
.bjfbt button.bjfbt-btn:hover { background: var(--bj-green-dark) !important; }
.bjfbt button.bjfbt-btn:disabled { opacity: .45; cursor: not-allowed; }
.bjfbt button.bjfbt-btn.loading { opacity: .7; pointer-events: none; }
.bjfbt button.bjfbt-btn.loading::after {
	content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 10px;
	border: 2px solid #fff; border-right-color: transparent; border-radius: 50%;
	vertical-align: -2px; animation: bjfbt-spin .7s linear infinite;
}
@keyframes bjfbt-spin { to { transform: rotate(360deg); } }
.bjfbt-msg { display: none; margin-top: 10px; text-align: center; font-size: 13px; color: #b5573b; }
.bjfbt-msg.is-ok { color: var(--bj-green-dark); }
.bjfbt-msg.is-shown { display: block; }

@media (max-width: 600px) {
	.bjfbt { padding: 16px 12px 14px; }
	.bjfbt-title { font-size: 18px; }
	.bjfbt-item { grid-template-columns: 22px 60px minmax(0, 1fr); gap: 10px; padding: 10px; }
	.bjfbt-img, .bjfbt .bjfbt-img img { width: 60px !important; height: 60px !important; }
	.bjfbt-line { grid-column: 3; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .bjfbt * { transition: none !important; animation: none !important; } }
