.vpf-filters {
  --vpf-accent: #E60E0E;
  font-family: "Montserrat", sans-serif;
  color: #24262B;
}
.vpf-filters * {
  box-sizing: border-box;
}
.vpf-filters__form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.vpf-filters__clear {
  align-self: flex-start;
  display: none;
}
.vpf-filters__clear.is-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 18px;
  border: 1px solid #E2E6E8;
  border-radius: 6px;
  background: #fff;
  color: #24262B;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vpf-filters__clear::before {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.vpf-filters__clear:hover {
  border-color: var(--vpf-accent);
  color: var(--vpf-accent);
}

.vpf-filter__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #24262B;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.vpf-filter__title::after {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background: #24262B;
  transition: transform 0.2s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat center/contain;
}
.vpf-filter.is-collapsed .vpf-filter__title::after {
  transform: rotate(-90deg);
}
.vpf-filter.is-collapsed .vpf-filter__list,
.vpf-filter.is-collapsed .vpf-select {
  display: none;
}
.vpf-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.vpf-filter__list::-webkit-scrollbar {
  width: 5px;
}
.vpf-filter__list::-webkit-scrollbar-thumb {
  background: #AAAAAA;
  border-radius: 5px;
}
.vpf-filter__item {
  margin: 0;
  padding-right: 12px;
}

.vpf-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.3;
  color: #24262B;
}
.vpf-choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vpf-choice__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #AAAAAA;
  border-radius: 5px;
  background: #fff;
  transition: all 0.15s ease;
  position: relative;
}
.vpf-choice--radio .vpf-choice__box {
  border-radius: 50%;
}
.vpf-choice__label {
  flex: 1;
}
.vpf-choice__count {
  color: #AAAAAA;
  font-size: 14px;
}
.vpf-choice.is-checked, input:checked + .vpf-choice {
  color: var(--vpf-accent);
}
input:checked ~ .vpf-choice__box, .vpf-choice.is-checked .vpf-choice__box {
  background: var(--vpf-accent);
  border-color: var(--vpf-accent);
}
input:checked ~ .vpf-choice__box::after, .vpf-choice.is-checked .vpf-choice__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center/14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center/14px;
}
.vpf-choice--radio.is-checked .vpf-choice__box::after, .vpf-choice--radio input:checked ~ .vpf-choice__box::after {
  inset: 4px;
  background: #fff;
  border-radius: 50%;
  -webkit-mask: none;
  mask: none;
}
.vpf-choice.is-checked .vpf-choice__count, input:checked ~ .vpf-choice__count {
  color: var(--vpf-accent);
}
.vpf-choice:hover .vpf-choice__box {
  border-color: var(--vpf-accent);
}
.vpf-choice.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.vpf-select {
  width: 100%;
  border: 1px solid #E2E6E8;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  color: #24262B;
  background: #fff;
}
.vpf-select:focus {
  outline: none;
  border-color: var(--vpf-accent);
}
.vpf-select[multiple] {
  padding: 6px;
}
.vpf-select[multiple] option {
  padding: 6px 8px;
  border-radius: 4px;
}

body.vpf-loading ul.products {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
body.vpf-loading .vpf-filters {
  position: relative;
}
body.vpf-loading .vpf-filters::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
}

.vpf-no-products {
  margin-top: 16px;
}

/* "In stock only" toggle in the shop header (top of the products). */
.vpf-stock-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}
.vpf-stock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  color: #24262B;
  user-select: none;
  white-space: nowrap;
}
.vpf-stock-toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.vpf-stock-toggle__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #AAAAAA;
  border-radius: 5px;
  background: #fff;
  transition: all 0.15s ease;
  position: relative;
}
.vpf-stock-toggle:hover .vpf-stock-toggle__box {
  border-color: #E60E0E;
}
.vpf-stock-toggle__input:checked ~ .vpf-stock-toggle__box {
  background: #E60E0E;
  border-color: #E60E0E;
}
.vpf-stock-toggle__input:checked ~ .vpf-stock-toggle__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center/14px;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='currentColor' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center/14px;
}
.vpf-stock-toggle__input:checked ~ .vpf-stock-toggle__label {
  color: #E60E0E;
}
.vpf-stock-toggle__input:focus-visible ~ .vpf-stock-toggle__box {
  outline: 2px solid #E60E0E;
  outline-offset: 2px;
}
