/* BK Modern Filters v1: scope is the shop filter panel only. */
#shop-sidebar.bk-modern-filter-panel {
  --bk-filter-accent: #bd4e0b;
  --bk-filter-accent-soft: #fff2e8;
  --bk-filter-ink: #252525;
  --bk-filter-muted: #666;
  --bk-filter-line: #e9e6e2;
  background: #fff !important;
  color: var(--bk-filter-ink);
  box-sizing: border-box;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  max-width: 100%;
  text-align: left;
}
#shop-sidebar.bk-modern-filter-panel .sidebar-inner {
  padding: 0 22px 26px !important;
}
#shop-sidebar.bk-modern-filter-panel .bk-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 20px;
  background: #fff;
  border-bottom: 1px solid var(--bk-filter-line);
  margin-bottom: 22px;
}
#shop-sidebar.bk-modern-filter-panel .bk-filter-heading {
  display: block;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.5px;
  color: var(--bk-filter-ink);
}
#shop-sidebar.bk-modern-filter-panel .bk-filter-caption {
  display: block;
  color: var(--bk-filter-muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}
#shop-sidebar.bk-modern-filter-panel .bk-filter-reset {
  font-size: 13px;
  color: var(--bk-filter-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 10px 0;
  white-space: nowrap;
}
#shop-sidebar.bk-modern-filter-panel .bk-filter-close { display: none !important; }
.bk-modern-filter-dialog #shop-sidebar.bk-modern-filter-panel .bk-filter-close {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--bk-filter-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  background: #fff !important;
  color: var(--bk-filter-ink) !important;
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}
.mfp-wrap.bk-modern-filter-wrap .mfp-close { display: none !important; }
#shop-sidebar.bk-modern-filter-panel .widget {
  background: #fff !important;
  border: 0 !important;
  border-bottom: 1px solid var(--bk-filter-line) !important;
  border-radius: 0 !important;
  padding: 0 0 22px !important;
  margin: 0 0 22px !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
  overflow: visible !important;
}
#shop-sidebar.bk-modern-filter-panel .widget:last-child { border-bottom: 0 !important; margin-bottom: 0 !important; }
#shop-sidebar.bk-modern-filter-panel .widget::before,
#shop-sidebar.bk-modern-filter-panel .widget::after,
#shop-sidebar.bk-modern-filter-panel .widget-title::before,
#shop-sidebar.bk-modern-filter-panel .widget-title::after,
#shop-sidebar.bk-modern-filter-panel .widget > .is-divider { display: none !important; content: none !important; }
#shop-sidebar.bk-modern-filter-panel .widget-title.shop-sidebar {
  display: block !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  color: var(--bk-filter-ink) !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
#shop-sidebar.bk-modern-filter-panel .bk-filter-compact .woocommerce-widget-layered-nav-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  min-width: 0;
  display: flex !important;
  transform: none !important;
  background: none !important;
  transition: none !important;
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item::before,
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item::after,
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item a::before,
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item a::after {
  display: none !important;
  content: none !important;
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item > a,
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item > span:not(.count) {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  padding: 10px 11px !important;
  border: 1px solid var(--bk-filter-line) !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--bk-filter-ink) !important;
  line-height: 1.3 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  margin: 0 !important;
  float: none !important;
  transform: none !important;
  overflow-wrap: anywhere;
  transition: background .15s ease, border-color .15s ease !important;
}
#shop-sidebar.bk-modern-filter-panel .bk-filter-compact .woocommerce-widget-layered-nav-list__item > a {
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 9px 3px !important;
  text-align: center;
  font-size: 13px !important;
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item > a:hover {
  border-color: var(--bk-filter-accent) !important;
  background: var(--bk-filter-accent-soft) !important;
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item.chosen > a,
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item--chosen > a {
  border-color: var(--bk-filter-accent) !important;
  background: var(--bk-filter-accent-soft) !important;
  color: #993a06 !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px var(--bk-filter-accent);
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list .count {
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--bk-filter-muted) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  font-weight: 400 !important;
  white-space: nowrap;
  flex: 0 0 auto;
  opacity: 1 !important;
}
#shop-sidebar.bk-modern-filter-panel .woocommerce-widget-layered-nav-list__item.bk-filter-extra { display: none !important; }
#shop-sidebar.bk-modern-filter-panel .bk-filter-more {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  padding: 8px 0 !important;
  margin: 5px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--bk-filter-accent) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#shop-sidebar.bk-modern-filter-panel .bk-price-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
#shop-sidebar.bk-modern-filter-panel .bk-price-field { min-width: 0; }
#shop-sidebar.bk-modern-filter-panel .bk-price-field label {
  position: static !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--bk-filter-muted);
  margin: 0 0 7px !important;
  padding: 0 !important;
}
#shop-sidebar.bk-modern-filter-panel .bk-price-field input {
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  min-width: 0;
  height: 46px;
  padding: 10px 12px !important;
  margin: 0 !important;
  border: 1px solid #dcd7d2 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--bk-filter-ink) !important;
  font-size: 16px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  text-align: left;
  appearance: textfield;
  -moz-appearance: textfield;
}
#shop-sidebar.bk-modern-filter-panel .bk-price-field input::-webkit-inner-spin-button,
#shop-sidebar.bk-modern-filter-panel .bk-price-field input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .price_slider_wrapper { display: block; }
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .price_slider_amount { order: 0; text-align: left !important; }
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .price_slider {
  order: 1;
  margin: 26px 13px 26px !important;
  height: 5px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #eee9e4 !important;
}
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .ui-slider-range { background: var(--bk-filter-accent) !important; border-radius: 8px !important; }
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .ui-slider-handle {
  width: 24px !important;
  height: 24px !important;
  top: -10px !important;
  margin-left: -12px !important;
  border: 2px solid var(--bk-filter-accent) !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 2px 5px rgba(0,0,0,.12) !important;
  transform: none !important;
  cursor: grab;
}
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .ui-slider-handle::after { content: ''; position: absolute; inset: -10px; }
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .price_label { display: none !important; }
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .button {
  display: block !important;
  float: none !important;
  width: 100%;
  min-height: 44px;
  margin: 0 !important;
  padding: 11px 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--bk-filter-accent) !important;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
#shop-sidebar.bk-modern-filter-panel .widget_price_filter .button:hover { background: #a64308 !important; }
#shop-sidebar.bk-modern-filter-panel a:focus-visible,
#shop-sidebar.bk-modern-filter-panel button:focus-visible,
#shop-sidebar.bk-modern-filter-panel input:focus-visible,
#shop-sidebar.bk-modern-filter-panel .ui-slider-handle:focus-visible {
  outline: 2px solid var(--bk-filter-accent) !important;
  outline-offset: 3px;
}
.mfp-wrap .mfp-content.bk-modern-filter-dialog {
  width: 400px !important;
  max-width: calc(100vw - 32px) !important;
  background: #fff !important;
}
.mfp-wrap .mfp-content.bk-modern-filter-dialog #shop-sidebar { width: 100% !important; }
body.bk-modern-filters-enabled .category-filter-row .filter-button {
  border-radius: 10px !important;
  background: #bd4e0b !important;
  box-shadow: none !important;
  transform: none !important;
  min-height: 42px;
  font-size: 13px;
  letter-spacing: 0;
}
@media (max-width: 380px) {
  #shop-sidebar.bk-modern-filter-panel .sidebar-inner { padding-left: 16px !important; padding-right: 16px !important; }
  #shop-sidebar.bk-modern-filter-panel .bk-filter-compact .woocommerce-widget-layered-nav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  #shop-sidebar.bk-modern-filter-panel * { transition: none !important; }
}
