/**
 * Order List Modern Styles
 *
 * Modern, clean UI for the Orders Sync page with design tokens,
 * search dropdown, filter bar, and enhanced table styling.
 *
 * @package    MOMCS_Sync
 * @subpackage MOMCS_Sync/assets/css
 * @author     miniOrange
 * @since      1.0.0
 */

/* ==========================================================================
   Design Tokens (CSS Custom Properties)
   ========================================================================== */

:root {
	/* Colors - Primary */
	--momcs-bg-primary: #ffffff;
	--momcs-bg-secondary: #f8f9fa;
	--momcs-bg-tertiary: #f1f3f5;
	--momcs-bg-hover: #f0f4f8;

	/* Colors - Borders */
	--momcs-border-color: #e5e7eb;
	--momcs-border-color-light: #f0f0f0;
	--momcs-border-color-dark: #d1d5db;

	/* Colors - Text */
	--momcs-text-primary: #1f2937;
	--momcs-text-secondary: #6b7280;
	--momcs-text-muted: #9ca3af;
	--momcs-text-white: #ffffff;

	/* Colors - Accent */
	--momcs-accent-blue: #3b82f6;
	--momcs-accent-blue-hover: #2563eb;
	--momcs-accent-blue-light: #eff6ff;
	--momcs-accent-green: #10b981;
	--momcs-accent-green-light: #d1fae5;
	--momcs-accent-orange: #ff6a00;
	;
	--momcs-accent-orange-hover: #d97706;
	--momcs-accent-orange-light: #fff7ed;
	--momcs-accent-red: #ef4444;
	--momcs-accent-red-light: #fee2e2;
	--momcs-accent-purple: #8b5cf6;
	--momcs-accent-purple-light: #ede9fe;
	--momcs-accent-amber: #f59e0b;
	--momcs-accent-amber-light: #fef3c7;
	--momcs-accent-yellow: #eab308;
	--momcs-accent-yellow-light: #fef9c3;

	/* Border Radius */
	--momcs-radius-xs: 4px;
	--momcs-radius-sm: 6px;
	--momcs-radius-md: 8px;
	--momcs-radius-lg: 12px;
	--momcs-radius-xl: 16px;
	--momcs-radius-full: 6px;

	/* Shadows */
	--momcs-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
	--momcs-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
	--momcs-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
	--momcs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
	--momcs-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

	/* Spacing */
	--momcs-spacing-xs: 4px;
	--momcs-spacing-sm: 8px;
	--momcs-spacing-md: 12px;
	--momcs-spacing-lg: 16px;
	--momcs-spacing-xl: 24px;
	--momcs-spacing-2xl: 32px;

	/* Typography */
	--momcs-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--momcs-font-size-xs: 11px;
	--momcs-font-size-sm: 12px;
	--momcs-font-size-md: 13px;
	--momcs-font-size-base: 14px;
	--momcs-font-size-lg: 16px;
	--momcs-font-size-xl: 18px;
	--momcs-font-size-2xl: 24px;
	--momcs-font-weight-normal: 400;
	--momcs-font-weight-medium: 500;
	--momcs-font-weight-semibold: 600;
	--momcs-font-weight-bold: 700;
	--momcs-line-height-tight: 1.25;
	--momcs-line-height-normal: 1.5;

	/* Transitions */
	--momcs-transition-fast: 0.15s ease;
	--momcs-transition-normal: 0.2s ease;
	--momcs-transition-slow: 0.3s ease;
}

/* ==========================================================================
   Modern Orders Container
   ========================================================================== */

.momcs-orders-modern {
	font-family: var(--momcs-font-family);
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.momcs-orders-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--momcs-spacing-lg);
	padding: var(--momcs-spacing-lg) 0;
	margin-bottom: var(--momcs-spacing-lg);
}

.momcs-orders-header-left {
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-lg);
}

.momcs-orders-title {
	font-size: var(--momcs-font-size-2xl);
	font-weight: var(--momcs-font-weight-bold);
	color: var(--momcs-text-primary);
	margin: 0;
	line-height: var(--momcs-line-height-tight);
}

.momcs-orders-count {
	display: inline-flex;
	align-items: center;
	background: var(--momcs-bg-secondary);
	color: var(--momcs-text-secondary);
	font-size: var(--momcs-font-size-sm);
	font-weight: var(--momcs-font-weight-medium);
	padding: var(--momcs-spacing-xs) var(--momcs-spacing-md);
	border-radius: var(--momcs-radius-full);
}

