.gm-catalog-filters {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  color: #252525;
  font-family: HeliosExtC, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.gm-catalog-filters *,
.gm-catalog-filters *::before,
.gm-catalog-filters *::after {
  box-sizing: border-box;
}

.gm-catalog-filters__form {
  margin: 0;
}

.gm-catalog-filters__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.gm-catalog-filters__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gm-catalog-filters__sort {
  position: relative;
  flex: 0 1 220px;
  max-width: 260px;
  min-width: 0;
}

.gm-catalog-filters__dropdown {
  position: relative;
  width: 100%;
}

.gm-catalog-filters__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gm-catalog-filters__label {
  color: #777;
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
}

.gm-catalog-filters button.gm-catalog-filters__trigger,
.gm-catalog-filters button.gm-catalog-filters__toggle,
.gm-catalog-filters button.gm-catalog-filters__apply,
.gm-catalog-filters .gm-catalog-filters__input {
  box-sizing: border-box;
  height: 40px;
  min-height: 40px;
  margin: 0;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #f9f9f9;
  box-shadow: none;
  color: #252525;
  font-family: HeliosExtC, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-transform: none;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.gm-catalog-filters button.gm-catalog-filters__trigger,
.gm-catalog-filters button.gm-catalog-filters__toggle {
  display: inline-flex;
  align-items: center;
  width: 100%;
  padding: 0 40px 0 14px;
  cursor: pointer;
  text-align: left;
}

.gm-catalog-filters button.gm-catalog-filters__trigger:hover,
.gm-catalog-filters button.gm-catalog-filters__toggle:hover,
.gm-catalog-filters button.gm-catalog-filters__trigger:focus,
.gm-catalog-filters button.gm-catalog-filters__toggle:focus {
  background: #fff;
  border-color: #d2d2d2;
  color: #252525;
}

.gm-catalog-filters button.gm-catalog-filters__trigger:focus-visible,
.gm-catalog-filters button.gm-catalog-filters__toggle:focus-visible,
.gm-catalog-filters .gm-catalog-filters__input:focus-visible,
.gm-catalog-filters button.gm-catalog-filters__apply:focus-visible {
  outline: none;
  border-color: #252525;
  box-shadow: inset 0 0 0 1px #252525;
}

.gm-catalog-filters button.gm-catalog-filters__trigger[aria-expanded="true"] {
  background: #fff;
  border-color: #252525;
  color: #252525;
}

.gm-catalog-filters button.gm-catalog-filters__toggle.is-on {
  background: #252525;
  border-color: #252525;
  color: #fff;
}

.gm-catalog-filters button.gm-catalog-filters__toggle.is-on:hover,
.gm-catalog-filters button.gm-catalog-filters__toggle.is-on:focus {
  background: #252525;
  border-color: #252525;
  color: #fff;
}

.gm-catalog-filters__trigger-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-catalog-filters button.gm-catalog-filters__toggle {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  min-width: 148px;
  gap: 10px;
  justify-content: flex-start;
}

.gm-catalog-filters button.gm-catalog-filters__toggle.has-filters:not(.is-on) {
  border-color: #252525;
}

.gm-catalog-filters__filter-icon {
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 3.5h12l-4.2 5.1V13l-3.6-1.8V8.6L2 3.5Z' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M2 3.5h12l-4.2 5.1V13l-3.6-1.8V8.6L2 3.5Z' stroke='black' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gm-catalog-filters__toggle-text {
  flex: none;
  white-space: nowrap;
}

.gm-catalog-filters__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #fff;
  color: #252525;
  font-size: 11px;
  line-height: 18px;
}

.gm-catalog-filters button.gm-catalog-filters__toggle:not(.is-on) .gm-catalog-filters__count {
  background: #252525;
  color: #fff;
}

.gm-catalog-filters__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 10px;
  height: 10px;
  pointer-events: none;
  color: inherit;
  transform: translateY(-50%);
  transition: transform .2s ease;
}

.gm-catalog-filters__chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: .75;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='black' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.gm-catalog-filters button.gm-catalog-filters__trigger,
.gm-catalog-filters button.gm-catalog-filters__toggle {
  position: relative;
}

.gm-catalog-filters button.gm-catalog-filters__trigger[aria-expanded="true"] .gm-catalog-filters__chevron,
.gm-catalog-filters button.gm-catalog-filters__toggle[aria-expanded="true"] .gm-catalog-filters__chevron,
.gm-catalog-filters button.gm-catalog-filters__toggle.is-on .gm-catalog-filters__chevron {
  transform: translateY(-50%) rotate(180deg);
}

.gm-catalog-filters__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: block;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid #757575;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-height: 280px;
  overflow-y: auto;
}

