/* Shared by the page and the installed search plugin's two shadow roots. */
:host,
body.luma search-modal {
  --halo-search-widget-primary-color: #286b98;
  --halo-search-widget-content-color: var(--luma-ink, #203247);
  --halo-search-widget-muted-color: var(--luma-muted, #5c7085);
  --halo-search-widget-divider-color: var(--luma-line, #cddae5);
  --halo-search-widget-base-rounded: 12px;
  color: var(--luma-ink, #203247);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', sans-serif;
}
:host .modal__wrapper {
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  align-items: center;
}
:host .modal__layer {
  background: rgb(19 35 53 / 32%);
  backdrop-filter: blur(8px);
}
:host .modal__content {
  width: 100%;
  max-width: 620px;
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--luma-line, #dce5ed);
  border-radius: 24px;
  box-shadow: 0 24px 90px rgb(20 40 64 / 22%);
  overscroll-behavior: contain;
  scroll-padding: 12px;
}
:host .luma-search-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 8px;
}
:host .luma-search-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
}
:host .luma-search-close {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  font: 26px/1 -apple-system, sans-serif;
  background: var(--halo-search-widget-hit-bg-color);
  color: inherit;
  cursor: pointer;
}
:host :focus-visible {
  outline: 2px solid var(--luma-blue, #3278a1);
  outline-offset: 3px;
}
:host form { border-radius: 14px; }
:host input { font-size: 16px; }
:host input:focus-visible { outline: none; }
:host input::-webkit-search-cancel-button { display: none; }
:host li[data-index] { border: 1px solid transparent; }
:host li[data-index] h2 { font-size: 15px; line-height: 1.65; }
:host li[data-index] p { overflow-wrap: anywhere; }
:host span[role='button'] { min-width: 24px; min-height: 24px; }
@media (max-width: 600px) {
  :host .modal__wrapper { padding: max(14px, env(safe-area-inset-top)) 12px max(14px, env(safe-area-inset-bottom)); }
  :host .modal__content { max-height: calc(100dvh - 28px); border-radius: 22px; }
  :host .luma-search-heading { padding: 14px 16px 6px; }
  :host .luma-search-close { width: 40px; height: 40px; }
}
@media (max-height: 500px) {
  :host .modal__wrapper { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  :host .modal__layer, :host .modal__content { animation: none; }
}
