.search-form {
position: relative;
}
.live-search {
position: absolute;
left: 0;
right: 0;
top: calc(100% + 8px);
z-index: 40;
background: #fff;
border: 1px solid #d7d7d7;
border-radius: 6px;
box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
max-height: min(70vh, 640px);
overflow: auto;
display: none;
}
.live-search.is-visible {
display: block;
scrollbar-width: thin;
scrollbar-color: #fecd4d #f5f5f5;
}
.live-search.is-visible::-webkit-scrollbar {
width: 6px;
height: 6px;
}
.live-search.is-visible::-webkit-scrollbar-track {
background: #f5f5f5;
border-radius: 999px;
}
.live-search.is-visible::-webkit-scrollbar-thumb {
background: #fecd4d;
border-radius: 999px;
}
.live-search.is-visible::-webkit-scrollbar-thumb:hover {
background: #e9b625;
}
.live-search.is-visible::-webkit-scrollbar-button {
width: 0;
height: 0;
display: none;
}
.live-search__content {
padding: 16px;
}
.live-search__section + .live-search__section {
margin-top: 16px;
}
.live-search__title {
font-size: 14px;
font-weight: 700;
margin-bottom: 10px;
}
.live-search__list {
list-style: none;
margin: 0;
padding: 0;
}
.live-search__item + .live-search__item {
border-top: 1px solid #eee;
}
.live-search__list > li::before {
content: none !important;
display: none !important;
}
.live-search__link {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
color: inherit;
text-decoration: none;
padding: 10px 0;
}
.live-search__name {
font-size: 16px;
margin: 0;
line-height: 1.3;
font-weight: 500;
}
.live-search__meta {
font-size: 14px;
color: #7d7d7d;
white-space: nowrap;
}
.live-search__link--product {
justify-content: flex-start;
}
.live-search__thumb {
width: 54px;
min-width: 54px;
height: 54px;
border: 1px solid #f0f0f0;
border-radius: 6px;
overflow: hidden;
display: inline-flex;
align-items: center;
justify-content: center;
}
.live-search__thumb img {
width: 100%;
height: 100%;
object-fit: contain;
}
.live-search__empty {
padding: 14px 16px;
font-size: 14px;
color: #7d7d7d;
}
.live-search__highlight {
background: rgba(255, 227, 102, 0.55);
color: inherit;
padding: 0;
}
@media (max-width: 991px) {
.live-search {
max-height: 50vh;
}
.live-search__content {
padding: 12px;
}
.live-search__name {
font-size: 14px;
}
}