/* Tier 6 — header search (pp10-). A frosted command bar on desktop, a full-height sheet on phones.
   The snippet's own popup stays in the page but never opens; it is hidden here for good measure. */
.pp-search-v6 #peptico-search-popup { display: none !important; }

/* The trigger: the Elementor icon, with press feedback and a comfortable target. */
.pp-search-v6 .peptico-search-trigger { cursor: pointer; border-radius: 999px; transition: transform 120ms cubic-bezier(.2,.8,.2,1), opacity 120ms; }
.pp-search-v6 .peptico-search-trigger:hover { opacity: .72; }
.pp-search-v6 .peptico-search-trigger:active { transform: scale(.9); }

.pp10-search {
  --ink: #111111; --ink-2: #2b2b2b; --muted: #5f5f58; --green: #004f42; --paper: #f7f6f2; --line: rgba(17, 17, 17, 0.08);
  --sage: #dfe7d9; --mint: #e6f0ed; --rose: #f0dfdb; --tan: #eee6d8; --lavender: #e3e4f4; --olive: #e7ebc9; --sky: #dbe7f2; --lilac: #ebdff1; --butter: #f5edc4; --silver: #e4e5ec;
  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif; --ease: cubic-bezier(.2, .8, .2, 1);
  position: fixed; inset: 0; z-index: 1000000; display: grid; grid-template-rows: 1fr; justify-items: center; align-items: start;
  padding: max(12vh, 64px) 16px 24px; font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased;
}
.pp10-search[hidden] { display: none; }
.pp10-search__scrim { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.26); backdrop-filter: blur(6px) saturate(120%); -webkit-backdrop-filter: blur(6px) saturate(120%); opacity: 0; transition: opacity 220ms var(--ease); }
.pp10-search.is-open .pp10-search__scrim { opacity: 1; }
.pp10-search__panel {
  position: relative; z-index: 1; width: min(720px, 100%); max-height: calc(100dvh - max(12vh, 64px) - 24px);
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7); border-radius: 22px;
  box-shadow: 0 30px 80px rgba(17, 17, 17, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform-origin: top center; transform: translateY(-10px) scale(0.985); opacity: 0;
  transition: transform 260ms var(--ease), opacity 200ms var(--ease);
}
.pp10-search.is-open .pp10-search__panel { transform: none; opacity: 1; }
.pp10-search.is-closing .pp10-search__panel { transform: translateY(-6px) scale(0.985); opacity: 0; transition-duration: 160ms; }
.pp10-search.is-closing .pp10-search__scrim { opacity: 0; transition-duration: 160ms; }

