/**
 * Admin settings CSS for EMW Multiple Order Management  plugin.
 *
 * Provides styling for the settings page, including tabs, multi-select, and popup.
 *
 * @package EMW_Multiple_Order_Management
 */

/* Prevent background scrolling when popup is open. */
body.no-scroll {
	overflow: hidden;
}

/* Tabbed navigation. */
.nav-tab-wrapper {
	margin-bottom: 20px;
}

.nav-tab {
	cursor: pointer;
}

#adminmenu .toplevel_page_emw-mom .wp-menu-image img {
	width: 32px;
	height: 32px;
	object-fit: contain;
	padding-top: 4px;
}

/* Admin page header and KPI cards. */
.emw-mom-admin-header {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 12px 0 20px;
}

.emw-mom-admin-header h1 {
	margin: 0;
}

.emw-mom-admin-header p {
	margin: 0;
	color: #50575e;
}

.emw-mom-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.emw-mom-section-head h2 {
	margin: 0 0 4px;
	font-size: 20px;
	line-height: 1.25;
}

.emw-mom-section-head p {
	margin: 0;
	color: #646970;
}

.emw-mom-rebuild-cta-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	margin: 0 0 14px;
	background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
	border: 1px solid #d1e3f6;
	border-radius: 12px;
}

.emw-mom-rebuild-cta-card h2 {
	margin: 0 0 4px;
	font-size: 18px;
}

.emw-mom-rebuild-cta-card p {
	margin: 0;
	color: #4b5563;
}

.emw-mom-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.emw-mom-stat-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 14px 16px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.emw-mom-stat-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	margin-bottom: 4px;
}

.emw-mom-stat-value {
	font-size: 24px;
	line-height: 1.2;
	color: #1d2327;
}

/* Table shell and list table refinements. */
.emw-mom-table-shell {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 14px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.emw-mom-table-shell .search-box {
	float: none;
	margin: 0 0 12px;
}

.emw-mom-table-shell .search-box input[type="search"] {
	min-width: 260px;
}

.emw-mom-table-controls {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 8px;
}

.emw-mom-filter-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	align-items: end;
}

.emw-mom-filter-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.emw-mom-filter-field input[type="date"],
.emw-mom-filter-field select {
	width: 100%;
}

