/* GAINVO Storefront v0.10.67 — Search controls theme-parity fix
 * Removes the segmented-control card below the search field and forces the
 * same free-flow horizontal behaviour in light and dark themes.
 */

/* Search result type rail: no enclosing card, no grid, no fixed equal columns. */
.search-screen-v4 .search-kind-row,
html[data-theme="dark"] .search-screen-v4 .search-kind-row,
html:not([data-theme="dark"]) .search-screen-v4 .search-kind-row,
body.dark .search-screen-v4 .search-kind-row{
  display:flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  min-height:36px!important;
  margin:8px 0 0!important;
  padding:0 1px 2px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-inline:contain!important;
  scrollbar-width:none!important;
  scroll-snap-type:x proximity!important;
  -webkit-overflow-scrolling:touch!important;
}
.search-screen-v4 .search-kind-row::-webkit-scrollbar{display:none!important}

/* Each option sizes itself to its content so labels never collapse/truncate. */
.search-screen-v4 .search-kind,
html[data-theme="dark"] .search-screen-v4 .search-kind,
html:not([data-theme="dark"]) .search-screen-v4 .search-kind,
body.dark .search-screen-v4 .search-kind{
  position:relative!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:6px!important;
  width:auto!important;
  min-width:max-content!important;
  min-height:34px!important;
  padding:0 11px!important;
  border:1px solid transparent!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  font-size:11px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
  scroll-snap-align:start!important;
}
.search-screen-v4 .search-kind::after{display:none!important}
.search-screen-v4 .search-kind .search-kind-label,
.search-screen-v4 .search-kind>span:not(.search-kind-count){
  display:inline!important;
  width:auto!important;
  min-width:0!important;
  height:auto!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:inherit!important;
  font:inherit!important;
  line-height:1!important;
  white-space:nowrap!important;
  overflow:visible!important;
  text-overflow:clip!important;
}
.search-screen-v4 .search-kind .search-kind-count{
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:20px!important;
  height:20px!important;
  padding:0 5px!important;
  border-radius:999px!important;
  font-size:8.5px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:none!important;
}

/* Light theme. */
html:not([data-theme="dark"]) .search-screen-v4 .search-kind{color:#5f7182!important}
html:not([data-theme="dark"]) .search-screen-v4 .search-kind .search-kind-count{
  background:#e8eef2!important;
  color:#5a6d7e!important;
}
html:not([data-theme="dark"]) .search-screen-v4 .search-kind.active{
  border-color:#9fd9cf!important;
  background:#edf9f6!important;
  color:#087e71!important;
}
html:not([data-theme="dark"]) .search-screen-v4 .search-kind.active .search-kind-count{
  background:#0d9b89!important;
  color:#fff!important;
}

/* Dark theme uses identical geometry — only colours differ. */
html[data-theme="dark"] .search-screen-v4 .search-kind,
body.dark .search-screen-v4 .search-kind{color:#a8b6c0!important}
html[data-theme="dark"] .search-screen-v4 .search-kind .search-kind-count,
body.dark .search-screen-v4 .search-kind .search-kind-count{
  background:#1d2b34!important;
  color:#b7c4cc!important;
}
html[data-theme="dark"] .search-screen-v4 .search-kind.active,
body.dark .search-screen-v4 .search-kind.active{
  border-color:#176d63!important;
  background:#103a35!important;
  color:#72dfcf!important;
}
html[data-theme="dark"] .search-screen-v4 .search-kind.active .search-kind-count,
body.dark .search-screen-v4 .search-kind.active .search-kind-count{
  background:#0b9a87!important;
  color:#fff!important;
}

/* Filter row stays open and free-flowing below the tabs. */
.search-screen-v4 .search-category-row,
html[data-theme="dark"] .search-screen-v4 .search-category-row,
html:not([data-theme="dark"]) .search-screen-v4 .search-category-row,
body.dark .search-screen-v4 .search-category-row{
  display:block!important;
  width:100%!important;
  margin:6px 0 0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
.search-screen-v4 .search-refine-bar{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  width:100%!important;
  min-width:0!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-inline:contain!important;
  scroll-snap-type:x proximity!important;
}
.search-screen-v4 .search-refine-bar::-webkit-scrollbar{display:none!important}
.search-screen-v4 .search-refine-trigger,
.search-screen-v4 .search-active-chip{
  flex:0 0 auto!important;
  width:auto!important;
  min-width:max-content!important;
  white-space:nowrap!important;
}

@media(max-width:359px){
  .search-screen-v4 .search-kind{min-height:32px!important;padding-inline:10px!important;font-size:10.5px!important}
  .search-screen-v4 .search-kind .search-kind-count{min-width:18px!important;height:18px!important;font-size:8px!important}
}
