/* Shared layout for server-rendered GET filters in legacy and current sections. */
.pill,
.filter-pill,
.service-tab,
.solution-filter,
.case-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.15;
}

.filter-pill__label {
  min-width: 0;
}

.filter-pill {
  min-height: 38px;
  padding: 0 13px;
  border-color: transparent;
  border-radius: 11px;
  color: #3f4d5a;
  background: #f1f4f7;
  font-size: 12.5px;
  font-weight: 720;
  box-shadow: none;
}

.filter-pill:hover:not(:disabled) {
  border-color: #d7e4f2;
  color: var(--blue);
  background: #edf4ff;
}

.filter-pill.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(23, 105, 255, .16);
}

.filter-pill .filter-pill__count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #607184;
  background: #edf3f8;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  opacity: 1;
}

.filter-pill.is-active .filter-pill__count {
  color: #fff;
  background: rgba(255, 255, 255, .2);
}

.pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.pills,
.solution-filters,
.service-tabs,
.case-filters,
.blog-filters,
.product-filter-tabs {
  min-width: 0;
}

.solution-filters > .catalog-facet,
.service-tabs > .catalog-facet,
.case-filters > .catalog-facet,
.blog-filters > .catalog-facet,
.product-filter-tabs > .catalog-facet {
  width: 100%;
  min-width: 0;
}

.reviews-toolbar > .catalog-facet:first-child {
  min-width: 0;
  flex: 1 1 520px;
}

.reviews-toolbar > .catalog-facet:last-child {
  flex: 0 0 auto;
}

.catalog-toolbar .pills {
  min-width: 0;
  flex: 1 1 auto;
}

.catalog-toolbar > .text-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

.catalog-sort {
  display: grid;
  min-width: 184px;
  gap: 0;
}

.catalog-sort label {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.catalog-sort .catalog-facet__label {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.catalog-sort select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  background-color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.catalog-sort select:focus {
  border-color: #9bbdff;
  box-shadow: 0 0 0 3px rgba(23, 105, 255, .12);
}

.catalog-heading-actions {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.catalog-total {
  display: inline-flex;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  color: #738292;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.catalog-total .catalog-total__label {
  font-weight: 500;
}

.catalog-total strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
}

.product-sortbar {
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.product-sortbar .catalog-total {
  margin-right: auto;
}

.case-toolbar .catalog-heading-actions {
  flex: 0 0 auto;
}

.service-catalog-meta .catalog-heading-actions {
  margin-left: auto;
}

/* Unified sidebar filters. */
.product-catalog-layout {
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 26px;
}

.product-filter-sidebar,
.service-filter {
  display: block;
  align-self: start;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(17, 24, 32, .035);
}

.catalog-filters-panel {
  display: grid;
  gap: 0;
}

.catalog-filters-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fb;
}

.catalog-filters-panel__head strong {
  color: var(--ink);
  font-size: 15px;
}

.catalog-filters-panel__head span {
  color: #82909d;
  font-size: 10px;
}

.catalog-filter-group {
  min-width: 0;
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
}

.catalog-filter-group + .catalog-filter-group {
  padding-top: 17px;
}

.catalog-filter-group legend,
.catalog-filter-group .catalog-facet__label {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.catalog-filter-group fieldset {
  gap: 10px;
}

.catalog-check,
.service-filter .catalog-check {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #4b5966;
  font-size: 13px;
  cursor: pointer;
}

.catalog-check input,
.service-filter .catalog-check input {
  display: grid;
  inline-size: 18px;
  block-size: 18px;
  flex: 0 0 auto;
  margin: 0;
  appearance: none;
  place-items: center;
  border: 1px solid #bdc9d4;
  border-radius: 5px;
  background: #fff;
}

.catalog-check input::before {
  width: 8px;
  height: 5px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .12s ease;
}

.catalog-check input:checked {
  border-color: var(--blue);
  background: var(--blue);
}

.catalog-check input:checked::before {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.catalog-check span {
  align-items: center;
}

.catalog-check small {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #738292;
  background: #f0f4f7;
  font-size: 10px;
  opacity: 1;
}

.catalog-filter-group select,
.catalog-filter-group input[type="number"] {
  min-height: 43px;
  border-color: #d8e1e9;
  border-radius: 11px;
  color: #364451;
  background-color: #f9fbfc;
  font-size: 13px;
}

.catalog-filter-group--range_min {
  padding-bottom: 9px;
  border-bottom: 0;
}

.catalog-filter-group--range_max {
  padding-top: 9px !important;
}

.catalog-filter-actions {
  display: grid;
  gap: 9px;
  padding: 16px 18px 18px;
  background: #fff;
}

.catalog-filter-actions .btn {
  min-height: 44px;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(23, 105, 255, .16);
}

.catalog-filter-buttons .filter-pill {
  width: 100%;
  justify-content: space-between;
  background: #f5f7f9;
}

.catalog-filter-buttons .filter-pill.is-active {
  background: var(--blue);
}

.page--faq .catalog-filters-panel__head {
  display: none;
}

@media (max-width: 980px) {
  .product-catalog-layout {
    grid-template-columns: 1fr;
  }

  .product-filter-sidebar {
    display: block;
  }
}

@media (max-width: 800px) {
  .pills,
  .solution-filters,
  .service-tabs,
  .case-filters,
  .product-filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
  }

  .pills > *,
  .solution-filters .filter-pill,
  .service-tabs .filter-pill,
  .case-filters .filter-pill,
  .product-filter-tabs .filter-pill {
    flex: 0 0 auto;
  }

  .catalog-sort,
  .catalog-sort label {
    width: 100%;
  }

  .product-catalog-layout {
    grid-template-columns: 1fr;
  }

  .product-filter-sidebar {
    display: block;
  }

  .catalog-heading-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .service-catalog-meta .catalog-heading-actions {
    margin-left: 0;
  }

  .catalog-heading-actions .catalog-sort {
    width: auto;
    flex: 1 1 238px;
  }
}

@media (max-width: 520px) {
  .catalog-heading-actions {
    align-items: flex-start;
    gap: 10px;
  }

  .catalog-heading-actions .catalog-total,
  .product-sortbar .catalog-total {
    min-height: 0;
  }

  .catalog-heading-actions .catalog-sort {
    width: 100%;
  }
}

@media (min-width: 521px) and (max-width: 640px) {
  .product-sortbar .catalog-total {
    min-height: 0;
  }
}