.emw-mom-filter-actions {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.emw-mom-table-shell .wp-list-table {
	border: 1px solid #dcdcde;
}

.emw-mom-table-shell .wp-list-table thead th,
.emw-mom-table-shell .wp-list-table tfoot th {
	background: #f6f7f7;
}

.emw-mom-table-shell .wp-list-table td {
	vertical-align: middle;
}

.emw-mom-order-pill {
	display: inline-block;
	background: #eef4ff;
	color: #0a4b78;
	border: 1px solid #c3d5f4;
	border-radius: 999px;
	padding: 2px 8px;
	margin: 2px 4px 2px 0;
	text-decoration: none;
	font-size: 12px;
	font-weight: 600;
}

.emw-mom-order-pill:hover,
.emw-mom-order-pill:focus {
	background: #dce9ff;
	color: #063c61;
}

.emw-mom-customer-cell {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.emw-mom-customer-cell a {
	color: #2271b1;
	text-decoration: none;
	font-size: 12px;
}

.emw-mom-customer-cell a:hover,
.emw-mom-customer-cell a:focus {
	text-decoration: underline;
}

.emw-mom-actions {
	display: inline-flex;
	gap: 6px;
	flex-wrap: wrap;
}

.emw-mom-status-badge {
	display: inline-block;
	padding: 3px 9px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.emw-mom-status-linked {
	background: #e8f8ee;
	color: #10602f;
	border: 1px solid #b7e4c7;
}

.emw-mom-status-unlinked {
	background: #fff4ea;
	color: #99480f;
	border: 1px solid #f3cfb1;
}

.emw-mom-status-review {
	background: #fff7e6;
	color: #9a6700;
	border: 1px solid #f2d28b;
}

.emw-mom-status-ready {
	background: #edf7ed;
	color: #1e5e20;
	border: 1px solid #b7d9b9;
}

.emw-mom-status-single {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}

.emw-mom-status-excluded {
	background: #fdecec;
	color: #b42318;
	border: 1px solid #f3b6b6;
}

.emw-mom-confidence-cell {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.emw-mom-confidence-cell strong {
	font-size: 14px;
	color: #1d2327;
}

.emw-mom-confidence-cell span {
	font-size: 12px;
	color: #646970;
}

.emw-mom-rebuild-tool {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	padding: 16px 18px;
	margin-bottom: 16px;
	box-shadow: 0 2px 8px rgb(0 0 0 / 0.06);
}

.emw-mom-rebuild-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.emw-mom-rebuild-tool h2 {
	margin: 0 0 6px;
	font-size: 20px;
}

.emw-mom-rebuild-tool p {
	margin-top: 0;
}

.emw-mom-rebuild-badge {
	background: #e7f3ff;
	color: #0a4b78;
	border: 1px solid #b6d9ff;
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.emw-mom-rebuild-presets {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}

.emw-mom-rebuild-presets .button {
	border-radius: 999px;
}

.emw-mom-rebuild-presets .emw-mom-rebuild-preset-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.emw-mom-rebuild-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-bottom: 10px;
}

.emw-mom-rebuild-grid-wide {
	grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.emw-mom-rebuild-grid-wide .emw-mom-rebuild-status-col {
	grid-column: 1 / -1;
}

.emw-mom-rebuild-page .emw-mom-rebuild-tool-wide {
	max-width: 980px;
}

.emw-mom-rebuild-grid label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.emw-mom-rebuild-grid input[type="date"],
.emw-mom-rebuild-grid select {
	width: 100%;
}

.emw-mom-rebuild-grid select {
	min-height: 106px;
}

.emw-mom-rebuild-status-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.emw-mom-rebuild-status-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
	max-height: 210px;
	overflow: auto;
	padding: 8px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f8f9fa;
}

.emw-mom-rebuild-status-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 1px solid #e4e4e7;
	border-radius: 6px;
	background: #fff;
}

.emw-mom-rebuild-status-item input[type="checkbox"] {
	margin: 0;
}

.emw-mom-rebuild-status-item span {
	font-size: 13px;
	line-height: 1.3;
}

.emw-mom-rebuild-reset {
	margin: 8px 0;
}

.emw-mom-rebuild-warning {
	border-left: 4px solid #d63638;
	background: #fff1f1;
	color: #8a2424;
	padding: 10px 12px;
	border-radius: 6px;
	margin: 8px 0 10px;
}

.emw-mom-rebuild-submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}

/* Settings page visual refresh. */
.emw-mom-settings-page .emw-mom-settings-header {
	background: linear-gradient(135deg, #0a4b78 0%, #2271b1 100%);
	color: #fff;
	padding: 20px 24px;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgb(0 0 0 / 0.15);
	margin: 14px 0 14px;
}

.emw-mom-settings-page .emw-mom-settings-header h1 {
	margin: 0 0 4px;
	color: #fff;
}

.emw-mom-settings-page .emw-mom-settings-header p {
	margin: 0;
	color: #eaf5ff;
}

.emw-mom-settings-page .emw-mom-settings-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border-bottom: 0;
	padding: 0;
	margin: 0 0 14px;
}

.emw-mom-settings-page .emw-mom-settings-tabs .nav-tab {
	margin: 0;
	border: 1px solid #dcdcde;
	background: #fff;
	border-radius: 8px;
	padding: 8px 12px;
}

.emw-mom-settings-page .emw-mom-settings-tabs .nav-tab.nav-tab-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.emw-mom-settings-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.emw-mom-settings-form {
	margin: 0;
}

.emw-mom-settings-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
	overflow: hidden;
}

.emw-mom-card-header {
	padding: 16px 18px;
	border-bottom: 1px solid #f0f0f1;
}

.emw-mom-card-header h2 {
	margin: 0 0 4px;
	font-size: 18px;
}

.emw-mom-card-header p {
	margin: 0;
	color: #50575e;
}

.emw-mom-card-body {
	padding: 14px 18px;
}

.emw-mom-card-footer {
	padding: 12px 18px;
	border-top: 1px solid #f0f0f1;
	background: #f9f9f9;
	display: flex;
	justify-content: flex-end;
}

.emw-mom-card-footer .button {
	margin: 0;
}

.emw-mom-form-table th {
	width: 230px;
}

.emw-mom-inline-help-list {
	list-style: disc;
	margin: 6px 0 0 18px;
}

.emw-mom-inline-help-list li {
	margin-bottom: 2px;
}

.emw-mom-checkbox-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 8px;
}

