/* BenSearchAI: every rule is scoped to module-owned elements. */
.bs-modal,
.bs-page {
  --bs-accent: #16870d;
  --bs-line: #e3e9e3;
  --bs-ink: #26342b;
  --bs-muted: #738078;
  color: var(--bs-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
}
.bs-modal *,
.bs-page * {
  box-sizing: border-box;
}
.bs-modal[hidden] {
  display: none !important;
}
.bs-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #fff;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.bs-modal-shell {
  max-width: 1680px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 22px 40px;
}
.bs-modal button,
.bs-page button {
  font: inherit;
  cursor: pointer;
}
.bs-modal button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.bs-modal a,
.bs-page a {
  color: inherit;
  text-decoration: none;
}
.bs-modal :focus-visible,
.bs-page :focus-visible {
  outline: 2px solid var(--bs-accent);
  outline-offset: 3px;
}
.bs-modal-head {
  display: flex;
  gap: 22px;
  align-items: center;
  flex: none;
  border-bottom: 1px solid var(--bs-line);
  padding-bottom: 18px;
}
.bs-search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.bs-search-icon {
  font-size: 34px;
  color: var(--bs-muted);
}
.bs-query {
  font: inherit !important;
  font-size: 27px !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--bs-ink) !important;
  padding: 10px !important;
  width: 100%;
  height: 60px !important;
  min-width: 0;
  outline: none;
}
.bs-query::-webkit-search-cancel-button {
  display: none;
}
.bs-close,
.bs-clear,
.bs-voice {
  background: #f4f7f3;
  border: 0;
  border-radius: 12px;
  min-width: 44px;
  min-height: 44px;
  color: var(--bs-muted);
  font-size: 28px !important;
}
.bs-clear {
  font-size: 22px !important;
  background: transparent;
}
.bs-close {
  font-size: 32px !important;
  color: var(--bs-ink);
}
.bs-status {
  font-size: 12px;
  color: var(--bs-muted);
  min-height: 27px;
  padding-top: 6px;
}
.bs-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 3px 30px;
  scrollbar-width: thin;
}
.bs-welcome {
  max-width: 860px;
  padding: 55px 25px;
}
.bs-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bs-accent);
}
.bs-welcome h2 {
  font-weight: 500;
  font-size: 34px;
  line-height: 1.2;
  margin: 14px 0;
}
.bs-welcome p {
  color: var(--bs-muted);
  font-size: 17px;
}
.bs-welcome h3 {
  font-size: 15px;
  font-weight: 500;
  margin-top: 40px;
}
.bs-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.bs-chip {
  border: 1px solid var(--bs-line);
  border-radius: 22px;
  padding: 9px 14px;
  background: #fff;
  color: var(--bs-ink);
  min-height: 40px;
}
.bs-chip:hover {
  border-color: var(--bs-accent);
  color: var(--bs-accent);
}
.bs-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 40px;
}
.bs-facets {
  min-width: 0;
}
.bs-facets h3 {
  font-weight: 500;
  font-size: 13px;
  color: var(--bs-muted);
  margin: 25px 10px 8px;
}
.bs-facet-all,
.bs-facet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--bs-line);
  background: #fff;
  text-align: left;
  min-height: 49px;
  padding: 11px 10px;
  gap: 10px;
  color: var(--bs-ink);
}
.bs-facet span {
  font-size: 12px;
  background: #f2f5f0;
  border-radius: 6px;
  padding: 2px 6px;
}
.bs-facet.is-active,
.bs-facet:hover {
  background: #edf5e9;
  color: var(--bs-accent);
  border-radius: 8px;
}
.bs-facet-all {
  font-weight: 500;
  color: var(--bs-accent);
}
.bs-brand-label {
  display: block;
  font-size: 13px;
  margin: 22px 0 14px;
  font-weight: 400;
}
.bs-brand,
.bs-page select {
  display: block;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--bs-line);
  border-radius: 9px;
  padding: 8px;
  background: #fff;
  color: var(--bs-ink);
  font: inherit;
  margin-top: 6px;
}
.bs-stock-filter {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  font-weight: 400;
}
.bs-stock-filter input {
  accent-color: var(--bs-accent);
  width: 17px;
  height: 17px;
  margin: 0;
}
.bs-reset,
.bs-text-button {
  border: 0;
  background: none;
  color: var(--bs-accent);
  padding: 8px 0;
}
.bs-results {
  min-width: 0;
}
.bs-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.bs-group {
  min-width: 0;
}
.bs-group-title {
  display: block;
  font-size: 21px;
  font-weight: 500;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--bs-line);
  margin-bottom: 10px;
}
.bs-result {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 13px;
  padding: 14px 0;
  position: relative;
  align-items: start;
}
.bs-result-image {
  display: block;
  aspect-ratio: 1;
  background: #f8faf7;
  border: 1px solid #f1f3ef;
  border-radius: 10px;
  overflow: hidden;
}
.bs-result-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.bs-result-content {
  min-width: 0;
}
.bs-result-name {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.bs-result-name:hover {
  color: var(--bs-accent);
}
.bs-model {
  display: block;
  font-size: 11px;
  color: var(--bs-muted);
  overflow-wrap: anywhere;
  margin-top: 3px;
}
.bs-in-stock,
.bs-out-stock {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  color: var(--bs-accent);
}
.bs-out-stock {
  color: var(--bs-muted);
}
.bs-result-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 7px;
}
.bs-result-price strong {
  font-size: 15px;
  font-weight: 600;
}
.bs-result-price del {
  font-size: 12px;
  color: var(--bs-muted);
}
.bs-discount {
  font-size: 11px;
  color: #a83228;
  background: #fff0ec;
  border-radius: 4px;
  padding: 1px 4px;
}
.bs-rating {
  color: #b48230;
}
.bs-result-buy {
  grid-column: 2;
  justify-self: start;
  border: 1px solid var(--bs-line);
  border-radius: 7px;
  padding: 6px 10px;
  background: #fff;
  font-size: 12px !important;
  color: var(--bs-accent) !important;
  min-height: 34px;
}
.bs-result-buy:hover {
  border-color: var(--bs-accent);
}
.bs-more {
  background: none;
  border: 0;
  color: var(--bs-muted);
  min-height: 44px;
  padding: 8px 0;
}
.bs-all-results,
.bs-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-accent);
  color: #fff !important;
  padding: 12px 24px;
  min-height: 46px;
  border-radius: 9px;
  margin-top: 22px;
}
.bs-corrected {
  margin: 0 0 20px;
  color: var(--bs-muted);
}
.bs-redirect {
  display: block;
  color: var(--bs-accent) !important;
  margin-bottom: 16px;
}
.bs-empty {
  font-weight: 400;
  font-size: 22px;
}
.bs-layout-grid .bs-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bs-layout-compact .bs-groups {
  grid-template-columns: 1fr;
}
.bs-layout-compact .bs-group-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.bs-page {
  width: calc(100% - 40px) !important;
  max-width: 1440px !important;
  margin: 32px auto 50px !important;
}
.bs-page-heading h1 {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.bs-page-search {
  display: flex;
  gap: 10px;
  margin: 22px 0;
}
.bs-page-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid var(--bs-line);
  border-radius: 10px;
  font: inherit;
}
.bs-page-search button,
.bs-card button {
  background: var(--bs-accent);
  border: 0;
  color: #fff;
  border-radius: 9px;
  padding: 10px 18px;
  min-height: 44px;
}
.bs-page-filters {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--bs-line);
  border-radius: 14px;
  margin: 20px 0;
}
.bs-page-filters label {
  flex: 1;
  min-width: 150px;
  font-weight: 400;
}
.bs-page-filters .bs-stock {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.bs-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.bs-card {
  min-width: 0;
  border: 1px solid var(--bs-line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.bs-card-image {
  display: block;
  aspect-ratio: 1;
  background: #f8faf7;
  position: relative;
  padding: 15px;
}
.bs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.bs-card-body {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}
.bs-card h2 {
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.bs-card .bs-model {
  font-size: 12px;
}
.bs-card .bs-price {
  font-size: 21px;
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.bs-card .bs-price del {
  font-size: 14px;
  color: var(--bs-muted);
}
.bs-card .bs-choose {
  display: block;
  text-align: center;
  color: var(--bs-accent);
  border: 1px solid var(--bs-line);
  border-radius: 9px;
  padding: 11px;
  margin-top: 8px;
}
.bs-card .bs-direct-buy {
  margin-top: 8px;
}
.bs-page-pagination {
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
}
.bs-page-pagination a {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--bs-line);
  background: #fff;
}
.bs-page-pagination a.is-active {
  background: var(--bs-accent);
  color: #fff;
  border-color: var(--bs-accent);
}
.bs-notice {
  padding: 16px;
  border: 1px solid var(--bs-line);
  border-radius: 10px;
  background: #fff;
  margin: 18px 0;
}
@media (max-width: 1199px) {
  .bs-modal-shell {
    padding: 18px 24px;
  }
  .bs-layout {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 24px;
  }
  .bs-groups {
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bs-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bs-result {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
  .bs-modal-shell {
    padding: 12px 16px;
  }
  .bs-modal-head {
    gap: 8px;
    padding-bottom: 10px;
  }
  .bs-search-form {
    gap: 4px;
  }
  .bs-query {
    font-size: 19px !important;
    height: 48px !important;
    padding: 6px !important;
  }
  .bs-search-icon {
    font-size: 26px;
  }
  .bs-close,
  .bs-clear,
  .bs-voice {
    min-width: 40px;
    min-height: 44px;
  }
  .bs-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .bs-facets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  .bs-facets h3 {
    display: none;
  }
  .bs-facet-all,
  .bs-facet {
    width: auto;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid var(--bs-line);
    border-radius: 20px;
    font-size: 12px;
    max-width: 100%;
  }
  .bs-facet {
    max-width: 230px;
  }
  .bs-brand-label {
    margin: 0;
    flex: 1;
    min-width: 140px;
    font-size: 11px;
  }
  .bs-brand {
    margin-top: 3px;
    font-size: 12px;
  }
  .bs-stock-filter {
    font-size: 12px;
  }
  .bs-reset {
    font-size: 12px;
  }
  .bs-groups,
  .bs-layout-grid .bs-groups {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .bs-group-title {
    font-size: 20px;
  }
  .bs-result {
    grid-template-columns: 86px minmax(0, 1fr);
    padding: 12px 0;
  }
  .bs-result-name {
    font-size: 14px;
  }
  .bs-result-buy {
    min-height: 40px;
    padding: 8px 12px;
  }
  .bs-welcome {
    padding: 25px 4px;
  }
  .bs-welcome h2 {
    font-size: 28px;
  }
  .bs-welcome p {
    font-size: 15px;
  }
  .bs-layout-compact .bs-group-products {
    grid-template-columns: 1fr;
  }
  .bs-all-results {
    display: flex;
    position: sticky;
    bottom: 0;
    box-shadow: 0 -8px 20px #fff;
  }
  .bs-page {
    width: calc(100% - 24px) !important;
    margin-top: 20px !important;
  }
  .bs-page-heading h1 {
    font-size: 25px;
  }
  .bs-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .bs-card-body {
    padding: 12px;
  }
  .bs-card h2 {
    font-size: 14px;
  }
  .bs-card .bs-price {
    font-size: 17px;
  }
  .bs-card button,
  .bs-card .bs-choose {
    font-size: 12px;
    padding: 9px 7px;
    white-space: normal;
  }
  .bs-page-filters {
    padding: 12px;
    gap: 12px;
  }
  .bs-page-filters label {
    min-width: 125px;
  }
  .bs-page-search button {
    padding: 10px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bs-modal *,
  .bs-page * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.bs-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bs-card-bottom {
  margin-top: auto;
}
.bs-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ecf5e6;
  color: var(--bs-accent);
  padding: 4px 8px;
  border-radius: 7px;
  font-size: 12px;
}
.bs-card .bs-stock {
  font-size: 12px;
  color: var(--bs-accent);
}
.bs-card .bs-stock.is-unavailable {
  color: var(--bs-muted);
}
.bs-page-filters > button {
  background: var(--bs-accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 18px;
  min-height: 44px;
}

.bs-search-icon,
.bs-close,
.bs-clear,
.bs-voice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bs-facets {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100dvh - 155px);
  overflow: auto;
  scrollbar-width: thin;
}
.bs-category-rail {
  width: 100%;
}
.bs-groups-single {
  grid-template-columns: minmax(0, 1fr) !important;
}
.bs-groups-single .bs-group-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 24px;
}
.bs-groups-single .bs-more {
  margin-top: 15px;
}
@media (max-width: 1199px) {
  .bs-groups-single .bs-group-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .bs-facets {
    position: static;
    max-height: none;
    overflow: visible;
    align-self: stretch;
  }
  .bs-category-rail {
    display: flex;
    overflow-x: auto;
    gap: 7px;
    scrollbar-width: thin;
    padding-bottom: 7px;
  }
  .bs-category-rail .bs-facet,
  .bs-category-rail .bs-facet-all {
    flex: none;
    white-space: nowrap;
    max-width: none;
  }
  .bs-facets .bs-brand-label {
    flex: 1;
    max-width: 230px;
  }
  .bs-groups-single .bs-group-products {
    grid-template-columns: 1fr;
  }
  .bs-stock-filter {
    margin: 0 0 0 5px;
  }
}

.bs-modal .bs-query:focus-visible {
  outline: none !important;
}
.bs-search-form:focus-within {
  border-bottom-color: var(--bs-accent);
}
.bs-search-form {
  border-bottom: 1px solid transparent;
}
@media (max-width: 767px) {
  .bs-results > .bs-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }
  .bs-results > .bs-chips .bs-chip {
    flex: none;
    white-space: nowrap;
  }
}

@media (max-width: 767px) {
  .bs-page-filters label {
    min-width: 0;
    flex: 1 1 calc(50% - 8px);
  }
  .bs-page-filters > button {
    width: 100%;
  }
}
@media (max-width: 360px) {
  .bs-product-grid {
    grid-template-columns: 1fr;
  }
}

.bs-page-filters .bs-stock input {
  accent-color: var(--bs-accent);
  width: 17px;
  height: 17px;
  flex: none;
}
.bs-page .bs-card-brand {
  font-size: 12px;
  color: var(--bs-muted);
}

/* Compact mobile filters; desktop keeps the full sidebar. */
.bs-filter-toggle {
  display: none;
}
.bs-selected-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.bs-selected-filter {
  border: 1px solid var(--bs-line);
  border-radius: 18px;
  background: #edf6ea;
  color: var(--bs-accent);
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
@media (max-width: 767px) {
  .bs-facets {
    display: block;
    border-bottom: 1px solid var(--bs-line);
    padding-bottom: 12px;
  }
  .bs-filter-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 8px 0;
    background: transparent;
    border: 0;
    color: var(--bs-ink);
    font: inherit;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
  }
  .bs-filter-total {
    margin-left: auto;
    padding: 3px 9px;
    border-radius: 8px;
    background: #edf6ea;
    color: var(--bs-accent);
    font-size: 13px;
  }
  .bs-filter-chevron {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.15s;
  }
  .bs-facets.is-open .bs-filter-chevron {
    transform: rotate(180deg);
  }
  .bs-filter-panel {
    display: none;
  }
  .bs-facets.is-open .bs-filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px 0 4px;
  }
  .bs-filter-panel .bs-category-rail {
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
  }
  .bs-filter-panel .bs-reset {
    flex: 0 0 100%;
    text-align: left;
  }
  .bs-selected-filters {
    margin-top: 8px;
  }
}

.bs-redirect {
  padding: 12px 16px;
  border: 1px solid var(--bs-line);
  border-radius: 10px;
  background: #fafcfb;
  font-weight: 500;
  overflow-wrap: anywhere;
}
@media (max-width: 767px) {
  .bs-facets.is-open .bs-filter-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 0 6px;
  }
  .bs-filter-panel .bs-category-rail {
    display: flex;
    flex-direction: column;
    flex: initial;
    gap: 2px;
    max-height: 320px;
    max-height: min(42dvh, 320px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .bs-filter-panel .bs-category-rail h3 {
    display: block;
    position: sticky;
    top: 0;
    z-index: 1;
    margin: 0;
    padding: 8px 12px;
    background: #fff;
    font-size: 12px;
    letter-spacing: 0.02em;
  }
  .bs-filter-panel .bs-category-rail .bs-facet,
  .bs-filter-panel .bs-category-rail .bs-facet-all {
    flex: initial;
    width: 100%;
    max-width: none;
    white-space: normal;
    border: 0;
    border-radius: 8px;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.4;
    gap: 12px;
  }
  .bs-filter-panel .bs-category-rail .bs-facet span {
    flex: none;
    min-width: 26px;
    text-align: center;
  }
  .bs-filter-panel .bs-category-rail .bs-facet.is-active {
    background: #f1f5f3;
    box-shadow: inset 3px 0 var(--bs-accent);
  }
  .bs-filter-panel .bs-brand-label {
    flex: initial;
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: 13px;
  }
  .bs-filter-panel .bs-brand {
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }
  .bs-filter-panel .bs-stock-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--bs-line);
    border-radius: 10px;
    background: #fafcfb;
    font-size: 14px;
  }
  .bs-filter-panel .bs-stock-filter input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--bs-accent);
  }
  .bs-filter-panel .bs-reset {
    flex: initial;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid var(--bs-line);
    border-radius: 10px;
    background: white;
    font-size: 13px;
  }
}

.bs-promotion {
  display: inline-block;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--bs-soft, #eef7ec);
  color: var(--bs-accent, #16870d);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
}

.bs-modal .bs-price-filter,
.bs-modal .bs-attribute-facet {
  border-top: 1px solid #e0e7e0;
  padding: 16px 0;
  margin-top: 12px;
  min-width: 0;
}
.bs-price-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
.bs-modal .bs-price-inputs label {
  font-size: 12px;
  display: grid;
  gap: 5px;
}
.bs-modal .bs-price-inputs input,
.bs-page .bs-price-inputs input {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid #dce4dc;
  border-radius: 9px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}
.bs-modal .bs-price-apply {
  width: 100%;
  padding: 9px;
  margin-top: 10px;
  border: 1px solid #dce4dc;
  border-radius: 9px;
  background: #f5f8f5;
  color: inherit;
  cursor: pointer;
}
.bs-attribute-facet > summary {
  cursor: pointer;
  line-height: 1.5;
  padding: 8px 0;
  font-weight: 500;
}
.bs-attribute-options {
  display: grid;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.bs-modal .bs-attribute-option,
.bs-page .bs-attribute-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 8px 2px;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  margin: 0;
}
.bs-attribute-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--bs-accent, #16870d);
}
.bs-attribute-option span {
  overflow-wrap: anywhere;
}
.bs-attribute-option small {
  background: #f0f5ef;
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 11px;
  color: #657364;
}
.bs-page-filterbox {
  margin-bottom: 24px;
  background: #fff;
  border: 1px solid #dce5dc;
  border-radius: 14px;
  padding: 16px;
}
.bs-page-filterbox > summary {
  cursor: pointer;
  font-weight: 500;
}
.bs-page-filterbox .bs-page-filters {
  border: 0;
  margin: 12px 0 0;
  padding: 0;
  align-items: start;
}
.bs-page-filterbox .bs-attribute-facet {
  min-width: 180px;
  max-width: 280px;
}
.bs-page-filterbox .bs-page-filters > label {
  min-width: 150px;
}
@media (max-width: 760px) {
  .bs-page-filterbox .bs-page-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .bs-page-filterbox .bs-attribute-facet {
    max-width: none;
  }
  .bs-modal .bs-price-inputs {
    width: 100%;
  }
}

/* Eco Cosmetic · BenSearchAI 3.6 · popup filter */
#bena-search-modal {
  --eco-ink: #252823;
  --eco-secondary: #58645c;
  --eco-line: #dce3dc;
  --eco-soft: #f2f5f1;
  --eco-pink: var(--bs-accent);
  --eco-blush: #f7f4f5;
  --eco-blush: color-mix(in srgb, var(--bs-accent) 8%, white);
  --eco-paper: #fff;
  --bs-ink: var(--eco-ink);
}
#bena-search-modal .bs-facets {
  color: var(--eco-ink);
  font-size: 14px;
  line-height: 1.45;
  scrollbar-width: thin;
  scrollbar-color: #cbd3cb transparent;
}
#bena-search-modal .bs-filter-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  min-height: 44px;
  margin: 0 0 12px;
}
#bena-search-modal .bs-filter-heading h2,
#bena-search-modal .bs-filter-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--eco-ink);
  font-family: inherit;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  margin: 0;
}
#bena-search-modal .bs-filter-heading h2::before,
#bena-search-modal .bs-filter-toggle::before {
  content: "";
  width: 21px;
  height: 21px;
  flex: none;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' stroke='%236a786e' stroke-width='1.65' stroke-linecap='round'%3E%3Cpath d='M2 5h20M2 12h20M2 19h20'/%3E%3Ccircle cx='8' cy='5' r='2.5'/%3E%3Ccircle cx='16' cy='12' r='2.5'/%3E%3Ccircle cx='7' cy='19' r='2.5'/%3E%3C/svg%3E");
}
#bena-search-modal .bs-filter-heading .bs-reset {
  flex: none;
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 4px 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--eco-pink);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#bena-search-modal .bs-price-filter {
  border: 0;
  padding: 4px 0 22px;
  margin: 0;
}
#bena-search-modal .bs-price-filter > span,
#bena-search-modal .bs-attribute-facet > summary {
  font-size: 16px;
  font-weight: 600;
}
#bena-search-modal .bs-price-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 0;
}
#bena-search-modal .bs-price-inputs label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 400;
  color: var(--eco-secondary);
  margin: 0;
}
#bena-search-modal .bs-price-inputs input,
#bena-search-modal .bs-brand {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--eco-line);
  border-radius: 9px;
  background: var(--eco-paper);
  padding: 0 12px;
  color: var(--eco-ink);
  font: inherit;
  font-size: 16px;
}
#bena-search-modal .bs-price-apply {
  width: 100%;
  min-height: 44px;
  margin: 12px 0 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--eco-soft);
  color: var(--eco-ink);
  font-weight: 500;
}
#bena-search-modal .bs-attribute-facet {
  margin: 0;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--eco-line);
}
#bena-search-modal .bs-attribute-facet > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 4px 10px 0;
  cursor: pointer;
  list-style: none;
}
#bena-search-modal summary::-webkit-details-marker {
  display: none;
}
#bena-search-modal .bs-attribute-facet > summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border: solid var(--eco-secondary);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
#bena-search-modal .bs-attribute-facet[open] > summary::after {
  transform: translateY(2px) rotate(225deg);
}
#bena-search-modal .bs-attribute-options {
  display: grid;
  gap: 1px;
  max-height: none;
  overflow: visible;
  padding-bottom: 12px;
}
#bena-search-modal .bs-attribute-option {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
}
#bena-search-modal .bs-attribute-option input,
#bena-search-modal .bs-stock-filter input {
  position: static;
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--eco-pink);
}
#bena-search-modal .bs-attribute-option span {
  min-width: 0;
  overflow-wrap: break-word;
}
#bena-search-modal .bs-attribute-option small,
#bena-search-modal .bs-filter-total {
  min-width: 22px;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--eco-soft);
  color: var(--eco-secondary);
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#bena-search-modal .bs-attribute-option:has(input:checked),
#bena-search-modal .bs-facet.is-active,
#bena-search-modal .bs-selected-filter {
  background: var(--eco-blush);
  color: var(--eco-ink);
}
#bena-search-modal .bs-attribute-option:has(input:disabled) {
  opacity: 0.58;
  cursor: default;
}
#bena-search-modal .bs-facets :focus-visible {
  outline: 2px solid var(--eco-pink);
  outline-offset: 2px;
}
#bena-search-modal .bs-filter-panel .bs-category-rail {
  display: grid;
  max-height: none;
  overflow: visible;
  margin-top: 12px;
}
#bena-search-modal .bs-brand-label {
  margin: 14px 0 4px;
}
#bena-search-modal .bs-facets .bs-stock-filter {
  padding: 8px 0;
  border: 0;
  background: transparent;
}
@media (hover: hover) {
  #bena-search-modal .bs-attribute-option:has(input:enabled):hover {
    background: #f5f5f2;
  }
  #bena-search-modal .bs-attribute-option:has(input:checked):hover {
    background: #f5e5ed;
  }
  #bena-search-modal .bs-price-apply:hover {
    border-color: #b8c4b8;
  }
}
@media (min-width: 768px) {
  #bena-search-modal .bs-layout {
    grid-template-columns: clamp(255px, 26%, 366px) minmax(0, 1fr);
    gap: clamp(24px, 2.5vw, 42px);
  }
  #bena-search-modal .bs-facets {
    position: static;
    max-height: none;
    overflow: visible;
    border-right: 1px solid var(--eco-line);
    padding-right: clamp(16px, 1.6vw, 28px);
  }
  #bena-search-modal .bs-filter-toggle {
    display: none;
  }
}
@media (max-width: 767px) {
  #bena-search-modal .bs-facets {
    padding: 0 2px 10px;
  }
  #bena-search-modal .bs-filter-toggle {
    min-height: 46px;
    font-size: 16px;
  }
  #bena-search-modal .bs-facets.is-open .bs-filter-panel {
    display: block;
    padding: 3px 2px 12px;
  }
  #bena-search-modal .bs-filter-heading {
    justify-content: flex-end;
    min-height: 0;
    margin: 0;
  }
  #bena-search-modal .bs-filter-heading h2 {
    display: none;
  }
  #bena-search-modal .bs-filter-panel .bs-facet,
  #bena-search-modal .bs-filter-panel .bs-facet-all {
    text-align: left;
  }
}
#bena-search-modal .bs-groups-single .bs-result:only-child {
  grid-column: 1 / -1;
  max-width: 590px;
}

