.tkpf-root,
.tkpf-root * {
  box-sizing: border-box;
}

.tkpf-root {
  width: 100%;
}

.tkpf-mobile-header,
.tkpf-open-container {
  display: none;
}

.tkpf-section {
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid #e6e6e6;
}

.tkpf-section .wpc-filter-title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tkpf-options {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tkpf-options li {
  padding: 0;
  margin: 0;
}

.tkpf-options label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #2d3037;
  cursor: pointer;
  line-height: 1.35;
}

.tkpf-options input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #f43d35;
}

.tkpf-term-name {
  padding-left: calc(var(--tkpf-depth, 0) * 14px);
}

.tkpf-more-button {
  padding: 8px 0 0;
  border: 0;
  background: none;
  color: #f43d35;
  font: inherit;
  cursor: pointer;
}

.tkpf-actions {
  display: grid;
  gap: 10px;
}

.tkpf-submit,
.tkpf-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #f43d35;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.tkpf-submit {
  background: #f43d35;
  color: #fff;
}

.tkpf-reset {
  background: #fff;
  color: #2d3037;
}

.tkpf-root.is-loading,
.category-main.tkpf-is-loading {
  opacity: .55;
  pointer-events: none;
}

.tkpf-chips .wpc-filter-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  list-style: none;
}

.tkpf-chips .wpc-filter-chip {
  margin: 0;
}

.tkpf-chips .wpc-filter-chip a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 4px;
  background: #fff;
  color: #2d3037;
  text-decoration: none;
}

.tkpf-chips .wpc-chip-reset-all a {
  background: #2d3037;
  color: #fff;
}

.tkpf-sorting-form .wpc-orderby-select {
  width: 100%;
  min-height: 44px;
  padding: 8px 38px 8px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  background: #fff;
}

.tkpf-filter-icon {
  position: relative;
  width: 19px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.tkpf-filter-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 19px;
  border-top: 2px solid currentColor;
}

@media (max-width: 768px) {
  .tkpf-open-container {
    display: block;
    margin: 0 0 14px;
  }

  .tkpf-open-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #2d3037;
    border-radius: 5px;
    background: #fff;
    color: #2d3037;
    font: inherit;
    font-weight: 600;
  }

  .tkpf-root {
    position: fixed;
    z-index: 100001;
    inset: 0;
    display: none !important;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(0, 0, 0, .35);
  }

  .tkpf-root.is-open {
    display: block !important;
  }

  .tkpf-root .wpc-filters-main-wrap {
    width: min(420px, 92vw);
    height: 100%;
    margin-left: auto;
    overflow-y: auto;
    background: #fff;
    box-shadow: -12px 0 32px rgba(0, 0, 0, .18);
  }

  .tkpf-root .wpc-filters-widget-content {
    display: block !important;
    padding: 18px;
  }

  .tkpf-mobile-header {
    position: sticky;
    z-index: 2;
    top: -18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -18px -18px 22px;
    padding: 15px 18px;
    border-bottom: 1px solid #e6e6e6;
    background: #fff;
    font-size: 20px;
  }

  .tkpf-close-button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    color: #2d3037;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
  }

  body.tkpf-modal-open {
    overflow: hidden;
  }
}
