/* A viewport-level panel avoids clipping inside sticky headers or shop cards. */
.pd-search-suggestions {
  position: fixed;
  z-index: 350;
  box-sizing: border-box;
  overflow: auto;
  scroll-padding-block: 8px 60px;
  overscroll-behavior: contain;
  color: #15334b;
  background: #fff;
  border: 1px solid #d7e2eb;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgb(15 43 64 / 16%);
  text-align: left;
  scrollbar-width: thin;
}
.pd-search-suggestions[hidden] {
  display: none !important;
}
.pd-search-suggestions__heading {
  margin: 0;
  padding: 13px 16px 9px;
  color: #62788a;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}
.pd-search-suggestions__status {
  margin: 0;
  padding: 4px 16px 17px;
  color: #425c70;
  font-size: 0.95rem;
  line-height: 1.5;
}
.pd-search-suggestions__product {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 9px 16px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid #edf1f4;
}
.pd-search-suggestions__media {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #f2f5f7;
  border-radius: 8px;
}
.pd-search-suggestions__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-search-suggestions__name {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.pd-search-suggestions__price {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.pd-search-suggestions__all {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  color: #15334b;
  background: #f5f8fa;
  border-top: 1px solid #dfe7ee;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.pd-search-suggestions [role='option'][aria-selected='true'],
.pd-search-suggestions [role='option']:hover {
  background: #eaf2f8;
  box-shadow: inset 3px 0 #f67d22;
}
.pd-search-suggestions [role='option']:focus-visible {
  outline: 2px solid #163b58;
  outline-offset: -3px;
}
@media (max-width: 520px) {
  .pd-search-suggestions__product {
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 1px;
    min-height: 70px;
    padding: 9px 12px;
  }
  .pd-search-suggestions__media {
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
  }
  .pd-search-suggestions__name {
    align-self: end;
  }
  .pd-search-suggestions__price {
    grid-column: 2;
    align-self: start;
  }
  .pd-search-suggestions__heading,
  .pd-search-suggestions__status,
  .pd-search-suggestions__all {
    padding-left: 12px;
    padding-right: 12px;
  }
}