/* A small lightbulb identifies each suggested query above the results. */
#bena-search-modal .bs-results > .bs-chips > .bs-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 10px 14px;
  text-align: start;
}
#bena-search-modal .bs-results > .bs-chips > .bs-chip::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--eco-blush) center / 16px 16px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2396506e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.7 16.5c0-1.6-.8-2.6-1.7-3.6a6.6 6.6 0 1 1 10 0c-.9 1-1.7 2-1.7 3.6zM9.2 19h5.6M10.7 21.3h2.6'/%3E%3C/svg%3E");
}

#bena-search-modal .bs-filter-panel .bs-category-rail {
  margin-top: 0;
}
#bena-search-modal .bs-category-rail h3,
#bena-search-modal .bs-filter-panel .bs-brand-label {
  color: var(--eco-ink);
  font-weight: 600;
  font-size: 16px;
}
#bena-search-modal .bs-category-rail h3 {
  position: static;
  display: block;
  margin: 0;
  padding: 4px 0 8px;
}
#bena-search-modal .bs-category-rail .bs-facet[hidden] {
  display: none;
}
#bena-search-modal .bs-filter-panel .bs-facet,
#bena-search-modal .bs-filter-panel .bs-facet-all {
  min-height: 44px;
  padding: 8px;
}
#bena-search-modal .bs-category-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  margin: 4px 0 0;
  padding: 6px 14px;
  border: 1px solid #e9d8e0;
  border-radius: 999px;
  color: var(--eco-pink);
  background: var(--eco-blush);
  font-size: 13px;
  font-weight: 500;
}
#bena-search-modal .bs-category-more::after {
  content: "";
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
#bena-search-modal .bs-category-more[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}
@media (hover: hover) {
  #bena-search-modal .bs-category-more:hover {
    border-color: var(--eco-pink);
  }
}
#bena-search-modal .bs-filter-panel .bs-brand-label {
  display: block;
  margin: 16px 0;
}
#bena-search-modal .bs-filter-panel .bs-brand {
  font-size: 14px;
  font-weight: 400;
}

