/**
 * BCG Product Cards v1.2.0 — "Rating Breakdown" card (Option 1 revised).
 * Site palette: green #1A5D1A, gold #D4A017, red #C41E2F. SVG icons only.
 */

/* ---------- Card shell ---------- */
.bcg-pc2 {
	--pc-red: #C41E2F;
	--pc-red-dark: #9E1626;
	--pc-green: #1A5D1A;
	--pc-green-dark: #123F12;
	--pc-gold: #D4A017;
	--pc-gold-light: #F3D47B;
	--pc-cream: #FFFBF5;
	--pc-text: #2B2B2B;
	--pc-muted: #5A5A5A;
	--pc-border: #EAE0D0;
	position: relative;
	border: 2px solid var(--pc-green);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	margin: 1.75rem 0;
	color: var(--pc-text);
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.bcg-pc2-ic { width: 22px; height: 22px; flex: none; }

/* ---------- Best Pick ribbon ---------- */
.bcg-pc2-ribbon {
	position: absolute;
	top: 24px;
	right: -42px;
	transform: rotate(45deg);
	background: linear-gradient(180deg, #f2c94c, var(--pc-gold));
	color: #3d2c05;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	padding: 7px 46px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
	z-index: 3;
	white-space: nowrap;
}

/* ---------- Header: product name + rating ---------- */
.bcg-pc2-head {
	background: linear-gradient(135deg, var(--pc-green), var(--pc-green-dark));
	color: #fff;
	padding: 15px 22px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
}
.bcg-pc2-pname {
	font-size: 1.22rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}
.bcg-pc2-pname .bcg-pc2-ic { width: 26px; height: 26px; color: var(--pc-gold-light); }
.bcg-pc2-pname > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bcg-pc2-hrating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 0.88rem;
	background: rgba(255, 255, 255, 0.14);
	padding: 7px 14px;
	border-radius: 20px;
	white-space: nowrap;
}
.bcg-pc2-hval { font-weight: 800; }
.bcg-pc2-hcount { opacity: 0.85; }

/* Stars: grey track + gold fill clipped by width */
.bcg-pc2-stars {
	position: relative;
	display: inline-block;
	font-size: 1rem;
	line-height: 1;
	letter-spacing: 2px;
	color: rgba(255, 255, 255, 0.35);
}
.bcg-pc2-stars::before { content: "★★★★★"; }
.bcg-pc2-stars-fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	color: var(--pc-gold);
	white-space: nowrap;
}
.bcg-pc2-stars-fill::before { content: "★★★★★"; }

/* ---------- Overall rating bar ---------- */
.bcg-pc2-overall {
	background: var(--pc-gold);
	color: #3d2c05;
	text-align: center;
	font-weight: 800;
	padding: 10px 16px;
	letter-spacing: 0.3px;
}

