.bb-widget {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1a1a2e;
}

@media (max-width: 780px) {
	.bb-widget { grid-template-columns: 1fr; }
}

/* ---------- Left panel ---------- */
.bb-left {
	background: #fff;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.bb-pills {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
	margin-bottom: 26px;
}

.bb-pill,
.bb-add-to-cart,
.bb-qty-minus,
.bb-qty-plus {
	cursor: pointer;
	user-select: none;
}

.bb-pill:focus-visible,
.bb-add-to-cart:focus-visible,
.bb-qty-minus:focus-visible,
.bb-qty-plus:focus-visible {
	outline: 2px solid #4a5cf7;
	outline-offset: 2px;
}

.bb-pill {
	display: flex;
	align-items: center;
	gap: 10px;
	background: #fff;
	border: 1.5px solid #e5e7f0;
	border-radius: 999px;
	padding: 14px 18px;
	font-size: 15px;
	font-weight: 600;
	color: #1a1a2e;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.bb-pill:hover { border-color: #c6cbe8; }

.bb-pill.is-selected {
	border-color: #4a5cf7;
	box-shadow: 0 0 0 1px #4a5cf7;
	color: #4a5cf7;
}

.bb-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.bb-pill-name { flex: 1; text-align: left; }

.bb-pill-price { color: #9ca0b8; font-weight: 600; }
.bb-pill.is-selected .bb-pill-price { color: #4a5cf7; }

/* ---------- Tier progress ---------- */
.bb-tiers { margin-bottom: 22px; }

.bb-tiers-track {
	position: relative;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
}

.bb-tiers-track::before {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	top: 50%;
	height: 2px;
	background: #e5e7f0;
	transform: translateY(-50%);
	z-index: 0;
}

.bb-tiers-fill {
	position: absolute;
	left: 16px;
	top: 50%;
	height: 2px;
	background: #4a5cf7;
	transform: translateY(-50%);
	z-index: 1;
	width: 0;
	transition: width .2s ease;
}

.bb-tier-node { position: relative; z-index: 2; }

.bb-tier-circle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #f3f4fa;
	color: #9ca0b8;
	font-weight: 700;
	font-size: 13px;
}

.bb-tier-node.is-active .bb-tier-circle {
	background: #4a5cf7;
	color: #fff;
}

.bb-tiers-labels {
	display: flex;
	justify-content: space-between;
	padding: 0 3px;
}

.bb-tier-label {
	font-size: 13px;
	font-weight: 600;
	color: #9ca0b8;
}

.bb-hint {
	background: #eef0fb;
	border-radius: 12px;
	padding: 14px 18px;
	font-weight: 700;
	font-size: 14px;
	color: #1a1a2e;
	display: inline-block;
}

/* ---------- Right panel ---------- */
.bb-right {
	background: #14141f;
	border-radius: 20px;
	padding: 28px;
	color: #fff;
	display: flex;
	flex-direction: column;
}

.bb-right-title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 18px;
}

.bb-lines { min-height: 40px; }

.bb-empty {
	color: #8b8ea3;
	font-size: 14px;
	margin: 0 0 10px;
}

.bb-line {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	font-size: 15px;
	border-bottom: 1px solid rgba(255,255,255,.14);
}

.bb-line-name { flex: 1; font-weight: 600; }

.bb-line-qty {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.06);
	border-radius: 999px;
	padding: 4px 8px;
}

.bb-line-qty button {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,.12);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
}

.bb-line-qty button:hover { background: rgba(255,255,255,.2); }

.bb-qty-value { min-width: 14px; text-align: center; font-weight: 700; }

.bb-line-price { font-weight: 700; min-width: 48px; text-align: right; }

.bb-divider {
	border-top: 1px dashed rgba(255,255,255,.2);
	margin: 16px 0;
}

.bb-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.bb-selected-count { color: #b5b8cc; font-size: 15px; }

.bb-total { font-size: 30px; font-weight: 800; }

.bb-savings {
	text-align: right;
	color: #34d399;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 22px;
}

.bb-add-to-cart {
	background: #4a5cf7;
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease;
}

.bb-add-to-cart:hover:not(.is-disabled) { background: #3d4de0; }

.bb-add-to-cart.is-disabled {
	opacity: .45;
	cursor: not-allowed;
	pointer-events: none;
}

.bb-footnote {
	text-align: center;
	font-size: 12.5px;
	color: #8b8ea3;
	margin: 14px 0 0;
	line-height: 1.5;
}