/**
 * CP Referrer and Conversion Tracking — WooCommerce Order Attribution Metabox Styles
 * Strictly scoped under .cprt-wc-metabox to prevent bleed into WooCommerce/WP Admin.
 */

.cprt-wc-metabox {
	color: #0f172a;
	font-size: 12.5px;
	line-height: 1.45;
}

.cprt-wc-metabox * {
	box-sizing: border-box;
}

.cprt-wc-metabox .cprt-wc-channel-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding-bottom: 10px;
	margin-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
}

.cprt-wc-metabox .cprt-wc-label {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
}

.cprt-wc-metabox .cprt-wc-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
}

.cprt-wc-metabox .cprt-wc-badge-violet {
	background: #f5f3ff;
	color: #6d28d9;
}

.cprt-wc-metabox .cprt-wc-badge-blue {
	background: #eff6ff;
	color: #1d4ed8;
}

.cprt-wc-metabox .cprt-wc-badge-muted {
	background: #f1f5f9;
	color: #64748b;
}

.cprt-wc-metabox .cprt-wc-dl {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cprt-wc-metabox .cprt-wc-row dt {
	margin: 0 0 2px;
	font-size: 11.5px;
	font-weight: 600;
	color: #64748b;
}

.cprt-wc-metabox .cprt-wc-row dd {
	margin: 0;
	color: #0f172a;
	word-break: break-word;
}

.cprt-wc-metabox .cprt-wc-link {
	color: #2563eb;
	text-decoration: none;
}

.cprt-wc-metabox .cprt-wc-link:hover {
	text-decoration: underline;
}

.cprt-wc-metabox .cprt-wc-muted {
	color: #64748b;
}

.cprt-wc-metabox .cprt-wc-mono {
	display: inline-block;
	padding: 1px 6px;
	border-radius: 4px;
	background: #f1f5f9;
	color: #334155;
	font-size: 11.5px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.cprt-wc-metabox .cprt-wc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 2px;
}

.cprt-wc-metabox .cprt-wc-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 6px;
	border-radius: 4px;
	background: #f5f3ff;
	border: 1px solid #ddd6fe;
	color: #5b21b6;
	font-size: 11px;
	line-height: 1.35;
	max-width: 100%;
	word-break: break-word;
}

.cprt-wc-metabox .cprt-wc-chip-muted {
	background: #f1f5f9;
	border-color: #cbd5e1;
	color: #475569;
}

.cprt-wc-metabox .cprt-wc-chip-key {
	font-weight: 700;
}

.cprt-wc-metabox .cprt-wc-footer {
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 11.5px;
	color: #94a3b8;
}

.cprt-wc-metabox .cprt-wc-footer a {
	color: #2563eb;
	text-decoration: none;
	font-weight: 500;
}

.cprt-wc-metabox .cprt-wc-footer a:hover {
	text-decoration: underline;
}

.cprt-wc-empty {
	margin: 4px 0;
	color: #64748b;
	font-size: 12.5px;
}
