/**
 * mmm-kit-manager / comparison.css
 * Styles for the [mmm_kit_comparison] shortcode table.
 * Only loaded on pages that contain the shortcode.
 */

/* ── Scroll wrapper (mobile) ────────────────────────────────────────────── */

.mmm-comparison-wrap {
	margin: 24px 0;
}

.mmm-comparison-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* ── Table base ─────────────────────────────────────────────────────────── */

.mmm-comparison-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 1.4;
}

/* ── Header row ─────────────────────────────────────────────────────────── */

.mmm-comparison-table thead th {
	padding: 14px 16px;
	text-align: center;
	border-bottom: 3px solid #1d2327;
	vertical-align: bottom;
}

.mmm-comp-col-label {
	text-align: left !important;
	min-width: 180px;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #666;
	border-bottom: 3px solid #1d2327 !important;
}

.mmm-comp-col-kit {
	min-width: 130px;
	background: #1d2327;
	border-left: 1px solid #2e3a42;
}

/* ── Kit header cell ────────────────────────────────────────────────────── */

.mmm-kit-header-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #fff;
}

.mmm-kit-header-link:hover {
	color: #d4e0ff;
	text-decoration: none;
}

.mmm-kit-header-img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	border: 2px solid rgba(255,255,255,0.15);
}

.mmm-kit-header-name {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
}

/* ── Component rows ─────────────────────────────────────────────────────── */

.mmm-comp-row td {
	padding: 10px 16px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.mmm-row-even {
	background: #fff;
}

.mmm-row-odd {
	background: #f8f9fa;
}

.mmm-comp-row:hover td {
	background: #eef3ff;
}

/* ── Component label cell ───────────────────────────────────────────────── */

.mmm-comp-label {
	text-align: left;
	padding-right: 20px !important;
}

.mmm-comp-name {
	display: block;
	font-weight: 500;
	color: #1d2327;
}

.mmm-comp-sku {
	display: block;
	font-family: monospace;
	font-size: 11px;
	color: #999;
	margin-top: 2px;
}

/* ── Kit cells ──────────────────────────────────────────────────────────── */

.mmm-comp-cell {
	text-align: center;
	border-left: 1px solid #eee;
}

/* ── Checkmark ──────────────────────────────────────────────────────────── */

.mmm-checkmark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	color: #2a7a2a;
}

.mmm-checkmark::before {
	content: '✓';
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
}

.mmm-qty-label {
	font-size: 12px;
	font-weight: 700;
	color: #2a7a2a;
	line-height: 1;
}

/* ── Dash (not included) ────────────────────────────────────────────────── */

.mmm-dash {
	color: #ccc;
	font-size: 16px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media ( max-width: 600px ) {
	.mmm-comparison-table {
		font-size: 13px;
	}

	.mmm-comp-row td {
		padding: 8px 10px;
	}

	.mmm-comp-col-label {
		min-width: 140px;
	}

	.mmm-comp-col-kit {
		min-width: 100px;
	}

	.mmm-kit-header-img {
		width: 40px;
		height: 40px;
	}

	.mmm-kit-header-name {
		font-size: 11px;
	}
}
