/* Suggestions dropdown for the header search panel and the mobile drawer.
   Colours follow the navbar block so the panel reads as one component. */

.ahls-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 100001;
  max-height: min(62vh, 460px);
  overflow-y: auto;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(176, 113, 255, 0.36);
  background: radial-gradient(
      320px 140px at 100% 0%,
      rgba(156, 92, 255, 0.22),
      transparent 70%
    ),
    rgba(6, 5, 10, 0.99);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.6);
  color: #ffffff;
  font-family: inherit;
  -webkit-overflow-scrolling: touch;
}

/* Inside the drawer the panel is part of a scrolling column, so it sits in
   flow instead of floating over content that can be scrolled away. */
.ahls-results--inline {
  position: static;
  margin-top: 10px;
  max-height: none;
  box-shadow: none;
}

.ahp-search-panel {
  position: relative;
}

.ahls-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 14px;
  color: #ffffff;
  text-decoration: none !important;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
  border: 1px solid transparent;
}

.ahls-item:hover,
.ahls-item.is-active,
.ahls-item:focus-visible {
  background: rgba(156, 92, 255, 0.16);
  border-color: rgba(176, 113, 255, 0.42);
  outline: none;
}

.ahls-item__media {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ahls-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ahls-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ahls-item__name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  /* Long peptide names must not push the price out of the row. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ahls-item__price {
  font-size: 13px;
  font-weight: 700;
  color: #c69cff;
}

/* The account-access stylesheet appends its own padlock to .ahpa-price-blur.
   Inside this dropdown the icon is rendered explicitly, so that one is dropped
   to avoid a doubled lock. */
.ahls-results .ahpa-price-blur::after {
  content: none;
}

/* Locked pricing: blurred figure, padlock, and a line saying why. */
.ahls-locked {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ahls-lock {
  width: 13px;
  height: 13px;
  flex: none;
  fill: #c69cff;
  opacity: 0.9;
}

.ahls-hint {
  display: block;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(198, 156, 255, 0.85);
}

.ahls-item__stock {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ahls-message {
  margin: 0;
  padding: 14px 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-align: center;
}

.ahls-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 8px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ahls-signin,
.ahls-viewall {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-decoration: none !important;
}

.ahls-signin {
  color: #c69cff;
}

.ahls-viewall {
  color: rgba(255, 255, 255, 0.72);
  margin-left: auto;
}

.ahls-signin:hover,
.ahls-viewall:hover {
  color: #ffffff;
}

/* Fallback for the blurred decoy. The account-access plugin ships the same
   rules, but this dropdown must never print a legible figure if that
   stylesheet is missing from a given page. */
.ahls-price-blur {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.ahls-price-blur > span {
  filter: blur(5px);
  opacity: 0.82;
}

@media (max-width: 940px) {
  .ahls-item__media {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .ahls-item__name {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ahls-item {
    transition: none;
  }
}
