/* Admin CSS for MOMCS Amazon Sync */

/* Global Styles */
.momcs-sync-wrap {
	margin: 0 20px;
	padding: 0;
	max-width: 100%;
}

/**
 * WordPress core uses .wrap { margin: 10px 20px 0 2px } (asymmetric L/R). Force symmetric
 * horizontal margins so the plugin shell and navbar align evenly in #wpbody-content.
 */
#wpbody-content > .wrap.momcs-sync-wrap {
	margin-left: 20px;
	margin-right: 20px;
	margin-top: 10px;
	margin-bottom: 0;
	max-width: 100%;
	box-sizing: border-box;
}

/**
 * Accent text utility (products bulk hint, orders premium notice; dark mode in dark-mode.css).
 */
.momcs-text-accent-orange {
	color: #fb923c;
}

.momcs-sync-content {
	margin: 0;
	padding: 10px;
	max-width: 100%;
	position: relative;
}

/* Dashboard Styles */
.momcs-sync-header {
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	padding: 20px 20px 0px 0px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 2;
}

.momcs-sync-header h1 {
	margin: 0;
	font-size: 18px;
	color: #23282d;
}

.momcs-sync-nav {
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	margin-bottom: 20px;
	width: 99%;
}

.momcs-sync-nav-tabs {
	display: flex;
	border-bottom: 1px solid #f0f0f0;
	padding: 0;
	margin: 0;
}

.momcs-sync-nav-tab {
	padding: 15px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #646970;
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.momcs-sync-nav-tab .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
	line-height: 1;
}

.momcs-sync-nav-tab:hover {
	color: #ea580c;
	border-bottom-color: #c3c4c7;
}

.momcs-sync-nav-tab.active {
	color: #ea580c;
	border-bottom-color: #ea580c;
}

/* Dashboard Cards */
.momcs-sync-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.momcs-sync-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	padding: 20px;
	box-sizing: border-box;
}

.momcs-sync-card h3 {
	margin-top: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
}

.momcs-sync-card-content {
	width: 100%;
	overflow: hidden;
}

.momcs-sync-marketplace-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.momcs-sync-marketplace-list li {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
}

.momcs-sync-marketplace-list .dashicons-yes-alt {
	color: #46b450;
	margin-right: 10px;
}

/* Marketplace Selection */
.momcs-sync-marketplace-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 20px;
	margin-top: 20px;
}

.momcs-sync-marketplace-card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	padding: 20px;
	text-align: center;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.momcs-sync-marketplace-card:hover {
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	transform: translateY(-5px);
}

.momcs-sync-marketplace-card img {
	max-width: 100px;
	max-height: 50px;
	margin-bottom: 15px;
}

.momcs-sync-marketplace-card h3 {
	margin: 0 0 10px;
}

.momcs-sync-marketplace-card p {
	margin-bottom: 20px;
	color: #646970;
}

/* Legacy connect button style for backward compatibility */
.momcs-sync-marketplace-card .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 4px;
	background: #f8f9fa;
	border: 1px solid #d3d6d8;
	color: #343a40;
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: all 0.2s ease;
}

.momcs-sync-marketplace-card .button:hover {
	background: #f1f3f5;
	border-color: #c1c7cd;
	color: #212529;
}

.momcs-sync-marketplace-card .button:before {
	content: '\f345';
	font-family: 'dashicons';
	margin-right: 5px;
	font-size: 15px;
	line-height: 1;
}

/* Connect and Manage Pages */
.momcs-auth-container,
.momcs-connect-card {
	background-color: #fff;
	border-radius: 5px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	padding: 30px;
	max-width: 800px;
	margin: 0 auto;
}

.momcs-auth-description,
.momcs-connect-instructions {
	margin-bottom: 30px;
	font-size: 16px;
}

.momcs-auth-button-container {
	margin: 30px 0;
}

.momcs-auth-button-container button,
.momcs-ebay-authorize-btn,
.momcs-walmart-authorize-btn {
	padding: 10px 20px;
	font-size: 16px;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
}

.momcs-auth-button-container button img,
.momcs-ebay-authorize-btn img,
.momcs-walmart-authorize-btn img {
	height: 24px;
	margin-right: 10px;
}

.momcs-auth-success {
	display: flex;
	align-items: center;
	color: #46b450;
	font-weight: bold;
	font-size: 16px;
}

