/* ═══════════════════════════════════════════════════════════════
   Ki Score Widget — PDP + Compare
   @package blocksy-child
   ═══════════════════════════════════════════════════════════════ */

/* ── wrapper ──────────────────────────────────────────────────── */
.nw-ki-wrap { margin-bottom: 1.25rem; }

.nw-ki-card {
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	overflow: hidden;
}

/* ── header ───────────────────────────────────────────────────── */
.nw-ki-head {
	padding: 0.875rem 1.125rem;
	display: flex;
	align-items: center;
	gap: 12px;
}

.nw-ki-head__score {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 58px;
}

.nw-ki-head__num {
	font-size: 2.25rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.nw-ki-head__lbl {
	font-size: 10px;
	color: rgba(255, 255, 255, .65);
	margin-top: 3px;
	letter-spacing: .5px;
}

.nw-ki-head__sep {
	width: 1px;
	height: 46px;
	background: rgba(255, 255, 255, .2);
	flex-shrink: 0;
}

.nw-ki-head__info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nw-ki-head__title {
	font-size: 13px;
	font-weight: 500;
	color: #fff;
}

.nw-ki-head__sub {
	font-size: 10.5px;
	color: rgba(255, 255, 255, .6);
	line-height: 1.5;
}

/* ── body ─────────────────────────────────────────────────────── */
.nw-ki-body {
	display: flex;
}

/* ── chart ────────────────────────────────────────────────────── */
.nw-ki-chart {
	position: relative;
	width: 130px;
	height: 130px;
	flex: 0 0 130px;
	border-inline-start: 1px solid #e8e8e8;
}

.nw-ki-vic {
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid rgba(255, 255, 255, .35);
}

.nw-ki-vic i {
	font-size: 10px;
	color: #fff;
}

/* ── score rows ───────────────────────────────────────────────── */
.nw-ki-scores {
	flex: 1;
	padding: 0.875rem 0.75rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 9px;
}

.nw-ki-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.nw-ki-num {
	font-size: 13px;
	font-weight: 700;
	min-width: 28px;
	text-align: end;
}

.nw-ki-bw {
	flex: 1;
	height: 5px;
	background: #efefef;
	border-radius: 3px;
	overflow: hidden;
}

.nw-ki-b {
	height: 100%;
	border-radius: 3px;
}

.nw-ki-lbl {
	display: flex;
	align-items: center;
	gap: 4px;
}

.nw-ki-lic {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nw-ki-lic i {
	font-size: 9px;
	color: #fff;
}

.nw-ki-ltxt {
	font-size: 11px;
	color: #666;
	white-space: nowrap;
	min-width: 36px;
}

/* ── clickable hint ───────────────────────────────────────────── */
.nw-ki-head[data-ki-popup] {
	cursor: pointer;
}

.nw-ki-head[data-ki-popup]:hover { filter: brightness(1.06); }

.nw-ki-head__hint {
	margin-inline-start: auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .22);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 12px;
	color: #fff;
	pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   Ki Score Popup
   ═══════════════════════════════════════════════════════════════ */

.nw-ki-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .52);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.nw-ki-popup-overlay[hidden] { display: none; }

.nw-ki-popup {
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 380px;
	max-height: 90vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.nw-ki-popup__close {
	position: absolute;
	top: 10px;
	inset-inline-start: 10px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .25);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 14px;
	z-index: 2;
}

.nw-ki-popup__close:hover { background: rgba(255, 255, 255, .4); }

.nw-ki-popup__head {
	padding: 1.25rem 1.25rem 1rem;
	display: flex;
	align-items: center;
	gap: 14px;
	border-radius: 14px 14px 0 0;
}

.nw-ki-popup__score {
	font-size: 3rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.nw-ki-popup__htitle {
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	display: block;
}

.nw-ki-popup__hsub {
	font-size: 11px;
	color: rgba(255, 255, 255, .65);
	display: block;
	margin-top: 3px;
}

.nw-ki-popup__body {
	padding: 1rem 1.25rem 1.5rem;
}

/* sub-scores list */
.nw-ki-popup__subs {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.nw-ki-popup__sub-item {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nw-ki-popup__sub-num {
	font-size: 14px;
	font-weight: 700;
	min-width: 28px;
	text-align: end;
}

.nw-ki-popup__sub-icon {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nw-ki-popup__sub-icon i {
	font-size: 11px;
	color: #fff;
}

.nw-ki-popup__sub-label {
	font-size: 13px;
	color: #333;
}

/* divider */
.nw-ki-popup__divider {
	border: none;
	border-top: 1px solid #eee;
	margin: 0.75rem 0;
}

/* info sections */
.nw-ki-popup__qhead {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	margin: 0.85rem 0 0.35rem;
}

.nw-ki-popup__text {
	font-size: 12.5px;
	color: #555;
	line-height: 1.75;
	margin: 0 0 0.5rem;
}

.nw-ki-popup__aspects {
	padding-inline-start: 1.2rem;
	margin: 0.25rem 0 0.75rem;
}

.nw-ki-popup__aspects li {
	font-size: 12.5px;
	color: #555;
	line-height: 1.9;
}

.nw-ki-popup__source {
	margin-top: 0.75rem;
	font-size: 11.5px;
	color: #999;
}

.nw-ki-popup__source a {
	color: #f5a623;
	text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile responsive
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
	.nw-ki-head { padding: .7rem .9rem; gap: 8px; }
	.nw-ki-head__num { font-size: 1.9rem; }
	.nw-ki-head__score { min-width: 50px; }
	.nw-ki-scores { padding: .75rem .6rem; gap: 7px; }
	.nw-ki-ltxt { font-size: 10px; min-width: 30px; }
	.nw-ki-num { font-size: 12px; min-width: 24px; }
}

/* ═══════════════════════════════════════════════════════════════
   Compare table — Ki Score section
   ═══════════════════════════════════════════════════════════════ */

.nw-cmp-ki-badge {
	display: inline-flex;
	align-items: baseline;
	gap: 5px;
	padding: 5px 10px;
	border-radius: 8px;
	color: #fff;
	font-weight: 700;
	font-size: 1.15rem;
	margin-bottom: 10px;
	line-height: 1;
}

.nw-cmp-ki-badge__lbl {
	font-size: 10px;
	font-weight: 400;
	opacity: .75;
}

.nw-cmp-ki-sub {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.nw-cmp-ki-row {
	display: flex;
	align-items: center;
	gap: 5px;
}

.nw-cmp-ki-icon {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nw-cmp-ki-icon i {
	font-size: 8px;
	color: #fff;
}

.nw-cmp-ki-val {
	font-size: 12px;
	font-weight: 700;
	min-width: 24px;
	text-align: end;
}

.nw-cmp-ki-bw {
	flex: 1;
	height: 4px;
	background: #efefef;
	border-radius: 2px;
	overflow: hidden;
}

.nw-cmp-ki-bar {
	height: 100%;
	border-radius: 2px;
}

.nw-cmp-ki-ltxt {
	font-size: 11px;
	color: #888;
	white-space: nowrap;
	min-width: 34px;
	text-align: end;
}
