/* Świadomie oszczędne: dropdown ma wyglądać jak część motywu, nie jak wtyczka. */

.aisb-suggest {
	position: absolute;
	z-index: 9999;
	top: calc( 100% + 4px );
	left: 0;
	right: 0;
	max-height: 60vh;
	overflow-y: auto;
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, .18 );
	box-shadow: 0 6px 24px rgba( 0, 0, 0, .12 );
}

.aisb-item {
	display: flex;
	gap: .75em;
	align-items: center;
	padding: .55em .7em;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid rgba( 0, 0, 0, .07 );
}

.aisb-item:last-child {
	border-bottom: 0;
}

.aisb-item:hover,
.aisb-item.is-active,
.aisb-item:focus-visible {
	background: rgba( 0, 0, 0, .05 );
	outline: none;
}

.aisb-thumb {
	width: 44px;
	height: 44px;
	object-fit: cover;
	flex: 0 0 44px;
	background: rgba( 0, 0, 0, .04 );
}

.aisb-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.aisb-name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aisb-meta {
	font-size: .85em;
	opacity: .7;
}

.aisb-note {
	margin: 0;
	padding: .8em .7em;
	font-size: .9em;
	opacity: .75;
}

.aisb-answer {
	margin: 0 0 1.2em;
	padding-left: .8em;
	border-left: 3px solid currentColor;
	max-width: 62ch;
}

@media ( max-width: 480px ) {
	.aisb-suggest {
		max-height: 50vh;
	}

	.aisb-thumb {
		width: 36px;
		height: 36px;
		flex-basis: 36px;
	}
}