.momcs-orders-header-right {
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-md);
}

/* ==========================================================================
   Search Component - Clean White Box Style
   ========================================================================== */

.momcs-order-search-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 27px;
	background: var(--momcs-bg-primary);
	border-radius: var(--momcs-radius-md);
	box-shadow: var(--momcs-shadow-sm);
	border: 1px solid var(--momcs-border-color-light);
	height: 34px;
	width: auto;
	min-width: 160px;
	transition: all var(--momcs-transition-fast);
}

.momcs-order-search-wrapper:hover {
	box-shadow: var(--momcs-shadow-md);
}

.momcs-order-search-wrapper:focus-within {
	border-color: var(--momcs-accent-orange);
	box-shadow: 0 0 0 3px var(--momcs-accent-orange-light);
}

.momcs-order-search-icon {
	width: 14px;
	height: 14px;
	color: var(--momcs-text-muted);
	flex-shrink: 0;
}

.momcs-order-search-input {
	flex: 1;
	height: 22px;
	min-width: 100px;
	padding: 0 2px;
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-primary);
	background: transparent;
	border: none !important;
	outline: none !important;
	box-sizing: border-box;
}

.momcs-order-search-input:hover {
	border: none !important;
	color: var(--momcs-accent-orange);
}

.momcs-order-search-input:focus {
	outline: none !important;
	border: none !important;
	color: var(--momcs-text-primary);
}

.momcs-order-search-input::placeholder {
	color: var(--momcs-text-muted);
	opacity: 1;
	border: none !important;
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-normal);
}

/* Search Dropdown */
.momcs-order-search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	max-height: 400px;
	overflow-y: auto;
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color);
	border-radius: var(--momcs-radius-lg);
	box-shadow: var(--momcs-shadow-lg);
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: all var(--momcs-transition-fast);
}

.momcs-order-search-dropdown.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.momcs-order-search-result-item {
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-md);
	padding: var(--momcs-spacing-md) var(--momcs-spacing-lg);
	cursor: pointer;
	transition: background var(--momcs-transition-fast);
}

.momcs-order-search-result-item:hover,
.momcs-order-search-result-item.is-focused {
	background: var(--momcs-bg-hover);
}

.momcs-order-search-result-item:first-child {
	border-radius: var(--momcs-radius-lg) var(--momcs-radius-lg) 0 0;
}

.momcs-order-search-result-item:last-child {
	border-radius: 0 0 var(--momcs-radius-lg) var(--momcs-radius-lg);
}

.momcs-order-search-result-item + .momcs-order-search-result-item {
	border-top: 1px solid var(--momcs-border-color-light);
}

.momcs-order-search-result-info {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-md);
	flex-wrap: wrap;
}

.momcs-order-search-result-info .order-id {
	font-size: var(--momcs-font-size-base);
	font-weight: var(--momcs-font-weight-semibold);
	color: var(--momcs-text-primary);
}

.momcs-order-search-result-info .customer {
	font-size: var(--momcs-font-size-sm);
	color: var(--momcs-text-secondary);
}

.momcs-order-search-result-info .total {
	font-size: var(--momcs-font-size-sm);
	font-weight: var(--momcs-font-weight-semibold);
	color: var(--momcs-accent-green);
	margin-left: auto;
}

.momcs-order-search-no-results {
	padding: var(--momcs-spacing-xl);
	text-align: center;
	color: var(--momcs-text-muted);
	font-size: var(--momcs-font-size-sm);
}

.momcs-order-search-loading {
	padding: var(--momcs-spacing-xl);
	text-align: center;
}

.momcs-order-search-loading-spinner {
	width: 24px;
	height: 24px;
	border: 2px solid var(--momcs-border-color);
	border-top-color: var(--momcs-accent-orange);
	border-radius: 50%;
	animation: momcs-spin 0.8s linear infinite;
	margin: 0 auto;
}

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

/* ==========================================================================
   Filter Bar - Modern Styled Dropdowns
   ========================================================================== */

.momcs-orders-filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--momcs-spacing-sm);
	padding: var(--momcs-spacing-sm) 0;
	margin-bottom: var(--momcs-spacing-md);
}

