/* Live search suggest dropdown (web + PWA) */
.am-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
  max-height: min(70vh, 420px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  padding: 6px 0;
}

.am-suggest[hidden] {
  display: none !important;
}

.am-suggest__section + .am-suggest__section {
  border-top: 1px solid #f1f5f9;
  margin-top: 4px;
  padding-top: 4px;
}

.am-suggest__label {
  padding: 8px 14px 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.am-suggest__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  text-decoration: none;
  color: #0f172a;
}

.am-suggest__item:hover,
.am-suggest__item:focus {
  background: #f8fafc;
}

.am-suggest__thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #f1f5f9;
}

.am-suggest__icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.am-suggest__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-suggest__name mark {
  background: #fef08a;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.am-suggest__type {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
}

.am-suggest__all {
  display: block;
  margin-top: 4px;
  padding: 12px 14px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: #0B1E3F;
  text-decoration: none;
  background: #f8fafc;
}

.am-suggest__all:hover {
  background: #f1f5f9;
}

.am-suggest__empty {
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

#search-wrapper .am-suggest {
  top: calc(100% + 8px);
}

.am-pwa-header__search {
  position: relative;
}

.am-pwa-header__search .am-suggest {
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  border-radius: 16px;
}
