/* CortexCommerce: the Sync section on WooCommerce → CortexCommerce. WordPress admin look; the bar and spinner use the
   admin colour scheme's accent. No animation under prefers-reduced-motion. */
.cortexcommerce-sync { max-width: 960px; margin-top: 24px; }
.cortexcommerce-sync [hidden] { display: none !important; }
.cortexcommerce-sync .card { max-width: none; margin-top: 0; }
.cortexcommerce-sync__tiles { display: grid; grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); gap: 16px; }
.cortexcommerce-sync__tile { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-width: 0; }
.cortexcommerce-sync__tile-label { color: #646970; }
.cortexcommerce-sync__tile-value { color: #1d2327; font-size: 18px; font-weight: 600; line-height: 1.4; }
.cortexcommerce-stats { max-width: 960px; margin-top: 24px; }
.cortexcommerce-stats .card { max-width: none; margin-top: 0; }
.cortexcommerce-stats__tiles { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); }
.cortexcommerce-sync__note { margin: 12px 0 0; font-weight: 600; }
.cortexcommerce-sync__run { padding: 16px 20px; }
.cortexcommerce-sync__head { display: flex; align-items: center; gap: 10px; }
.cortexcommerce-sync__head h3 { flex: 1; margin: 0; font-size: 15px; }
.cortexcommerce-sync__percent { font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.cortexcommerce-sync__bar { height: 8px; margin: 14px 0 10px; overflow: hidden; background: #dcdcde; border-radius: 4px; }
.cortexcommerce-sync__bar > span { display: block; width: 0; height: 100%; background: var( --wp-admin-theme-color, #2271b1 ); transition: width 0.4s ease; }
.cortexcommerce-sync__counts { margin: 0 0 12px; color: #50575e; }
.cortexcommerce-sync__list { margin: 0; border-top: 1px solid #f0f0f1; }
.cortexcommerce-sync__list li { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 0; border-bottom: 1px solid #f0f0f1; }
.cortexcommerce-sync__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cortexcommerce-sync__updating { color: #646970; }
.cortexcommerce-sync__check,
.cortexcommerce-sync__done { color: #00a32a; }
.cortexcommerce-sync__pill { padding: 2px 8px; color: #007017; background: #edfaef; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cortexcommerce-sync__spinner { display: inline-block; flex: none; width: 14px; height: 14px; border: 2px solid #c3c4c7; border-top-color: var( --wp-admin-theme-color, #2271b1 ); border-radius: 50%; animation: cortexcommerce-spin 0.8s linear infinite; }
.cortexcommerce-sync__button.is-busy::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cortexcommerce-spin 0.8s linear infinite; }
@keyframes cortexcommerce-spin { to { transform: rotate( 360deg ); } }
@media ( max-width: 782px ) {
	.cortexcommerce-sync__tiles,
	.cortexcommerce-stats__tiles { grid-template-columns: 1fr; }
}
@media ( prefers-reduced-motion: reduce ) {
	.cortexcommerce-sync__spinner,
	.cortexcommerce-sync__button.is-busy::before { animation: none; }
	.cortexcommerce-sync__bar > span { transition: none; }
}
a.cortexcommerce-sync__tile { color: inherit; text-decoration: none; }
a.cortexcommerce-sync__tile:hover,
a.cortexcommerce-sync__tile:focus { border-color: #4338ca; }
a.cortexcommerce-sync__tile:hover .cortexcommerce-sync__tile-value,
a.cortexcommerce-sync__tile:focus .cortexcommerce-sync__tile-value { color: #4338ca; }
a.cortexcommerce-sync__tile:focus { outline: 2px solid #4338ca; outline-offset: 2px; box-shadow: none; }