.emw-mom-checkbox-card {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 8px 10px;
}

.emw-mom-toggle-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.emw-mom-inline-field-group {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.emw-mom-api-docs-panel {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 14px;
}

.emw-mom-api-docs-panel pre {
	background: #1d2327;
	color: #f0f6fc;
	padding: 10px;
	border-radius: 6px;
	overflow: auto;
}

/* Multi-select styling. */
.emw-mom-multiselect-wrapper {
	position: relative;
	display: inline-block;
	min-width: 300px;
}

.emw-mom-multiselect {
	display: none;
}

.emw-mom-multiselect-display {
	width: 100%;
	padding: 5px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.emw-mom-selected-tags {
	margin-bottom: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.emw-mom-tag {
	background-color: #e4e4e4;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 12px;
	display: inline-flex;
	align-items: center;
}

.emw-mom-remove-tag {
	margin-left: 5px;
	cursor: pointer;
	color: #a00;
	font-weight: bold;
	transition: color 0.2s ease;
}

.emw-mom-remove-tag:hover {
	color: #ff0000;
}

/* Popup styling. */
#emw-mom-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	min-width: 100vw;
	min-height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	display: none;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.emw-mom-popup-content {
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	width: 90vw;
	height: 90vh;
	overflow-y: auto;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	box-sizing: border-box;
}

.emw-mom-popup-close {
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 28px;
	cursor: pointer;
	color: #333;
	line-height: 1;
}

.emw-mom-popup-close:focus {
	outline: 2px solid #0073aa;
	outline-offset: 4px;
}

.emw-mom-popup-close:hover {
	color: #a00;
}

/* Responsive design for group details and title. */
@media (max-width: 600px) {
	.emw-mom-remove-tag {
		padding: 0 6px;
		font-size: 18px;
	}
}

/* Container styling. */
.emw-mom-group-details-title {
	text-align: center;
	margin-bottom: 1.2rem;
}

.emw-mom-group-details-title h2 {
	font-weight: 700;
	font-size: 1.9rem;
	color: #333;
}

/* Group details. */
.emw-mom-group-details {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.emw-mom-group-detail-item {
	background: #f7f7f7;
	border-radius: 6px;
	padding: 1rem 1.5rem;
	min-width: 180px;
	box-shadow: 0 2px 5px rgb(0 0 0 / 0.05);
}

.emw-mom-group-detail-label {
	font-weight: 600;
	color: #555;
	margin-bottom: 0.3rem;
	display: block;
}

.emw-mom-group-detail-value {
	font-weight: 700;
	color: #222;
}

.emw-mom-group-popup {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.emw-mom-group-popup-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: linear-gradient(135deg, #f8fbff 0%, #f4f7fb 100%);
}

.emw-mom-group-popup-header h2 {
	margin: 0 0 4px;
	font-size: 24px;
	line-height: 1.2;
}

.emw-mom-group-popup-header p {
	margin: 0;
	color: #50575e;
}

.emw-mom-group-popup-id {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.emw-mom-group-summary-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.emw-mom-group-summary-card {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	padding: 12px 14px;
}

.emw-mom-group-recommendation {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid #c8d9ec;
	background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
	margin-bottom: 12px;
}

.emw-mom-group-recommendation-label {
	display: inline-block;
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.35px;
	color: #0a4b78;
}

.emw-mom-group-recommendation-copy {
	flex: 1 1 280px;
}

.emw-mom-group-recommendation-copy strong {
	display: block;
	font-size: 16px;
	color: #1d2327;
}

.emw-mom-group-recommendation-copy p {
	margin: 6px 0 0;
	font-size: 13px;
	line-height: 1.55;
	color: #3c434a;
}

.emw-mom-group-recommendation-points {
	display: flex;
	flex: 1 1 260px;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.emw-mom-group-recommendation-points span {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid #c8d9ec;
	background: #fff;
	font-size: 12px;
	font-weight: 600;
	color: #0a4b78;
}

.emw-mom-group-recommendation-ready {
	border-color: #b6e2c4;
	background: linear-gradient(180deg, #f5fff9 0%, #ecf9f1 100%);
}

.emw-mom-group-recommendation-ready .emw-mom-group-recommendation-label,
.emw-mom-group-recommendation-ready .emw-mom-group-recommendation-points span {
	color: #135e36;
	border-color: #b6e2c4;
}

.emw-mom-group-recommendation-warning {
	border-color: #efd59b;
	background: linear-gradient(180deg, #fffdf6 0%, #fff8e8 100%);
}

.emw-mom-group-recommendation-warning .emw-mom-group-recommendation-label,
.emw-mom-group-recommendation-warning .emw-mom-group-recommendation-points span {
	color: #7a4b00;
	border-color: #efd59b;
}

.emw-mom-group-recommendation-excluded,
.emw-mom-group-recommendation-locked,
.emw-mom-group-recommendation-single {
	background: #fafbfc;
	border-color: #dcdcde;
}

.emw-mom-group-recommendation-excluded .emw-mom-group-recommendation-label,
.emw-mom-group-recommendation-excluded .emw-mom-group-recommendation-points span,
.emw-mom-group-recommendation-locked .emw-mom-group-recommendation-label,
.emw-mom-group-recommendation-locked .emw-mom-group-recommendation-points span,
.emw-mom-group-recommendation-single .emw-mom-group-recommendation-label,
.emw-mom-group-recommendation-single .emw-mom-group-recommendation-points span {
	color: #50575e;
	border-color: #dcdcde;
}

.emw-mom-group-summary-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #646970;
	margin-bottom: 4px;
}

.emw-mom-group-summary-value {
	font-size: 16px;
	color: #1d2327;
}

.emw-mom-group-summary-subvalue {
	margin-top: 4px;
	font-size: 12px;
	color: #646970;
}

.emw-mom-group-popup-toolbar {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
}

.emw-mom-selection-guide {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 8px;
}

.emw-mom-selection-guide span {
	border: 1px solid #c8d9ec;
	background: #edf5ff;
	color: #0a4b78;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
}

.emw-mom-insight-list {
	display: grid;
	gap: 8px;
}

.emw-mom-insight-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fbff;
}

.emw-mom-insight-item strong {
	color: #1d2327;
}

.emw-mom-insight-item span {
	font-size: 12px;
	color: #4b5563;
}

.emw-mom-empty-state {
	border: 1px dashed #c3c4c7;
	border-radius: 10px;
	padding: 18px;
	text-align: center;
	color: #646970;
	background: #fafafa;
}

.emw-mom-group-timeline {
	margin-top: 10px;
}

.emw-mom-timeline-list {
	display: grid;
	gap: 10px;
}

.emw-mom-timeline-item {
	border: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
	border-radius: 10px;
	background: #fff;
	padding: 12px 14px;
}

.emw-mom-timeline-level-error {
	border-left-color: #d63638;
	background: #fff8f8;
}

.emw-mom-timeline-level-warning {
	border-left-color: #dba617;
	background: #fffdf5;
}

.emw-mom-timeline-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 12px;
	margin-bottom: 6px;
}

.emw-mom-timeline-head strong {
	font-size: 13px;
	color: #1d2327;
}

.emw-mom-timeline-meta {
	font-size: 12px;
	color: #646970;
}

.emw-mom-timeline-description {
	font-size: 13px;
	color: #2c3338;
	line-height: 1.5;
}

.emw-mom-orders-table-wrap {
	border: 1px solid #dcdcde;
	border-radius: 10px;
	overflow: auto;
	background: #fff;
}

.emw-mom-orders-table-modern {
	border: 0;
	margin: 0;
}

.emw-mom-orders-table-modern th,
.emw-mom-orders-table-modern td {
	vertical-align: middle;
}

.emw-mom-orders-table-modern thead th {
	background: #f6f8fa;
}

.emw-mom-order-col .emw-mom-order-link {
	font-weight: 600;
}

.emw-mom-order-row-suggested {
	background: #f9fbff;
}

.emw-mom-order-chip {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e8f1ff;
	border: 1px solid #c7daf8;
	color: #0a4b78;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.emw-mom-order-chip-primary {
	background: #e8fff1;
	border-color: #b6e2c4;
	color: #135e36;
}

.emw-mom-order-chip-secondary {
	background: #eef6ff;
	border-color: #c8dbf5;
	color: #0a4b78;
}

.emw-mom-order-meta {
	margin-top: 4px;
	font-size: 12px;
	color: #646970;
}

.emw-mom-order-status {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	border: 1px solid #dcdcde;
	background: #f6f7f7;
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
}

.emw-mom-group-popup-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.emw-mom-group-actions-note {
	font-size: 12px;
	color: #646970;
}

.emw-mom-group-inline-notice {
	margin-top: 10px;
	border-color: #c8d9ec;
	background: #f8fbff;
}

.emw-mom-group-details-footer {
	font-size: 12px;
	color: #646970;
	text-align: center;
}

.emw-mom-group-details-footer p {
	margin: 0;
}

#emw-mom-link-orders-btn:hover:not(:disabled) {
	background-color: #1a589b;
}

#emw-mom-link-orders-btn:disabled {
	background-color: #cccccc;
	cursor: not-allowed;
}

#emw-mom-orders-error.notice {
	max-width: 100%;
	margin: 6px 0 0;
	font-size: 1rem;
	border-left: 5px solid #dc3232;
	background-color: #ffe5e5;
	color: #dc3232;
	border-radius: 4px;
	display: none;
}

/* Pro Version Tab Styles */
.emw-mom-pro-notice {
	background-color: #fff;
	border-left: 4px solid #00a0d2;
	padding: 30px;
	margin-top: 20px;
	box-sizing: border-box;
}

.emw-mom-pro-notice h2 {
	margin-top: 0;
	font-weight: 600;
}

.emw-mom-pro-features-list {
	list-style: none;
	padding-left: 0;
	margin-top: 1.5em;
}

.emw-mom-pro-features-list li {
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	font-size: 14px;
	line-height: 1.4;
	color: #23282d;
}

.emw-mom-pro-features-list li:last-child {
	margin-bottom: 0;
}

.emw-mom-pro-features-list li .dashicons {
	margin-right: 8px;
	flex-shrink: 0;
	font-size: 18px;
}

/* Specific icon colors */
.emw-mom-icon-criteria {
	color: #46b450; /* green */
}

.emw-mom-icon-api {
	color: #0073aa; /* blue */
}

.emw-mom-icon-logs {
	color: #f39c12; /* orange */
}

.emw-mom-icon-unlink {
	color: #00a0d2; /* light blue */
}

.emw-mom-icon-support {
	color: #dc3232; /* red */
}


/* Responsive tweaks. */
@media (max-width: 650px) {
	.emw-mom-rebuild-cta-card {
		flex-direction: column;
		align-items: flex-start;
	}

	.emw-mom-rebuild-grid-wide {
		grid-template-columns: 1fr;
	}

	.emw-mom-group-details {
		flex-direction: column;
		align-items: center;
	}

	.emw-mom-group-popup-header {
		flex-direction: column;
	}

	.emw-mom-group-popup-header h2 {
		font-size: 20px;
	}

	.emw-mom-table-shell .search-box input[type="search"] {
		min-width: 100%;
	}

	.emw-mom-settings-page .emw-mom-settings-header {
		padding: 16px;
	}

	.emw-mom-form-table th,
	.emw-mom-form-table td {
		display: block;
		width: 100%;
		padding-right: 0;
	}

	#emw-mom-link-orders-btn {
		width: 100%;
		padding: 12px;
	}
}

#emw-mom-popup .notice {
	padding: 10px;
	margin: 10px 0;
	border-left: 4px solid #dc3232;
	background: #fbeaea;
	color: #a00;
}

.emw-mom-plugin-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
	margin-top: 20px;
}