.gm-catalog-filters__menu[hidden] {
  display: none;
}

.gm-catalog-filters__option {
  display: block;
  padding: 10px 14px;
  color: #252525;
  font-family: HeliosExtC, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  text-align: left;
}

.gm-catalog-filters__option:hover,
.gm-catalog-filters__option[aria-selected="true"] {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.gm-catalog-filters__option:focus,
.gm-catalog-filters__option:focus-visible {
  outline: none;
  background: color-mix(in srgb, currentColor 12%, transparent);
}

.gm-catalog-filters .gm-catalog-filters__input {
  width: 100%;
  padding: 0 14px;
  -moz-appearance: textfield;
  appearance: textfield;
}

.gm-catalog-filters .gm-catalog-filters__input::-webkit-outer-spin-button,
.gm-catalog-filters .gm-catalog-filters__input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.gm-catalog-filters .gm-catalog-filters__input:focus {
  outline: none;
  border-color: #252525;
  background: #fff;
}

.gm-catalog-filters button.gm-catalog-filters__apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0 20px;
  border-color: #252525;
  background: #252525;
  color: #fff;
  cursor: pointer;
}

.gm-catalog-filters button.gm-catalog-filters__apply:hover,
.gm-catalog-filters button.gm-catalog-filters__apply:focus {
  background: #fff;
  border-color: #252525;
  color: #252525;
}

.gm-catalog-filters__clear,
.gm-catalog-filters__reset {
  color: #777;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.gm-catalog-filters__clear:hover,
.gm-catalog-filters__clear:focus,
.gm-catalog-filters__reset:hover,
.gm-catalog-filters__reset:focus {
  color: #252525;
  background: none;
}

.gm-catalog-filters__panel {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 260px) minmax(0, 1fr);
  gap: 20px 24px;
  align-items: end;
  margin-top: 16px;
  padding: 20px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e8e8e8;
  color: #252525;
}

.gm-catalog-filters__panel[hidden] {
  display: none;
}

.gm-catalog-filters__price {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gm-catalog-filters__price-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gm-catalog-filters__dash {
  color: #777;
}

.gm-catalog-filters__checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  min-height: 40px;
}

.gm-catalog-filters__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0;
  color: #252525;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
  user-select: none;
}

.gm-catalog-filters__check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #252525;
}

.gm-catalog-filters__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid #e8e8e8;
}

@media (max-width: 1024px) {
  .gm-catalog-filters__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .gm-catalog-filters__checks {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .gm-catalog-filters {
    margin-bottom: 16px;
  }

  .gm-catalog-filters__bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .gm-catalog-filters__sort {
    flex: none;
    max-width: none;
    width: 100%;
  }

  .gm-catalog-filters button.gm-catalog-filters__toggle {
    width: 100%;
    min-width: 0;
  }

  .gm-catalog-filters__clear {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .gm-catalog-filters__panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .gm-catalog-filters__checks {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .gm-catalog-filters button.gm-catalog-filters__apply {
    width: 100%;
  }

  .gm-catalog-filters__menu {
    max-height: 240px;
  }
}
