.unifiedsmb-product-metabox {
	font-size: 13px;
}

.unifiedsmb-product-metabox .status-section {
	margin-bottom: 12px;
}

.unifiedsmb-product-metabox .status-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #f0f0f0;
}

.unifiedsmb-product-metabox .status-item:last-child {
	border-bottom: none;
}

.unifiedsmb-product-metabox .status-label {
	font-weight: 600;
	color: #333;
}

.unifiedsmb-product-metabox .status-value {
	color: #666;
	text-align: right;
}

.unifiedsmb-product-metabox .status-value code {
	font-size: 12px;
	padding: 2px 6px;
	background: #f5f5f5;
	border-radius: 3px;
}

.unifiedsmb-product-metabox .status-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.unifiedsmb-product-metabox .status-badge.success {
	background: #d4edda;
	color: #155724;
}

.unifiedsmb-product-metabox .status-badge.warning {
	background: #fff3cd;
	color: #856404;
}

.unifiedsmb-product-metabox .unifiedsmb-hint {
	margin: 0 0 12px 0;
}

.unifiedsmb-product-metabox .unifiedsmb-sync-product-btn {
	width: 100%;
	text-align: center;
	justify-content: center;
}

.unifiedsmb-product-metabox .unifiedsmb-sync-help {
	margin: 8px 0 0 0;
	font-size: 11px;
	font-style: normal;
	color: #757575;
}

.unifiedsmb-product-metabox .unifiedsmb-sync-result {
	margin-top: 12px;
}

.unifiedsmb-product-metabox .unifiedsmb-sync-result .notice {
	margin: 0;
	padding: 8px 12px;
}

.unifiedsmb-product-metabox .result-details {
	margin: 4px 0 0 0;
	padding-left: 16px;
	list-style: disc;
	color: #555;
	font-size: 12px;
}

.unifiedsmb-product-metabox .result-reload {
	margin: 6px 0 0 0;
}

/* ── Product categories box: mirror the backoffice tree ─────────────────────
 * WooCommerce's "Productcategorieën" box is WordPress' standard term checklist.
 * Give it the same look as the category tree in the backoffice: roomier rows,
 * a connector in front of every subcategory and rounded blue checkboxes.
 */
#product_catdiv .categorychecklist,
#product_catdiv .categorychecklist ul.children {
	margin: 0;
}

#product_catdiv .categorychecklist li {
	margin: 0;
	line-height: 20px;
}

#product_catdiv .categorychecklist ul.children {
	/* Indent under the parent's checkbox. */
	margin-left: 26px;
}

#product_catdiv .categorychecklist label.selectit {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 6px;
	border-radius: 6px;
	color: #1f2937;
	font-size: 13px;
	cursor: pointer;
}

#product_catdiv .categorychecklist label.selectit:hover {
	background: #f3f6fa;
}

/* Connector for subcategories: a short L-shaped line, like "└". */
#product_catdiv .categorychecklist ul.children > li > label.selectit::before {
	content: "";
	flex: 0 0 auto;
	width: 9px;
	height: 9px;
	margin: -8px 0 0 -4px;
	border-left: 1.5px solid #9aa4b2;
	border-bottom: 1.5px solid #9aa4b2;
	border-bottom-left-radius: 2px;
}

/* Rounded checkbox with a blue checked state. */
#product_catdiv .categorychecklist input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	transition: background 0.12s ease, border-color 0.12s ease;
}

#product_catdiv .categorychecklist input[type="checkbox"]:hover {
	border-color: #1d9bf0;
}

#product_catdiv .categorychecklist input[type="checkbox"]:focus {
	border-color: #1d9bf0;
	box-shadow: 0 0 0 2px rgba(29, 155, 240, 0.25);
	outline: none;
}

#product_catdiv .categorychecklist input[type="checkbox"]:checked {
	border-color: #1d9bf0;
	background: #1d9bf0;
}

/* Replace WordPress' dashicon check with a white tick that fits the box. */
#product_catdiv .categorychecklist input[type="checkbox"]:checked::before {
	content: "";
	display: block;
	float: none;
	width: 5px;
	height: 9px;
	margin: 1px 0 0 5px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(45deg);
}
