/**
 * ACF Extra Fields - Icon Picker Styles
 */

/* Wrapper */
.efacf-icon-picker-wrap {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 12px;
	background: #fff;
}

/* Current selection row */
.efacf-icon-current {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	padding: 8px 10px;
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 3px;
	min-height: 38px;
}

.efacf-icon-preview {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 18px;
	color: #444;
	flex-shrink: 0;
}

.efacf-icon-current-label {
	flex: 1;
	font-size: 13px;
	color: #555;
	font-family: monospace;
}

.efacf-icon-clear {
	color: #a00;
	font-size: 12px;
	text-decoration: none;
	padding: 2px 6px;
	border-radius: 3px;
	cursor: pointer;
	border: none;
	background: none;
	flex-shrink: 0;
}

.efacf-icon-clear:hover {
	background: #fce8e8;
	color: #d00;
}

/* Search input */
.efacf-icon-search {
	width: 100%;
	box-sizing: border-box;
	padding: 7px 10px 7px 30px;
	border: 1px solid #ddd;
	border-radius: 3px;
	font-size: 13px;
	margin-bottom: 10px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat 8px center;
	background-size: 14px;
}

.efacf-icon-search:focus {
	border-color: #007cba;
	outline: none;
	box-shadow: 0 0 0 1px #007cba;
}

/* Icon grid */
.efacf-icon-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
	gap: 4px;
	max-height: 280px;
	overflow-y: auto;
	border: 1px solid #eee;
	border-radius: 3px;
	padding: 6px;
	background: #fafafa;
}

/* Individual icon items */
.efacf-icon-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 3px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.1s ease, border-color 0.1s ease;
	position: relative;
}

.efacf-icon-item:hover {
	background: #f0f0f0;
	border-color: #ccc;
}

.efacf-icon-item i {
	font-size: 18px;
	color: #444;
	pointer-events: none;
}

/* Selected state */
.efacf-icon-item.is-selected {
	background: #e8f3fb;
	border-color: #007cba;
}

.efacf-icon-item.is-selected i {
	color: #007cba;
}

.efacf-icon-item.is-selected::after {
	content: '\2713';
	position: absolute;
	top: 1px;
	right: 2px;
	font-size: 9px;
	font-weight: 700;
	color: #007cba;
	line-height: 1;
}

/* Hidden utility */
.hidden {
	display: none !important;
}
