/**
 * Admin styles for miniOrange Amazon Sync plugin
 */

/* Header styles */
.momcs-header {
	background: #fff;
	padding: 15px 20px;
	margin-bottom: 20px;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.momcs-header-logo {
	display: flex;
	align-items: center;
}

.momcs-header-logo img {
	max-height: 40px;
	margin-right: 15px;
}

.momcs-header-logo h1 {
	margin: 0;
	font-size: 22px;
	color: #333;
}

.momcs-header-nav {
	margin-top: 10px;
	width: 100%;
}

.momcs-nav-tabs {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #e2e2e2;
}

.momcs-nav-tab {
	margin-bottom: -1px;
}

.momcs-nav-tab a {
	display: flex;
	align-items: center;
	padding: 10px 15px;
	text-decoration: none;
	color: #555;
	font-weight: 500;
	border: 1px solid transparent;
	border-bottom: none;
}

.momcs-nav-tab a:hover {
	color: #ea580c;
	background-color: #f8f8f8;
}

.momcs-nav-tab.momcs-active a {
	border-color: #e2e2e2;
	border-bottom-color: #fff;
	color: #ea580c;
	background-color: #fff;
}

.momcs-nav-tab .dashicons {
	margin-right: 5px;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

@media screen and (min-width: 783px) {
	.momcs-header {
		flex-wrap: nowrap;
	}

	.momcs-header-nav {
		margin-top: 0;
		width: auto;
	}
}

/* Progress Bar */
.momcs-progress-bar {
	margin: 30px 0;
}

.momcs-progress-steps {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.momcs-progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
}

.momcs-step-number {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: #f0f0f0;
	border: 2px solid #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	margin-bottom: 8px;
	transition: all 0.3s ease;
}

.momcs-step-label {
	font-size: 13px;
	color: #666;
	transition: all 0.3s ease;
}

.momcs-progress-step.momcs-step-active .momcs-step-number {
	background-color: #ea580c;
	border-color: #ea580c;
	color: white;
}

.momcs-progress-step.momcs-step-active .momcs-step-label {
	color: #ea580c;
	font-weight: 600;
}

.momcs-progress-connector {
	flex-grow: 1;
	height: 2px;
	background-color: #ddd;
	margin: 0 10px;
	position: relative;
	top: -15px;
	z-index: 0;
	transition: all 0.3s ease;
}

.momcs-progress-connector.momcs-connector-active {
	background-color: #ea580c;
}

/* Connect flow styles */
.momcs-connect-step {
	padding: 20px 0;
}

.momcs-connect-step h2 {
	text-align: center;
	margin-bottom: 25px;
	font-size: 20px;
}

.momcs-connect-card {
	background: #fff;
	border-radius: 8px;
	padding: 25px;
	max-width: 500px;
	margin: 0 auto;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	border: 1px solid #e5e5e5;
}

.momcs-connect-instructions {
	font-size: 15px;
	text-align: center;
	margin-bottom: 25px;
	color: #555;
}

.momcs-form-group {
	margin-bottom: 20px;
}

.momcs-form-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.momcs-form-control {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.momcs-form-actions {
	text-align: center;
	margin-top: 30px;
}

.momcs-authorize-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #fff9e6;
	border: 1px solid #febd69;
	border-radius: 4px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #333;
	cursor: pointer;
	transition: all 0.2s ease;
}

.momcs-authorize-btn img {
	max-height: 20px;
	margin-right: 10px;
}

.momcs-authorize-btn:hover {
	background-color: #febd69;
}

/* Dashboard styles */
.momcs-dashboard-stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

.momcs-stat-card {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: 5px;
	padding: 20px;
	display: flex;
	align-items: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.momcs-stat-card .dashicons {
	font-size: 30px;
	width: 30px;
	height: 30px;
	margin-right: 15px;
	color: #ea580c;
}

.momcs-stat-content h3 {
	margin: 0;
	font-size: 24px;
	line-height: 1;
}

.momcs-stat-content p {
	margin: 5px 0 0;
	color: #666;
	font-size: 14px;
}

.momcs-dashboard-cta {
	text-align: center;
	padding: 40px 20px;
	background: #f9f9f9;
	border-radius: 5px;
	margin-top: 20px;
}

.momcs-dashboard-cta h3 {
	font-size: 20px;
	margin-bottom: 15px;
}

.momcs-dashboard-cta p {
	margin-bottom: 25px;
	color: #666;
}

.momcs-dashboard-recent {
	margin-top: 30px;
}

.momcs-dashboard-recent h3 {
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #eee;
}

/* Connect Channels container */
.momcs-connect-container {
	max-width: 800px;
	margin: 20px auto;
	background: #fff;
	border-radius: 10px;
	padding: 30px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.momcs-connect-container h2 {
	text-align: center;
	margin-bottom: 20px;
}

.momcs-connect-container p {
	text-align: center;
	margin-bottom: 30px;
	font-size: 14px;
	color: #555;
}

/* Channels grid */
.momcs-channels-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.momcs-channel-item {
	display: flex;
	align-items: center;
	padding: 15px;
	border: 1px solid #eee;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.momcs-channel-item:hover {
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transform: translateY(-2px);
}

.momcs-channel-logo {
	width: 120px;
	text-align: center;
	padding-right: 20px;
}

.momcs-channel-logo img {
	max-height: 40px;
	max-width: 100px;
}

.momcs-channel-info {
	flex: 1;
}

.momcs-channel-info h3 {
	margin: 0 0 5px 0;
	font-size: 16px;
}

.momcs-channel-info p {
	margin: 0;
	font-size: 13px;
	text-align: left;
	color: #666;
}

.momcs-channel-actions {
	display: flex;
	gap: 10px;
}

/* Amazon logo color */
.momcs .momcs-channel-info h3 {
	color: #ff9900;
}

/* eBay logo colors */
.momcs-ebay .momcs-channel-info h3 {
	color: #e53238;
}

/* Walmart logo color */
.momcs-walmart .momcs-channel-info h3 {
	color: #0071ce;
}

/* Status indicators */
.status-enabled {
	color: #46b450;
	font-weight: 600;
}

.status-disabled {
	color: #dc3232;
	font-weight: 600;
}

/* Button styling */
.momcs-btn {
	display: inline-block;
	padding: 8px 15px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.momcs-btn-outline {
	color: #555;
	border: 1px solid #ccc;
	background: transparent;
}

.momcs-btn-outline:hover {
	background: #f5f5f5;
}

.momcs-btn-primary {
	color: #fff;
	background: #ea580c;
	border: 1px solid #ea580c;
}

.momcs-btn-primary:hover {
	background: #c2410c;
	border-color: #c2410c;
}

/* Logger UI Styles */
.momcs-sync-logger {
	margin-top: 20px;
	border: 1px solid #ccd0d4;
	background-color: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
	border-radius: 4px;
	overflow: hidden;
}

.momcs-sync-logger-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 15px;
	background-color: #f8f9fa;
	border-bottom: 1px solid #ccd0d4;
}

.momcs-sync-logger-header h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
}

.momcs-sync-logger-actions {
	display: flex;
	gap: 10px;
}

.momcs-sync-logger-content {
	max-height: 300px;
	overflow-y: auto;
	padding: 10px 15px;
	background-color: #f8f9fa;
	font-family: monospace;
	font-size: 12px;
}

.momcs-sync-logger-content .log-entry {
	margin-bottom: 5px;
	padding: 5px;
	border-radius: 3px;
}

.momcs-sync-logger-content .log-entry.info {
	background-color: #e8f4fd;
	border-left: 3px solid #72aee6;
}

.momcs-sync-logger-content .log-entry.success {
	background-color: #ecf7ed;
	border-left: 3px solid #46b450;
}

.momcs-sync-logger-content .log-entry.warning {
	background-color: #fff8e5;
	border-left: 3px solid #ffb900;
}

.momcs-sync-logger-content .log-entry.error {
	background-color: #fbeaea;
	border-left: 3px solid #dc3232;
}

/* Spinner styles */
.momcs-sync-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	margin-left: 10px;
	background-image: url(../images/spinner.gif);
	background-size: 20px 20px;
	vertical-align: middle;
	visibility: hidden;
	opacity: 0;
}

.momcs-sync-spinner.is-active {
	visibility: visible;
	opacity: 1;
}

/* Message styles */
.momcs-sync-message {
	display: inline-block;
	margin-left: 10px;
	font-weight: 500;
}

.momcs-sync-message.success {
	color: #46b450;
}

.momcs-sync-message.error {
	color: #dc3232;
}

/* Bulk actions styles */
.momcs-sync-bulk-actions {
	display: flex;
	align-items: center;
}

.momcs-sync-list-actions {
	display: flex;
	gap: 10px;
}

/* Hide logger by default */
#momcs-sync-logger {
	display: none;
}

/* ==========================================================================
   Channel Selection Modal — Modern redesign matching plugin design system
   ========================================================================== */

/* Overlay */
#momcs-sync-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	z-index: 999998;
}

