/* ==================================================================
   Beauty Laser — review components
   Badges · stars · price tiers · skin tones · product cards ·
   pros/cons · verdict · note · TablePress tables
   ================================================================== */

/* ------------------------------------------------------------------
   Badges (التاقات)  — <span class="bl-badge bl-badge--value">أفضل قيمة</span>
------------------------------------------------------------------- */
.bl-badge {
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.2-4.5-9.4-8.7C1 9 2.8 5.3 6.3 4.9c2-.2 3.9.9 5.7 3 1.8-2.1 3.7-3.2 5.7-3 3.5.4 5.3 4.1 3.7 7.4C19.2 16.5 12 21 12 21z'/%3E%3C/svg%3E");
	--bg: var(--bl-accent);
	--fg: #fff;
	--bd: transparent;
	--ic: currentColor;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px 6px 12px;
	border-radius: 999px;
	border: 1.5px solid var(--bd);
	background: var(--bg);
	color: var(--fg);
	font-family: var(--bl-head);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	vertical-align: middle;
	box-shadow: 0 4px 12px rgba(36, 23, 31, .10);
}
.bl-badge::before {
	content: "";
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background: var(--ic);
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}

/* أفضل قيمة — heart, rose */
.bl-badge--value { --bg: var(--bl-badge); }

/* أفضل سعر — price tag, deep plum */
.bl-badge--price {
	--bg: var(--bl-deep);
	--ic: var(--bl-blush);
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M2.5 11.6V4a1.5 1.5 0 0 1 1.5-1.5h7.6c.4 0 .8.2 1.1.4l8.8 8.8a1.5 1.5 0 0 1 0 2.1l-7.6 7.6a1.5 1.5 0 0 1-2.1 0l-8.8-8.8a1.5 1.5 0 0 1-.5-1zM8 6.2a1.8 1.8 0 1 0 0 3.6 1.8 1.8 0 0 0 0-3.6z'/%3E%3C/svg%3E");
}

/* الأعلى تقييماً — star, warm gold */
.bl-badge--top {
	--bg: #FFF3D6;
	--fg: #6E4300;
	--bd: #F0D28F;
	--ic: var(--bl-star);
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.3l2.9 6.1 6.7.8-5 4.6 1.4 6.6L12 17.1l-6 3.3 1.4-6.6-5-4.6 6.7-.8z'/%3E%3C/svg%3E");
}

/* اختيارنا — check, outlined rose */
.bl-badge--pick {
	--bg: #fff;
	--fg: var(--bl-accent-dark);
	--bd: var(--bl-accent);
	--ic: var(--bl-accent);
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm4.7 6.3a1 1 0 0 0-1.4 0L10.5 13l-1.8-1.8a1 1 0 1 0-1.4 1.4l2.5 2.5a1 1 0 0 0 1.4 0l5.5-5.4a1 1 0 0 0 0-1.4z'/%3E%3C/svg%3E");
}

/* جديد — sparkle, nude */
.bl-badge--new {
	--bg: var(--bl-nude);
	--fg: var(--bl-accent-dark);
	--bd: var(--bl-nude-2);
	--ic: var(--bl-accent);
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.3 7.2 7.2 2.3-7.2 2.3L12 20.5l-2.3-7.2L2.5 11l7.2-2.3z'/%3E%3C/svg%3E");
	box-shadow: none;
}

/* للبشرة الداكنة — drop, cocoa */
.bl-badge--dark {
	--bg: #5A3E30;
	--ic: #F3E2C7;
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5s6.5 7 6.5 11.8a6.5 6.5 0 0 1-13 0C5.5 9.5 12 2.5 12 2.5z'/%3E%3C/svg%3E");
}

/* Round "seal" version — [bl_badge type="value" style="seal"] */
.bl-badge--seal {
	flex-direction: column;
	justify-content: center;
	gap: 3px;
	width: 92px;
	height: 92px;
	padding: 10px;
	border-radius: 50%;
	white-space: normal;
	text-align: center;
	font-size: 13px;
	line-height: 1.25;
	transform: rotate(-8deg);
	box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 2px rgba(255, 255, 255, .55), 0 8px 18px rgba(36, 23, 31, .16);
}
.bl-badge--seal::before { width: 18px; height: 18px; }
.bl-badge--seal.bl-badge--top, .bl-badge--seal.bl-badge--pick, .bl-badge--seal.bl-badge--new { box-shadow: 0 0 0 3px var(--bg), inset 0 0 0 2px var(--bd), 0 8px 18px rgba(36, 23, 31, .12); }