.momcs-auth-success .dashicons {
	font-size: 24px;
	margin-right: 10px;
	background-color: #46b450;
	color: white;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.momcs-auth-loader {
	text-align: center;
	margin: 30px 0;
}

.momcs-auth-loader-spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #3498db;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 2s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Form Styles */
.momcs-form-group {
	margin-bottom: 20px;
}

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

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

.momcs-form-actions {
	margin-top: 30px;
	display: flex;
	justify-content: space-between;
}

/* Mapping Table */
.momcs-mapping-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.momcs-mapping-table th {
	text-align: left;
	padding: 12px;
	background-color: #f9f9f9;
	border-bottom: 1px solid #ddd;
}

.momcs-mapping-table td {
	padding: 12px;
	border-bottom: 1px solid #ddd;
}

/* Stepper Styles */
.momcs-marketplace-stepper-container {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 20px 0;
	padding: 20px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
	overflow: hidden;
}

/* ==========================================================================
   Unified Navbar Styles (Qoder-inspired Light Theme)
   ========================================================================== */

/**
 * Main unified navbar container
 * flex-wrap allows brand, menu, and actions to wrap on narrow viewports
 */
.momcs-unified-navbar {
	width: 100%;
	max-width: 100%;
	margin-top: 0;
	margin-left: auto;
	margin-right: auto;
	/* Grid: brand | nav (fills) | actions — avoids flex space-between + flex:1 gap skew */
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 16px;
	row-gap: 10px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 10px 20px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	position: relative;
	z-index: 10;
	box-sizing: border-box;
}

/**
 * Brand section (logo + title)
 */
.momcs-navbar-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

/**
 * Logo styling
 */
.momcs-navbar-logo {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

/**
 * Title container
 */
.momcs-navbar-title {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

/**
 * Brand line: heading text + PRO chip
 */
.momcs-brand-line {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/**
 * Brand name "Multi-channel for WooCommerce"
 */
.momcs-brand-name {
	font-size: 15px;
	font-weight: 600;
	color: #1d2327;
	letter-spacing: -0.3px;
}

/**
 * PRO chip after main heading (italic text in pill)
 */
.momcs-brand-pro-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 11px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
	border-radius: 8px;
	line-height: 1.2;
	margin-bottom: 3px;
}

.momcs-brand-pro-chip em {
	font-style: italic;
	font-weight: 600;
}

/**
 * Orange accent in brand name
 */
.momcs-brand-orange {
	color: #000000;
}

/**
 * Product name subtitle
 */
.momcs-product-name {
	font-size: 11px;
	color: #6b7280;
	font-weight: 500;
	letter-spacing: 0.2px;
}

/**
 * Navigation menu container
 * flex-wrap and min-width: 0 allow items to wrap on narrow viewports instead of overflowing
 */
.momcs-navbar-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	justify-self: stretch;
	gap: 4px;
	min-width: 0;
}

/**
 * Individual navigation item
 */
.momcs-navbar-item {
	display: inline-flex;
	align-items: center;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 500;
	color: #4b5563;
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

/**
 * Navigation item hover state
 */
.momcs-navbar-item:hover {
	color: #1d2327;
	background: #f3f4f6;
}

/**
 * Active navigation item
 */
.momcs-navbar-item.active {
	color: #ff6a00;
	background: #fff7ed;
	font-weight: 600;
}

/**
 * Navbar actions (e.g. dark mode toggle)
 * flex-shrink: 0 keeps toggle visible when menu wraps
 */
.momcs-navbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
	justify-self: end;
}

/**
 * Dark mode toggle switch
 */
.momcs-dark-mode-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	position: relative;
}

.momcs-dark-mode-toggle-input {
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
}

.momcs-dark-mode-toggle-slider {
	display: inline-block;
	position: relative;
	width: 40px;
	height: 22px;
	background-color: #e5e7eb;
	border-radius: 11px;
	transition: background-color 0.2s ease;
	flex-shrink: 0;
}

.momcs-dark-mode-toggle-slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 2px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #ffffff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}

.momcs-dark-mode-toggle-input:checked ~ .momcs-dark-mode-toggle-slider {
	background-color: #3b82f6;
}

.momcs-dark-mode-toggle-input:checked ~ .momcs-dark-mode-toggle-slider::before {
	transform: translateY(-50%) translateX(18px);
}

/* Dark mode toggle icons: sun = light mode, moon = dark mode */
.momcs-dark-mode-toggle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: #6b7280;
	transition: color 0.2s ease, opacity 0.2s ease;
	flex-shrink: 0;
}

.momcs-dark-mode-toggle-icon svg {
	width: 18px;
	height: 18px;
	display: block;
}

/* Light mode: show sun, hide moon */
.momcs-dark-mode-toggle-icon-sun {
	opacity: 1;
}

.momcs-dark-mode-toggle-input:checked ~ .momcs-dark-mode-toggle-icon-sun {
	opacity: 0;
	pointer-events: none;
	position: absolute;
}

.momcs-dark-mode-toggle-icon-moon {
	opacity: 0;
	position: absolute;
	pointer-events: none;
}

.momcs-dark-mode-toggle-input:checked ~ .momcs-dark-mode-toggle-icon-moon {
	opacity: 1;
	position: static;
	pointer-events: auto;
	color: #93c5fd;
}

.momcs-dark-mode-toggle:hover .momcs-dark-mode-toggle-icon {
	color: #374151;
}

.momcs-dark-mode-toggle:hover .momcs-dark-mode-toggle-input:checked ~ .momcs-dark-mode-toggle-icon-moon {
	color: #bfdbfe;
}

/* Hide the old separate nav bar */
.momcs-unified-navbar + .momcs-sync-nav {
	display: none;
}

/* Legacy header fallback (for backward compatibility) */
.momcs-sync-header:not(.momcs-header-enhanced) {
	padding: 20px 20px 20px 0px;
	margin-bottom: 20px;
	display: flex;
	justify-content: flex-start;
	align-items: center;
	flex-wrap: nowrap;
	background: transparent;
	border-radius: 0;
}

.momcs-sync-header:not(.momcs-header-enhanced) h1 {
	color: #000000;
	display: flex;
	align-items: center;
	margin: 0;
	font-size: 18px;
	font-weight: 400;
}

/* Make sure everything stays contained */
.wrap {
	margin: 10px 20px 0 20px;
	max-width: 100%;
}

/* Stepper Content */
.momcs-stepper-content-step {
	display: none;
}

.momcs-stepper-content-step.active {
	display: block;
	width: 100%;
	padding: 20px;
	background: #fff;
	border-radius: 5px;
	margin: 20px 0;
	box-sizing: border-box;
}

/* Manage Table */
.momcs-sync-manage table {
	width: 100%;
	border-collapse: collapse;
}

.momcs-sync-manage th {
	text-align: left;
	padding: 12px;
}

.momcs-sync-manage td {
	padding: 12px;
}

.momcs-sync-manage .status-connected {
	color: #46b450;
	font-weight: bold;
}

.momcs-sync-manage .status-disconnected {
	color: #dc3232;
}

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

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/**
 * Large tablet breakpoint (max-width: 1024px)
 * Menu wraps via flex-wrap; reduced padding and font size fit more items per line
 */