.momcs-filter-dropdown {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	background: var(--momcs-bg-primary);
	border-radius: var(--momcs-radius-md);
	box-shadow: var(--momcs-shadow-sm);
	border: 1px solid var(--momcs-border-color-light);
	height: 34px;
	transition: all var(--momcs-transition-fast);
}

.momcs-filter-dropdown:hover {
	box-shadow: var(--momcs-shadow-md);
}

.momcs-filter-label {
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-secondary);
	white-space: nowrap;
}

.momcs-filter-select {
	height: 22px;
	min-width: 70px;
	padding: 0 16px 0 2px;
	font-size: var(--momcs-font-size-xs) !important;
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-primary);
	background: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 center;
	border: none;
	cursor: pointer;
	appearance: none;
	transition: all var(--momcs-transition-fast);
}

.momcs-filter-select:hover {
	color: var(--momcs-accent-orange);
}

.momcs-filter-select:focus {
	outline: none;
	color: var(--momcs-accent-orange);
}

.momcs-date-input {
	height: 34px;
	padding: 0 var(--momcs-spacing-md);
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-primary);
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color-light);
	border-radius: var(--momcs-radius-md);
	box-shadow: var(--momcs-shadow-sm);
	cursor: pointer;
	transition: all var(--momcs-transition-fast);
}

.momcs-date-input:hover {
	box-shadow: var(--momcs-shadow-md);
}

.momcs-date-input:focus {
	outline: none;
	border-color: var(--momcs-accent-orange);
	box-shadow: 0 0 0 3px var(--momcs-accent-orange-light);
}

.momcs-filter-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 var(--momcs-spacing-md);
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-primary);
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color-light);
	border-radius: var(--momcs-radius-md);
	box-shadow: var(--momcs-shadow-sm);
	cursor: pointer;
	transition: all var(--momcs-transition-fast);
}

.momcs-filter-btn:hover {
	box-shadow: var(--momcs-shadow-md);
	border-color: var(--momcs-border-color);
}

.momcs-filter-btn-primary {
	background: var(--momcs-accent-orange);
	border-color: var(--momcs-accent-orange);
	color: var(--momcs-text-white);
}

.momcs-filter-btn-primary:hover {
	background: var(--momcs-accent-orange-hover);
	border-color: var(--momcs-accent-orange-hover);
}

/* Fetch Orders Button */
.momcs-fetch-orders-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: 34px;
	padding: 0 var(--momcs-spacing-md);
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-white);
	background: var(--momcs-accent-orange);
	border: none;
	border-radius: var(--momcs-radius-md);
	box-shadow: var(--momcs-shadow-sm);
	cursor: pointer;
	transition: all var(--momcs-transition-fast);
}

.momcs-fetch-orders-btn:hover {
	background: var(--momcs-accent-orange-hover);
	box-shadow: var(--momcs-shadow-md);
}

.momcs-fetch-orders-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.momcs-fetch-orders-btn .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
}

/* ==========================================================================
   Modern Table - Card-like Rows
   ========================================================================== */

.momcs-orders-table-wrapper {
	background: transparent;
	border: none;
	border-radius: 0;
	overflow: visible;
	box-shadow: none;
	margin-bottom: var(--momcs-spacing-lg);
}

.momcs-orders-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 6px;
	border: none !important;
	font-size: var(--momcs-font-size-sm);
}

.momcs-orders-table thead th {
	padding: var(--momcs-spacing-md) var(--momcs-spacing-lg);
	padding-bottom: 0;
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-semibold);
	color: var(--momcs-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	text-align: left;
	background: transparent;
	border: none !important;
	white-space: nowrap;
	vertical-align: middle;
}

.momcs-orders-table tbody td {
	padding: var(--momcs-spacing-md) var(--momcs-spacing-lg);
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color-light);
	border-left: none;
	border-right: none;
	vertical-align: middle;
}

.momcs-orders-table tbody tr:first-child td {
	border-top: 1px solid var(--momcs-border-color-light);
}

.momcs-orders-table tbody tr:first-child td:first-child {
	border-top-left-radius: var(--momcs-radius-md);
}

.momcs-orders-table tbody tr:first-child td:last-child {
	border-top-right-radius: var(--momcs-radius-md);
}

.momcs-orders-table tbody tr:last-child td {
	border-bottom: 1px solid var(--momcs-border-color-light);
}

.momcs-orders-table tbody tr:last-child td:first-child {
	border-bottom-left-radius: var(--momcs-radius-md);
}