.emw-mom-premium-plugins {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.04);
}

.emw-mom-premium-hero {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	padding: 18px;
	background: linear-gradient(135deg, #102a43, #1f6fb2);
	border-radius: 10px;
	color: #fff;
}

.emw-mom-premium-hero h2 {
	margin: 0 0 6px;
	color: #fff;
	font-size: 28px;
}

.emw-mom-premium-hero p {
	margin: 0;
	max-width: 720px;
	color: #dbeafe;
}

.emw-mom-premium-hero-badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.emw-mom-premium-hero-badges span {
	background: rgb(255 255 255 / 0.14);
	border: 1px solid rgb(255 255 255 / 0.28);
	color: #fff;
	border-radius: 999px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
}

.emw-plugin-card {
	width: 100%;
	padding: 18px;
	border: 1px solid #dcdcde;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 3px 12px rgb(16 24 40 / 0.06);
	box-sizing: border-box;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.emw-plugin-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgb(16 24 40 / 0.14);
	border-color: #b8d4f0;
}

.emw-plugin-card-status {
	position: absolute;
	top: 12px;
	right: 12px;
	background: #ffedd5;
	color: #9a3412;
	border: 1px solid #fdba74;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.emw-plugin-card-status-live {
	background: #dcfce7;
	border-color: #86efac;
	color: #14532d;
}

.plugin-img {
	width: 92px;
	height: 92px;
	margin: 12px 0 14px;
	display: block;
	object-fit: contain;
}

.plugin-price {
	margin: 10px 0;
	font-weight: bold;
	font-size: 14px;
}

.plugin-price .price-amount {
	color: #0073aa;
	font-size: 16px;
	margin-right: 8px;
}

.plugin-price .license-type {
	color: #46b450;
}


.emw-plugin-card span.dashicons {
	width: 72px;
	height: 72px;
	font-size: 72px;
	margin: 12px 0 12px;
	display: inline-block;
	color: #0073aa;
}

.emw-plugin-card h3 {
	margin: 0 0 8px;
	font-size: 19px;
	color: #23282d;
}

.emw-plugin-card p {
	font-size: 13px;
	line-height: 1.55;
	color: #555;
	min-height: 82px;
	margin: 0;
}

.emw-plugin-card .button {
	margin-top: 14px;
	width: 100%;
	font-weight: 600;
}

.emw-plugin-card.coming-soon {
	opacity: 0.85;
	position: relative;
	pointer-events: none; /* Disable interactions */
}

.emw-plugin-card .coming-soon-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	background: #ff9800;
	color: #fff;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: bold;
	border-radius: 4px;
	text-transform: uppercase;
}