@media screen and (max-width: 1024px) {
	.momcs-unified-navbar {
		padding: 8px 14px;
	}

	.momcs-navbar-item {
		padding: 8px 14px;
		font-size: 12px;
	}

	.momcs-product-name {
		display: none;
	}
}

/**
 * Tablet breakpoint (max-width: 782px)
 */
@media screen and (max-width: 782px) {
	.momcs-sync-cards,
	.momcs-sync-marketplace-grid {
		grid-template-columns: 1fr;
	}

	/* Legacy header responsive */
	.momcs-sync-header:not(.momcs-header-enhanced) {
		flex-direction: column;
		text-align: center;
	}

	/* Unified navbar responsive - tablet */
	.momcs-unified-navbar {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		border-radius: 16px;
		padding: 12px 16px;
		gap: 12px;
	}

	.momcs-navbar-brand {
		width: 100%;
		justify-content: center;
		padding-bottom: 12px;
		border-bottom: 1px solid #e5e7eb;
	}

	.momcs-product-name {
		display: block;
	}

	.momcs-navbar-menu {
		width: 100%;
		flex-wrap: wrap;
		justify-content: center;
		gap: 6px;
	}

	.momcs-navbar-item {
		padding: 8px 14px;
		font-size: 12px;
	}

	/* Navigation responsive (legacy) */
	.momcs-sync-nav-tabs {
		flex-wrap: wrap;
	}

	.momcs-sync-nav-tab {
		flex: 1 1 auto;
		text-align: center;
		justify-content: center;
	}

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

/**
 * Mobile breakpoint (max-width: 480px)
 */
@media screen and (max-width: 480px) {
	.momcs-unified-navbar {
		padding: 10px 12px;
		border-radius: 12px;
	}

	.momcs-navbar-logo {
		width: 28px;
		height: 28px;
	}

	.momcs-brand-name {
		font-size: 13px;
	}

	.momcs-product-name {
		font-size: 10px;
	}

	.momcs-navbar-menu {
		gap: 4px;
	}

	.momcs-navbar-item {
		padding: 6px 10px;
		font-size: 11px;
		border-radius: 20px;
	}
}

/* Fix for save buttons visibility */
#momcs-template-mapping-save,
.momcs-template-mapping-actions .button,
.momcs-mapping-actions .button {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background-color: #ea580c !important;
	color: #fff !important;
	border-color: #ea580c !important;
	cursor: pointer !important;
}

/* Hide template mapping save button */
#momcs-template-mapping-save {
	display: none !important;
}