/* Modal shell */
#momcs-sync-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 999999;
	width: 480px;
	max-width: calc(100vw - 32px);
}

/* Inner card */
.momcs-csp-modal {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────────────── */
.momcs-csp-header {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
	border-bottom: 1px solid #f0f0f0;
	background: #f8f9fa;
}

.momcs-csp-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #fff7ed;
	border-radius: 8px;
	color: #ea580c;
	flex-shrink: 0;
}

.momcs-csp-title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
	flex: 1;
	line-height: 1.3;
}

.momcs-csp-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: none;
	border: none;
	border-radius: 6px;
	color: #94a3b8;
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
	flex-shrink: 0;
}

.momcs-csp-close:hover {
	color: #1e293b;
	background: #e2e8f0;
}

/* ── Body ────────────────────────────────────────────────────────────── */
.momcs-csp-body {
	padding: 18px 20px 12px;
}

/* Description notice */
.momcs-csp-notice {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 10px 12px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
	border-radius: 8px;
	margin-bottom: 14px;
}

.momcs-csp-notice-icon {
	flex-shrink: 0;
	color: #ea580c;
	margin-top: 1px;
}

.momcs-csp-notice-text {
	margin: 0;
	font-size: 12px;
	color: #92400e;
	line-height: 1.5;
}

