.ngx-suggest-wrap {
position: relative;
display: block;
}
.ngx-suggest {
position: absolute;
z-index: 99999;
top: 100%;
left: 0;
right: 0; max-width: 560px;
margin-top: 4px;
max-height: 70vh;
overflow-y: auto;
overscroll-behavior: contain;
background: var( --ngx-suggest-bg, #fff );
border: 1px solid rgba( 128, 128, 128, 0.28 );
border-radius: 6px;
box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.14 );
text-align: start;
line-height: 1.35;
}
.ngx-suggest[hidden] {
display: none;
} .ngx-suggest__status {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect( 0, 0, 0, 0 );
white-space: nowrap;
border: 0;
}
.ngx-suggest__group + .ngx-suggest__group {
border-top: 1px solid rgba( 128, 128, 128, 0.18 );
}
.ngx-suggest__title {
display: block;
padding: 8px 12px 4px;
font-size: 0.75em;
text-transform: uppercase;
letter-spacing: 0.06em;
opacity: 0.6;
}
.ngx-suggest__item {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
text-decoration: none;
color: inherit;
border: 0;
}
.ngx-suggest__item:hover,
.ngx-suggest__item.is-active {
background: var( --ngx-suggest-accent, #2271b1 );
color: #fff;
} .ngx-suggest__item:hover .ngx-suggest__meta,
.ngx-suggest__item.is-active .ngx-suggest__meta,
.ngx-suggest__item:hover .ngx-suggest__count,
.ngx-suggest__item.is-active .ngx-suggest__count {
opacity: 0.85;
color: inherit;
}
.ngx-suggest__item:hover mark,
.ngx-suggest__item.is-active mark {
background: transparent;
color: inherit;
}
.ngx-suggest__img {
flex: 0 0 auto;
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 4px;
background: rgba( 128, 128, 128, 0.12 );
}
.ngx-suggest__body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
flex: 1 1 auto;
}
.ngx-suggest__text {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ngx-suggest__item.is-word .ngx-suggest__text {
flex: 1 1 auto;
}
.ngx-suggest__meta {
display: flex;
gap: 8px;
font-size: 0.85em;
opacity: 0.75;
}
.ngx-suggest__stock {
font-style: italic;
}
.ngx-suggest__count {
margin-inline-start: auto;
font-size: 0.8em;
opacity: 0.6;
}
.ngx-suggest mark {
background: transparent;
color: var( --ngx-suggest-accent, #2271b1 );
font-weight: 700;
}
.ngx-suggest__empty {
padding: 14px 12px;
opacity: 0.7;
}
.ngx-suggest__more {
display: block;
padding: 10px 12px;
border-top: 1px solid rgba( 128, 128, 128, 0.18 );
text-align: center;
text-decoration: none;
color: inherit;
font-size: 0.9em;
font-weight: 600;
}
.ngx-suggest__more:hover {
background: var( --ngx-suggest-accent, #2271b1 );
color: #fff;
} @media ( max-width: 600px ) {
.ngx-suggest {
max-height: 60vh;
}
.ngx-suggest__img {
width: 34px;
height: 34px;
}
}
@media ( prefers-reduced-motion: reduce ) {
.ngx-suggest,
.ngx-suggest__item {
transition: none;
}
}