.shop_sidebar .tp-category-filters{background:#f5f8fc;border:1px solid #d8e3ef;border-radius:12px;overflow:hidden;color:#172b58}
.tp-category-filters .tp-filter-heading{display:flex;justify-content:space-between;align-items:center;gap:.5rem;background:#172b58;color:#fff;padding:12px}
.tp-category-filters .tp-filter-title{font-size:15px;font-weight:700;color:inherit;margin:0}
.tp-category-filters .tp-filter-heading a{color:#fff;font-size:12px;text-decoration:underline}
.tp-category-filters .tp-filter-group{padding:0 12px;border-top:1px solid #d8e3ef}
.tp-category-filters summary{cursor:pointer;font-size:14px;font-weight:700;padding:12px 0}
.tp-category-filters ul{list-style:none;margin:0 0 10px;padding:0}
.tp-category-filters li{margin:0}
.tp-category-filters li a{display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:start;gap:7px;padding:7px 0;color:#172b58;font-size:13px;line-height:1.4}
.tp-category-filters .tp-filter-check{display:grid;place-items:center;width:15px;height:15px;border:1px solid #6588a4;border-radius:3px;color:#135a87;font-weight:700;font-size:11px}
.tp-category-filters .tp-filter-count{background:#e4edf5;border-radius:12px;padding:0 5px;color:#314969}
.tp-category-filters a:focus-visible,.tp-category-filters summary:focus-visible{outline:2px solid #176d9c;outline-offset:2px}
.tp-category-filters .widget_price_filter{margin-bottom:12px}

.shop_sidebar .tp-category-filters{background:white;border-color:#e3eaf1;border-radius:16px;box-shadow:0 6px 22px #172b5810}
.tp-category-filters .tp-filter-heading{background:white;color:#14284e;padding:16px 14px 13px}
.tp-category-filters .tp-filter-title{color:#14284e;font-size:18px;letter-spacing:-.02em}
.tp-category-filters .tp-filter-heading a{color:#22638c;font-weight:600;text-decoration:none}
.tp-category-filters .tp-filter-group{border-color:#edf1f5;padding:0 14px}
.tp-category-filters .tp-filter-stock{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 12px 10px;padding:9px 10px;border-radius:8px;background:#eef6fb;font-weight:600;font-size:13px;color:#14284e}
.tp-filter-stock span{position:relative;width:30px;height:17px;flex:none;border-radius:12px;background:#9bacc0}
.tp-filter-stock span::before{content:"";position:absolute;left:2px;top:2px;width:13px;height:13px;border-radius:50%;background:white}
.tp-filter-stock[aria-checked=true] span{background:#23678f}
.tp-filter-stock[aria-checked=true] span::before{left:15px}
.tp-category-filters summary{display:flex;justify-content:space-between;align-items:center;list-style:none;gap:8px}
.tp-category-filters summary::-webkit-details-marker{display:none}
.tp-category-filters summary::after{content:"";width:6px;height:6px;border-right:1.5px solid #5b7590;border-bottom:1.5px solid #5b7590;transform:rotate(45deg);margin-right:3px}
.tp-filter-group[open]>summary::after{transform:rotate(225deg)}
.tp-category-filters li a:hover{background:#eef6fb;border-radius:6px}

/* Separate the category filters from the catalog and align the two at the top. */
@media (min-width: 768px) {
    .tp-filtered-category #content > .row > .sidebar-pos { padding-inline-end: 24px; }
}
.tp-filtered-category #content > .row > .content-pos > .top_bar_shop { margin-top: 0; }
.tp-filtered-category #content > .row > .content-pos > .active_filters_ontop:empty { display: none; }

.tp-filtered-category .tp-catalog-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 18px; padding:0; border:0; background:transparent; }
.tp-filtered-category .tp-catalog-toolbar .woocommerce-notices-wrapper:not(:empty) { flex:0 0 100%; }
.tp-filtered-category .tp-catalog-toolbar .woocommerce-notices-wrapper:empty { display:none; }
.tp-filtered-category .tp-catalog-toolbar .woocommerce-result-count { float:none; margin:0 auto 0 0; padding:0; line-height:1.4; }
.tp-filtered-category .tp-catalog-toolbar .shop-ordering { display:flex; align-items:center; gap:10px; float:none; margin:0; padding:0; border:0; background:transparent; }
.tp-filtered-category .tp-catalog-toolbar .shop-ordering li { display:flex; align-items:center; float:none; padding:0; margin:0; border:0; }
.tp-filtered-category .tp-catalog-toolbar .woocommerce-ordering,
.tp-filtered-category .tp-catalog-toolbar .woocommerce-viewing { width:auto; float:none; margin:0; padding:0; border:0; background:transparent; }
.tp-filtered-category .tp-catalog-toolbar select { width:auto; min-height:38px; height:auto; margin:0; padding:7px 27px 7px 10px; border:1px solid #d9e3ef; border-radius:8px; color:#172b58; background-color:#fff; font-size:13px; }
.tp-filtered-category .tp-catalog-toolbar .shop-layout-opts { display:flex; background:transparent; }
.tp-filtered-category .tp-catalog-toolbar .shop-layout-opts .layout-opt { display:grid; place-items:center; width:34px; height:36px; padding:0; border-radius:7px; }
@media (max-width: 600px) {
  .tp-filtered-category .tp-catalog-toolbar .woocommerce-result-count { flex-basis:100%; }
}

/* Keep the Woodstock view buttons in one row and normalize both selectors. */
.tp-filtered-category .tp-catalog-toolbar .shop-ordering .shop-layout-opts {
    display: inline-flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: 2px;
    width: auto;
    height: auto;
    margin: 0;
    padding: 2px;
    border: 1px solid #e3eaf1;
    border-radius: 9px;
}
.tp-filtered-category .tp-catalog-toolbar .shop-ordering .shop-layout-opts a.layout-opt {
    flex: 0 0 32px;
    float: none;
    position: static;
    margin: 0;
    width: 32px;
    height: 32px;
    line-height: 1;
    background: transparent;
}
.tp-filtered-category .tp-catalog-toolbar .shop-layout-opts .layout-opt:has(.active) { background: #eef6fb; }
.tp-filtered-category .tp-catalog-toolbar .woocommerce-viewing select,
.tp-filtered-category .tp-catalog-toolbar .woocommerce-ordering select {
    appearance: none;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    min-height: 38px;
    padding: 8px 31px 8px 11px;
    color: #172b58;
    border-color: #dce7f1;
    border-radius: 9px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23314e73' stroke-linecap='round' stroke-width='1.5' d='m2.5 4.5 3.5 3 3.5-3'/%3E%3C/svg%3E") no-repeat right 10px center;
}
.tp-filtered-category .tp-catalog-toolbar select:focus-visible { outline: 2px solid #23678f; outline-offset: 2px; }
@media (max-width: 430px) {
    .tp-filtered-category .tp-catalog-toolbar .shop-ordering { flex-wrap: wrap; }
}

/* Woodstock sizes the icon glyph boxes independently from their links. */
.tp-filtered-category .tp-catalog-toolbar .shop-ordering .shop-layout-opts a.layout-opt i,
.tp-filtered-category .tp-catalog-toolbar .shop-ordering .shop-layout-opts a.layout-opt i::after {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    line-height: 1;
    background: transparent;
}
.tp-filtered-category .tp-catalog-toolbar .shop-ordering .shop-layout-opts a.layout-opt {
    overflow: hidden;
}
.tp-filtered-category .tp-catalog-toolbar .woocommerce-viewing select,
.tp-filtered-category .tp-catalog-toolbar .woocommerce-ordering select {
    height: 38px;
    box-sizing: border-box;
    border: 1px solid #bdcddd;
    border-radius: 8px;
    cursor: pointer;
}
.tp-filtered-category .tp-catalog-toolbar .woocommerce-viewing select { min-width: 126px; }
.tp-filtered-category .tp-catalog-toolbar .woocommerce-ordering select { min-width: 182px; }
.tp-filtered-category .tp-catalog-toolbar select:hover { border-color: #6686a5; }

/* Keep counts readable alongside the option labels. */
.tp-category-filters li a .tp-filter-count {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 24px;
    min-height: 22px;
    padding: 2px 6px;
    color: #172b58;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

/* Only selected filters have content in their decorative marker. */
.tp-category-filters .tp-filter-check:not(:empty) {
  background: #122556;
  border-color: #122556;
  font-size: 0;
}
.tp-category-filters .tp-filter-check:not(:empty)::after {
  content: "";
  grid-area: 1 / 1;
  box-sizing: border-box;
  width: 5px;
  height: 5px;
  border: 2.5px solid #fff;
  border-radius: 50%;
}
.tp-category-filters .tp-filter-check:not(:empty) {
  position: relative;
}
.tp-category-filters .tp-filter-check:not(:empty)::after {
  position: absolute;
  inset: 0;
  margin: auto;
}
@media (forced-colors: active) {
  .tp-category-filters .tp-filter-check:not(:empty) {
    forced-color-adjust: none;
    background: Highlight;
    border-color: Highlight;
  }
  .tp-category-filters .tp-filter-check:not(:empty)::after {
    border-color: HighlightText;
  }
}
