.vhaf-root {
  margin-bottom: 24px;
  padding: 0;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 0;
}

.vhaf-root.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.vhaf-header {
  padding: 20px 18px 0;
}

.vhaf-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.vhaf-heading__icon,
.vhaf-mobile-trigger__icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: inline-block;
}

.vhaf-heading__icon::before,
.vhaf-heading__icon::after,
.vhaf-mobile-trigger__icon::before,
.vhaf-mobile-trigger__icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.vhaf-heading__icon::before,
.vhaf-mobile-trigger__icon::before {
  top: 3px;
  box-shadow: 0 6px 0 currentColor, 0 12px 0 currentColor;
}

.vhaf-heading__icon::after,
.vhaf-mobile-trigger__icon::after {
  width: 6px;
  height: 6px;
  top: 1px;
  left: 1px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: #fff;
  box-shadow: 6px 6px 0 -2px #fff, 6px 6px 0 0 currentColor, 12px 12px 0 -2px #fff, 12px 12px 0 0 currentColor;
}

.vhaf-groups {
  padding: 0 18px;
}

.vhaf-group {
  padding: 24px 0 20px;
  border-top: 1px solid #ececec;
}

.vhaf-group:first-child {
  border-top: 0;
}

.vhaf-group__title {
  margin-bottom: 14px;
  color: #161616;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
}

.vhaf-group__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vhaf-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #161616;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.vhaf-option input:disabled + span {
  color: #a8a8a8;
  cursor: default;
}

.vhaf-option input:disabled {
  accent-color: #a8a8a8;
  cursor: default;
}

.vhaf-option input:checked + span,
.vhaf-option:hover{
  font-weight: 600;
  color: #db5a2b;
}
.vhaf-option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #333333;
}

.vhaf-group.is-collapsed .vhaf-option--extra {
  display: none;
}

.vhaf-group__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #1f1f1f;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.vhaf-group__toggle-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.vhaf-group.is-expanded .vhaf-group__toggle-icon {
  transform: rotate(-135deg) translateY(-1px);
}

.vhaf-footer {
  padding: 8px 18px ;
  border-top: 1px solid #ececec;
}

.vhaf-clear {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #db5a2b;
  background: #db5a2b;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 50px;
  margin-bottom: 0;
}

.vhaf-clear:disabled {
  opacity: 0.5;
  cursor: default;
}

.vhaf-status {
  margin-top: 10px;
  color: #4c4c4c;
  font-size: 14px;
  line-height: 1.5;
}

.vhaf-results {
  min-height: 40px;
}

.vhaf-mobile-trigger-wrap,
.vhaf-mobile {
  display: none;
}

@media (max-width: 849px) {
  .vhaf-mobile-trigger-wrap {
    display: block;
    margin-bottom: 18px;
  }

  .vhaf-mobile-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #db5a2b;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
  }

  .vhaf-mobile-trigger__icon {
    color: #222222;
  }

  .vhaf-mobile {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
  }

  .vhaf-mobile.is-open {
    visibility: visible;
    pointer-events: auto;
  }

  .vhaf-mobile__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .vhaf-mobile.is-open .vhaf-mobile__backdrop {
    opacity: 1;
  }

  .vhaf-mobile__drawer {
    position: absolute;
    top: 0;
    left: 0;
    width: min(86vw, 340px);
    height: 100%;
    background: #ffffff;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.12);
  }

  .vhaf-mobile.is-open .vhaf-mobile__drawer {
    transform: translateX(0);
  }

  .vhaf-mobile__top {
    display: flex;
    justify-content: flex-end;
    padding: 10px 12px 0;
  }

  .vhaf-mobile__close {
    position: relative;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .vhaf-mobile__close span {
    position: absolute;
    top: 13px;
    left: 5px;
    width: 18px;
    height: 2px;
    background: #222222;
  }

  .vhaf-mobile__close span:first-child {
    transform: rotate(45deg);
  }

  .vhaf-mobile__close span:last-child {
    transform: rotate(-45deg);
  }

  .vhaf-root--mobile {
    margin-bottom: 0;
    border: 0;
  }

  .vhaf-root--mobile .vhaf-header {
    padding-top: 6px;
  }

  .vhaf-heading {
    font-size: 16px;
  }

  .vhaf-group__title,
  .vhaf-option,
  .vhaf-group__toggle,
  .vhaf-clear {
    font-size: 14px;
  }

  body.vhaf-mobile-open {
    overflow: hidden;
  }
}