/* Search filter sheet: scoped to the module, no theme selectors or observers. */
.bs-filter-backdrop,
.bs-filter-close,
.bs-filter-footer {
  display: none;
}
#bena-search-modal .bs-filter-contents {
  min-width: 0;
}
#bena-search-modal .bs-category-rail .bs-facet {
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
}
#bena-search-modal .bs-category-rail .bs-facet::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid #8b958e;
  border-radius: 4px;
  background: white;
}
#bena-search-modal .bs-category-rail .bs-facet.is-active::before {
  background: var(--bs-accent) center/12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8 3 3 7-7'/%3E%3C/svg%3E");
  border-color: var(--bs-accent);
}
#bena-search-modal .bs-category-rail .bs-facet span {
  margin-left: auto;
  background: var(--eco-soft);
  border-radius: 5px;
  min-width: 24px;
  padding: 1px 5px;
  font-size: 12px;
}
#bena-search-modal .bs-category-more {
  margin: 10px 0 20px;
  border-radius: 9px;
  background: white;
  min-width: 65%;
  max-width: 100%;
}
#bena-search-modal .bs-facet-all {
  font-size: 13px;
  color: var(--bs-accent);
}
#bena-search-modal .bs-filter-panel .bs-brand-label {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--bs-line);
  padding-top: 18px;
}
#bena-search-modal .bs-stock-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
}
#bena-search-modal .bs-filter-panel .bs-brand {
  margin: 0;
  height: 46px;
  font-size: 16px;
  font-weight: 400;
}
#bena-search-modal .bs-price-filter {
  padding-top: 18px;
  border-top: 1px solid var(--bs-line);
}
#bena-search-modal .bs-filter-heading {
  border-bottom: 1px solid var(--bs-line);
  padding-bottom: 12px;
}
#bena-search-modal .bs-filter-heading .bs-reset {
  margin-left: auto;
}
#bena-search-modal .bs-results > .bs-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  padding: 4px 0 16px;
}
#bena-search-modal .bs-results > .bs-chips > .bs-chip {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 44px;
  border: 1px solid var(--bs-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bs-ink);
  font-size: 14px;
  line-height: 1.4;
}
#bena-search-modal .bs-results > .bs-chips > .bs-chip::before {
  background-color: var(--eco-blush);
}
#bena-search-modal .bs-selected-filter {
  background: var(--eco-blush);
}
@media (min-width: 768px) {
  #bena-search-modal .bs-filter-heading {
    min-height: 0;
    padding: 0;
    border: 0;
    margin: 0 0 12px;
  }
  #bena-search-modal .bs-filter-heading h2 {
    display: none;
  }
}
@media (max-width: 767px) {
  #bena-search-modal .bs-filter-toggle {
    min-height: 58px;
    font-size: 17px;
    padding: 10px 0;
  }
  #bena-search-modal .bs-filter-total {
    display: none;
  }
  #bena-search-modal .bs-filter-chevron {
    margin-left: auto;
  }
  #bena-search-modal .bs-facets.is-open .bs-filter-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9;
    border: 0;
    background: rgb(24 28 25 / 42%);
    padding: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
  }
  #bena-search-modal .bs-facets.is-open .bs-filter-panel {
    display: flex;
    position: fixed;
    inset: 56px 0 0;
    z-index: 10;
    width: 100%;
    max-height: calc(100dvh - 56px);
    padding: 0;
    background: white;
    border-radius: 22px 22px 0 0;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    box-shadow: 0 -12px 40px #0001;
  }
  #bena-search-modal .bs-filter-panel::before {
    content: "";
    width: 44px;
    height: 5px;
    border-radius: 5px;
    flex: none;
    align-self: center;
    margin: 10px 0 2px;
    background: #d2d9d2;
  }
  #bena-search-modal .bs-filter-heading {
    display: flex;
    justify-content: initial;
    gap: 12px;
    flex: none;
    margin: 0 20px;
    padding: 10px 0 14px;
    min-height: 56px;
  }
  #bena-search-modal .bs-filter-heading h2 {
    display: flex;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.4;
  }
  #bena-search-modal .bs-filter-heading .bs-reset {
    font-size: 13px;
    min-height: 40px;
    max-width: 40%;
    line-height: 1.3;
    text-align: right;
  }
  #bena-search-modal .bs-filter-close {
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    color: var(--bs-muted);
  }
  #bena-search-modal .bs-filter-close svg {
    width: 22px;
    height: 22px;
  }
  #bena-search-modal .bs-filter-contents {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px 10px;
    scrollbar-width: thin;
  }
  #bena-search-modal .bs-filter-panel .bs-category-rail {
    display: block;
    max-height: none;
    overflow: visible;
    margin: 0;
  }
  #bena-search-modal .bs-category-rail h3 {
    font-size: 18px;
    font-weight: 600;
    padding: 0 0 12px;
    background: transparent;
  }
  #bena-search-modal .bs-filter-panel .bs-category-rail .bs-facet {
    display: flex;
    font-size: 15px;
    min-height: 44px;
    padding: 9px 10px;
    line-height: 1.45;
    border-radius: 7px;
  }
  #bena-search-modal .bs-category-rail .bs-facet[hidden] {
    display: none;
  }
  #bena-search-modal .bs-category-rail .bs-facet-all {
    padding: 6px 10px;
    min-height: 36px;
  }
  #bena-search-modal .bs-filter-panel .bs-brand-label {
    font-size: 18px;
    margin: 4px 0 18px;
  }
  #bena-search-modal .bs-price-filter > span,
  #bena-search-modal .bs-attribute-facet > summary {
    font-size: 18px;
    line-height: 1.45;
  }
  #bena-search-modal .bs-attribute-facet > summary {
    min-height: 58px;
  }
  #bena-search-modal .bs-price-inputs {
    gap: 12px;
  }
  #bena-search-modal .bs-price-inputs input {
    height: 46px;
    font-size: 16px;
  }
  #bena-search-modal .bs-filter-footer {
    display: block;
    flex: none;
    padding: 14px 20px max(14px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--bs-line);
  }
  #bena-search-modal .bs-filter-apply {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--bs-accent);
    color: white;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
  }
  #bena-search-modal.is-filter-open .bs-modal-body {
    overflow: hidden;
  }
  #bena-search-modal .bs-results > .bs-chips > .bs-chip {
    font-size: 14px;
    padding: 7px 12px 7px 8px;
    gap: 9px;
  }
  #bena-search-modal .bs-results > .bs-chips > .bs-chip::before {
    flex-basis: 30px;
    height: 30px;
    background-size: 18px;
  }
  #bena-search-modal .bs-selected-filters {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #bena-search-modal .bs-filter-chevron {
    transition: none;
  }
}

@media (max-width: 767px) {
  #bena-search-modal .bs-filter-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 40px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  #bena-search-modal .bs-filter-heading h2 {
    min-width: 0;
  }
  #bena-search-modal .bs-filter-heading .bs-reset {
    max-width: none;
    justify-self: end;
  }
}
@media (max-width: 359px) {
  #bena-search-modal .bs-filter-heading {
    grid-template-columns: minmax(0, 1fr) 80px 36px;
    gap: 8px;
  }
  #bena-search-modal .bs-filter-heading h2 {
    font-size: 17px;
    gap: 8px;
  }
  #bena-search-modal .bs-filter-heading .bs-reset {
    width: 80px;
    font-size: 12px;
  }
  #bena-search-modal .bs-filter-close {
    min-width: 36px;
    padding: 6px;
  }
}

/* Only marked, per-search-input legacy result menus are suppressed. */
ul.bs-legacy-search-results[hidden] {
  display: none !important;
}