/* Add CSS for price chips */
.momcs-sync-price-chips {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.momcs-sync-price-chip {
	display: flex;
	align-items: center;
	padding: 4px 8px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
	background-color: #f0f0f0;
	color: #333;
	width: fit-content;
}

.momcs-sync-price-chip img {
	margin-right: 5px;
	width: 16px;
	height: 16px;
	object-fit: contain;
}

.momcs-sync-price-chip-logo {
	display: inline-block;
	min-width: 16px;
	height: 16px;
	margin-right: 8px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex-shrink: 0;
}

.momcs-sync-price-chip-logo.woocommerce-logo {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDg1LjkgNDcuNiI+CjxwYXRoIGZpbGw9IiNhN2FhYWQiIGQ9Ik03Ny40LDAuMWMtNC4zLDAtNy4xLDEuNC05LjYsNi4xTDU2LjQsMjcuN1Y4LjZjMC01LjctMi43LTguNS03LjctOC41cy03LjEsMS43LTkuNiw2LjVMMjguMywyNy43VjguOAoJYzAtNi4xLTIuNS04LjctOC42LTguN0g3LjNDMi42LDAuMSwwLDIuMywwLDYuM3MyLjUsNi40LDcuMSw2LjRoNS4xdjI0LjFjMCw2LjgsNC42LDEwLjgsMTEuMiwxMC44UzMzLDQ1LDM2LjMsMzguOWw3LjItMTMuNXYxMS40CgljMCw2LjcsNC40LDEwLjgsMTEuMSwxMC44czkuMi0yLjMsMTMtOC43bDE2LjYtMjhjMy42LTYuMSwxLjEtMTAuOC02LjktMTAuOEM3Ny4zLDAuMSw3Ny4zLDAuMSw3Ny40LDAuMXoiLz4KPC9zdmc+Cg==") !important;
}

.momcs-sync-price-chip-logo.amazon-logo {
	background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyNCAyNCIgaWQ9IkFtYXpvbi1Mb2dvLS1TdHJlYW1saW5lLUxvZ29zIiBoZWlnaHQ9IjI0IiB3aWR0aD0iMjQiPgogIDxkZXNjPgogICAgQW1hem9uIExvZ28gU3RyZWFtbGluZSBJY29uOiBodHRwczovL3N0cmVhbWxpbmVocS5jb20KICA8L2Rlc2M+CiAgPHBhdGggZmlsbD0iIzIzMmYzZSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJtMTYuNDEyIDE2LjI0IDEuNTg3IC0xLjQ2OGEwLjUzMiAwLjUzMiAwIDAgMCAwLjAyNyAtMC43MzZjLTAuNjU1IC0wLjc2NCAtMC44NTIgLTEuNDAxIC0wLjg1MiAtMS44NjJWNi4wNDZjMC4wMDcgLTEuMDI1IC0wLjk3MyAtMy4wNzYgLTQuOTQ1IC0zLjA3NiAtMy41MzggMCAtNC44MjYgMi4xIC01LjExNSAzLjQ5NSAtMC4wNTUgMC4yNjMgMC4xNDggMC40OTYgMC40MTYgMC41MmwyLjA5IDAuMTg5YzAuMjU1IDAuMDIzIDAuNDgzIC0wLjE1MiAwLjU4MyAtMC4zODcgMC4yNiAtMC42MSAwLjg2NyAtMS4zODMgMi4wMjYgLTEuMzgzIDEuMTY4IDAgMS41NzcgMC44OTUgMS42MzUgMS4zNDNWOC4xM2MtNS43MjQgMCAtNy4yMDQgMi40OTIgLTcuMjA0IDQuODY3IDAgMi4zNzYgMS43MzMgMy41NjMgMy44NTUgMy41NjMgMS40MDkgMCAyLjcwOSAtMC43NzcgMy40MyAtMS4zNjRhMC41NDcgMC41NDcgMCAwIDEgMC43MjMgMC4wMTRsMS4wNTcgMS4wMjJhMC41IDAuNSAwIDAgMCAwLjY4NyAwLjAwOFptLTMuNTMgLTIuNTc4YzEuMjgzIC0wLjk3NiAwLjk4OCAtMy42OTkgMC45ODggLTMuNjk5cy0yLjQxMiAtMC4xNiAtMy4zNTQgMS4yODdjLTAuNTE0IDAuNzkgLTAuMzQ4IDEuODYyIDAuMjc1IDIuNDEyIDAuNTE5IDAuNDU4IDEuMzkyIDAuNTMyIDIuMDkxIDBabTguOTQ5IDMuMzczYy0wLjE1NSAtMC4xNzYgLTAuODY4IC0wLjExNSAtMS41NTMgLTAuMDU3IC0wLjY4IDAuMDU4IC0xLjMzMiAwLjExMyAtMS4zODQgLTAuMDY3IC0wLjEwNSAtMC4zNjEgMy4xNjUgLTEuMTk4IDMuOTczIC0wLjU0MiAwLjcwMyAwLjU3IC0xLjExMiAzLjkzNSAtMS42MTIgMy42NjQgLTAuMSAtMC4wNTQgMC4wNSAtMC40NjEgMC4yMzIgLTAuOTYzIDAuMjc0IC0wLjc1MSAwLjYyNiAtMS43MTYgMC4zNDQgLTIuMDM1Wm0tOS44MjQgMi4zMTNjLTQuNTI3IDAgLTcuNzcxIC0xLjU2OCAtOS40NDcgLTIuMzc4IC0wLjcwMSAtMC4zMzkgLTEuMTI3IC0wLjU0NSAtMS4yNTggLTAuNDQ3IC0wLjQ0MSAwLjMzIDQuNzI0IDQuNDE0IDEwLjcwNSA0LjQxNCA1LjIzMSAwIDkuNzU2IC0yLjgyNSA5LjA5NCAtMy4yIC0wLjIzNyAtMC4xMzQgLTAuNzMzIDAuMDMzIC0xLjUzNCAwLjMwNCAtMS40NDIgMC40ODYgLTMuODcyIDEuMzA3IC03LjU2IDEuMzA3WiIgY2xpcC1ydWxlPSJldmVub2RkIiBzdHJva2Utd2lkdGg9IjEiPjwvcGF0aD4KPC9zdmc+") !important;
}

.momcs-sync-price-chip.woocommerce {
	background-color: #f0e6ff;
	color: #5a3c8a;
	justify-content: space-between;
	min-width: 80px;
	padding-right: 12px;
}

.momcs-sync-price-chip.amazon {
	background-color: #fff8e0;  /* Light yellow background */
	color: #232f3e;
	justify-content: flex-start;
	min-width: 95px;
	padding-right: 12px;
	gap: 4px;
}

/* Per-Marketplace Price Chip Enhancements */
.momcs-sync-price-chip .momcs-mp-flag,
.momcs-marketplace-status-chip .momcs-mp-flag {
	display: inline-block;
	width: 16px;
	height: 12px;
	margin-right: 4px;
	flex-shrink: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 2px;
	box-shadow: 0 0 1px rgba(0,0,0,0.2);
}

/* Country Flag Icons - Using flagcdn.com CDN */
.momcs-flag-us { background-image: url('https://flagcdn.com/w20/us.png'); }
.momcs-flag-ca { background-image: url('https://flagcdn.com/w20/ca.png'); }
.momcs-flag-mx { background-image: url('https://flagcdn.com/w20/mx.png'); }
.momcs-flag-br { background-image: url('https://flagcdn.com/w20/br.png'); }
.momcs-flag-gb { background-image: url('https://flagcdn.com/w20/gb.png'); }
.momcs-flag-de { background-image: url('https://flagcdn.com/w20/de.png'); }
.momcs-flag-fr { background-image: url('https://flagcdn.com/w20/fr.png'); }
.momcs-flag-it { background-image: url('https://flagcdn.com/w20/it.png'); }
.momcs-flag-es { background-image: url('https://flagcdn.com/w20/es.png'); }
.momcs-flag-nl { background-image: url('https://flagcdn.com/w20/nl.png'); }
.momcs-flag-se { background-image: url('https://flagcdn.com/w20/se.png'); }
.momcs-flag-pl { background-image: url('https://flagcdn.com/w20/pl.png'); }
.momcs-flag-be { background-image: url('https://flagcdn.com/w20/be.png'); }
.momcs-flag-tr { background-image: url('https://flagcdn.com/w20/tr.png'); }
.momcs-flag-sa { background-image: url('https://flagcdn.com/w20/sa.png'); }
.momcs-flag-ae { background-image: url('https://flagcdn.com/w20/ae.png'); }
.momcs-flag-eg { background-image: url('https://flagcdn.com/w20/eg.png'); }
.momcs-flag-in { background-image: url('https://flagcdn.com/w20/in.png'); }
.momcs-flag-sg { background-image: url('https://flagcdn.com/w20/sg.png'); }
.momcs-flag-au { background-image: url('https://flagcdn.com/w20/au.png'); }
.momcs-flag-jp { background-image: url('https://flagcdn.com/w20/jp.png'); }
.momcs-flag-za { background-image: url('https://flagcdn.com/w20/za.png'); }
.momcs-flag-ie { background-image: url('https://flagcdn.com/w20/ie.png'); }

/* Fallback for unknown flags */
.momcs-mp-flag:not([class*="momcs-flag-"]) {
	background-color: #e0e0e0;
}

.momcs-sync-price-chip .momcs-mp-label {
	font-size: 10px;
	font-weight: 600;
	color: #666;
	margin-right: 4px;
	text-transform: uppercase;
	flex-shrink: 0;
}

.momcs-sync-price-chip.amazon .momcs-mp-label {
	color: #232f3e;
	opacity: 0.7;
}

/* Ensure price value takes remaining space */
.momcs-sync-price-chip .momcs-sync-price-value {
	flex-shrink: 0;
	white-space: nowrap;
}

.momcs-sync-price-chip.ebay {
	background-color: #e6f2ff;
	color: #0064d2;
}

.momcs-sync-price-chip.walmart {
	background-color: #e6f6ff;
	color: #0071ce;
}

/* Responsive: Stack price chips on smaller screens */
@media screen and (max-width: 1200px) {
	.momcs-sync-price-chips {
		flex-wrap: wrap;
	}

	.momcs-sync-price-chip {
		font-size: 11px;
		padding: 3px 6px;
	}

	.momcs-sync-price-chip .momcs-mp-label {
		display: none; /* Hide label on small screens, keep flag */
	}
}

@media screen and (max-width: 992px) {
	.momcs-sync-price-chip .momcs-mp-flag {
		font-size: 11px;
	}
}

.momcs-sync-bulk-actions {
	margin-top: 15px;
}

/* Add CSS for pagination */
.momcs-sync-pagination {
	margin: 15px 0px;
	padding: 1px 15px;
}


.momcs-sync-pagination.bottom {
	margin-top: 20px;
}

.momcs-sync-pagination .tablenav-pages {
	float: right;
	display: flex;
	align-items: center;
}

.momcs-sync-pagination .displaying-num {
	margin-right: 10px;
	font-style: italic;
	color: #555;
}

.momcs-sync-pagination .pagination-links {
	display: flex;
	align-items: center;
}

.momcs-sync-pagination .button {
	padding: 0 10px;
	height: 30px;
	line-height: 28px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 2px;
	color: #0071a1;
	border-color: #0071a1;
	background: #f3f5f6;
	vertical-align: middle;
}

.momcs-sync-pagination .button:hover {
	background: #f1f1f1;
	border-color: #016087;
	color: #016087;
}

.momcs-sync-pagination .button.disabled {
	color: #a0a5aa;
	border-color: #ddd;
	background: #f7f7f7;
	cursor: default;
}

.momcs-sync-pagination .current-page {
	width: 40px;
	height: 30px;
	margin: 0 5px;
	padding: 0 5px;
	font-size: 13px;
	text-align: center;
	vertical-align: middle;
}

.momcs-sync-pagination .tablenav-paging-text {
	font-size: 13px;
	color: #555;
}

/* Add CSS for status chips and dropdown/button styling at the end of the file */
.e {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 16px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}

/* New Marketplace List CSS - momcs prefix as requested */
.momcs-marketplace-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.momcs-marketplace-item {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 15px 20px;
	margin-bottom: 15px;
	width: 100%;
	box-sizing: border-box;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.momcs-marketplace-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.momcs-marketplace-item img {
	width: 40px;
	height: 40px;
	object-fit: contain;
	margin-right: 20px;
}

.momcs-marketplace-details {
	flex: 1;
	margin-right: 20px;
}

.momcs-marketplace-details h4 {
	margin: 0 0 5px;
	font-size: 14px;
	font-weight: 600;
}

.momcs-marketplace-region {
	display: inline-block;
	font-size: 12px;
	color: #666;
}

.momcs-marketplace-status {
	margin-right: 20px;
	display: flex;
	align-items: center;
}

.momcs-status-connected {
	color: #00a32a;
	font-size: 13px;
	font-weight: 600;
	background-color: #edfaef;
	border-radius: 50px;
	padding: 8px 13px;
}

.momcs-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
	background-color: currentColor;
}

.momcs-status-connected .momcs-status-dot {
	background-color: #00a32a;
}

.momcs-status-disconnected .momcs-status-dot {
	background-color: #d63638;
}

.momcs-sync-status-chip.warning .momcs-status-dot {
	background-color: #996800;
}

.momcs-sync-status-chip.danger {
	background-color: #fce8e6;
	color: #d93025;
}

.momcs-sync-status-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: 6px;
}

