/* 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);
}