/* Channel list container */
.momcs-sync-channel-list {
	max-height: 240px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	scrollbar-width: thin;
	scrollbar-color: #e2e8f0 transparent;
}

.momcs-sync-channel-list::-webkit-scrollbar {
	width: 6px;
}

.momcs-sync-channel-list::-webkit-scrollbar-track {
	background: transparent;
}

.momcs-sync-channel-list::-webkit-scrollbar-thumb {
	background: #e2e8f0;
	border-radius: 3px;
}

/* Channel card */
.momcs-csp-channel-card {
	border-radius: 8px;
	border: 1.5px solid #e5e7eb;
	background: #ffffff;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}

.momcs-csp-channel-card:hover {
	border-color: #f97316;
	background: #fffbf7;
	box-shadow: 0 1px 4px rgba(234, 88, 12, 0.1);
}

/* Selected state — from JS .is-selected and from :has(:checked) so card highlights when radio is checked */
.momcs-csp-channel-card.is-selected,
.momcs-csp-channel-card:has(.momcs-csp-channel-input:checked) {
	border-color: #ea580c;
	background: #fff7ed;
	box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.15);
}

.momcs-csp-channel-label {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	cursor: pointer;
	width: 100%;
	box-sizing: border-box;
	position: relative;
}

/*
 * Visually hide the native control but keep it a full-label hit target.
 * Zero-size + pointer-events: none breaks label activation and checkbox toggling
 * in common browsers; radio mode relied on JS, but checkbox mode did not.
 */
.momcs-csp-channel-input {
	position: absolute;
	left: 0;
	top: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
}

/* Custom check indicator */
.momcs-csp-channel-check {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease, background 0.15s ease;
	position: relative;
}

/* Selected state: from JS .is-selected and from native :checked (so circle fills when label is clicked) */
.momcs-csp-channel-card.is-selected .momcs-csp-channel-check,
.momcs-csp-channel-label .momcs-csp-channel-input:checked ~ .momcs-csp-channel-check {
	border-color: #ea580c !important;
	background: #ea580c !important;
}

.momcs-csp-channel-card.is-selected .momcs-csp-channel-check::after,
.momcs-csp-channel-label .momcs-csp-channel-input:checked ~ .momcs-csp-channel-check::after {
	content: '' !important;
	display: block !important;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff !important;
}

/* Checkbox variant (multiple select) */
.momcs-csp-channel-card.is-checkbox .momcs-csp-channel-check {
	border-radius: 4px;
}

.momcs-csp-channel-card.is-checkbox.is-selected .momcs-csp-channel-check::after {
	content: '';
	display: block;
	width: 10px;
	height: 6px;
	border-radius: 0;
	background: transparent;
	border-left: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translate(0px, -1px);
}

.momcs-csp-channel-icon {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 4px;
	flex-shrink: 0;
	display: block;
	vertical-align: middle;
}

.momcs-csp-channel-info {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
}

.momcs-csp-channel-name {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.momcs-csp-channel-region {
	font-size: 11px;
	color: #64748b;
	white-space: nowrap;
}

/* Loading state */
.momcs-sync-spinner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px 20px;
	gap: 10px;
}

.momcs-csp-spinner {
	display: inline-block;
	width: 28px;
	height: 28px;
	border: 3px solid #f1f5f9;
	border-top-color: #ea580c;
	border-radius: 50%;
	animation: momcs-csp-spin 0.75s linear infinite;
}