.momcs-sync-status-chip.success .momcs-sync-status-dot {
	background-color: #1e8e3e;
}

.momcs-sync-status-chip.warning .momcs-sync-status-dot {
	background-color: #f9ab00;
}

.momcs-sync-status-chip.danger .momcs-sync-status-dot {
	background-color: #d93025;
}

.momcs-sync-list-actions {
	display: flex;
	align-items: center;
	margin-right: 15px;
}

#momcs-sync-list-action {
	margin-right: 8px;
	min-width: 150px;
}

.momcs-sync-bulk-actions {
	display: flex;
	align-items: center;
}

/* Marketplace Horizontal Selection */
.momcs-marketplace-horizontal-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 20px;
	width: 100%;
	max-width: 700px;
}

.momcs-marketplace-horizontal-card {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	padding: 24px 30px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
	transition: all 0.2s ease;
}

.momcs-marketplace-horizontal-card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	border-color: #d8d8d8;
}

.momcs-marketplace-horizontal-card img {
	width: 90px;
	height: auto;
	max-height: 45px;
	object-fit: contain;
	margin-right: 30px;
	flex-shrink: 0;
}

.momcs-marketplace-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.momcs-marketplace-content h3 {
	margin: 0 0 6px 0;
	font-size: 16px;
	font-weight: 600;
	color: #1e1e1e;
}

