/**
 * AgenticTrack – Agentic Commerce Readiness for WooCommerce — admin dashboard styles.
 */

.arwc-wrap {
	max-width: 1200px;
}

.arwc-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.arwc-badge {
	font-size: 12px;
	font-weight: 600;
	background: #e7f3ff;
	color: #1d6fb8;
	border-radius: 10px;
	padding: 2px 10px;
}

.arwc-intro {
	max-width: 760px;
	font-size: 14px;
	color: #50575e;
}

.arwc-toolbar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0;
}

.arwc-total {
	color: #50575e;
}

/* Progress bar */
.arwc-progress {
	margin: 12px 0 20px;
}

.arwc-progress-bar {
	height: 14px;
	background: #e2e4e7;
	border-radius: 8px;
	overflow: hidden;
}

.arwc-progress-bar span {
	display: block;
	height: 100%;
	width: 0;
	background: #2271b1;
	transition: width 0.2s ease;
}

.arwc-progress-text {
	margin-top: 6px;
	color: #50575e;
	font-size: 13px;
}

/* Legend */
.arwc-checks-legend ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 10px;
	margin: 0 0 20px;
}

.arwc-legend-item {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 12px 14px;
	margin: 0;
}

.arwc-legend-name {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

.arwc-legend-desc {
	font-size: 12px;
	color: #646970;
}

.arwc-pill {
	font-size: 10px;
	text-transform: uppercase;
	border-radius: 8px;
	padding: 1px 6px;
	margin-left: 4px;
}

.arwc-pill-pro {
	background: #fff4e0;
	color: #b26b00;
}

/* Results grid */
.arwc-results-grid {
	display: grid;
	grid-template-columns: 240px 1fr 1.4fr;
	gap: 16px;
	margin: 16px 0;
}

@media (max-width: 960px) {
	.arwc-results-grid {
		grid-template-columns: 1fr;
	}
}

.arwc-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	padding: 18px;
}

.arwc-card h3 {
	margin-top: 0;
}

/* Scorecard */
.arwc-scorecard {
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.arwc-score-number {
	font-size: 56px;
	font-weight: 700;
	line-height: 1;
}

.arwc-score-number span {
	font-size: 18px;
	font-weight: 400;
	color: #646970;
}

.arwc-score-label {
	margin-top: 8px;
	font-weight: 600;
	color: #50575e;
}

.arwc-partial {
	margin-top: 10px;
	font-size: 12px;
	color: #b26b00;
}

/* Grade colours */
.arwc-grade-good .arwc-score-number,
.arwc-score-pill.arwc-grade-good,
.arwc-dot.arwc-grade-good {
	color: #1a7f37;
}

.arwc-grade-fair .arwc-score-number,
.arwc-score-pill.arwc-grade-fair,
.arwc-dot.arwc-grade-fair {
	color: #bf8700;
}

.arwc-grade-poor .arwc-score-number,
.arwc-score-pill.arwc-grade-poor,
.arwc-dot.arwc-grade-poor {
	color: #b32d2e;
}

.arwc-scorecard.arwc-grade-good {
	border-top: 4px solid #1a7f37;
}

.arwc-scorecard.arwc-grade-fair {
	border-top: 4px solid #bf8700;
}

.arwc-scorecard.arwc-grade-poor {
	border-top: 4px solid #b32d2e;
}

/* Distribution */
.arwc-dist-list {
	margin: 0;
}

.arwc-dist-list li {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px solid #f0f0f1;
}

.arwc-dist-list strong {
	margin-left: auto;
}

.arwc-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	background: currentColor;
}

/* Top issues */
.arwc-issue-list {
	margin: 0;
}

.arwc-issue {
	display: flex;
	gap: 10px;
	align-items: baseline;
	padding: 7px 0;
	border-bottom: 1px solid #f0f0f1;
}

.arwc-issue-count {
	min-width: 34px;
	font-weight: 700;
	text-align: right;
}

.arwc-issue-message {
	font-size: 13px;
	color: #3c434a;
}

.arwc-good-news {
	color: #1a7f37;
	font-weight: 600;
}

/* Score pills */
.arwc-score-pill {
	display: inline-block;
	min-width: 34px;
	text-align: center;
	font-weight: 700;
	border-radius: 6px;
	padding: 2px 8px;
	background: #f6f7f7;
}

/* Product table */
.arwc-products {
	margin-top: 16px;
}

.arwc-table {
	margin-top: 8px;
}

.arwc-table th.arwc-sortable {
	cursor: pointer;
	user-select: none;
}

.arwc-table th.arwc-sortable::after {
	content: "\2195";
	opacity: 0.4;
	margin-left: 4px;
}

.arwc-table th.arwc-sorted-asc::after {
	content: "\2191";
	opacity: 1;
}

.arwc-table th.arwc-sorted-desc::after {
	content: "\2193";
	opacity: 1;
}

.arwc-col-name {
	font-weight: 600;
}

.arwc-row-issues {
	margin: 0;
	font-size: 12px;
}

.arwc-row-issues li {
	padding: 2px 0;
	color: #50575e;
}

.arwc-sev-tag {
	display: inline-block;
	font-size: 10px;
	text-transform: uppercase;
	border-radius: 4px;
	padding: 0 5px;
	margin-right: 5px;
	background: #f0f0f1;
	color: #50575e;
}

.arwc-sev-critical .arwc-sev-tag {
	background: #fce4e4;
	color: #b32d2e;
}

.arwc-sev-warning .arwc-sev-tag {
	background: #fcf3e0;
	color: #bf8700;
}

.arwc-sev-info .arwc-sev-tag {
	background: #e7f3ff;
	color: #1d6fb8;
}

.arwc-no-issues {
	color: #1a7f37;
}

.arwc-empty {
	background: #fff;
	border: 1px dashed #c3c4c7;
	border-radius: 10px;
	padding: 40px;
	text-align: center;
	color: #646970;
}
