:root {
  --ps-search-ink: #1a1a2e;
  --ps-search-muted: #6b7280;
  --ps-search-line: #e5e7eb;
  --ps-search-accent: #c00072;
  --ps-search-surface: #f7f8fb;
}

.ps-suggest {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  left: 0;
  width: min(520px, calc(100vw - 40px));
  max-height: min(620px, calc(100vh - 96px));
  margin: 0;
  padding: 6px 0 0;
  overflow-y: auto;
  list-style: none;
  border: 1px solid var(--ps-search-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 18, 35, .24);
  color: var(--ps-search-ink);
  text-align: left;
}

.ps-suggest[hidden] { display: none; }

.ps-suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  margin: 0;
  padding: 9px 16px;
  border: 0;
  background: none;
  cursor: pointer;
}

.ps-suggest__thumb {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 1px solid var(--ps-search-line);
  border-radius: 8px;
  background: var(--ps-search-surface);
}

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

.ps-suggest__text {
  min-width: 0;
  flex: 1 1 auto;
}

.ps-suggest__title {
  display: block;
  overflow: hidden;
  color: var(--ps-search-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-suggest__title mark {
  padding: 0;
  background: none;
  color: var(--ps-search-accent);
  font-weight: 750;
}

.ps-suggest__section {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--ps-search-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ps-suggest__group {
  margin: 4px 0 2px;
  padding: 8px 16px 4px;
  color: var(--ps-search-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.1px;
  line-height: 1.3;
  text-transform: uppercase;
}

.ps-suggest__item.is-active,
.ps-suggest__item:hover { background: var(--ps-search-surface); }

.ps-suggest__all {
  position: sticky;
  z-index: 1;
  bottom: 0;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 16px;
  border-top: 1px solid var(--ps-search-line);
  background: #fff;
  color: var(--ps-search-muted);
  font-size: 12.5px;
  font-weight: 650;
}

.ps-suggest__all.is-active,
.ps-suggest__all:hover {
  background: var(--ps-search-surface);
  color: var(--ps-search-ink);
}

#masthead.ps-commerce-header .ps-commerce-header__search .ps-suggest {
  right: auto;
}

#masthead.ps-commerce-header .ps-commerce-header__drawer-search .ps-suggest,
.search-form .ps-suggest,
.ps-search-form .ps-suggest {
  right: 0;
  width: 100%;
}

.ps-search-more {
  display: block;
  min-height: 46px;
  margin: 28px auto 0;
  padding: 0 22px;
  border: 1px solid #d6007f;
  border-radius: 999px;
  background: #fff;
  color: #a90065;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.ps-search-more:hover,
.ps-search-more:focus-visible {
  background: #fff3fa;
  outline: 3px solid rgba(214, 0, 127, .18);
}

@media (max-width: 1199px) {
  #masthead.ps-commerce-header .ps-commerce-header__drawer-search .ps-suggest {
    position: static;
    max-height: 54vh;
    margin-top: 8px;
    box-shadow: none;
  }
}

@media (max-width: 560px) {
  .ps-suggest {
    width: calc(100vw - 32px);
    max-height: 58vh;
  }

  .ps-suggest__item {
    min-height: 58px;
    padding: 7px 12px;
  }

  .ps-suggest__group { padding-left: 12px; }
}