.momcs-marketplace-content p {
	margin: 0;
	color: #646970;
	font-size: 14px;
	line-height: 1.5;
	max-width: 400px;
}

.momcs-marketplace-action {
	margin-left: 30px;
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.momcs-connect-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 4px;
	background: #f8f9fa;
	border: 1px solid #dcdfe3;
	color: #343a40;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
	min-width: 80px;
}

.momcs-connect-btn:hover {
	background: #f1f3f5;
	border-color: #c1c7cd;
	color: #212529;
}

.momcs-connect-btn:before {
	content: '\f345';
	font-family: 'dashicons';
	margin-right: 4px;
	font-size: 16px;
	line-height: 1;
	vertical-align: middle;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
	.momcs-marketplace-horizontal-card {
		flex-direction: column;
		text-align: center;
		padding: 24px 16px;
	}

	.momcs-marketplace-horizontal-card img {
		margin-right: 0;
		margin-bottom: 16px;
	}

	.momcs-marketplace-content {
		margin-bottom: 16px;
		align-items: center;
	}

	.momcs-marketplace-action {
		margin-left: 0;
	}
}

/* Marketplace Cards - Rectangular Layout */
.momcs-marketplace-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 20px auto;
	max-width: 800px;
}

.momcs-marketplace-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: all 0.2s ease;
	padding: 30px;
	text-align: center;
	position: relative;
}

.momcs-marketplace-card:hover {
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	border-color: #d8d8d8;
}

.momcs-marketplace-card img {
	width: auto;
	height: 40px;
	object-fit: contain;
	margin: 0 auto 20px;
}

.momcs-marketplace-card h3 {
	font-size: 18px;
	margin: 0 0 15px;
	font-weight: 500;
	color: #1d2327;
}

.momcs-marketplace-card p {
	color: #646970;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 25px;
}

.momcs-connect-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	border-radius: 4px;
	background: #f8f9fa;
	border: 1px solid #dcdfe3;
	color: #343a40;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	white-space: nowrap;
	min-width: 80px;
	position: relative;
}

.momcs-connect-btn:hover {
	background: #f1f3f5;
	border-color: #c1c7cd;
	color: #212529;
}

.momcs-connect-btn:after {
	content: '\f345';
	font-family: 'dashicons';
	margin-left: 5px;
	font-size: 16px;
	line-height: 1;
	vertical-align: middle;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
	.momcs-marketplace-grid {
		width: 100%;
		padding: 0 15px;
	}
}

/* New rounded marketplace connection cards */
.momcs-channels-wrapper {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.momcs-channels-container {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 20px 0;
	width: 100%;
}

.momcs-channel-container {
	border-radius: 15px;
	border: 1px solid #e8e9eb;
	background-color: #fff;
	padding: 0;
	display: flex;
	overflow: hidden;
	width: 100%;
}

.momcs-channel-content {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 40px; /* Increased horizontal padding */
}

.momcs-channel-name {
	font-weight: 500;
}

.momcs-channel-connect {
	border: 1px solid #444;
	border-radius: 5px;
	padding: 6px 20px; /* Increased button padding */
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: all 0.2s ease;
	margin-left: auto; /* Push to far right */
}

.momcs-channel-connect:hover {
	background-color: #f8f8f8;
}

@media screen and (max-width: 600px) {
	.momcs-channel-content {
		padding: 15px;
		flex-direction: column;
		gap: 15px;
	}

	.momcs-channel-name {
		font-size: 20px;
	}
}

/* New rectangular marketplace connection cards */
.momcs-channels-wrapper-new {
	width: 100%;
	max-width: 900px;
	margin: 0 auto;
}

.momcs-channel-rect-container {
	border-radius: 8px;
	border: 1px solid #e8e9eb;
	background-color: #fff;
	padding: 0;
	margin-bottom: 20px;
	width: 100%;
	/* Explicitly prevent grid layout */
	display: block;
}

.momcs-channel-rect-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	/* Ensure proper layout inside */
	width: 100%;
	box-sizing: border-box;
}

.momcs-channel-rect-info {
	display: flex;
	align-items: center;
	flex: 1;
}

.momcs-channel-rect-logo {
	width: 100px;
	height: auto;
	max-height: 50px;
	margin-right: 20px;
	object-fit: contain;
}

.momcs-channel-rect-text {
	display: flex;
	flex-direction: column;
}

.momcs-channel-rect-name {
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 5px;
}

.momcs-channel-rect-text p {
	margin: 0;
	color: #666;
	font-size: 14px;
}