@keyframes momcs-csp-spin {
	to { transform: rotate(360deg); }
}

.momcs-csp-loading-text {
	margin: 0;
	font-size: 12px;
	color: #64748b;
}

/* Upgrade prompt */
.momcs-csp-upgrade-prompt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	margin-top: 6px;
	color: #0369a1;
}

.momcs-csp-upgrade-prompt svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #0284c7;
}

.momcs-csp-upgrade-prompt div {
	flex: 1;
}

.momcs-csp-upgrade-prompt strong {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #0c4a6e;
	margin-bottom: 2px;
}

.momcs-csp-upgrade-prompt p {
	margin: 0;
	font-size: 11px;
	color: #0369a1;
}

/* Error state */
.momcs-csp-error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 12px 14px;
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	color: #991b1b;
}

.momcs-csp-error svg {
	flex-shrink: 0;
	margin-top: 1px;
	color: #dc2626;
}

.momcs-csp-error p {
	margin: 0;
	font-size: 12px;
	color: #991b1b;
	line-height: 1.5;
}

.momcs-csp-error a {
	color: #dc2626;
	text-decoration: underline;
}

.momcs-csp-error a:hover {
	color: #991b1b;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.momcs-csp-footer {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 14px 20px;
	border-top: 1px solid #f0f0f0;
	background: #f8f9fa;
}

/* Shared button base */
.momcs-csp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 18px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 8px;
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: all 0.15s ease;
	line-height: 1;
	white-space: nowrap;
	text-decoration: none;
}

/* Cancel — orange outline */
.momcs-csp-btn-cancel {
	background: transparent;
	color: #ea580c;
	border-color: #ea580c;
}

.momcs-csp-btn-cancel:hover,
.momcs-csp-btn-cancel:focus {
	background: #fff7ed;
	color: #c2410c;
	border-color: #c2410c;
	outline: none;
}

/* Confirm — solid orange */
.momcs-csp-btn-confirm {
	background: #ea580c;
	color: #ffffff;
	border-color: #ea580c;
}

.momcs-csp-btn-confirm:hover,
.momcs-csp-btn-confirm:focus {
	background: #c2410c;
	border-color: #c2410c;
	color: #ffffff;
	outline: none;
}

.momcs-csp-btn-confirm:disabled {
	background: #fed7aa;
	border-color: #fed7aa;
	color: #9a3412;
	cursor: not-allowed;
	opacity: 1;
}

/* Responsive */
@media (max-width: 520px) {
	#momcs-sync-modal {
		width: calc(100vw - 24px);
	}

	.momcs-csp-footer {
		flex-direction: column-reverse;
	}

	.momcs-csp-btn {
		width: 100%;
	}
}

/* Legacy selectors kept for backward compat (dark mode overrides use these) */
.momcs-sync-modal-content { /* intentional no-op */ }

.momcs-sync-error {
	color: #d63638;
	background-color: #fcf0f1;
	padding: 10px;
	border-left: 4px solid #d63638;
	margin: 5px 0;
}

.momcs-sync-error a {
	color: #ea580c;
	text-decoration: underline;
}

/* Logger UI */
#momcs-sync-logger {
	margin-top: 20px;
	display: none;
}

#momcs-sync-logger-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background-color: #f0f0f1;
	padding: 10px;
	border: 1px solid #c3c4c7;
	border-bottom: none;
}

#momcs-sync-logger-title {
	font-weight: 600;
}

#momcs-sync-logger-actions {
	display: flex;
	gap: 10px;
}

#momcs-sync-logger-content {
	height: 200px;
	overflow-y: auto;
	background-color: #f6f7f7;
	border: 1px solid #c3c4c7;
	padding: 10px;
	font-family: monospace;
}

.momcs-sync-logger-content .log-entry {
	margin-bottom: 5px;
	padding: 3px 5px;
	border-left: 3px solid #ccc;
}

.momcs-sync-logger-content .log-entry.info {
	border-color: #72aee6;
	background-color: #f0f6fc;
}

.momcs-sync-logger-content .log-entry.success {
	border-color: #00a32a;
	background-color: #edfaef;
}

.momcs-sync-logger-content .log-entry.warning {
	border-color: #dba617;
	background-color: #fcf9e8;
}

.momcs-sync-logger-content .log-entry.error {
	border-color: #d63638;
	background-color: #fcf0f1;
}

/* Premium upgrade prompt styling */
.momcs-upgrade-prompt {
	margin-top: 15px;
	padding: 12px 15px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border-radius: 6px;
	text-align: center;
}

