/* Alqamara Icon Picker — shared admin modal (see js/admin-icon-picker.js) */

.alq-icon-picker-overlay {
	display: none;
	position: fixed;
	inset: 0;
	/* Must exceed WP Customizer's own .wp-full-overlay wrapper (z-index: 500000),
	 * otherwise this modal renders correctly in the DOM but is visually hidden
	 * behind the Customizer chrome/preview iframe and appears unclickable. */
	z-index: 600000;
	background: rgba(0, 0, 0, 0.5);
	align-items: center;
	justify-content: center;
}

.alq-icon-picker-overlay.is-open {
	display: flex;
}

.alq-icon-picker-modal {
	background: #fff;
	width: min(640px, 92vw);
	max-height: 80vh;
	border-radius: 6px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.alq-icon-picker-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 14px 0;
}

.alq-icon-picker-search {
	flex: 1;
	padding: 8px 10px;
	font-size: 14px;
}

.alq-icon-picker-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
	padding: 4px 8px;
}

.alq-icon-picker-close:hover {
	color: #d63638;
}

.alq-icon-picker-tabs {
	display: flex;
	gap: 4px;
	padding: 10px 14px 0;
	border-bottom: 1px solid #dcdcde;
}

.alq-icon-picker-tab {
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	padding: 8px 10px;
	font-size: 13px;
	cursor: pointer;
	color: #50575e;
}

.alq-icon-picker-tab.active {
	color: #2271b1;
	border-bottom-color: #2271b1;
	font-weight: 600;
}

.alq-icon-picker-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
	gap: 4px;
	padding: 14px;
	overflow-y: auto;
}

.alq-icon-picker-item {
	background: none;
	border: 1px solid transparent;
	border-radius: 4px;
	padding: 8px 0;
	font-size: 17px;
	color: #2c3338;
	cursor: pointer;
	text-align: center;
}

.alq-icon-picker-item:hover,
.alq-icon-picker-item:focus {
	background: #f0f6fc;
	border-color: #2271b1;
	color: #2271b1;
	outline: none;
}

.alq-icon-picker-more {
	grid-column: 1 / -1;
	text-align: center;
	color: #646970;
	font-size: 12px;
	padding: 10px 0 2px;
}

.alq-icon-picker-empty {
	text-align: center;
	color: #646970;
	padding: 20px;
	margin: 0;
}

.alq-icon-picker-trigger {
	margin-left: 6px !important;
	vertical-align: middle;
}
