.vistore-search-page .vistore-search-header {
  min-height: 0;
  margin-block: 12px;
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid var(--vs-line);
  border-radius: 18px;
  background: linear-gradient(112deg, var(--vs-primary-soft), var(--vs-surface) 73%);
}

.vistore-search-page .vistore-search-header h1 {
  font-size: clamp(22px, 2.3vw, 33px);
  overflow-wrap: anywhere;
}

.vistore-search-page .vistore-search-header .vistore-eyebrow {
  color: var(--vs-primary-strong, var(--vs-primary));
}

.vistore-search-page .vistore-search-directory {
  margin-block: 8px;
  padding: 0;
  scroll-margin-top: calc(var(--vs-header-height, 72px) + 18px);
}

.vistore-search-directory > summary,
.vistore-search-details > summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--vs-ink);
}

.vistore-search-directory > summary {
  padding: 10px 14px;
}

.vistore-search-directory > summary .vistore-icon {
  width: 16px;
  height: 16px;
  margin-inline: 4px;
  vertical-align: text-bottom;
}

.vistore-search-directory .vistore-all-categories__grid {
  padding: 0 12px 12px;
}

.vistore-search-page .vistore-search-refinements {
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
}

.vistore-search-reset {
  padding: 6px 4px;
  color: var(--vs-primary-strong, var(--vs-primary));
  font-size: 12px;
  font-weight: 750;
}

.vistore-filter-panel .vistore-input-icon > #vistore-filter-region {
  display: block;
  width: 100%;
  padding-inline-start: 38px !important;
}

.vistore-filter-panel .vistore-search-seller-filters {
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 0;
}

.vistore-search-seller-filters .vistore-search-seller-option {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 6px 10px;
  border: 1px solid var(--vs-line, #e4e7ec);
  border-radius: 11px;
  background: var(--vs-surface, #fff);
  color: var(--vs-text, #344054);
  font-size: 13px;
  cursor: pointer;
}

.vistore-search-seller-option__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--vs-primary, #007a3d);
  background: var(--vs-primary-soft, #e8f5ec);
}

.vistore-search-seller-option__icon .vistore-icon {
  width: 18px;
  height: 18px;
}

.vistore-search-seller-option__label {
  min-width: 0;
  font-weight: 700;
  line-height: 1.25;
}

.vistore-search-seller-option:has(input:checked) {
  border-color: var(--vs-primary, #007a3d);
  background: var(--vs-primary-soft, #e8f5ec);
}

.vistore-search-seller-option:has(input:focus-visible) {
  outline: 2px solid var(--vs-primary, #007a3d);
  outline-offset: 2px;
}

.vistore-filter-panel .vistore-search-seller-filters input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  opacity: 0;
}

.vistore-search-seller-option__check {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: 1.5px solid var(--vs-line-strong, #b8c6bf);
  border-radius: 5px;
  background: var(--vs-surface, #fff);
}

.vistore-search-seller-option input:checked + .vistore-search-seller-option__check {
  border-color: var(--vs-primary, #007a3d);
  background: var(--vs-primary, #007a3d);
  color: #fff;
}

.vistore-search-seller-option input:checked + .vistore-search-seller-option__check::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(-45deg);
}

.vistore-search-details {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--vs-line);
  border-radius: 11px;
  background: var(--vs-surface-subtle, var(--vs-surface));
  min-width: 0;
}

.vistore-search-details > summary { font-size: 13px; }
.vistore-search-details > summary span { float: inline-end; color: var(--vs-muted); }
.vistore-search-details > .vistore-filter-dynamic { margin-top: 12px; }
.vistore-search-details[hidden], .vistore-search-hint[hidden] { display: none; }
.vistore-search-hint { margin: 0; font-size: 12px; color: var(--vs-muted); }

@media (min-width: 1121px) {
  .vistore-search-page .vistore-search-layout {
    grid-template-columns: 272px minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .vistore-search-page .vistore-search-header {
    display: grid;
    gap: 12px;
  }

  .vistore-search-page .vistore-search-controls {
    flex-wrap: wrap;
    align-items: end;
  }

  .vistore-search-page .vistore-search-controls .vistore-sort {
    flex: 1 1 110px;
    min-width: 0;
  }

  .vistore-search-page .vistore-sort select { width: 100%; }
  .vistore-search-page .vistore-search-refinements {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .vistore-search-refinements > a { flex: 0 0 auto; }
}
