/* TopTools.kz — availability filter in the category toolbar */

#product-category .tt-toolbar-right {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

#product-category .tt-stock-filter-toggle {
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  color: #344861;
  background: #ffffff;
  border: 1px solid #dbe7f2;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

#product-category .tt-stock-filter-toggle:hover,
#product-category .tt-stock-filter-toggle:focus {
  color: #173d2a;
  background: #f6fffa;
  border-color: #9ed9b8;
  box-shadow: 0 5px 14px rgba(26, 145, 85, .10);
  outline: none;
}

#product-category .tt-stock-filter-toggle__control {
  position: relative;
  width: 34px;
  height: 20px;
  flex: 0 0 34px;
  display: block;
  background: #cad6e2;
  border-radius: 999px;
  transition: background .18s ease;
}

#product-category .tt-stock-filter-toggle__control > span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 35, 56, .24);
  transition: transform .18s ease;
}

#product-category .tt-stock-filter-toggle.is-active {
  color: #08753f;
  background: #f1fff7;
  border-color: #92d8b1;
}

#product-category .tt-stock-filter-toggle.is-active .tt-stock-filter-toggle__control {
  background: #19a760;
}

#product-category .tt-stock-filter-toggle.is-active .tt-stock-filter-toggle__control > span {
  transform: translateX(14px);
}

@media (max-width: 991px) {
  #product-category .tt-stock-filter-toggle {
    min-width: 174px;
  }
}

@media (max-width: 767px) {
  #product-category .tt-stock-filter-toggle {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 44px !important;
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
  }
}
