.xinyue-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.xinyue-active-filters a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1.25;
  text-decoration: none !important;
}
.xinyue-active-filters .xinyue-filter-reset {
  color: #fff !important;
  background: #6333cc;
}
.xinyue-active-filters .xinyue-filter-reset:hover {
  color: #fff !important;
  background: #5125b7;
}
.xinyue-active-filters .xinyue-filter-chip {
  gap: 8px;
  color: #222 !important;
  background: #f0f0f0;
}
.xinyue-active-filters .xinyue-filter-chip:hover {
  background: #e6e6e6;
}
.xinyue-active-filters .xinyue-filter-chip-remove {
  color: #333;
  font-size: 20px;
  line-height: 1;
}
@media (max-width: 767px) {
  .xinyue-active-filters {
    gap: 6px;
    margin-bottom: 8px;
  }
  .xinyue-active-filters a {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
  }
}/* Keep filter labels and selected tags readable in black. */
body .wpc-filters-main-wrap .wpc-filter-link,
body .wpc-filters-main-wrap .wpc-filter-link:hover,
body .wpc-filters-main-wrap .wpc-filter-link:focus,
body .wpc-filters-main-wrap .wpc-filter-label-wrapper,
body .wpc-filters-main-wrap .wpc-filter-label-wrapper a,
body .wpc-filters-main-wrap .wpc-filter-label-wrapper span,
body .wpc-filters-main-wrap .wpc-term-item > label,
body .wpc-filters-main-wrap .wpc-term-item > label span,
body .wpc-filters-main-wrap .wpc-filters-labels .wpc-label-item,
body .wpc-filters-main-wrap .wpc-filters-labels .wpc-label-item a,
body .wpc-filters-main-wrap .wpc-filters-labels .wpc-label-item span,
body .xinyue-active-filters .xinyue-filter-chip,
body .xinyue-active-filters .xinyue-filter-chip * {
  color: #000 !important;
}
/* Selected WPC category/size labels should stay black too. */
body .wpc-filters-main-wrap .wpc-term-item.wpc-term-selected,
body .wpc-filters-main-wrap .wpc-term-item.wpc-term-selected label,
body .wpc-filters-main-wrap .wpc-term-item.wpc-term-selected label span,
body .wpc-filters-main-wrap .wpc-term-item input:checked + label,
body .wpc-filters-main-wrap .wpc-term-item input:checked + label span,
body .wpc-filters-main-wrap .wpc-term-item.wpc-selected label,
body .wpc-filters-main-wrap .wpc-term-item.wpc-selected label span,
body .wpc-filters-main-wrap .wpc-filters-labels .wpc-term-selected,
body .wpc-filters-main-wrap .wpc-filters-labels .wpc-term-selected a,
body .wpc-filters-main-wrap .wpc-filters-labels .wpc-term-selected span {
  color: #000 !important;
}
/* Higher specificity for the filter plugin's checked state. */
body .wpc-filters-main-wrap .wpc-filter-layout-checkboxes .wpc-term-item.wpc-term-selected .wpc-filter-link,
body .wpc-filters-main-wrap .wpc-filter-layout-checkboxes .wpc-term-item.wpc-term-selected label,
body .wpc-filters-main-wrap .wpc-filter-layout-checkboxes .wpc-term-item.wpc-term-selected label span,
body .wpc-filters-main-wrap .wpc-filter-layout-checkboxes .wpc-term-item input:checked + label .wpc-filter-link {
  color: #000 !important;
}
/* Selected category IDs can receive a theme-specific accent color. */
body .wpc-filters-main-wrap #wpc-term-taxonomy-product_cat-76 .wpc-filter-link,
body .wpc-filters-main-wrap #wpc-term-taxonomy-product_cat-87 .wpc-filter-link,
body .wpc-filters-main-wrap #wpc-term-taxonomy-product_cat-111 .wpc-filter-link,
body .wpc-filters-main-wrap #wpc-term-taxonomy-product_cat-115 .wpc-filter-link {
  color: #000 !important;
}

/* Match the template's round color swatches while keeping each checkbox accessible. */
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-filters-ul-list {
  display: grid !important;
  grid-template-columns: repeat(6, 26px);
  column-gap: 10px;
  row-gap: 10px;
  justify-content: start;
  margin: 14px 0 0 !important;
  padding: 0 !important;
}
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-label-item {
  box-sizing: border-box;
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-term-item-content-wrapper {
  position: relative;
  width: 26px;
  height: 26px;
}
body .wpc-filters-main-wrap .wpc-filter-pa_color input.wpc-label-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
}
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-term-item-content-wrapper > label {
  position: relative;
  display: block !important;
  box-sizing: border-box !important;
  width: 26px !important;
  height: 26px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible;
  border: 1px solid #dedede !important;
  border-radius: 50% !important;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-filter-label-wrapper,
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-filter-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-127 label { background: #111 !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-128 label { background: #123cff !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-129 label { background: #dda91a !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-130 label { background: #858585 !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-131 label { background: #008b12 !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-132 label { background: #ff9800 !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-133 label { background: #ffc0cb !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-134 label { background: #e00000 !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-135 label { background: #bdbdbd !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-136 label { background: #f7f8ec !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-137 label { background: #fff !important; }
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-138 label { background: #fff000 !important; }
body .wpc-filters-main-wrap .wpc-filter-pa_color input:checked + label {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px #333;
}
body .wpc-filters-main-wrap .wpc-filter-pa_color input:checked + label::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-129 input:checked + label::after,
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-130 input:checked + label::after,
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-133 input:checked + label::after,
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-135 input:checked + label::after,
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-136 input:checked + label::after,
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-137 input:checked + label::after,
body .wpc-filters-main-wrap #wpc-term-taxonomy-pa_color-138 input:checked + label::after {
  color: #222;
  text-shadow: 0 1px 2px rgba(255, 255, 255, .7);
}
body .wpc-filters-main-wrap .wpc-filter-pa_color input:focus-visible + label {
  outline: 2px solid #222;
  outline-offset: 3px;
}
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-term-item-content-wrapper > label:hover {
  transform: scale(1.08);
}
body .wpc-filters-main-wrap .wpc-filter-pa_color .wpc-label-item[hidden] { display: none !important; }
/* Center rating stars in product cards on shop and category archive grids. */
body.woocommerce.archive ul.products:not(.products-list-view) li.product .star-rating {
  display: table !important;
  float: none !important;
  margin: 8px auto !important;
}