.momcs-orders-table tbody tr:last-child td:last-child {
	border-bottom-right-radius: var(--momcs-radius-md);
}

.momcs-orders-table tbody tr:hover td {
	background: var(--momcs-bg-hover);
	border-color: var(--momcs-border-color);
}

/* Order Details Column */
.momcs-order-details {
	display: flex;
	flex-direction: column;
	gap: var(--momcs-spacing-xs);
}

.momcs-order-id {
	font-size: var(--momcs-font-size-base);
	font-weight: var(--momcs-font-weight-semibold);
	color: var(--momcs-accent-orange);
	text-decoration: none;
}

.momcs-order-id:hover {
	color: var(--momcs-accent-orange-hover);
	text-decoration: underline;
}

.momcs-order-customer {
	font-size: var(--momcs-font-size-xs);
	color: var(--momcs-text-secondary);
}

/* Status Badges */
.momcs-order-status-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--momcs-spacing-xs) var(--momcs-spacing-md);
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	border-radius: var(--momcs-radius-full);
	white-space: nowrap;
}

/* WooCommerce Status Badges */
.momcs-order-status-badge.status-pending,
.momcs-order-status-badge.status-on-hold {
	background: var(--momcs-accent-orange-light);
	color: #92400e;
}

.momcs-order-status-badge.status-processing {
	background: var(--momcs-accent-blue-light);
	color: #1e40af;
}

.momcs-order-status-badge.status-completed {
	background: var(--momcs-accent-green-light);
	color: #065f46;
}

.momcs-order-status-badge.status-cancelled,
.momcs-order-status-badge.status-refunded,
.momcs-order-status-badge.status-failed {
	background: var(--momcs-accent-red-light);
	color: #991b1b;
}

/* Amazon Status Badges */
.momcs-order-status-badge.status-unshipped {
	background: var(--momcs-accent-yellow-light);
	color: #854d0e;
}

.momcs-order-status-badge.status-shipped {
	background: var(--momcs-accent-green-light);
	color: #065f46;
}

.momcs-order-status-badge.status-canceled {
	background: var(--momcs-accent-red-light);
	color: #991b1b;
}

/* Fulfillment Badges */
.momcs-fulfillment-badge {
	display: inline-flex;
	align-items: center;
	padding: var(--momcs-spacing-xs) var(--momcs-spacing-md);
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	border-radius: var(--momcs-radius-full);
	white-space: nowrap;
}

.momcs-fulfillment-badge.fulfillment-afn {
	background: var(--momcs-accent-blue-light);
	color: #1e40af;
}

/**
 * Merchant Fulfilled — match Products column category pills (.momcs-category-pill).
 */
.momcs-fulfillment-badge.fulfillment-mfn {
	padding: 3px 8px;
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-accent-purple);
	background: var(--momcs-accent-purple-light);
	border-radius: var(--momcs-radius-full);
	border: none;
	line-height: 1.3;
}

/* Order Total */
.momcs-order-total {
	font-size: var(--momcs-font-size-base);
	font-weight: var(--momcs-font-weight-semibold);
	color: var(--momcs-text-primary);
}

/* Actions Column */
.momcs-order-actions {
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-sm);
}

.momcs-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 28px;
	padding: 0 var(--momcs-spacing-md);
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-primary);
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color);
	border-radius: var(--momcs-radius-sm);
	cursor: pointer;
	text-decoration: none;
	transition: all var(--momcs-transition-fast);
}

.momcs-action-btn:hover {
	background: var(--momcs-bg-secondary);
	border-color: var(--momcs-border-color-dark);
	color: var(--momcs-accent-orange);
}

/* Three-dot Menu */
.momcs-action-menu {
	position: relative;
}

.momcs-action-menu-trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background: transparent;
	border: 1px solid transparent;
	border-radius: var(--momcs-radius-sm);
	cursor: pointer;
	transition: all var(--momcs-transition-fast);
}

.momcs-action-menu-trigger:hover {
	background: var(--momcs-bg-secondary);
	border-color: var(--momcs-border-color);
}

.momcs-action-menu-trigger::after {
	content: '⋯';
	font-size: 18px;
	line-height: 1;
	color: var(--momcs-text-secondary);
}

.momcs-action-menu-trigger:hover::after {
	color: var(--momcs-text-primary);
}

.momcs-action-menu-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 160px;
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color);
	border-radius: var(--momcs-radius-md);
	box-shadow: var(--momcs-shadow-lg);
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: all var(--momcs-transition-fast);
}