.emw-mom-premium-footer {
	margin-top: 16px;
	padding: 16px;
	border-radius: 10px;
	background: #f6f7f7;
	border: 1px solid #e4e4e7;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.emw-mom-premium-footer p {
	margin: 0;
	color: #3c434a;
}

.emw-mom-premium-footer .button.button-hero {
	margin: 0;
}

.emw-plugin-popup {
	position: fixed;
	z-index: 9999;
	background: rgba(0, 0, 0, 0.7);
	top: 0; left: 0; right: 0; bottom: 0;
	display: none;
	align-items: center;
	justify-content: center;
}
.emw-plugin-popup-content {
	background: #fff;
	margin: 10% auto;
	max-width: 700px;
	width: 90%;
	padding: 30px;
	position: relative;
	border-radius: 8px;
}

.emw-plugin-popup-content h2 {
	margin-top: 0;
}
.emw-plugin-popup-close {
	position: absolute;
	top: 10px; right: 15px;
	font-size: 24px;
	cursor: pointer;
}

.emw-slider-wrapper {
	position: relative;
	margin: 20px 0;
}
.emw-slider-track {
	position: relative;
}
.emw-slide {
	display: none;
}
.emw-slide.active {
	display: block;
	text-align: center;
}
.emw-slide img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}
.emw-slide-prev,
.emw-slide-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	background: rgba(0,0,0,0.5);
	color: #fff;
	border: none;
	cursor: pointer;
	padding: 8px;
	border-radius: 50%;
}
.emw-slide-prev { left: 10px; }
.emw-slide-next { right: 10px; }

@media (max-width: 782px) {
	.emw-mom-premium-hero h2 {
		font-size: 24px;
	}

	.emw-mom-premium-footer .button.button-hero {
		width: 100%;
	}
}
