.wrpf-filters {
  position: relative;
  padding: 6px 6px 12px;
  color: #5b2457;
  font-family: inherit;
}

#product-grid {
  position: relative;
}

.wrpf-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  background: rgba(255, 255, 255, 0.72);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.wrpf-loading-spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(91, 36, 87, 0.16);
  border-top-color: #5b2457;
  border-radius: 50%;
  animation: wrpf-spin 0.7s linear infinite;
}

.wrpf-filters .wrpf-loading-spinner {
  display: none;
}

.wrpf-loading-active .wrpf-loading-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wrpf-loading-active > :not(.wrpf-loading-overlay) {
  pointer-events: none;
}

@keyframes wrpf-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.wrpf-title {
  margin: 0 0 18px;
  color: #5b2457;
  font-size: 28px;
  font-weight: 700;
}

.wrpf-filters-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wrpf-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wrpf-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5b2457;
}

.wrpf-section-head h5 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.wrpf-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.wrpf-section-toggle:focus-visible {
  outline: 2px solid rgba(91, 36, 87, 0.18);
  outline-offset: 2px;
}

.wrpf-section-mark {
  display: inline-block;
  min-width: 16px;
  font-size: 29px;
  line-height: 0.8;
  font-weight: 700;
  text-align: center;
  color: #5b2457;
}

.wrpf-select,
.wrpf-price-number {
  width: 100%;
  height: 30px;
  border: 1px solid #8a8a8a;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 14px;
  padding: 4px 8px;
}

.wrpf-price-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wrpf-price-track {
  position: relative;
  height: 26px;
}

.wrpf-price-track::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 2px;
  background: #111;
}

.wrpf-price-progress {
  position: absolute;
  top: 11px;
  height: 2px;
  background: #111;
}

.wrpf-range {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.wrpf-range::-webkit-slider-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
}

.wrpf-range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border: 1px solid #111;
  background: #fff;
  cursor: pointer;
  border-radius: 0;
}

.wrpf-range::-webkit-slider-runnable-track,
.wrpf-range::-moz-range-track {
  background: transparent;
}

.wrpf-price-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wrpf-currency,
.wrpf-separator {
  color: #5b2457;
  font-size: 16px;
}

.wrpf-price-number {
  width: 78px;
  text-align: left;
  font-size: 15px;
  padding: 4px 6px;
}

.wrpf-options-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wrpf-option-item {
  margin: 0;
}

.wrpf-option-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5b2457;
  font-size: 16px;
  cursor: pointer;
}

.wrpf-option-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease,
    box-shadow 0.18s ease;
}

.wrpf-option-label:hover input[type="checkbox"] {
  border-color: #9a9a9a;
}

.wrpf-option-label input[type="checkbox"]:checked {
  border-color: #8b8b8b;
  background: #f5f5f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23444444' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px 11px;
  box-shadow: none;
}

.wrpf-option-label input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120, 120, 120, 0.18);
}

.wrpf-options-list-radio .wrpf-option-label input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  border: 1px solid #cfcfcf;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.wrpf-options-list-radio .wrpf-option-label:hover input[type="radio"] {
  border-color: #9a9a9a;
}

.wrpf-options-list-radio .wrpf-option-label input[type="radio"]:checked {
  border-color: #8b8b8b;
  box-shadow: inset 0 0 0 4px #fff;
  background: #8b8b8b;
}

.wrpf-options-list-radio .wrpf-option-label input[type="radio"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(120, 120, 120, 0.18), inset 0 0 0 4px #fff;
}

.wrpf-scroll-area {
  max-height: 220px;
  overflow-y: auto;
  padding-right: 6px;
}

.wrpf-scroll-area::-webkit-scrollbar {
  width: 10px;
}

.wrpf-scroll-area::-webkit-scrollbar-track {
  background: #dadada;
}

.wrpf-scroll-area::-webkit-scrollbar-thumb {
  background: #6a6a6a;
  border: 1px solid #3b3b3b;
}

.wrpf-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.wrpf-submit {
  display: none;
}

.wrpf-reset {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: #5b2457;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.wrpf-reset:hover {
  color: #6d2b68;
}

.wrpf-reset.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.wrpf-reset-icon {
  font-size: 15px;
  line-height: 1;
}

.wrpf-reset-text {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .wrpf-title {
    font-size: 24px;
  }
}
