.awb-fanbox-inline {
	margin: 6px 0 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.awb-fanbox-inline .button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.awb-fanbox-inline .dashicons {
	font-size: 16px;
	line-height: 1;
	width: 16px;
	height: 16px;
}
.awb-fanbox-ico {
	height: 18px;
	width: auto;
	vertical-align: middle;
}
.awb-fanbox-overlay-bar .awb-fanbox-ico {
	height: 20px;
	margin-right: 8px;
}
.awb-fanbox-chosen {
	font-weight: 600;
	color: #1a7f37;
}

/* Popup: dim backdrop + centered modal box hosting the FAN map. */
#awb-fanbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.awb-fanbox-modal {
	background: #fff;
	width: 100%;
	max-width: 920px;
	height: 82vh;
	max-height: 820px;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.awb-fanbox-overlay-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	border-bottom: 1px solid #e5e5e5;
	background: #f8f8f8;
	font-size: 15px;
}
.awb-fanbox-close {
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #444;
	padding: 0 6px;
}
.awb-fanbox-close:hover {
	color: #d63638;
}
.awb-fanbox-body {
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
}
.awb-fanbox-list-panel {
	width: 320px;
	flex: 0 0 320px;
	border-right: 1px solid #e5e5e5;
	display: flex;
	flex-direction: column;
	padding: 10px;
	box-sizing: border-box;
	gap: 8px;
}
.awb-fanbox-county,
.awb-fanbox-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
}
.awb-fanbox-list-count {
	font-size: 12px;
	color: #777;
}
.awb-fanbox-list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
}
.awb-fanbox-list li {
	padding: 8px 10px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	line-height: 1.35;
}
.awb-fanbox-list li:hover {
	background: #f3f7ff;
}
.awb-fanbox-list li.is-selected {
	background: #e8f5e9;
}
.awb-fanbox-list li.awb-loading-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 28px 10px;
	font-weight: 600;
	color: #2c6ecb;
	cursor: default;
	border-bottom: 0;
}
.awb-fanbox-list li.awb-loading-row:hover {
	background: transparent;
}
.awb-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 3px solid #cfe0ff;
	border-top-color: #2c6ecb;
	border-radius: 50%;
	animation: awb-spin 0.7s linear infinite;
}
@keyframes awb-spin {
	to { transform: rotate(360deg); }
}
.awb-fanbox-list-count { min-height: 16px; }
.awb-fanbox-list li.is-active {
	background: #fff6e0;
	box-shadow: inset 3px 0 0 #f0a500;
}
.awb-map-pick {
	margin-top: 6px;
	padding: 5px 10px;
	cursor: pointer;
	border: 0;
	background: #2c6ecb;
	color: #fff;
	border-radius: 4px;
	font-size: 12px;
}
.awb-fanbox-list li .awb-pick {
	margin-top: 6px;
	padding: 4px 12px;
	font-size: 12px;
	cursor: pointer;
	border: 1px solid #2c6ecb;
	background: #2c6ecb;
	color: #fff;
	border-radius: 4px;
}
.awb-fanbox-list li:hover .awb-pick {
	background: #1f5bb0;
}
.awb-fanbox-confirm {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	background: #1a7f37;
	color: #fff;
	text-align: center;
	padding: 10px;
	font-weight: 600;
	z-index: 5;
}
.awb-fanbox-modal {
	position: relative;
}
.awb-fanbox-list li .name {
	font-weight: 600;
	display: block;
}
.awb-fanbox-list li .meta {
	font-size: 12px;
	color: #777;
}
#awb-fanbox-map {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
}
@media (max-width: 720px) {
	.awb-fanbox-body {
		flex-direction: column;
	}
	.awb-fanbox-list-panel {
		width: auto;
		flex: 0 0 45%;
		border-right: 0;
		border-bottom: 1px solid #e5e5e5;
	}
}
