/**
 * AIEO Command Palette — Ctrl/Cmd+K overlay styles.
 *
 * High z-index so it lands above WP toolbar (32760) + WC modals.
 * Modal centered, ~640px wide, dark-on-white to match WP admin
 * surface conventions.
 */

.aieo-cmdp-root {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.aieo-cmdp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba( 17, 24, 39, 0.55 );
	backdrop-filter: blur( 2px );
	-webkit-backdrop-filter: blur( 2px );
}

.aieo-cmdp-modal {
	position: relative;
	margin: 12vh auto 0;
	width: 640px;
	max-width: calc( 100vw - 32px );
	max-height: 70vh;
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.35 );
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.aieo-cmdp-input {
	width: 100%;
	box-sizing: border-box;
	border: 0;
	border-bottom: 1px solid #e5e7eb;
	padding: 14px 18px;
	font-size: 15px;
	line-height: 1.4;
	color: #111827;
	background: transparent;
	outline: none;
	border-radius: 0;
	box-shadow: none;
}
.aieo-cmdp-input::placeholder { color: #9ca3af; }
.aieo-cmdp-input:focus {
	box-shadow: none;
	outline: none;
}

.aieo-cmdp-list {
	flex: 1;
	overflow-y: auto;
	padding: 6px 0;
	max-height: calc( 70vh - 100px );
}

.aieo-cmdp-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 18px;
	color: #111827;
	text-decoration: none;
	cursor: pointer;
	border-left: 3px solid transparent;
	transition: background-color 0.05s ease;
}
.aieo-cmdp-row:hover {
	color: #111827;
	text-decoration: none;
}
.aieo-cmdp-row.is-highlighted {
	background: #eff6ff;
	border-left-color: #2563eb;
	color: #111827;
}

.aieo-cmdp-ctx {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #6b7280;
	background: #f3f4f6;
	padding: 2px 7px;
	border-radius: 9999px;
	flex-shrink: 0;
}
.aieo-cmdp-row.is-highlighted .aieo-cmdp-ctx {
	background: #dbeafe;
	color: #1d4ed8;
}

.aieo-cmdp-lbl {
	font-size: 14px;
	font-weight: 500;
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aieo-cmdp-empty {
	padding: 24px 18px;
	text-align: center;
	color: #6b7280;
	font-size: 13px;
}

.aieo-cmdp-hint {
	border-top: 1px solid #e5e7eb;
	padding: 8px 18px;
	font-size: 11px;
	color: #6b7280;
	background: #f9fafb;
	letter-spacing: 0.02em;
}