.momcs-upgrade-prompt p {
	margin: 5px 0;
}

.momcs-upgrade-prompt strong {
	font-size: 14px;
}

/* ============================================
   Per-Marketplace Status Chips
   ============================================ */

.momcs-marketplace-status-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.momcs-marketplace-status-chip {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 6px 11px;
	border-radius: 16px;
	font-size: 11px;
	font-weight: 500;
	background-color: #f8f9fa;
	border: 1px solid #e2e4e7;
	cursor: default;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.momcs-marketplace-status-chip:hover {
	background-color: #f0f0f1;
	border-color: #c3c4c7;
}

/* Amazon logo in chip */
.momcs-marketplace-status-chip .momcs-mp-logo {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.momcs-marketplace-status-chip .momcs-mp-logo.amazon-logo {
	background-image: url('../images/amazon-single-logo.png');
}

/* Flag emoji */
.momcs-marketplace-status-chip .momcs-mp-flag {
	font-size: 12px;
	line-height: 1;
}

/* Marketplace short name */
.momcs-marketplace-status-chip .momcs-mp-name {
	color: #50575e;
	font-weight: 600;
	min-width: 18px;
	text-align: center;
}

/* Status dot */
.momcs-mp-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
	margin-left: 2px;
}

/* Status dot color variants */
.momcs-mp-status-dot.success {
	background-color: #00a32a;
	box-shadow: 0 0 0 2px rgba(0, 163, 42, 0.2);
}

.momcs-mp-status-dot.discoverable {
	background-color: #ea580c;
	box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.2);
}

.momcs-mp-status-dot.processing {
	background-color: #dba617;
	box-shadow: 0 0 0 2px rgba(219, 166, 23, 0.2);
	animation: momcs-pulse 1.5s ease-in-out infinite;
}

.momcs-mp-status-dot.pending {
	background-color: #72aee6;
	box-shadow: 0 0 0 2px rgba(114, 174, 230, 0.2);
}

.momcs-mp-status-dot.error {
	background-color: #d63638;
	box-shadow: 0 0 0 2px rgba(214, 54, 56, 0.2);
}

.momcs-mp-status-dot.danger {
	background-color: #a7aaad;
	box-shadow: 0 0 0 2px rgba(167, 170, 173, 0.2);
}

/* Chip background color based on status */
.momcs-marketplace-status-chip.success {
	background-color: #edfaef;
	border-color: #c6e7c9;
}

.momcs-marketplace-status-chip.discoverable {
	background-color: #f0f6fc;
	border-color: #c5d9ed;
}

.momcs-marketplace-status-chip.processing {
	background-color: #fcf9e8;
	border-color: #f0e3a1;
}

.momcs-marketplace-status-chip.pending {
	background-color: #f0f6fc;
	border-color: #c5d9ed;
}

.momcs-marketplace-status-chip.error {
	background-color: #fcf0f1;
	border-color: #f1c8c8;
}

.momcs-marketplace-status-chip.danger {
	background-color: #f6f7f7;
	border-color: #dcdcde;
}

/* Processing pulse animation */
@keyframes momcs-pulse {
	0%, 100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.7;
		transform: scale(1.1);
	}
}

/* Status column width adjustment for multiple chips */
.column-sync-status {
	min-width: 140px;
}

/* ============================================
   Marketplace Status Chip Tooltip
   ============================================ */

/* Tooltip Wrapper */
.momcs-marketplace-status-chip-wrapper {
	position: relative;
	display: inline-block;
}

/* Styled Tooltip for Marketplace Status Chips */
.momcs-mp-tooltip {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background-color: #1d2327;
	color: #fff;
	padding: 6px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	z-index: 1000;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: opacity 0.15s ease, visibility 0.15s ease;
	pointer-events: none;
}

/* Tooltip Arrow */
.momcs-mp-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	border-width: 5px;
	border-style: solid;
	border-color: #1d2327 transparent transparent transparent;
}

/* Show tooltip on hover */
.momcs-marketplace-status-chip-wrapper:hover .momcs-mp-tooltip {
	visibility: visible;
	opacity: 1;
}

/* RTL support */
[dir="rtl"] .momcs-marketplace-status-chip {
	flex-direction: row-reverse;
}

[dir="rtl"] .momcs-mp-status-dot {
	margin-left: 0;
	margin-right: 2px;
}

[dir="rtl"] .momcs-mp-tooltip {
	left: auto;
	right: 50%;
	transform: translateX(50%);
}

[dir="rtl"] .momcs-mp-tooltip::after {
	left: auto;
	right: 50%;
	transform: translateX(50%);
}