.momcs-action-menu-dropdown.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.momcs-action-menu-item {
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-sm);
	padding: var(--momcs-spacing-sm) var(--momcs-spacing-md);
	font-size: var(--momcs-font-size-sm);
	color: var(--momcs-text-primary);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--momcs-transition-fast);
}

.momcs-action-menu-item:hover {
	background: var(--momcs-bg-hover);
}

.momcs-action-menu-item:first-child {
	border-radius: var(--momcs-radius-md) var(--momcs-radius-md) 0 0;
}

.momcs-action-menu-item:last-child {
	border-radius: 0 0 var(--momcs-radius-md) var(--momcs-radius-md);
}

.momcs-action-menu-divider {
	height: 1px;
	background: var(--momcs-border-color-light);
	margin: var(--momcs-spacing-xs) 0;
}

/* ==========================================================================
   Modern Pagination - Clean Design
   ========================================================================== */

.momcs-pagination-wrapper {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--momcs-spacing-lg);
	padding: var(--momcs-spacing-lg) 0;
	background: transparent;
	border: none;
	border-radius: 0;
}

.momcs-pagination-wrapper.top {
	border: none;
	border-radius: 0;
	margin-bottom: 0;
	padding-bottom: var(--momcs-spacing-md);
}

/* Show Entries UI - Matches Filter Dropdown Clean White Box Style */
.momcs-pagination-per-page {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 3px 10px;
	background: var(--momcs-bg-primary);
	border-radius: var(--momcs-radius-md);
	box-shadow: var(--momcs-shadow-sm);
	border: 1px solid var(--momcs-border-color-light);
	height: 34px;
	transition: all var(--momcs-transition-fast);
}

.momcs-pagination-per-page:hover {
	box-shadow: var(--momcs-shadow-md);
}

.momcs-pagination-per-page span {
	font-size: var(--momcs-font-size-xs);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-secondary);
	white-space: nowrap;
}

.momcs-per-page-select {
	height: 22px;
	min-width: 70px;
	padding: 0 16px 0 2px;
	font-size: var(--momcs-font-size-xs) !important;
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-primary);
	background: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0 center;
	border: none;
	cursor: pointer;
	appearance: none;
	transition: all var(--momcs-transition-fast);
}

.momcs-per-page-select:hover {
	color: var(--momcs-accent-orange);
}

.momcs-per-page-select:focus {
	outline: none;
	color: var(--momcs-accent-orange);
}

.momcs-pagination-info {
	font-size: var(--momcs-font-size-sm);
	color: var(--momcs-text-secondary);
}

.momcs-pagination-info strong {
	font-weight: var(--momcs-font-weight-semibold);
	color: var(--momcs-text-primary);
}

.momcs-pagination-nav {
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-xs);
}

.momcs-page-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color);
	border-radius: var(--momcs-radius-sm);
	cursor: pointer;
	transition: all var(--momcs-transition-fast);
	font-size: var(--momcs-font-size-sm);
	color: var(--momcs-text-secondary);
}

.momcs-page-btn:hover:not(:disabled) {
	background: var(--momcs-bg-secondary);
	border-color: var(--momcs-border-color-dark);
	color: var(--momcs-text-primary);
}

.momcs-page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.momcs-page-numbers {
	display: flex;
	align-items: center;
	gap: var(--momcs-spacing-xs);
}

.momcs-page-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 var(--momcs-spacing-sm);
	font-size: var(--momcs-font-size-sm);
	font-weight: var(--momcs-font-weight-medium);
	color: var(--momcs-text-secondary);
	background: var(--momcs-bg-primary);
	border: 1px solid var(--momcs-border-color);
	border-radius: var(--momcs-radius-sm);
	cursor: pointer;
	text-decoration: none;
	transition: all var(--momcs-transition-fast);
}

.momcs-page-num:hover {
	background: var(--momcs-bg-secondary);
	border-color: var(--momcs-border-color-dark);
	color: var(--momcs-text-primary);
}

.momcs-page-num.active {
	background: var(--momcs-accent-orange);
	border-color: var(--momcs-accent-orange);
	color: var(--momcs-text-white);
}

.momcs-page-ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	font-size: var(--momcs-font-size-sm);
	color: var(--momcs-text-muted);
}

/* ==========================================================================
   Notice Box
   ========================================================================== */

