/*
Theme Name: Sheshi Search Results Rows
Version: 0.29.9
Description: Sticky search refinement, removable filters, dense clickable result rows, progressive load-more and a useful zero-result state.
*/

body.search.sheshi-shell .sheshi-results-page {
  overflow: visible !important;
  color: var(--text-primary) !important;
  background: #ffffff !important;
}

body.search.sheshi-shell .sheshi-results-search-strip {
  position: sticky !important;
  z-index: 40 !important;
  top: 68px !important;
  padding: 10px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: none !important;
}

body.search.sheshi-shell .sheshi-results-search-strip .sheshi-wrap,
body.search.sheshi-shell .sheshi-active-filter-strip .sheshi-wrap,
body.search.sheshi-shell .sheshi-results-layout {
  max-width: 1160px !important;
}

body.search.sheshi-shell form.sheshi-search-results {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(190px, .65fr) auto !important;
  grid-template-rows: auto !important;
  gap: 8px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.search.sheshi-shell .sheshi-search-results-field {
  display: flex !important;
  min-width: 0 !important;
  height: 46px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 0 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
}

body.search.sheshi-shell .sheshi-search-results-field:focus-within {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px rgba(61, 86, 102, .12) !important;
}

body.search.sheshi-shell .sheshi-search-results-field svg,
body.search.sheshi-shell .sheshi-search-filter-toggle svg {
  width: 19px !important;
  height: 19px !important;
  flex: 0 0 19px !important;
  fill: none !important;
  stroke: var(--text-muted) !important;
  stroke-width: 1.8 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}

body.search.sheshi-shell .sheshi-search-results-field input {
  width: 100% !important;
  min-width: 0 !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  color: var(--text-primary) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 15px !important;
}

body.search.sheshi-shell .sheshi-search-results-field input::placeholder {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

body.search.sheshi-shell form.sheshi-search-results > .sheshi-search-filter-toggle {
  display: inline-flex !important;
  width: auto !important;
  min-width: 104px !important;
  height: 46px !important;
  min-height: 46px !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 0 14px !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 9px !important;
  color: var(--text-primary) !important;
  background: #ffffff !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  grid-column: auto !important;
  grid-row: auto !important;
}

body.search.sheshi-shell form.sheshi-search-results > .sheshi-search-filter-toggle:hover,
body.search.sheshi-shell form.sheshi-search-results > .sheshi-search-filter-toggle:focus-visible {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

body.search.sheshi-shell form.sheshi-search-results > .sheshi-search-mobile-filter-fields {
  display: none !important;
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 10px !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  background: var(--surface-sunken) !important;
}

body.search.sheshi-shell form.sheshi-search-results.is-filter-open > .sheshi-search-mobile-filter-fields {
  display: grid !important;
}

body.search.sheshi-shell form.sheshi-search-results .sheshi-search-mobile-filter-fields select {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 36px 0 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  background-color: #ffffff !important;
  font-size: 14px !important;
}

body.search.sheshi-shell .sheshi-active-filter-strip {
  padding: 10px 0 0 !important;
  background: #ffffff !important;
}

body.search.sheshi-shell .sheshi-active-filters {
  display: flex !important;
  min-height: 44px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}

body.search.sheshi-shell .sheshi-filter-chip {
  display: inline-flex !important;
  min-height: 34px !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 0 11px !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  color: var(--text-primary) !important;
  background: var(--surface-sunken) !important;
  font-size: 13px !important;
  text-decoration: none !important;
}

body.search.sheshi-shell .sheshi-filter-chip:hover,
body.search.sheshi-shell .sheshi-filter-chip:focus-visible {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

body.search.sheshi-shell .sheshi-filter-reset {
  display: inline-flex !important;
  min-height: 34px !important;
  align-items: center !important;
  padding: 0 4px !important;
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
}

body.search.sheshi-shell .sheshi-results-layout {
  display: block !important;
  padding-top: 14px !important;
  padding-bottom: 64px !important;
}

body.search.sheshi-shell .sheshi-results-content {
  width: 100% !important;
}

body.search.sheshi-shell .sheshi-results-toolbar {
  display: flex !important;
  min-height: 54px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body.search.sheshi-shell .sheshi-results-toolbar p {
  margin: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 15px !important;
}

body.search.sheshi-shell .sheshi-results-toolbar p strong {
  color: var(--text-primary) !important;
  font-size: 17px !important;
  font-weight: 750 !important;
}

body.search.sheshi-shell .sheshi-sort-form {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.search.sheshi-shell .sheshi-sort-form label {
  color: var(--text-muted) !important;
  font-size: 13px !important;
}

body.search.sheshi-shell .sheshi-sort-form select {
  min-width: 150px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 34px 0 11px !important;
  border: 1px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text-primary) !important;
  background-color: #ffffff !important;
  font-size: 13px !important;
}

body.search.sheshi-shell .sheshi-results-grid.sheshi-results-list {
  display: block !important;
  overflow: visible !important;
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row {
  position: relative !important;
  display: grid !important;
  width: 100% !important;
  height: auto !important;
  min-height: 116px !important;
  grid-template-columns: 42px minmax(0, 1fr) 24px !important;
  gap: 15px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 14px 4px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid var(--border) !important;
  border-radius: 0 !important;
  color: var(--text-primary) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row:hover,
body.search.sheshi-shell .sheshi-result-card--directory-row:focus-within {
  background: var(--surface-sunken) !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-card-hitarea {
  position: absolute !important;
  z-index: 2 !important;
  inset: 0 !important;
  border-radius: 0 !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-card-hitarea:focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: -3px !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row > .sheshi-category-icon {
  align-self: center !important;
  width: 40px !important;
  height: 40px !important;
  padding: 9px !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--accent) !important;
  background: var(--surface-sunken) !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-body {
  min-width: 0 !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-title-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px 8px !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-title-row h2 {
  order: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: 17px !important;
  font-weight: 720 !important;
  line-height: 1.3 !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-title-row .sheshi-meta-chip {
  order: 2 !important;
  flex: 0 0 auto !important;
  min-height: 22px !important;
  margin: 0 !important;
  padding: 2px 7px !important;
  font-size: 11.5px !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-title-place {
  color: var(--text-secondary) !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-facts {
  display: flex !important;
  margin: 5px 0 0 !important;
  overflow: visible !important;
  flex-wrap: wrap !important;
  color: var(--text-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.35 !important;
  white-space: normal !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-description {
  display: -webkit-box !important;
  margin: 4px 0 0 !important;
  overflow: hidden !important;
  color: var(--text-secondary) !important;
  font-size: 13.5px !important;
  line-height: 1.4 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 1 !important;
}

body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-row-arrow {
  grid-column: 3 !important;
  color: var(--accent) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-align: right !important;
}

body.search.sheshi-shell .sheshi-load-more {
  display: flex !important;
  width: min(100%, 360px) !important;
  min-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 24px auto 0 !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 9px !important;
  color: var(--text-primary) !important;
  background: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

body.search.sheshi-shell .sheshi-load-more:hover,
body.search.sheshi-shell .sheshi-load-more:focus-visible {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

body.search.sheshi-shell .sheshi-load-more[aria-disabled="true"] {
  cursor: wait !important;
  opacity: .65 !important;
}

body.search.sheshi-shell .sheshi-results-end-prompt {
  display: flex !important;
  min-height: 64px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-top: 28px !important;
  padding-top: 18px !important;
  border-top: 1px solid var(--border) !important;
}

body.search.sheshi-shell .sheshi-results-end-prompt.is-waiting {
  display: none !important;
}

body.search.sheshi-shell .sheshi-results-end-prompt p {
  margin: 0 !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
}

body.search.sheshi-shell .sheshi-results-end-prompt a {
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  gap: 7px !important;
  color: var(--accent) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.search.sheshi-shell .sheshi-empty-state {
  margin: 0 !important;
  padding: 56px 0 12px !important;
  border: 0 !important;
  border-top: 1px solid var(--border) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  text-align: left !important;
}

body.search.sheshi-shell .sheshi-empty-kicker {
  margin: 0 0 8px !important;
  color: var(--accent) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}

body.search.sheshi-shell .sheshi-empty-state h2 {
  max-width: 720px !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
  font-size: clamp(28px, 4vw, 42px) !important;
  line-height: 1.08 !important;
}

body.search.sheshi-shell .sheshi-empty-state > p:not(.sheshi-empty-kicker) {
  max-width: 720px !important;
  margin: 14px 0 28px !important;
  color: var(--text-secondary) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

body.search.sheshi-shell .sheshi-empty-category-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.search.sheshi-shell .sheshi-empty-category-grid > a {
  display: grid !important;
  min-height: 64px !important;
  grid-template-columns: 32px minmax(0, 1fr) auto !important;
  gap: 9px !important;
  align-items: center !important;
  padding: 10px !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  color: var(--text-primary) !important;
  background: #ffffff !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  text-decoration: none !important;
}

body.search.sheshi-shell .sheshi-empty-category-grid .sheshi-category-icon {
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: var(--accent) !important;
  background: var(--surface-sunken) !important;
}

body.search.sheshi-shell .sheshi-empty-category-grid small {
  color: var(--text-muted) !important;
  font-size: 12px !important;
}

body.search.sheshi-shell .sheshi-empty-actions {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  margin-top: 28px !important;
}

body.search.sheshi-shell .sheshi-empty-actions .sheshi-button {
  min-height: 48px !important;
  padding: 0 20px !important;
}

body.search.sheshi-shell .sheshi-empty-actions .sheshi-text-link {
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center !important;
  color: var(--accent) !important;
}

@media (max-width: 767px) {
  body.search.sheshi-shell .sheshi-results-content {
    display: block !important;
  }

  body.search.sheshi-shell .sheshi-results-search-strip {
    top: 64px !important;
    padding: 8px 0 !important;
  }

  body.search.sheshi-shell form.sheshi-search-results {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
  }

  body.search.sheshi-shell .sheshi-search-results-field--term {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  body.search.sheshi-shell form.sheshi-search-results > .sheshi-search-filter-toggle {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 50px !important;
    padding: 0 12px !important;
  }

  body.search.sheshi-shell form.sheshi-search-results > .sheshi-search-filter-toggle span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }

  body.search.sheshi-shell .sheshi-search-results-field--location {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }

  body.search.sheshi-shell form.sheshi-search-results > .sheshi-search-mobile-filter-fields {
    grid-column: 1 / -1 !important;
    grid-template-columns: 1fr !important;
  }

  body.search.sheshi-shell .sheshi-active-filter-strip {
    padding-top: 8px !important;
  }

  body.search.sheshi-shell .sheshi-active-filters {
    max-width: 100% !important;
    min-height: 40px !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  body.search.sheshi-shell .sheshi-active-filters::-webkit-scrollbar {
    display: none !important;
  }

  body.search.sheshi-shell .sheshi-active-filters > * {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  body.search.sheshi-shell .sheshi-results-layout {
    padding-top: 8px !important;
    padding-bottom: 44px !important;
  }

  body.search.sheshi-shell .sheshi-results-toolbar {
    display: grid !important;
    min-height: 52px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
  }

  body.search.sheshi-shell .sheshi-results-toolbar p {
    grid-column: 1 !important;
    grid-row: 1 !important;
    font-size: 14px !important;
  }

  body.search.sheshi-shell .sheshi-sort-form {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.search.sheshi-shell .sheshi-sort-form label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
  }

  body.search.sheshi-shell .sheshi-sort-form select {
    min-width: 112px !important;
    max-width: 132px !important;
  }

  body.search.sheshi-shell .sheshi-result-card--directory-row {
    min-height: 112px !important;
    grid-template-columns: 36px minmax(0, 1fr) 20px !important;
    gap: 11px !important;
    padding: 11px 0 !important;
  }

  body.search.sheshi-shell .sheshi-result-card--directory-row > .sheshi-category-icon {
    width: 34px !important;
    height: 34px !important;
    padding: 8px !important;
  }

  body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-title-row h2 {
    font-size: 15px !important;
  }

  body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-facts {
    font-size: 11.5px !important;
  }

  body.search.sheshi-shell .sheshi-result-card--directory-row .sheshi-result-description {
    font-size: 12.5px !important;
    -webkit-line-clamp: 1 !important;
  }

  body.search.sheshi-shell .sheshi-load-more {
    width: 100% !important;
  }

  body.search.sheshi-shell .sheshi-results-end-prompt {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  body.search.sheshi-shell .sheshi-empty-state {
    padding-top: 38px !important;
  }

  body.search.sheshi-shell .sheshi-empty-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.search.sheshi-shell .sheshi-empty-category-grid > a {
    min-height: 72px !important;
    grid-template-columns: 28px minmax(0, 1fr) auto !important;
    gap: 7px !important;
    padding: 8px !important;
    font-size: 12.5px !important;
  }

  body.search.sheshi-shell .sheshi-empty-category-grid .sheshi-category-icon {
    width: 28px !important;
    height: 28px !important;
  }

  body.search.sheshi-shell .sheshi-empty-actions {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 8px !important;
  }

  body.search.sheshi-shell .sheshi-empty-actions .sheshi-button,
  body.search.sheshi-shell .sheshi-empty-actions .sheshi-text-link {
    width: 100% !important;
    justify-content: center !important;
  }
}

@media (max-width: 359px) {
  body.search.sheshi-shell .sheshi-empty-category-grid {
    grid-template-columns: 1fr !important;
  }
}