/* Connect CTA: align with #momcs-global-save-btn (marketplace-tabs.css) */
.momcs-channel-rect-connect:not(.disabled) {
	background: #f97316;
	border: 1px solid #ea580c;
	color: #fff !important;
	padding: 3px 24px;
	font-size: 13px;
	font-weight: 500;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.momcs-channel-rect-connect:not(.disabled):hover {
	opacity: 0.9;
	color: #fff !important;
}

@media screen and (max-width: 600px) {
	.momcs-channel-rect-content {
		flex-direction: column;
		padding: 15px;
		gap: 15px;
	}

	.momcs-channel-rect-info {
		flex-direction: column;
		text-align: center;
	}

	.momcs-channel-rect-logo {
		margin-right: 0;
		margin-bottom: 10px;
	}

	.momcs-channel-rect-text {
		text-align: center;
		margin-bottom: 15px;
	}
}

.momcs-marketplace-actions {
	display: flex;
	gap: 15px;
	align-items: center;
	margin-left: auto;
}

.momcs-marketplace-actions .button {
	display: inline-flex;
	border: none !important;
	align-items: center;
	justify-content: center;
	padding: 0px 13px;
	height: auto;
	min-width: 80px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.momcs-marketplace-actions .button .dashicons {
	margin-right: 5px;
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.momcs-marketplace-actions .button.danger {
	color: #dc3232;
	border-color: #dc3232;
	background: transparent;
}

.momcs-marketplace-actions .button.danger:hover {
	background: #dc3232;
	color: #fff;
}

.momcs-marketplace-actions .button:not(.danger) {
	color: #ea580c;
	border-color: #ea580c;
	background: transparent;
}

.momcs-marketplace-actions .button:not(.danger):hover {
	background: #ea580c;
	color: #fff;
}


.momcs-sync-orders {
	position: relative;
}

.momcs-orders-notice {
	position: relative;
	border-left-color: #00a0d2;
	z-index: 1;
	background: #e9f2ff;
	padding: 1px 0px 1px 15px;
	border-radius: 10px;
	border: 3px solid #00a0d2;
	font-weight: 500;
}

.momcs-sync-search {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.momcs-sync-search input[type="text"] {
	min-width: 300px;
}

.momcs-sync-orders-table {
	margin-top: 20px;
}

.momcs-sync-select {
	min-width: 100px;
	height: 30px;
	margin: 0;
}

.tablenav-pages {
	float: right;
}

.momcs-sync-orders-table .wp-list-table {
	margin-top: 10px;
}

.momcs-sync-orders-table .tablenav.top {
	margin-bottom: 15px;
}

.momcs-sync-orders-table .tablenav.bottom {
	margin-top: 15px;
}

.momcs-sync-orders-table .check-column {
	width: 2.2em;
	padding: 11px 0 0 3px;
}

.momcs-sync-orders-table .tablenav-pages .button,
.momcs-sync-orders-table .tablenav-pages .tablenav-pages-navspan {
	display: inline-block;
	vertical-align: baseline;
	min-width: 30px;
	min-height: 30px;
	margin: 0;
	padding: 0 4px;
	font-size: 16px;
	line-height: 1.625;
	text-align: center;
}

.momcs-sync-actions {
	margin-bottom: 20px;
	display: flex;
	gap: 10px;
	align-items: center;
}

.momcs-sync-actions .button {
	min-width: 120px;
}

/* === Subtle shadow for marketplace cards === */
.momcs-channel-rect-container {
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease;
}

.momcs-channel-rect-container:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Status Chips Base Styling */
.momcs-sync-status-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 8px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
}

/* Success Chip */
.momcs-sync-status-chip.success {
	background-color: #edfaef; /* light green */
	color: #1e8e3e;
}

/* Warning Chip */
.momcs-sync-status-chip.warning {
	background-color: #fcf9e8; /* light yellow */
	color: #996800;
}

/* === WooCommerce Status Chips === */
.momcs-sync-chip{
	display:inline-block;
	border-radius:12px;
	padding:2px 8px;
	font-size:11px;
	font-weight:600;
	color:#fff;
	text-transform:capitalize;
}
.wc-status-completed{background:#46b450;}
.wc-status-processing{background:#ffb900;}
.wc-status-pending{background:#82878c;}
.wc-status-on-hold{background:#dba617;}
.wc-status-cancelled{background:#dc3232;}
.wc-status-refunded{background:#1e8cbe;}
.wc-status-failed{background:#d63638;}

/* Orders Table Styles */
.wp-list-table .column-wc-order {
	width: 12%;
}
.wp-list-table .column-amazon-order {
	width: 15%;
}
.wp-list-table .column-date {
	width: 12%;
}
.wp-list-table .column-actions {
	width: 10%;
}

/* Filter Controls */
.tablenav.top {
	margin: 15px 0;
}
.tablenav.top .alignleft.actions {
	display: flex;
	gap: 8px;
	align-items: center;
}
.tablenav.top .alignleft.actions select,
.tablenav.top .alignleft.actions input[type="date"] {
	margin: 0;
	min-width: 140px;
}
.tablenav.top .alignright {
	margin: 0;
}

/* Notice Styling */
.notice.notice-info {
	margin: 15px 0;
	border-left-color: #00a0d2;
}

/* Contact Us Floating Button and Modal */
.momcs-contact-us-button {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #ff6a00;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 12px rgba(0,0,0,0.2);
	cursor: pointer;
	z-index: 100050;
}
.momcs-contact-us-button .dashicons {
	font-size: 24px;
	width: 24px;
	height: 24px;
}
.momcs-contact-us-button:hover { opacity: 0.9; }

.momcs-contact-us-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.4);
	display: none;
	z-index: 100050;
}
.momcs-contact-us-modal.active { display: block; }
.momcs-contact-us-modal__content {
	position: absolute;
	right: 24px;
	bottom: 96px;
	width: 360px;
	max-width: calc(100% - 48px);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	padding: 16px;
}
.momcs-contact-us-close {
	appearance: none;
	background: transparent;
	border: none;
	font-size: 24px;
	position: absolute;
	right: 8px;
	top: 4px;
	cursor: pointer;
}
.momcs-contact-us-form label { display:block; font-weight: 600; }
.momcs-contact-us-form input[type="email"],
.momcs-contact-us-form textarea {
	width: 100%;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 8px;
	box-sizing: border-box;
}
.momcs-contact-us-label-margin { margin-top: 8px; }
.momcs-contact-us-actions { display:flex; align-items:center; gap: 12px; margin-top: 12px; }
.momcs-contact-us-loading { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc; border-top-color: #ea580c; animation: momcs-spin 1s linear infinite; }
@keyframes momcs-spin { to { transform: rotate(360deg); } }
.momcs-contact-us-alert { margin-top: 10px; padding: 8px; border-radius: 4px; font-size: 13px; }
.momcs-contact-us-alert--error { background: #fce8e6; color: #c5221f; }
.momcs-contact-us-alert--success { background: #e6f4ea; color: #188038; }

/* Deactivation Feedback Modal */
.momcs-deactivation-feedback-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	display: none;
	z-index: 100000;
}
.momcs-deactivation-feedback-modal.active { display: block; }
.momcs-deactivation-feedback-modal__content {
	position: relative;
	width: 560px;
	max-width: calc(100% - 40px);
	margin: 8% auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	padding: 20px;
}
.momcs-deactivation-feedback-close {
	appearance: none;
	background: transparent;
	border: none;
	font-size: 24px;
	position: absolute;
	right: 10px;
	top: 6px;
	cursor: pointer;
}
.momcs-deactivation-feedback-form label {
	display: block;
	font-weight: 600;
	margin-top: 10px;
}
.momcs-deactivation-feedback-form input[type="email"],
.momcs-deactivation-feedback-form textarea {
	width: 100%;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 8px;
	box-sizing: border-box;
}
.momcs-deactivation-feedback-label-margin {
	margin-top: 12px;
}
.momcs-deactivation-feedback-reasons {
	margin: 12px 0;
	display: grid;
	gap: 8px;
}
.momcs-deactivation-feedback-reason {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}
.momcs-deactivation-feedback-reason input {
	margin-top: 3px;
}
.momcs-deactivation-feedback-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	flex-wrap: wrap;
}
.momcs-deactivation-feedback-step p {
	margin-top: 8px;
	color: #3c434a;
}
@media (max-width: 600px) {
	.momcs-deactivation-feedback-modal__content {
		margin: 16% auto;
		padding: 16px;
	}
}

/* Connection Stats Banner */
.momcs-connection-stats {
	background: #fff7ed;
	border: 1px solid #ea580c;
	border-radius: 4px;
	padding: 12px 16px;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.momcs-stat-label {
	font-weight: 600;
	color: #1e1e1e;
}

.momcs-stat-value {
	font-size: 16px;
	font-weight: 700;
	color: #ea580c;
}

.momcs-upgrade-link {
	margin-left: auto;
	color: #ea580c;
	text-decoration: none;
	font-weight: 600;
}

.momcs-upgrade-link:hover {
	text-decoration: underline;
}

/* Connection Limit Notice */
.momcs-upgrade-notice {
	max-width: 600px;
	margin: 40px auto;
	padding: 30px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	text-align: center;
}

.momcs-upgrade-notice h2 {
	margin-top: 0;
	color: #d63638;
}

.momcs-upgrade-notice p {
	font-size: 15px;
	line-height: 1.6;
}

/* Dashboard Connection Badge */
.momcs-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e5e7eb;
}

.momcs-card-header h3 {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
}

/* Add New Connection / Upgrade: flat primary like #momcs-global-save-btn */
.momcs-add-connection-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 24px;
	background: #f97316;
	color: #ffffff !important;
	border: 1px solid #ea580c;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: opacity 0.2s ease;
	cursor: pointer;
	box-shadow: none;
}

.momcs-add-connection-btn:hover {
	opacity: 0.9;
	color: #ffffff !important;
}

.momcs-add-connection-btn:active {
	opacity: 0.88;
}

.momcs-add-connection-btn .dashicons,
.momcs-add-connection-btn svg.lucide-plus-icon {
	font-size: 18px;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

/* Upgrade variant: same primary as Add Marketplace */
.momcs-add-connection-btn.momcs-upgrade-btn {
	background: #f97316;
	border-color: #ea580c;
	box-shadow: none;
}

.momcs-add-connection-btn.momcs-upgrade-btn:hover {
	opacity: 0.9;
	color: #ffffff !important;
}

.momcs-add-connection-btn.momcs-upgrade-btn .dashicons {
	animation: lock-pulse 2s ease-in-out infinite;
}

@keyframes lock-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.7; }
}

/* Connection Item Details */
.momcs-marketplace-type {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: #f0f0f1;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	color: #646970;
}

.momcs-seller-id {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
}

/* Disabled Connect Button */
.momcs-channel-rect-connect.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: #ddd !important;
	color: #646970 !important;
	pointer-events: none;
}

.momcs-channel-rect-connect.disabled:hover {
	transform: none !important;
}

/* ==========================================================================
   Field Tooltip Styles
   ========================================================================== */

/**
 * Wrapper for tooltip icon and content
 */
.momcs-field-tooltip-wrapper {
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin-left: 5px;
}

/**
 * Tooltip icon styling (help icon)
 */
.momcs-field-tooltip-icon {
	font-size: 16px;
	color: #787c82;
	cursor: help;
	transition: color 0.2s ease;
}

.momcs-field-tooltip-icon:hover {
	color: #ea580c;
}

/**
 * Tooltip content (hidden by default)
 */
.momcs-field-tooltip {
	visibility: hidden;
	opacity: 0;
	position: absolute;
	z-index: 1000;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	width: 220px;
	padding: 8px 10px;
	background-color: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: center;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
}

/**
 * Tooltip arrow
 */
.momcs-field-tooltip::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -6px;
	border-width: 6px;
	border-style: solid;
	border-color: #1d2327 transparent transparent transparent;
}

/**
 * Show tooltip on hover
 */
.momcs-field-tooltip-wrapper:hover .momcs-field-tooltip {
	visibility: visible;
	opacity: 1;
}