/* ------------------------------------------------------------------
   Stars — <span class="bl-stars" style="--r:4.5"><span class="bl-stars__num">4.5</span></span>
------------------------------------------------------------------- */
.bl-stars { --r: 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; vertical-align: middle; line-height: 1; }
.bl-stars::before {
	content: "★★★★★";
	font-family: Arial, "Segoe UI Symbol", sans-serif;
	font-size: 18px;
	letter-spacing: 1px;
	background: linear-gradient(to left, var(--bl-star) calc(var(--r) * 20%), #E4D8DD calc(var(--r) * 20%));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
[dir="ltr"] .bl-stars::before { background: linear-gradient(to right, var(--bl-star) calc(var(--r) * 20%), #E4D8DD calc(var(--r) * 20%)); -webkit-background-clip: text; background-clip: text; }
.bl-stars__num { font-family: var(--bl-head); font-weight: 700; font-size: 16px; color: var(--bl-ink); }

/* ------------------------------------------------------------------
   Price tier — [bl_price tier="3"]
------------------------------------------------------------------- */
.bl-price { display: inline-flex; font-family: var(--bl-head); font-weight: 700; font-size: 16px; letter-spacing: 1.5px; white-space: nowrap; }
.bl-price__on { color: var(--bl-ink); }
.bl-price__off { color: #D6C7CE; }

/* ------------------------------------------------------------------
   Product cards — [bl_cards][bl_card ...][/bl_cards]
------------------------------------------------------------------- */
.bl-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: 28px 20px;
	margin: 40px 0 32px;
	padding-top: 14px;
}
.bl-content .bl-cards { margin-inline: 0; }
.bl-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px;
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: 24px;
	transition: box-shadow .2s, transform .2s;
}
.bl-card:hover { box-shadow: var(--bl-shadow); transform: translateY(-3px); }
.bl-card.is-featured { border: 2px solid var(--bl-accent); box-shadow: 0 16px 40px rgba(176, 56, 106, .14); }
.bl-card > .bl-badge { position: absolute; top: -15px; inset-inline-start: 18px; z-index: 2; }
.bl-card > .bl-badge--seal { top: -22px; inset-inline-start: auto; inset-inline-end: -12px; }
.bl-card__img {
	aspect-ratio: 4 / 3;
	border-radius: 16px;
	background: var(--bl-tile);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.bl-card .bl-card__img img {
	width: auto;
	height: auto;
	max-width: 82%;
	max-height: 82%;
	object-fit: contain;
	border-radius: 0;
	mix-blend-mode: multiply; /* white product backgrounds blend into the nude tile */
}
.bl-card__noimg { width: 56px; height: 56px; border-radius: 16px; border: 2px dashed #E0C9BE; }
.bl-card .bl-card__title { font-family: var(--bl-head); font-size: 18px; line-height: 1.5; margin: 4px 0 0; color: var(--bl-ink); }
.bl-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.bl-card .bl-card__text { font-size: 15px; line-height: 1.75; color: var(--bl-muted); margin: 0; }
.bl-card .bl-card__specs { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.bl-card .bl-card__specs li {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	margin: 0; padding: 9px 0; border-top: 1px dashed var(--bl-line); color: var(--bl-muted); line-height: 1.5;
}
.bl-card .bl-card__specs li::marker { content: none; }
.bl-card .bl-card__specs b { color: var(--bl-ink); font-weight: 600; text-align: end; }
.bl-card__actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.bl-card__actions .bl-btn { width: 100%; }

/* ------------------------------------------------------------------
   Pros & cons — [bl_proscons pros="…" cons="…"]
------------------------------------------------------------------- */
.bl-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 32px 0; }
.bl-pros, .bl-cons { border-radius: var(--bl-r); padding: 22px 24px; }
.bl-pros { background: #EEF7F1; --mk: var(--bl-good); --mk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.bl-cons { background: #FBEEF0; --mk: var(--bl-bad); --mk-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.bl-proscons__title { font-family: var(--bl-head); font-weight: 700; font-size: 18px; margin: 0 0 12px; color: var(--mk); }
.bl-proscons ul { list-style: none; margin: 0; padding: 0; }
.bl-proscons li { position: relative; margin: 0; padding: 7px 0; padding-inline-start: 30px; font-size: 16px; line-height: 1.7; color: var(--bl-ink-2); }
.bl-proscons li::marker { content: none; }
.bl-proscons li::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 12px; width: 18px; height: 18px;
	background: var(--mk);
	-webkit-mask: var(--mk-icon) center / contain no-repeat;
	mask: var(--mk-icon) center / contain no-repeat;
}

/* ------------------------------------------------------------------
   Verdict — [bl_verdict rating="4.5"]…[/bl_verdict]
------------------------------------------------------------------- */
.bl-verdict {
	display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center;
	margin: 40px 0; padding: 28px 32px; border-radius: 28px; background: var(--bl-deep); color: #E8DDE2;
}
.bl-verdict__score { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 120px; }
.bl-verdict__num { font-family: var(--bl-head); font-size: 56px; font-weight: 700; line-height: 1; color: #fff; }
.bl-verdict .bl-stars::before { font-size: 20px; background-image: linear-gradient(to left, var(--bl-star) calc(var(--r) * 20%), #4A3644 calc(var(--r) * 20%)); }
.bl-verdict__body { flex: 1 1 320px; }
.bl-verdict__title { font-family: var(--bl-head); font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 6px; }
.bl-verdict__body p { margin: 0 0 16px; line-height: 1.85; }
.bl-verdict .bl-btn { background: var(--bl-blush); border-color: var(--bl-blush); color: var(--bl-deep); }
.bl-verdict .bl-btn:hover { background: #fff; border-color: #fff; color: var(--bl-deep); }

/* ------------------------------------------------------------------
   Note — [bl_note title="نصيحة"]…[/bl_note]
------------------------------------------------------------------- */
.bl-note { margin: 28px 0; padding: 20px 24px; border-radius: var(--bl-r); background: #FFF8E8; border: 1px solid #F3E1B0; color: #4A3A1A; }
.bl-note__title { display: flex; align-items: center; gap: 8px; font-family: var(--bl-head); font-weight: 700; margin: 0 0 6px; color: #6E4300; }
.bl-note__title::before {
	content: ""; width: 18px; height: 18px; background: var(--bl-star);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21h6v-1.5H9V21zm3-19a7 7 0 0 0-4 12.7V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21h6v-1.5H9V21zm3-19a7 7 0 0 0-4 12.7V17a1 1 0 0 0 1 1h6a1 1 0 0 0 1-1v-2.3A7 7 0 0 0 12 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bl-note p { margin: 0 0 .6em; font-size: 16px; line-height: 1.8; }
.bl-note p:last-child { margin: 0; }

/* ------------------------------------------------------------------
   TablePress
   Works on every TablePress table automatically. Put shortcodes in cells:
   [bl_badge type="value"]  [bl_stars rating="4.9"]  [bl_price tier="4"]  [bl_skin from="1" to="5"]
   Add the CSS class "bl-no-stack" (Table options → Extra CSS classes) to keep
   a table side-scrolling on phones instead of turning into cards.
------------------------------------------------------------------- */
.tablepress {
	--text-color: var(--bl-ink);
	--head-text-color: #FFFCFA;
	--head-bg-color: var(--bl-deep);
	--odd-bg-color: var(--bl-surface);
	--even-bg-color: var(--bl-bg);
	--hover-bg-color: #FBF3EF;
	--border-color: var(--bl-line);
	--padding: 16px 18px;
	border: 1px solid var(--bl-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--bl-r);
	overflow: hidden;
	background: var(--bl-surface);
	font-size: 15px;
	line-height: 1.65;
	margin: 32px 0;
}
.tablepress > thead > tr > th,
.tablepress > tfoot > tr > th {
	font-family: var(--bl-head);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2px;
	white-space: nowrap;
	padding-block: 16px;
}
.tablepress > tbody > tr, .tablepress > tbody.row-hover > tr { content-visibility: visible; }
.tablepress > tbody > tr > td { vertical-align: middle; }
.tablepress > tbody > tr > td:first-child { font-weight: 600; }
.tablepress tbody img {
	display: block;
	max-width: 120px;
	height: auto;
	margin-inline: auto;
	border-radius: 0;
	mix-blend-mode: multiply;
}
.tablepress tbody td > .bl-badge { margin-top: 10px; }
.tablepress td .bl-stars { display: flex; }
.tablepress td p { margin: 0 0 .5em; }
.tablepress td p:last-child { margin: 0; }

/* Rows that carry a badge are softly highlighted */
.tablepress > tbody > tr:has(.bl-badge) > td { background-color: #FFF7F9; }

/* Summary rows spanning all columns (e.g. «الأنسب لـ: …») */
.tablepress > tbody > tr > td[colspan] {
	background-color: var(--bl-bg);
	color: var(--bl-ink-2);
	font-size: 14px;
	font-weight: 400;
	padding-block: 12px 16px;
}
.tablepress > tbody > tr > td[colspan]::first-line { font-weight: 600; }

/* DataTables controls (search, pagination) when enabled in TablePress */
.dt-container .dt-search input, .dataTables_filter input {
	border: 1.5px solid var(--bl-nude-2); border-radius: 999px; padding: 8px 16px; background: var(--bl-surface);
}
.dt-container .dt-paging .dt-paging-button.current, .dataTables_paginate .paginate_button.current {
	background: var(--bl-deep) !important; color: #fff !important; border-color: var(--bl-deep) !important; border-radius: 999px;
}

/* Phones: each row becomes a card (labels come from the header, added by theme.js) */
@media (max-width: 720px) {
	.tablepress.bl-stack { border: 0; border-radius: 0; background: transparent; overflow: visible; }
	.tablepress.bl-stack > thead { display: none; }
	.tablepress.bl-stack,
	.tablepress.bl-stack > tbody,
	.tablepress.bl-stack > tbody > tr,
	.tablepress.bl-stack > tbody > tr > td { display: block; width: 100%; }
	.tablepress.bl-stack > tbody > tr {
		background: var(--bl-surface);
		border: 1px solid var(--bl-line);
		border-radius: var(--bl-r);
		margin-bottom: 16px;
		overflow: hidden;
	}
	.tablepress.bl-stack > tbody > tr > td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 16px;
		padding: 12px 18px;
		border-top: 1px dashed var(--bl-line);
		background-color: transparent;
		text-align: start;
		font-weight: 400;
	}
	.tablepress.bl-stack > tbody > tr > td:first-child { border-top: 0; }
	.tablepress.bl-stack > tbody > tr > td[data-label]::before {
		content: attr(data-label);
		flex-shrink: 0;
		font-size: 13px;
		font-weight: 600;
		color: var(--bl-muted);
	}
	.tablepress.bl-stack > tbody > tr > td[data-label] > .bl-cell-v { min-width: 0; text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
	.tablepress.bl-stack > tbody > tr > td.bl-cell-media {
		flex-direction: column;
		justify-content: center;
		background-color: var(--bl-tile);
		padding: 18px;
	}
	.tablepress.bl-stack > tbody > tr > td.bl-cell-media .bl-badge { margin-top: 12px; }
	.tablepress.bl-stack > tbody > tr > td.bl-cell-full { display: block; background-color: var(--bl-bg); }
	.tablepress.bl-stack > tbody > tr:has(.bl-badge) { border-color: var(--bl-accent); }
	.tablepress.bl-stack > tbody > tr:has(.bl-badge) > td { background-color: transparent; }
	.tablepress.bl-stack > tbody > tr:has(.bl-badge) > td.bl-cell-media { background-color: var(--bl-tile); }

	/* A summary row joins the card above it */
	.tablepress.bl-stack > tbody > tr:has(+ tr > td.bl-cell-full) { margin-bottom: 0; border-bottom: 0; border-end-start-radius: 0; border-end-end-radius: 0; }
	.tablepress.bl-stack > tbody > tr:has(> td.bl-cell-full) { border-top: 1px dashed var(--bl-line); border-start-start-radius: 0; border-start-end-radius: 0; }

	/* Opt-out: side-scroll instead */
	.tablepress.bl-no-stack { display: block; overflow-x: auto; white-space: nowrap; }
}

/* Inside articles: tables and product cards get a wider stage than the text column */
.bl-content .bl-cards,
.bl-content > .bl-cols,
.bl-content > .tablepress,
.bl-content .dt-container {
	width: min(1040px, 100vw - 48px);
	max-width: none;
	margin-inline: calc(50% - min(520px, 50vw - 24px));
}
.bl-content .dt-container .tablepress { width: 100%; margin-inline: 0; }

/* Heart sticker — [bl_badge type="value" style="heart"]  (real text inside a CSS heart) */
.bl-badge--heart {
	position: relative;
	isolation: isolate;
	width: 104px;
	height: 96px;
	padding: 0 16px 16px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--fg);
	flex-direction: column;
	justify-content: center;
	text-align: center;
	white-space: normal;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.12;
	transform: rotate(-6deg);
	filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 8px 12px rgba(36, 23, 31, .18));
}
.bl-badge--heart::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	width: auto;
	height: auto;
	background: var(--bg);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C38 80 4 58 1.5 32 0 14 12 1.5 27 1.5c10 0 18 5.5 23 14 5-8.5 13-14 23-14 15 0 27 12.5 25.5 30.5C96 58 62 80 50 90z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 92'%3E%3Cpath d='M50 90C38 80 4 58 1.5 32 0 14 12 1.5 27 1.5c10 0 18 5.5 23 14 5-8.5 13-14 23-14 15 0 27 12.5 25.5 30.5C96 58 62 80 50 90z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.bl-badge--heart.bl-badge--value { --bg: var(--bl-badge); }
.bl-badge--heart.bl-badge--top, .bl-badge--heart.bl-badge--new, .bl-badge--heart.bl-badge--pick { --fg: var(--bl-deep); }
.bl-card > .bl-badge--heart { top: -26px; inset-inline-start: auto; inset-inline-end: -14px; }
.bl-content > p > .bl-badge--heart:only-child { margin-block: 4px; }

/* ------------------------------------------------------------------
   Columns — [one_third]…[/one_third][one_third_last]…[/one_third_last]
------------------------------------------------------------------- */
.bl-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 28px 0;
}
.bl-cols > .bl-col { flex: 1 1 calc(var(--span, 60) / 60 * 100% - 16px); min-width: 0; }
.bl-col {
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: var(--bl-r);
	padding: 20px 22px;
	font-size: 16px;
	line-height: 1.8;
	color: var(--bl-ink-2);
}
.bl-col > :first-child { margin-top: 0; }
.bl-col > :last-child { margin-bottom: 0; }
.bl-col p { margin: 0 0 .6em; }
.bl-col p:first-child > strong:first-child,
.bl-col h3, .bl-col h4 {
	display: inline-block;
	font-family: var(--bl-head);
	font-size: 17px;
	font-weight: 700;
	color: var(--bl-ink);
	margin: 0 0 4px;
}
.bl-col img { border-radius: 0; vertical-align: middle; }
.bl-col:not(.bl-cols > .bl-col) { margin: 16px 0; }
.bl-cols + .bl-cols { margin-top: -12px; }
.bl-band .bl-col, .bl-note .bl-col { background: var(--bl-bg); }

@media (max-width: 900px) {
	.bl-cols > .bl-col { flex-basis: calc(50% - 16px); }
}
@media (max-width: 600px) {
	.bl-cols > .bl-col { flex-basis: 100%; }
}

/* ------------------------------------------------------------------
   More badges: الأكثر مبيعاً · الأشهر · تبريد
------------------------------------------------------------------- */
.bl-badge--best {
	--bg: #C2410C;
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.5 1.5s1 3.4-1.6 6.6C8.6 11 7 12.8 7 15.6A5 5 0 0 0 12 21a6 6 0 0 0 6-6c0-3-1.4-4.9-2.6-6.3-.2 1.6-.9 2.8-2.1 3.5.5-3.6-.1-7.5-.8-10.7z'/%3E%3C/svg%3E");
}
.bl-badge--popular {
	--bg: #6B2D5C;
	--ic: #F7C8DD;
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 7l4.5 4L12 4l4.5 7L21 7l-2 11H5z M5 20h14v2H5z'/%3E%3C/svg%3E");
}
.bl-badge--cool {
	--bg: #E3F2FB;
	--fg: #0B4F6C;
	--bd: #B9DDF2;
	--ic: #1F8BC4;
	box-shadow: none;
	--icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 2v20M3.3 7l17.4 10M3.3 17L20.7 7M9 3.5l3 2.5 3-2.5M9 20.5l3-2.5 3 2.5'/%3E%3C/svg%3E");
}
.bl-badge--heart.bl-badge--cool { --fg: #0B4F6C; }
.bl-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 10px; }
.bl-badges .bl-badge--heart, .bl-badges .bl-badge--seal { margin-top: 4px; }

/* ------------------------------------------------------------------
   Store buttons — [bl_buy url="…"]  (any number)
------------------------------------------------------------------- */
.bl-buy, .entry-content .bl-buy {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; margin: 4px 0 4px 8px;
	border-radius: 999px; border: 1.5px solid var(--bl-ink);
	background: var(--bl-surface); color: var(--bl-ink);
	font-family: var(--bl-body); font-size: 15px; font-weight: 600; line-height: 1.3;
	text-decoration: none; white-space: nowrap; transition: .15s;
}
.bl-buy:hover, .entry-content .bl-buy:hover { background: var(--bl-deep); color: #fff; }
.bl-buys { display: flex; flex-wrap: wrap; gap: 10px; }
.bl-buys .bl-buy { margin: 0; }
.bl-buys .bl-buy:first-child, .bl-buy--primary { background: var(--bl-accent); border-color: var(--bl-accent); color: #fff; }
.bl-buys .bl-buy:first-child:hover { background: var(--bl-accent-dark); border-color: var(--bl-accent-dark); color: #fff; }
.tablepress td .bl-buy { margin: 4px 0 4px 8px; }

/* ------------------------------------------------------------------
   Native comparison table — [bl_compare][bl_product …][/bl_compare]
------------------------------------------------------------------- */
.bl-compare .bl-th-media { width: 170px; }
.bl-compare .bl-cell-media { text-align: center; }
.bl-compare__name { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--bl-ink); }
.bl-compare__skin { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bl-compare__hair { font-size: 14px; color: var(--bl-ink-2); font-weight: 400; }
.bl-compare .bl-compare__details td { font-size: 15px; line-height: 1.85; }
.bl-compare__details p { margin: 0 0 .4em; }
.bl-compare__best strong { color: var(--bl-accent-dark); }
.bl-compare__review { color: var(--bl-muted); font-size: 14px; }
.bl-compare__review a { font-weight: 600; }
.tablepress.bl-compare > tbody > tr.bl-compare__buy > td { background-color: var(--bl-surface); padding-block: 14px; }
.tablepress.bl-compare > tbody > tr > td[colspan]::first-line { font-weight: inherit; }
.tablepress.bl-compare > tbody + tbody > tr:first-child > td { border-top: 6px solid var(--bl-nude); }
.tablepress.bl-compare > tbody.is-featured > tr > td { background-color: #FFF7F9; }
@media (max-width: 720px) {
	.tablepress.bl-compare > tbody { margin-bottom: 18px; }
	.tablepress.bl-compare > tbody + tbody > tr:first-child > td { border-top: 0; }
	.tablepress.bl-stack > tbody > tr > td.bl-cell-media .bl-badges { margin-top: 12px; }
	.bl-compare__skin { align-items: flex-end; }
	.bl-buys { flex-direction: column; }
	.bl-buys .bl-buy { width: 100%; }
}

/* ------------------------------------------------------------------
   Feature scorecard — [bl_scores][bl_score title="…" rating="4"]…[/bl_score][/bl_scores]
------------------------------------------------------------------- */
.bl-scores { margin: 36px 0; border: 1px solid var(--bl-line); border-radius: 28px; background: var(--bl-surface); overflow: hidden; }
.bl-scores__head {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
	padding: 22px 28px; background: var(--bl-deep); color: #fff;
}
.bl-scores__title { margin: 0; font-family: var(--bl-head); font-size: 20px; font-weight: 700; color: #fff; }
.bl-scores__overall { display: flex; align-items: center; gap: 12px; }
.bl-scores__num { font-family: var(--bl-head); font-size: 44px; font-weight: 700; line-height: 1; color: #fff; }
.bl-scores__of { display: flex; flex-direction: column; gap: 6px; }
.bl-scores__label { font-size: 13px; color: #D9CBD2; }
.bl-scores .bl-scores__head .bl-stars::before { background-image: linear-gradient(to left, var(--bl-star) calc(var(--r) * 20%), #4A3644 calc(var(--r) * 20%)); }
.bl-scores__grid { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 640px) {
	.bl-scores__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bl-scores__grid > .bl-score:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
	.bl-scores__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bl-scores__grid > .bl-score:last-child:nth-child(odd) { grid-column: auto; }
	/* no empty cells: the last box stretches over what is left of its row */
	.bl-scores__grid > .bl-score:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
	.bl-scores__grid > .bl-score:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
.bl-score { background: var(--bl-surface); padding: 20px 24px; outline: 1px solid var(--bl-line); }
.bl-score__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.bl-score__title { margin: 0; font-family: var(--bl-head); font-size: 17px; font-weight: 700; color: var(--bl-ink); }
.bl-score .bl-stars::before { font-size: 16px; }
.bl-score .bl-stars__num { font-size: 15px; }
.bl-score__text { font-size: 15px; line-height: 1.8; color: var(--bl-ink-2); }
.bl-score__text p { margin: 0 0 .5em; }
.bl-score__text p:last-child { margin: 0; }
.bl-content > .bl-scores { width: min(1040px, 100vw - 48px); max-width: none; margin-inline: calc(50% - min(520px, 50vw - 24px)); }

/* ------------------------------------------------------------------
   Skin & hair colours — [bl_tones skin="1-5" hair="1-4"], [bl_skin], [bl_hair]
------------------------------------------------------------------- */
.bl-swatches { --sz: 26px; display: inline-flex; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.bl-sw {
	position: relative;
	width: var(--sz); height: var(--sz); border-radius: 50%;
	background: var(--c);
	box-shadow: inset 0 0 0 1px rgba(36, 23, 31, .08);
	flex-shrink: 0;
}
.bl-sw.is-on::after {
	content: ""; position: absolute; inset: 0;
	background: var(--bl-surface);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.4'/%3E%3C/svg%3E") center / 64% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.4'/%3E%3C/svg%3E") center / 64% no-repeat;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}
.bl-sw.is-off { opacity: .3; box-shadow: inset 0 0 0 1.5px rgba(36, 23, 31, .25); }

.bl-tones {
	display: flex; flex-direction: column; gap: 18px;
	margin: 28px 0; padding: 22px 26px;
	background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: 24px;
}
.bl-tones__title { margin: 0 0 10px; font-family: var(--bl-head); font-size: 17px; font-weight: 700; color: var(--bl-ink); }
.bl-tones .bl-swatches { --sz: 58px; gap: 12px; }
@media (max-width: 600px) { .bl-tones { padding: 18px; } .bl-tones .bl-swatches { --sz: 34px; gap: 6px; flex-wrap: nowrap; } }
.tablepress .bl-swatches, .bl-compare__skin .bl-swatches { --sz: 24px; gap: 4px; }

/* Full reference chart — [bl_skin_chart] [bl_hair_chart] */
.bl-chart { margin: 32px 0; padding: 26px; background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: 28px; }
.bl-chart .bl-chart__title { font-size: 18px; margin-top: 0; font-family: var(--bl-head); font-weight: 700; font-size: 18px; margin-bottom: 18px; color: var(--bl-ink); text-align: start; }
.bl-chart__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 18px 10px; }
.bl-chart__item { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin: 0; }
.bl-chart__item::marker { content: none; }
.bl-chart__dot {
	position: relative; width: min(84px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--c);
	display: flex; align-items: center; justify-content: center;
	font-family: var(--bl-head); font-size: 30px; font-weight: 700; color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
	box-shadow: inset 0 0 0 1px rgba(36, 23, 31, .06);
}
.bl-chart--skin .bl-chart__item:nth-child(-n+3) .bl-chart__dot { color: #fff; }
.bl-chart__ok {
	position: absolute; bottom: -2px; inset-inline-end: -2px; width: 28px; height: 28px; border-radius: 50%;
	background: var(--bl-good); box-shadow: 0 0 0 3px #fff;
}
.bl-chart__ok::after {
	content: ""; position: absolute; inset: 0; background: var(--bl-surface);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.4'/%3E%3C/svg%3E") center / 62% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.2 4.2 8.8-9.4'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.bl-chart__label { font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--bl-ink-2); max-width: 120px; }
.bl-chart__item.is-off .bl-chart__dot { opacity: .25; }
.bl-chart__item.is-off .bl-chart__label { color: #B5A6AE; text-decoration: line-through; text-decoration-thickness: 1px; }
@media (max-width: 600px) {
	.bl-chart__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.bl-chart__dot { width: 64px; font-size: 24px; }
}

/* ------------------------------------------------------------------
   Product box — [bl_box …]
------------------------------------------------------------------- */
.bl-box {
	display: grid;
	grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
	margin: 44px 0;
	background: var(--bl-surface);
	border: 1px solid var(--bl-line);
	border-radius: 28px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(36, 23, 31, .06);
}
.bl-content > .bl-box { width: min(1040px, 100vw - 48px); max-width: none; margin-inline: calc(50% - min(520px, 50vw - 24px)); }
.bl-box__media {
	position: relative; display: flex; align-items: center; justify-content: center;
	min-height: 340px; padding: 40px 28px; background: var(--bl-tile);
}
.bl-box__media::before {
	content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%;
	border: 1px solid #E8D4CA; box-shadow: 0 0 0 28px rgba(255, 255, 255, .28);
}
.bl-box .bl-box__media img { position: relative; max-width: 78%; max-height: 300px; width: auto; height: auto; object-fit: contain; border-radius: 0; mix-blend-mode: multiply; }
.bl-box__media > .bl-badge { position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2; }
.bl-box__media > .bl-badge--heart, .bl-box__media > .bl-badge--seal { top: 14px; inset-inline-start: auto; inset-inline-end: 14px; }
.bl-box__body { padding: 30px 32px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bl-box__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bl-box__tech, .bl-card__tech {
	display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
	background: var(--bl-deep); color: #FFFCFA; font-family: var(--bl-head); font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
}
.bl-box .bl-box__name { margin: 0; font-family: var(--bl-head); font-size: clamp(21px, 2.4vw, 26px); line-height: 1.45; color: var(--bl-ink); }
.bl-box__rating { display: flex; align-items: center; gap: 10px; }
.bl-box__rating .bl-stars::before { font-size: 20px; }
.bl-box__rating .bl-stars__num { font-size: 18px; }
.bl-box__our { font-size: 13px; color: var(--bl-muted); }
.bl-box__text { font-size: 16px; line-height: 1.85; color: var(--bl-ink-2); }
.bl-box__text p { margin: 0 0 .5em; }
.bl-box__text p:last-child { margin: 0; }

.bl-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bl-feats .bl-feat {
	display: inline-flex; align-items: center; gap: 6px; margin: 0;
	padding: 6px 12px 6px 14px; border-radius: 999px;
	background: var(--bl-bg); border: 1px solid var(--bl-line);
	font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--bl-ink-2);
}
.bl-feats .bl-feat::marker { content: none; }
.bl-feat svg { color: var(--bl-accent); flex-shrink: 0; }

.bl-box__tones, .bl-card__tones { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.bl-card__tones { flex-direction: column; gap: 8px; }
.bl-box__tone { display: flex; align-items: center; gap: 10px; }
.bl-box__tone > span:first-child { font-size: 13px; font-weight: 600; color: var(--bl-muted); min-width: 40px; }
.bl-box__tone .bl-swatches { --sz: 22px; gap: 4px; }

.bl-box__specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 20px; margin: 4px 0 0; }
.bl-box__specs > div { padding: 10px 0; border-top: 1px dashed var(--bl-line); }
.bl-box__specs dt { font-size: 12.5px; color: var(--bl-muted); margin: 0 0 2px; }
.bl-box__specs dd { margin: 0; font-weight: 700; font-size: 15px; color: var(--bl-ink); }

.bl-box__shop { grid-column: 1 / -1; padding: 20px 32px 18px; background: var(--bl-bg); border-top: 1px solid var(--bl-line); }
.bl-offers { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.bl-offers .bl-offer {
	display: grid; grid-template-columns: 1fr auto; grid-template-areas: "store go" "price go";
	align-items: center; gap: 0 12px; margin: 0;
	padding: 12px 14px 12px 12px; background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: 16px;
	transition: border-color .15s, box-shadow .15s;
}
.bl-offers .bl-offer::marker { content: none; }
.bl-offer:hover { border-color: var(--bl-accent); box-shadow: 0 6px 16px rgba(176, 56, 106, .10); }
.bl-offer.is-first { border: 1.5px solid var(--bl-accent); }
.bl-offer__store { grid-area: store; font-weight: 700; font-size: 15px; color: var(--bl-ink); }
.bl-offer__price { grid-area: price; font-family: var(--bl-head); font-size: 14px; font-weight: 600; color: var(--bl-accent-dark); }
.bl-offer__price:empty { display: none; }
.bl-offer:has(.bl-offer__price:empty) { grid-template-areas: "store go"; }
.bl-content .bl-offer__go, .bl-offer__go {
	grid-area: go; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 16px;
	border-radius: 999px; border: 1.5px solid var(--bl-ink); color: var(--bl-ink); background: var(--bl-surface);
	font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: .15s;
}
.bl-offer__go:hover { background: var(--bl-deep); color: #fff; }
.bl-offer.is-first .bl-offer__go { background: var(--bl-accent); border-color: var(--bl-accent); color: #fff; }
.bl-offer.is-first .bl-offer__go:hover { background: var(--bl-accent-dark); border-color: var(--bl-accent-dark); }
.bl-content a.bl-offer__go { text-decoration: none; }
.bl-box__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--bl-muted); }
.bl-content .bl-box__review { font-size: 14px; font-weight: 700; text-decoration: none; }

@media (max-width: 760px) {
	.bl-box { grid-template-columns: 1fr; }
	.bl-box__media { min-height: 240px; padding: 28px; }
	.bl-box__body { padding: 22px 20px 18px; }
	.bl-box__shop { padding: 16px 20px; }
}

/* Grid cards with stores */
.bl-card__tech { align-self: flex-start; }
.bl-card .bl-feats { gap: 6px; }
.bl-card .bl-feats .bl-feat { font-size: 12.5px; padding: 4px 10px; }
.bl-card .bl-feat svg { width: 15px; height: 15px; }
.bl-card .bl-offers { grid-template-columns: 1fr; gap: 8px; }
.bl-card .bl-offer { padding: 8px 10px; border-radius: 14px; }
.bl-card .bl-offer__go { min-height: 36px; padding: 6px 14px; font-size: 13px; }
.bl-content .bl-feats, .bl-content .bl-offers, .bl-content .bl-swatches { padding: 0; margin-block: 0; }
.bl-content .bl-feats li, .bl-content .bl-offers li { margin-bottom: 0; }
.bl-box__specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bl-card > .bl-card__tech { position: absolute; top: 34px; inset-inline-end: 34px; z-index: 2; }

/* ------------------------------------------------------------------
   Rating card (top of each review) — also [bl_rating score="4.2"]
------------------------------------------------------------------- */
.bl-rating-card {
	display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
	margin: 0 0 32px; padding: 24px 28px;
	background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: 28px;
	box-shadow: 0 14px 34px rgba(36, 23, 31, .05);
}
.bl-ring {
	--p: 0; position: relative; flex-shrink: 0; width: 124px; height: 124px; border-radius: 50%;
	background: conic-gradient(var(--bl-accent) calc(var(--p) * 1%), var(--bl-nude) 0);
	display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.bl-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--bl-surface); }
.bl-ring__num { position: relative; font-family: var(--bl-head); font-size: 38px; font-weight: 700; line-height: 1; color: var(--bl-ink); }
.bl-ring__of { position: relative; font-size: 12px; color: var(--bl-muted); margin-top: 4px; }
.bl-rating-card__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.bl-rating-card__kicker { margin: 0; font-size: 13px; font-weight: 600; color: var(--bl-muted); }
.bl-rating-card__label { margin: 0; font-family: var(--bl-head); font-size: 26px; font-weight: 700; color: var(--bl-ink); line-height: 1.3; }
.bl-rating-card .bl-stars::before { font-size: 22px; letter-spacing: 2px; }
.bl-rating-card__summary { margin: 6px 0 0; font-size: 16px; line-height: 1.8; color: var(--bl-ink-2); }
.bl-rating-card__buys { margin-top: 10px; }
.bl-rating-card__buys .bl-buy { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.bl-content .bl-rating-card { margin: 32px 0; }
@media (max-width: 560px) {
	.bl-rating-card { padding: 20px; gap: 18px; }
	.bl-ring { width: 96px; height: 96px; }
	.bl-ring::before { inset: 9px; }
	.bl-ring__num { font-size: 30px; }
	.bl-rating-card__label { font-size: 22px; }
}

/* ------------------------------------------------------------------
   Table of contents: active item, sticky side list, floating button
------------------------------------------------------------------- */
.bl-content h2, .bl-content h3 { scroll-margin-top: 110px; }
.bl-toc__list a.is-active { color: var(--bl-accent); font-weight: 700; }
.bl-toc-side {
	position: fixed; top: 110px; z-index: 30;
	inset-inline-end: max(24px, calc(50vw - 380px - 300px));
	width: 260px; max-height: calc(100vh - 150px); overflow-y: auto;
	padding: 18px 18px 14px; background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: 20px;
	box-shadow: var(--bl-shadow);
}
.bl-toc-side[hidden] { display: none; }
.bl-toc-side__title { margin: 0 0 10px; font-family: var(--bl-head); font-weight: 700; font-size: 15px; color: var(--bl-ink); }
.bl-toc-side__list, .bl-toc-sheet__list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.bl-toc-side__list li, .bl-toc-sheet__list li { counter-increment: t; margin: 0; }
.bl-toc-side__list a, .bl-toc-sheet__list a {
	display: flex; gap: 8px; padding: 7px 10px; border-radius: 10px;
	font-size: 13.5px; line-height: 1.55; color: var(--bl-ink-2); text-decoration: none;
	border-inline-start: 2px solid transparent;
}
.bl-toc-side__list a::before, .bl-toc-sheet__list a::before { content: counter(t) "."; color: var(--bl-muted); font-weight: 700; flex-shrink: 0; }
.bl-toc-side__list a:hover, .bl-toc-sheet__list a:hover { background: var(--bl-nude); color: var(--bl-ink); }
.bl-toc-side__list a.is-active, .bl-toc-sheet__list a.is-active { background: var(--bl-nude); color: var(--bl-accent); font-weight: 700; border-inline-start-color: var(--bl-accent); }
.bl-toc-side__list a.is-active::before, .bl-toc-sheet__list a.is-active::before { color: var(--bl-accent); }
.bl-toc-side__top { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--bl-line); font-size: 13px; font-weight: 600; }

.bl-toc-fab {
	position: fixed; bottom: 18px; inset-inline-start: 50%; transform: translateX(50%); z-index: 40;
	display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 20px;
	border: 0; border-radius: 999px; background: var(--bl-deep); color: #fff;
	font-family: var(--bl-body); font-size: 15px; font-weight: 700; cursor: pointer;
	box-shadow: 0 10px 28px rgba(36, 23, 31, .3);
}
[dir="ltr"] .bl-toc-fab { transform: translateX(-50%); }
.bl-toc-fab[hidden] { display: none; }
.bl-toc-sheet {
	width: min(560px, 100vw); max-height: 75vh; margin: auto auto 0; padding: 0;
	border: 0; border-radius: 24px 24px 0 0; background: var(--bl-surface); color: var(--bl-ink);
}
.bl-toc-sheet::backdrop { background: rgba(20, 12, 18, .5); }
.bl-toc-sheet__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--bl-surface); border-bottom: 1px solid var(--bl-line); }
.bl-toc-sheet__head p { margin: 0; font-family: var(--bl-head); font-weight: 700; font-size: 17px; }
.bl-toc-sheet__close { width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--bl-nude); color: var(--bl-ink); font-size: 16px; cursor: pointer; }
.bl-toc-sheet__list { padding: 10px 12px 24px; }
.bl-toc-sheet__list a { font-size: 15px; padding: 10px 12px; }

/* Side list on wide screens, floating button below that */
@media (max-width: 1339px) { .bl-toc-side--float { display: none !important; } }
@media (min-width: 1340px) { body:not(.bl-has-sidebar) .bl-toc-fab { display: none !important; } }

/* ------------------------------------------------------------------
   User ratings — [bl_users score="3.8"] (bubble) · style="pill"
------------------------------------------------------------------- */
.bl-users {
	position: relative; isolation: isolate;
	display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
	width: 160px; height: 160px; padding: 18px 16px; margin: 6px 0 26px; line-height: 1.3;
	border-radius: 50%; background: var(--bl-badge); color: #fff; text-align: center; vertical-align: middle;
	box-shadow: 0 0 0 4px #fff, 0 10px 24px color-mix(in srgb, var(--bl-badge) 30%, transparent);
}
/* Tail: by default it points down and outwards on the reading-start side, like a speech bubble.
   When the bubble floats beside text, the tail points toward the text. */
.bl-users::after {
	content: ""; position: absolute; z-index: -1; bottom: -12px; inset-inline-start: 18px;
	width: 34px; height: 34px; background: var(--bl-badge);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
}
[dir="rtl"] .bl-users::after { clip-path: polygon(0 0, 100% 0, 0 100%); transform: scaleX(-1); }
.bl-users--start::after { inset-inline-start: auto; inset-inline-end: 14px; }
[dir="rtl"] .bl-users--start::after { transform: none; }
.bl-users--end::after { inset-inline-start: 14px; }
.bl-users__num { display: block; font-family: var(--bl-head); font-size: 40px; font-weight: 700; line-height: 1.05; color: #F8D664; }
.bl-users__label { display: block; font-family: var(--bl-head); font-size: 14.5px; font-weight: 600; line-height: 1.3; max-width: 116px; }
.bl-users__sub { display: block; font-size: 12.5px; line-height: 1.35; max-width: 122px; color: rgba(255, 255, 255, .92); }
.bl-users--start { float: right; margin: 6px 0 26px 24px; }
.bl-users--end { float: left; margin: 6px 24px 26px 0; }
[dir="ltr"] .bl-users--start { float: left; margin: 6px 24px 26px 0; }
[dir="ltr"] .bl-users--end { float: right; margin: 6px 0 26px 24px; }
.bl-users--center { display: flex; margin-inline: auto; }
html[data-theme="dark"] .bl-users { box-shadow: 0 0 0 4px var(--bl-bg), 0 10px 24px rgba(0, 0, 0, .4); }

.bl-users--pill {
	width: auto; height: auto; flex-direction: row; gap: 6px; padding: 4px 12px 4px 10px; margin: 0;
	border-radius: 999px; background: var(--bl-badge-soft); color: var(--bl-badge-dark); box-shadow: none; font-size: 12.5px; white-space: nowrap;
}
.bl-users--pill::after { display: none; }
.bl-users--pill b { font-family: var(--bl-head); font-size: 14px; color: var(--bl-badge); }
.bl-users--pill svg { color: var(--bl-badge); }
html[data-theme="dark"] .bl-users--pill { color: #F7C3DA; }
html[data-theme="dark"] .bl-users--pill b, html[data-theme="dark"] .bl-users--pill svg { color: #F28DB8; }
.bl-box__rating { flex-wrap: wrap; }
.bl-card__users { margin-top: -4px; }
.bl-compare__rating { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
@media (max-width: 720px) { .bl-compare__rating { align-items: flex-end; } }
@media (max-width: 560px) {
	.bl-users--start, .bl-users--end { float: none; display: flex; margin: 10px auto 26px; }
}


/* ==================================================================
   v3 — prices, currencies, methodology, head-to-head, tables
================================================================== */

/* Saudi riyal sign (new official symbol, drawn as an icon because fonts don't have it yet) */
.bl-sar {
	display: inline-block; width: .9em; height: 1em; vertical-align: -.12em;
	background: currentColor;
	-webkit-mask: url("../img/riyal.svg") center / contain no-repeat; mask: url("../img/riyal.svg") center / contain no-repeat;
}
.bl-amt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bl-cur-sym { font-size: .82em; }
.bl-money { white-space: nowrap; font-weight: 700; color: var(--bl-ink); }

/* Price tier: 4-step meter and/or word */
.bl-tier { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.bl-tier__meter { display: inline-flex; gap: 3px; }
.bl-tier__meter i { width: 14px; height: 7px; border-radius: 4px; background: var(--bl-nude-2); }
.bl-tier__meter i.on { background: var(--bl-accent); }
.bl-tier__name { font-family: var(--bl-head); font-size: 12.5px; font-weight: 600; color: var(--bl-accent-dark); background: var(--bl-nude); padding: 3px 10px; border-radius: 999px; }
html[data-theme="dark"] .bl-tier__name { background: var(--bl-nude-2); }

/* Clinic equivalence */
.bl-clinic { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--bl-muted); line-height: 1.5; }
.bl-clinic svg { flex-shrink: 0; color: var(--bl-accent); }
.bl-priceblock { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.bl-priceblock__approx { font-size: 14px; color: var(--bl-muted); }
.bl-box__price { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 10px 0 4px; }
.bl-card__clinic { margin: -4px 0 10px; }
.bl-compare__price { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bl-compare__price .bl-clinic { font-size: 12.5px; }
@media (max-width: 720px) { .bl-compare__price { align-items: flex-end; } }

/* Store rows: Amazon shows "check the price" (no typed prices) */
.bl-offer.is-amazon:not(.is-first) .bl-offer__go { border-color: var(--bl-accent); color: var(--bl-accent-dark); }
.bl-offer__time { display: block; font-size: 11px; font-weight: 400; color: var(--bl-muted); }

/* Currency switcher (header) */
.bl-cur { position: relative; }
.bl-cur__btn {
	display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 12px;
	border: 1.5px solid var(--bl-line); border-radius: 999px; background: var(--bl-surface); color: var(--bl-ink);
	font-family: var(--bl-head); font-size: 14px; font-weight: 700; cursor: pointer;
}
.bl-cur__btn:hover, .bl-cur__btn[aria-expanded="true"] { border-color: var(--bl-accent); color: var(--bl-accent-dark); }
.bl-cur__now { display: inline-flex; align-items: center; min-width: 1.1em; justify-content: center; }
.bl-cur__list {
	position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60; min-width: 210px; margin: 0; padding: 6px; list-style: none;
	background: var(--bl-surface); border: 1px solid var(--bl-line); border-radius: 16px; box-shadow: var(--bl-shadow);
}
.bl-cur__list button {
	display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px;
	border: 0; border-radius: 10px; background: none; color: var(--bl-ink); font: inherit; font-size: 14px; cursor: pointer; text-align: start;
}
.bl-cur__list button:hover, .bl-cur__list button:focus-visible { background: var(--bl-nude); outline: none; }
.bl-cur__list button[aria-selected="true"] { background: var(--bl-nude); color: var(--bl-accent-dark); font-weight: 700; }
.bl-cur__list b { font-family: var(--bl-head); min-width: 2.2em; text-align: center; }

/* Methodology bits in the score grid */
.bl-score__calc { font-size: 13px !important; color: var(--bl-muted); margin-top: 6px !important; }
.bl-fastchip {
	display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 8px; padding: 2px 9px; vertical-align: 2px;
	border-radius: 999px; background: var(--bl-badge); color: #fff; font-family: var(--bl-head); font-size: 11.5px; font-weight: 700;
}
.bl-fastchip::before { content: ""; width: 9px; height: 11px; background: currentColor; clip-path: polygon(60% 0, 0 58%, 45% 58%, 35% 100%, 100% 40%, 55% 40%); }
.bl-scores__how { display: inline-block; margin-top: 4px; font-size: 13px; color: #F2C5D8; text-decoration: underline; text-underline-offset: 3px; }
.bl-scores__how:hover { color: #fff; }
.bl-score--price .bl-tier__name { font-size: 13px; }

/* Head-to-head */
.bl-h2h { margin: 32px 0; }
.bl-content > .bl-h2h { width: min(1040px, 100vw - 32px); max-width: none; margin-inline: calc(50% - min(520px, 50vw - 16px)); }
.bl-h2h__scroll { overflow-x: auto; border: 1px solid var(--bl-line); border-radius: 24px; background: var(--bl-surface); }
.bl-h2h__scroll:focus-visible { outline: 2px solid var(--bl-accent); outline-offset: 2px; }
.bl-h2h__table { width: 100%; min-width: calc(140px + var(--n) * 190px); border-collapse: separate; border-spacing: 0; margin: 0; font-size: 14.5px; }
.bl-h2h__table th, .bl-h2h__table td { padding: 12px 14px; border: 0; border-bottom: 1px solid var(--bl-line); text-align: center; vertical-align: middle; background: var(--bl-surface); }
.bl-h2h__table tbody th {
	position: sticky; inset-inline-start: 0; z-index: 1; width: 140px; text-align: start;
	font-family: var(--bl-head); font-size: 13.5px; font-weight: 600; color: var(--bl-ink); background: var(--bl-nude);
}
.bl-h2h__table thead th, .bl-h2h__corner { background: var(--bl-surface); vertical-align: bottom; }
.bl-h2h__corner { position: sticky; inset-inline-start: 0; z-index: 1; }
.bl-h2h__dev { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.bl-h2h__img { display: grid; place-items: center; width: 120px; height: 100px; border-radius: 16px; background: var(--bl-tile); overflow: hidden; }
.bl-h2h__img img { max-width: 100%; max-height: 92px; width: auto; height: auto; object-fit: contain; }
.bl-h2h__name { font-family: var(--bl-head); font-size: 15px; font-weight: 700; color: var(--bl-ink); line-height: 1.4; }
.bl-h2h__table td.is-win { background: color-mix(in srgb, var(--bl-badge) 9%, var(--bl-surface)); }
.bl-h2h__win {
	display: inline-block; margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 1px;
	background: var(--bl-badge); color: #fff; font-family: var(--bl-head); font-size: 11px; font-weight: 700;
}
.bl-h2h__table td .bl-h2h__win { display: table; margin: 6px auto 0; }
.bl-h2h__table .bl-stars, .bl-h2h__table .bl-tier, .bl-h2h__table .bl-swatches { justify-content: center; }
.bl-h2h__buy td { vertical-align: top; }
.bl-h2h__buy .bl-buy { width: 100%; justify-content: center; margin: 0 0 6px; }
.bl-h2h__review { display: inline-block; font-size: 13px; color: var(--bl-accent-dark); }
.bl-h2h__table tbody tr:last-child > * { border-bottom: 0; }
.bl-h2h__legend { margin: 10px 4px 0; font-size: 13px; color: var(--bl-muted); }
.bl-h2h__legend .bl-h2h__win { margin: 0 0 0 4px; }

/* Native tables use the same look as the TablePress styles above */
.bl-table th p, .bl-table td p { margin: 0; }
/* Base table look without the TablePress plugin (zero specificity: every rule above still wins) */
:where(.tablepress) { width: 100%; }
:where(.tablepress) > :where(thead, tfoot) > tr > * { background-color: var(--head-bg-color); color: var(--head-text-color); vertical-align: middle; }
:where(.tablepress) > :where(thead, tbody, tfoot) > tr > * { padding: var(--padding); border: 0; text-align: start; }
:where(.tablepress) > :where(tbody) > tr > * { background-color: var(--odd-bg-color); color: var(--text-color); border-top: 1px solid var(--border-color); }
:where(.bl-table) > :where(tbody) > tr:nth-child(even) > * { background-color: var(--even-bg-color); }
:where(.tablepress) > :where(tbody):first-of-type > tr:first-child > * { border-top: 0; }
:where(.tablepress) > :where(thead) > tr > * { border-top: 0; }
