.cbcl-list {
	--cbcl-primary: var( --cbcl-primary-color, #2271b1 );
	--cbcl-primary-text: var( --cbcl-primary-text-color, #ffffff );
	--cbcl-badge: var( --cbcl-badge-color, #e8630a );
	--cbcl-star: var( --cbcl-star-color, #f5a623 );
	--cbcl-border: #e3e3e3;
	--cbcl-radius: 10px;
	--cbcl-text: #23282d;
	--cbcl-muted: #6b7280;

	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 28px 0;
	font-family: inherit;
}

.cbcl-list * {
	box-sizing: border-box;
}

/* ---------- shared item internals ---------- */

.cbcl-item {
	border: 1px solid var( --cbcl-border );
	border-radius: var( --cbcl-radius );
	background: #fff;
	padding: 18px;
}

.cbcl-item-top {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.cbcl-rank-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 30px;
	padding: 0 8px;
	background: var( --cbcl-primary );
	color: var( --cbcl-primary-text );
	font-weight: 800;
	font-size: 13px;
	border-radius: 6px;
	line-height: 1;
}

.cbcl-badge {
	display: inline-block;
	background: var( --cbcl-badge );
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 4px;
}

.cbcl-item-title {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.3;
	color: var( --cbcl-text );
}

.cbcl-rating {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
	font-size: 15px;
	line-height: 1;
}

.cbcl-stars-bg,
.cbcl-stars-fg {
	letter-spacing: 2px;
}

.cbcl-stars-bg {
	color: #dcdcdc;
}

.cbcl-stars-fg {
	position: absolute;
	left: 0;
	top: 0;
	overflow: hidden;
	white-space: nowrap;
	color: var( --cbcl-star );
}

.cbcl-rating-num {
	margin-left: 46px;
	color: var( --cbcl-muted );
	font-size: 13px;
	font-weight: 600;
}

/* Header: rank/title/rating on the left, image + price/button on the right (physical desktop) or stacked (digital) */

.cbcl-item-header {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 14px;
}

.cbcl-item-left {
	min-width: 0;
}

.cbcl-item-media-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.cbcl-item-media {
	flex-shrink: 0;
	width: 42%;
	max-width: 320px;
	overflow: hidden;
	border-radius: 8px;
}

.cbcl-item-image {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 8px;
	background: #f3f4f6;
	transition: transform 0.35s ease;
}

.cbcl-item-media:hover .cbcl-item-image {
	transform: scale( 3 );
	transform-origin: var( --cbcl-zoom-x, 50% ) var( --cbcl-zoom-y, 50% );
}

.cbcl-no-image {
	min-height: 220px;
}

.cbcl-item-cta {
	flex: 1;
	min-width: 0;
	align-self: center;
}

.cbcl-item-price {
	font-weight: 700;
	font-size: 16px;
	color: var( --cbcl-text );
	margin-bottom: 6px;
}

.cbcl-item-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cbcl-btn {
	display: inline-block;
	text-align: center;
	background: var( --cbcl-primary );
	color: var( --cbcl-primary-text ) !important;
	font-weight: 700;
	font-size: 13.5px;
	padding: 9px 16px;
	border-radius: 6px;
	text-decoration: none !important;
	transition: opacity 0.15s ease, transform 0.1s ease;
	border: none;
	cursor: pointer;
}

.cbcl-btn:hover {
	opacity: 0.88;
	transform: translateY( -1px );
	color: var( --cbcl-primary-text ) !important;
}

.cbcl-item-desc {
	margin: 0 0 8px;
	color: var( --cbcl-text );
	font-size: 14px;
	line-height: 1.55;
}

/* Expand / collapse "read full details" */

.cbcl-expand-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	padding: 4px 0;
	color: var( --cbcl-primary );
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

.cbcl-expand-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 1.5px solid var( --cbcl-primary );
	border-radius: 4px;
	font-size: 13px;
	line-height: 1;
}

.cbcl-expand-panel {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var( --cbcl-border );
}

.cbcl-expand-panel[hidden] {
	display: none;
}

.cbcl-item-details {
	margin: 0 0 4px;
	padding-left: 18px;
	color: var( --cbcl-muted );
	font-size: 13.5px;
	line-height: 1.65;
}

.cbcl-item-details li {
	margin-bottom: 2px;
}

.cbcl-item-details-rich {
	color: var( --cbcl-text );
	font-size: 14px;
	line-height: 1.65;
}

.cbcl-item-details-rich h1,
.cbcl-item-details-rich h2,
.cbcl-item-details-rich h3,
.cbcl-item-details-rich h4,
.cbcl-item-details-rich h5,
.cbcl-item-details-rich h6 {
	margin: 14px 0 8px;
	line-height: 1.3;
	color: var( --cbcl-text );
}

.cbcl-item-details-rich h1 { font-size: 1.4em; }
.cbcl-item-details-rich h2 { font-size: 1.25em; }
.cbcl-item-details-rich h3 { font-size: 1.1em; }

.cbcl-item-details-rich p {
	margin: 0 0 10px;
}

.cbcl-item-details-rich ul,
.cbcl-item-details-rich ol {
	margin: 0 0 10px;
	padding-left: 20px;
}

.cbcl-item-details-rich blockquote {
	margin: 0 0 10px;
	padding-left: 14px;
	border-left: 3px solid var( --cbcl-border );
	color: var( --cbcl-muted );
	font-style: italic;
}

.cbcl-item-details-rich pre {
	background: #f3f4f6;
	border: 1px solid var( --cbcl-border );
	border-radius: 6px;
	padding: 12px 14px;
	overflow-x: auto;
	margin: 0 0 10px;
}

.cbcl-item-details-rich code {
	background: #f3f4f6;
	border-radius: 3px;
	padding: 1px 5px;
	font-size: 0.9em;
}

.cbcl-item-details-rich pre code {
	background: none;
	padding: 0;
}

.cbcl-item-details-rich a {
	color: var( --cbcl-primary );
}

.cbcl-proscons {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 10px;
}

.cbcl-proscons-heading {
	display: block;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-bottom: 4px;
}

.cbcl-pros .cbcl-proscons-heading {
	color: #1a7a1a;
}

.cbcl-cons .cbcl-proscons-heading {
	color: #b32d2e;
}

.cbcl-proscons ul {
	margin: 0;
	padding-left: 16px;
	font-size: 13px;
	line-height: 1.55;
	color: var( --cbcl-text );
}

.cbcl-pros li::marker {
	color: #1a7a1a;
}

.cbcl-cons li::marker {
	color: #b32d2e;
}

@media ( max-width: 480px ) {
	.cbcl-proscons {
		grid-template-columns: 1fr;
	}
}

/* ---------- PHYSICAL layout: one full-width card per row, ranked top to bottom ---------- */

.cbcl-physical {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Title on the left (hugs its own content — no flex-grow, so the image sits right
   after it instead of being pushed to the far edge), image + price/button as one
   compact unit on the right, price and button side by side. */
.cbcl-physical .cbcl-item-header {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 16px 24px;
}

.cbcl-physical .cbcl-item-left {
	flex: 0 1 auto;
	min-width: 0;
}

.cbcl-physical .cbcl-item-media-row {
	flex: 0 0 auto;
	flex-direction: row;
	align-items: center;
	gap: 14px;
}

.cbcl-physical .cbcl-item-media-row .cbcl-item-media {
	width: 190px;
	max-width: none;
	flex-shrink: 0;
}

.cbcl-physical .cbcl-item-image {
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: contain;
	background: #f7f8f9;
}

.cbcl-physical .cbcl-item-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	width: auto;
	text-align: center;
}

.cbcl-physical .cbcl-item-price {
	margin-bottom: 0;
	white-space: nowrap;
}

/* Only real small-phone screens stack — a plain, explicit media query (not a width guess) */
@media ( max-width: 420px ) {
	.cbcl-physical .cbcl-item-header {
		flex-direction: column;
		flex-wrap: wrap;
	}

	.cbcl-physical .cbcl-item-media-row {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.cbcl-physical .cbcl-item-media-row .cbcl-item-media {
		width: 100%;
	}

	.cbcl-physical .cbcl-item-cta {
		flex-direction: column;
		align-items: center;
		width: 100%;
		text-align: center;
	}

	.cbcl-physical .cbcl-item-price {
		margin-bottom: 6px;
	}
}

/* ---------- DIGITAL layout: grid, 3 cards per row, #4 wraps to next row ---------- */

.cbcl-digital {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 18px;
	align-items: stretch;
}

.cbcl-digital .cbcl-item {
	display: flex;
	flex-direction: column;
}

.cbcl-digital .cbcl-item-media-row {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.cbcl-digital .cbcl-item-media {
	width: 100%;
	max-width: none;
}

.cbcl-digital .cbcl-item-image {
	width: 100%;
	height: 170px;
}

.cbcl-digital .cbcl-item-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	align-self: stretch;
}

.cbcl-digital .cbcl-item-price {
	margin-bottom: 0;
	white-space: nowrap;
}

@media ( max-width: 900px ) {
	.cbcl-digital {
		grid-template-columns: repeat( 2, 1fr );
	}
}

@media ( max-width: 560px ) {
	.cbcl-digital {
		grid-template-columns: 1fr;
	}
}