.pp10-search__grab { display: none; }
.pp10-search__form { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 0 16px 0 20px; border-bottom: 1px solid var(--line); }
.pp10-search__icon { flex: none; width: 20px; height: 20px; color: var(--green); }
.pp10-search__input {
  flex: 1 1 auto; min-width: 0; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; outline: none; box-shadow: none;
  font: 500 19px/1.2 var(--font); letter-spacing: -0.005em; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.pp10-search input.pp10-search__input, .pp10-search input.pp10-search__input:focus, .pp10-search input.pp10-search__input:focus-visible { border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; border-radius: 0 !important; padding: 0 !important; color: var(--ink) !important; caret-color: var(--green); font-weight: 500 !important; }   /* the theme's search-input chrome must not reach the bar */
.pp10-search__input::placeholder { color: rgba(17, 17, 17, 0.42); font-weight: 400; }
.pp10-search__input::-webkit-search-decoration, .pp10-search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.pp10-search__clear, .pp10-search__close {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; cursor: pointer; font-family: var(--font); color: var(--muted);
  background: rgba(17, 17, 17, 0.06); border-radius: 999px; transition: background-color 140ms var(--ease), color 140ms var(--ease), transform 100ms var(--ease);
}
.pp10-search__clear { width: 28px; height: 28px; font-size: 18px; line-height: 1; }
.pp10-search__clear[hidden] { display: none; }
.pp10-search__close { height: 30px; padding: 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pp10-search__close kbd { font: inherit; }
.pp10-search__clear:hover, .pp10-search__close:hover { background: rgba(17, 17, 17, 0.1); color: var(--ink); }
.pp10-search__clear:active, .pp10-search__close:active { transform: scale(.94); }
.pp10-search__bar { position: relative; height: 2px; margin-top: -1px; overflow: hidden; }
.pp10-search__bar::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 2px; background: var(--green); opacity: 0; }
.pp10-search.is-loading .pp10-search__bar::after { opacity: .9; animation: pp10-bar 1s var(--ease) infinite; }
@keyframes pp10-bar { from { left: -40%; } to { left: 100%; } }

.pp10-search__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 10px 10px 8px; }
.pp10-search__section { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: baseline; }
.pp10-search__section button { border: 0; background: none; font: 600 11px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; color: var(--green); cursor: pointer; padding: 4px 0; }
.pp10-search__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 10px 12px; }
.pp10-search__chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(17, 17, 17, 0.06);
  background: var(--paper); color: var(--ink); font: 600 13px/1 var(--font); text-decoration: none; cursor: pointer; transition: transform 120ms var(--ease), box-shadow 160ms var(--ease);
}
.pp10-search__chip:hover, .pp10-search__chip[aria-selected="true"] { box-shadow: 0 6px 18px rgba(17, 17, 17, 0.1); color: var(--ink); }
.pp10-search__chip:active { transform: scale(.96); }
.pp10-search__chip--tint { background: var(--tint, var(--paper)); }
.pp10-search__chip--recent::before { content: "↺"; font-size: 13px; color: var(--muted); }
.pp10-search__chip small { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--green); opacity: .9; }
.pp10-search__chip--gated { background: repeating-linear-gradient(135deg, var(--tint, var(--paper)) 0 6px, rgba(255, 255, 255, 0.5) 6px 8px); }
.pp10-search__list { display: flex; flex-direction: column; gap: 2px; padding-bottom: 6px; }
.pp10-search__row {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 9px 10px; border-radius: 14px;
  color: var(--ink); text-decoration: none; transition: background-color 120ms var(--ease);
}
.pp10-search__row:hover, .pp10-search__row[aria-selected="true"] { background: rgba(17, 17, 17, 0.055); color: var(--ink); }
.pp10-search__thumb { width: 52px; height: 52px; border-radius: 14px; background: var(--tint, var(--sage)); display: grid; place-items: center; overflow: hidden; }
.pp10-search__thumb img { width: 46px; height: 46px; object-fit: contain; mix-blend-mode: multiply; }
.pp10-search__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp10-search__title { font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.005em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp10-search__title mark { background: none; color: var(--green); }
.pp10-search__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp10-search__meta .is-out { color: #b4443c; }
.pp10-search__price { font-size: 14px; font-weight: 600; text-align: right; white-space: nowrap; }
.pp10-search__price del { opacity: .5; font-weight: 400; margin-right: 4px; }
.pp10-search__price ins { text-decoration: none; }
.pp10-search__price .autoimmune-partner-price { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pp10-search__price .autoimmune-partner-price__label { font-size: 9px; letter-spacing: .1em; padding: 2px 6px; }
.pp10-search__price .autoimmune-partner-price__kit { display: none; }
.pp10-search__all { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 2px; padding: 12px 14px; border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.pp10-search__all:hover, .pp10-search__all[aria-selected="true"] { background: #efede7; color: var(--ink); }
.pp10-search__all svg { width: 16px; height: 16px; flex: none; }
.pp10-search__empty { padding: 18px 10px 10px; font-size: 15px; color: var(--ink-2); }
.pp10-search__empty strong { font-weight: 600; }
.pp10-search__foot { display: flex; gap: 16px; padding: 8px 20px 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }
.pp10-search__foot kbd { display: inline-block; min-width: 18px; padding: 1px 5px; border-radius: 5px; border: 1px solid rgba(17, 17, 17, 0.14); background: #fff; font: 600 10px/1.4 var(--font); color: var(--ink-2); text-align: center; margin-right: 3px; }

html.pp10-search-lock, html.pp10-search-lock body { overflow: hidden !important; overscroll-behavior: none; }

/* Phones: a sheet from the bottom, three quarters of the screen, the input at its top edge. Its height never
   changes with the keyboard (that made the box jump); the input sits above where the keyboard lands. */
@media (max-width: 760px) {
  .pp10-search { padding: 0; align-items: end; justify-items: stretch; }
  .pp10-search__scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17, 17, 17, 0.32); }
  .pp10-search__panel {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: min(76dvh, calc(100dvh - env(safe-area-inset-top) - 24px)); max-height: none;
    border-radius: 22px 22px 0 0; border: 0; padding-top: 0; background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 -18px 60px rgba(17, 17, 17, 0.18);
    transform: translateY(100%); opacity: 1; transition: none;   /* the sheet is moved by the script's spring */
  }
  .pp10-search.is-open .pp10-search__panel { transform: none; }
  .pp10-search__grab { display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: rgba(17, 17, 17, 0.16); }
  .pp10-search__head { touch-action: none; }
  .pp10-search__form { min-height: 58px; padding: 0 12px 0 16px; }
  .pp10-search__input { font-size: 17px; height: 42px; }
  .pp10-search__close { height: 34px; padding: 0 12px; font-size: 14px; letter-spacing: 0; text-transform: none; background: none; color: var(--green); }
  .pp10-search__close kbd { display: none; }
  .pp10-search__close::after { content: "Cancel"; }
  .pp10-search__body { padding: 6px 8px calc(16px + env(safe-area-inset-bottom)); }
  .pp10-search__row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 9px 8px; }
  .pp10-search__thumb { width: 48px; height: 48px; }
  .pp10-search__title { white-space: normal; }
  .pp10-search__foot { display: none; }
}
@media (max-width: 760px) and (max-height: 720px) {   /* short phones: taller still, so the whole Go to row shows without a scroll */
  .pp10-search__panel { height: min(90dvh, calc(100dvh - env(safe-area-inset-top) - 16px)); }
}
@media (prefers-reduced-motion: reduce) {
  .pp10-search__panel, .pp10-search__scrim { transition: opacity 160ms ease !important; transform: none !important; }
  .pp10-search.is-loading .pp10-search__bar::after { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .pp10-search__panel { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .pp10-search__scrim { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