/* ---------- Main: image/button | highlights ---------- */
.bcg-pc2-main {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 26px;
	padding: 26px;
}
.bcg-pc2-left { display: flex; flex-direction: column; min-width: 0; }
.bcg-pc2-img {
	background: linear-gradient(135deg, var(--pc-cream), #f3e9d2);
	border: 1px solid var(--pc-border);
	border-radius: 12px;
	min-height: 240px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.bcg-pc2-img img { max-width: 100%; height: auto; display: block; }
.bcg-pc2-img a { display: flex; align-items: center; justify-content: center; width: 100%; }

.bcg-pc2-price {
	font-size: 1.8rem;
	font-weight: 900;
	color: var(--pc-green);
	margin: 14px 0 12px;
	text-align: center;
}
.bcg-pc2-price s { font-size: 0.95rem; color: #999; font-weight: 500; margin-left: 8px; }

/* Button 5 — Split Deal */
.bcg-pc2-btn {
	display: flex;
	align-items: stretch;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	font-weight: 900;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bcg-pc2-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2); }
.bcg-pc2-bl {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 10px;
	font-size: 1.08rem;
	letter-spacing: 0.4px;
	color: #3d2c05;
	background: linear-gradient(180deg, #ffd94d, var(--pc-gold));
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.bcg-pc2-bl .bcg-pc2-ic { width: 22px; height: 22px; }
.bcg-pc2-br {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 126px;
	padding: 12px 18px;
	background: var(--pc-green-dark);
	color: #fff;
}
.bcg-pc2-br strong { font-size: 1.35rem; letter-spacing: 0.3px; line-height: 1.2; }
.bcg-pc2-br > span:last-child { font-size: 0.68rem; font-weight: 800; letter-spacing: 1.2px; color: var(--pc-gold-light); }
/* Single (no price) variant */
.bcg-pc2-single {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 12px;
	font-size: 1.1rem;
	color: #3d2c05;
	background: linear-gradient(180deg, #ffd94d, var(--pc-gold));
	border: 1px solid #b9861a;
	text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

.bcg-pc2-disc { font-size: 0.75rem; color: #999; margin-top: 10px; text-align: center; line-height: 1.45; }

/* ---------- Highlights ---------- */
.bcg-pc2-high {
	background: #f4faf1;
	border: 1px solid #d9e8d0;
	border-radius: 12px;
	padding: 22px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}
.bcg-pc2-high-title { color: var(--pc-green); font-size: 1.12rem; margin: 0 0 10px; }
.bcg-pc2-high ul { list-style: none; margin: 0; padding: 0; font-size: 0.94rem; }
.bcg-pc2-high li { margin: 10px 0; padding-left: 24px; position: relative; line-height: 1.5; }
.bcg-pc2-high li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 8px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--pc-green);
}

/* ---------- Key features strip ---------- */
.bcg-pc2-feats {
	margin: 0 26px 4px;
	border: 1.5px dashed var(--pc-border);
	border-radius: 10px;
	padding: 13px 18px;
	font-size: 0.88rem;
	background: #fffdf8;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	align-items: center;
}
.bcg-pc2-feats strong { color: var(--pc-green); margin-right: 4px; }
.bcg-pc2-feats span { display: inline-flex; align-items: center; gap: 7px; }
.bcg-pc2-feats span::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--pc-gold);
	flex: none;
}

/* ---------- Pros / cons ---------- */
.bcg-pc2-pcwrap { display: flex; gap: 22px; margin-top: 30px; padding: 4px 26px 26px; }
.bcg-pc2-pc {
	flex: 1;
	border-radius: 14px;
	padding: 30px 18px 18px;
	position: relative;
	border: 2px solid;
	margin-top: 16px;
	min-width: 0;
}
.bcg-pc2-pros { border-color: var(--pc-green); background: #f2fbf4; }
.bcg-pc2-cons { border-color: var(--pc-red); background: #fdf2f2; }
.bcg-pc2-pcicon {
	position: absolute;
	top: -26px;
	left: 50%;
	transform: translateX(-50%);
	width: 52px;
	height: 52px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
	border: 3px solid #fff;
}
.bcg-pc2-pcicon .bcg-pc2-ic { width: 24px; height: 24px; }
.bcg-pc2-pros .bcg-pc2-pcicon { background: var(--pc-green); }
.bcg-pc2-cons .bcg-pc2-pcicon { background: var(--pc-red); }
.bcg-pc2-pc h4 { text-align: center; font-size: 0.8rem; letter-spacing: 1.5px; margin: 0 0 12px; }
.bcg-pc2-pros h4 { color: var(--pc-green); }
.bcg-pc2-cons h4 { color: var(--pc-red); }
.bcg-pc2-pc ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.bcg-pc2-pc li { margin: 9px 0; padding-left: 30px; position: relative; line-height: 1.45; }
.bcg-pc2-liic {
	position: absolute;
	left: 0;
	top: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	padding: 3px;
}
.bcg-pc2-pros .bcg-pc2-liic { color: var(--pc-green); background: #dcfce7; }
.bcg-pc2-cons .bcg-pc2-liic { color: var(--pc-red); background: #fee2e2; }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
	.bcg-pc2-main { grid-template-columns: 1fr; padding: 18px; gap: 18px; }
	.bcg-pc2-head { flex-direction: column; text-align: center; gap: 8px; }
	.bcg-pc2-pname > span:last-child { white-space: normal; }
	.bcg-pc2-feats { margin: 0 18px 4px; }
	.bcg-pc2-pcwrap { flex-direction: column; padding: 4px 18px 20px; }
	.bcg-pc2-ribbon { top: 18px; right: -46px; }
}

/* ---------- Block editor preview ---------- */
.bcg-pc-block-preview {
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	padding: 14px 16px;
	background: #f8fafc;
}
.bcg-pc-block-preview strong { display: block; margin-bottom: 4px; }
