html.bnd-search-open,
html.bnd-search-open body {
  overflow: hidden;
}

.bnd-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}

.bnd-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid rgba(224, 122, 158, 0.55);
  border-radius: 999px;
  background: rgba(255, 248, 245, 0.9);
  color: var(--bnd-espresso, #3e2d26);
  cursor: pointer;
}

.bnd-search-trigger svg {
  display: block;
  width: 18px;
  height: 18px;
}

.bnd-search-trigger:hover {
  background: rgba(224, 122, 158, 0.16);
}

.bnd-search-trigger:focus-visible {
  outline: 3px solid var(--bnd-espresso, #3e2d26);
  outline-offset: 2px;
}

.bnd-search-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: max(4.75rem, env(safe-area-inset-top)) 16px 16px;
  background: rgba(42, 24, 28, 0.46);
  box-sizing: border-box;
}

.bnd-search-layer[hidden] {
  display: none !important;
}

.bnd-search-panel {
  width: min(36rem, calc(100vw - 32px));
  max-height: min(32rem, calc(100dvh - 6rem));
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 122, 158, 0.55);
  border-radius: 16px;
  background: #fff8f5;
  color: var(--bnd-espresso, #3e2d26);
  box-shadow: 0 24px 60px rgba(42, 24, 28, 0.28);
  box-sizing: border-box;
}

.bnd-search-panel__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(224, 122, 158, 0.28);
}

.bnd-search-panel__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.bnd-search-panel__input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 40px 10px 14px;
  border: 1px solid rgba(224, 122, 158, 0.55);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 1rem;
}

.bnd-search-panel__input:focus-visible {
  outline: 3px solid var(--bnd-espresso, #3e2d26);
  outline-offset: 2px;
}

.bnd-search-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bnd-search-clear,
.bnd-search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.bnd-search-clear {
  position: absolute;
  top: 0;
  right: 0;
}

.bnd-search-clear:focus-visible,
.bnd-search-close:focus-visible,
.bnd-search-empty a:focus-visible,
.bnd-search-option:focus-visible {
  outline: 3px solid var(--bnd-espresso, #3e2d26);
  outline-offset: 2px;
}

.bnd-search-places {
  margin: 0;
  padding: 10px 14px 0;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--bnd-espresso, #3e2d26);
}

.legal-page .bnd-search-places {
  color: #fff8f5;
}

.bnd-search-status {
  margin: 0;
  padding: 8px 14px 0;
  min-height: 1.4rem;
  font-size: 0.82rem;
  color: var(--bnd-muted, #6b534c);
}

.bnd-search-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}

.bnd-search-option {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.bnd-search-option[aria-selected="true"] {
  background: rgba(224, 122, 158, 0.2);
}

.bnd-search-option__type {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(224, 122, 158, 0.18);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bnd-search-option__title,
.bnd-search-option__context {
  display: block;
  overflow-wrap: anywhere;
}

.bnd-search-option__title {
  font-weight: 750;
  line-height: 1.3;
}

.bnd-search-option__context {
  margin-top: 2px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--bnd-muted, #6b534c);
}

.bnd-search-option mark {
  background: rgba(224, 122, 158, 0.45);
  color: inherit;
  border-radius: 3px;
  padding: 0 1px;
}

.bnd-search-empty {
  margin: 0;
  padding: 8px 14px 16px;
  overflow-wrap: anywhere;
}

.bnd-search-empty a {
  color: inherit;
  font-weight: 750;
}

@media (max-width: 900px) {
  .bnd-search-panel {
    max-height: calc(100dvh - 5.25rem);
  }
  .bnd-page .bnd-header-actions {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }

  .bnd-page .bnd-header-actions .bnd-site-nav-toggle {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }

  .legal-page .bnd-header-actions {
    grid-column: 2;
    grid-row: 1;
    margin-left: 0;
    justify-self: end;
  }

  .legal-page .bnd-header-actions .legal-nav-toggle,
  .legal-page .bnd-header-actions .bnd-site-nav-toggle {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
  }
}

.legal-page .bnd-search-trigger {
  background: rgba(255, 248, 245, 0.08);
  color: #fff8f5;
  border-color: rgba(168, 85, 247, 0.55);
}

.legal-page .bnd-search-trigger:hover {
  background: rgba(168, 85, 247, 0.28);
}

.legal-page .bnd-search-trigger:focus-visible,
.legal-page .bnd-search-panel__input:focus-visible,
.legal-page .bnd-search-clear:focus-visible,
.legal-page .bnd-search-close:focus-visible,
.legal-page .bnd-search-option:focus-visible,
.legal-page .bnd-search-empty a:focus-visible {
  outline-color: #67e8f9;
}

.legal-page .bnd-search-layer {
  background: rgba(8, 2, 12, 0.62);
}

.legal-page .bnd-search-panel {
  background: #1a0c16;
  color: #fff8f5;
  border-color: rgba(168, 85, 247, 0.5);
}

.legal-page .bnd-search-panel__input {
  background: #120812;
  color: #fff8f5;
  border-color: rgba(168, 85, 247, 0.45);
}

.legal-page .bnd-search-status,
.legal-page .bnd-search-option__context {
  color: rgba(255, 248, 245, 0.72);
}

.legal-page .bnd-search-option[aria-selected="true"] {
  background: rgba(168, 85, 247, 0.28);
}

.bnd-product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.bnd-product-actions .bnd-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.bnd-demo-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid var(--bnd-pink, #e07a9e);
  border-radius: 12px;
  background: rgba(224, 122, 158, 0.12);
  overflow-wrap: anywhere;
}
