/* Search suggestions. */

.cheers-suggest-host {
	position: relative;
}

.cheers-suggest {
	position: absolute;
	z-index: 60;
	top: calc(100% + 4px);
	inset-inline: 0;
	max-height: 420px;
	overflow-y: auto;
	background: #fff;
	border: 1px solid var(--line, #e3e3e6);
	border-radius: 8px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
	text-align: start;
}

.cheers-suggest__group + .cheers-suggest__group {
	border-top: 1px solid var(--line, #ececed);
}

.cheers-suggest__title {
	margin: 0;
	padding: .5rem .75rem .25rem;
	font-size: .7rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #6b7178;
}

.cheers-suggest__item {
	display: flex;
	align-items: center;
	gap: .6rem;
	padding: .5rem .75rem;
	color: inherit;
	text-decoration: none;
}

.cheers-suggest__item:hover,
.cheers-suggest__item.is-active {
	background: var(--tint, #f4f6f8);
}

.cheers-suggest__item img,
.cheers-suggest__noimg {
	width: 36px;
	height: 36px;
	object-fit: contain;
	flex: 0 0 36px;
	background: var(--tint, #f4f6f8);
	border-radius: 4px;
}

.cheers-suggest__body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.cheers-suggest__name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cheers-suggest__price {
	font-size: .85rem;
	color: #4a5058;
}

.cheers-suggest__stock {
	font-size: .75rem;
	color: #8a1f1f;
}

.cheers-suggest__term {
	justify-content: space-between;
}

.cheers-suggest__count {
	color: #6b7178;
	font-size: .8rem;
}

.cheers-suggest__all {
	justify-content: center;
	font-weight: 600;
	border-top: 1px solid var(--line, #ececed);
}

.cheers-suggest__empty {
	margin: 0;
	padding: .9rem .75rem;
	color: #6b7178;
}