.momcs-orders-notice {
	display: flex;
	align-items: flex-start;
	gap: var(--momcs-spacing-md);
	padding: var(--momcs-spacing-md) var(--momcs-spacing-lg);
	background: var(--momcs-accent-orange-light);
	border: 1px solid #fde68a;
	border-radius: var(--momcs-radius-md);
	margin-bottom: var(--momcs-spacing-lg);
}

.momcs-orders-notice-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--momcs-accent-orange);
}

.momcs-orders-notice p {
	margin: 0;
	font-size: var(--momcs-font-size-sm);
	color: #b45309;
	line-height: var(--momcs-line-height-normal);
}

/* ==========================================================================
   Premium: background order fetch modal
   ========================================================================== */

.momcs-order-fetch-modal__overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.5);
}

.momcs-order-fetch-modal {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 100000;
	min-width: 400px;
	max-width: 500px;
	padding: 30px;
	transform: translate(-50%, -50%);
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	color: #1f2937;
}

.momcs-order-fetch-modal__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 600;
	color: #1e293b;
}

.momcs-order-fetch-modal__lead {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #475569;
}

.momcs-order-fetch-modal__track {
	width: 100%;
	height: 30px;
	margin: 20px 0;
	overflow: hidden;
	border-radius: 15px;
	background: #f0f0f0;
}

.momcs-order-fetch-modal__fill {
	height: 100%;
	width: 0;
	transition: width 0.3s ease;
	background: linear-gradient(90deg, #ea580c 0%, #f97316 100%);
}

.momcs-order-fetch-modal__status {
	margin: 0;
	text-align: center;
	font-size: 14px;
	color: #555;
}

.momcs-order-fetch-modal__status strong {
	color: #1e293b;
}

.momcs-order-fetch-modal__actions {
	margin-top: 15px;
	text-align: center;
}

/* Orders table skeleton rows (see custom.css .momcs-sync-skeleton-row) */
.momcs-orders-table .loading-placeholder td {
	padding: 12px 16px;
	vertical-align: middle;
}

/* ==========================================================================
   Empty State
   ========================================================================== */

.momcs-orders-empty {
	text-align: center;
	padding: var(--momcs-spacing-2xl) * 2;
}

.momcs-orders-empty-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto var(--momcs-spacing-lg);
	color: var(--momcs-text-muted);
}

.momcs-orders-empty h3 {
	font-size: var(--momcs-font-size-lg);
	font-weight: var(--momcs-font-weight-semibold);
	color: var(--momcs-text-primary);
	margin: 0 0 var(--momcs-spacing-sm);
}

.momcs-orders-empty p {
	font-size: var(--momcs-font-size-base);
	color: var(--momcs-text-secondary);
	margin: 0;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 1200px) {
	.momcs-orders-table .column-items,
	.momcs-orders-table .column-fulfillment {
		display: none;
	}
}

@media screen and (max-width: 992px) {
	.momcs-orders-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.momcs-orders-filter-bar {
		flex-direction: column;
		align-items: flex-start;
		width: 100%;
	}

	.momcs-order-search-wrapper {
		min-width: 100%;
		max-width: 100%;
		flex: 1;
	}

	.momcs-pagination-wrapper {
		flex-direction: column;
		gap: var(--momcs-spacing-md);
	}

	.momcs-pagination-nav {
		order: -1;
	}
}

@media screen and (max-width: 768px) {
	.momcs-orders-table .column-amazon-order-id,
	.momcs-orders-table .column-amazon-status,
	.momcs-orders-table .column-created {
		display: none;
	}

	.momcs-order-details {
		gap: var(--momcs-spacing-xs);
	}

	.momcs-pagination-nav {
		flex-wrap: wrap;
		justify-content: center;
	}

	.momcs-page-numbers {
		flex-wrap: wrap;
		justify-content: center;
	}
}

@media screen and (max-width: 576px) {
	.momcs-orders-filter-bar {
		flex-wrap: wrap;
	}

	.momcs-filter-dropdown,
	.momcs-date-input,
	.momcs-filter-btn {
		flex: 1;
		min-width: 120px;
	}

	.momcs-orders-table thead th,
	.momcs-orders-table tbody td {
		padding: var(--momcs-spacing-sm);
	}

	.momcs-orders-table .column-total {
		display: none;
	}

	.momcs-order-actions {
		flex-direction: column;
		gap: var(--momcs-spacing-xs);
	}
}
