/* Filtrų antraštė */
.onm-filters__head{display:flex;align-items:center;justify-content:flex-start;
  margin:0 0 10px;padding-bottom:10px;border-bottom:1px solid #E3E9EF;}
.onm-filters__reset{font-size:12.5px;font-weight:600;text-transform:none;letter-spacing:0;
  color:#0871C1;text-decoration:underline;}

/* Kiekvienas valdiklis – susitraukianti grupė */
.widget-area .widget{margin:0 0 6px;padding:0;border-bottom:1px solid #E3E9EF;}
.widget-area .widget .widget-title,
.widget-area .widget .widgettitle{position:relative;margin:0;padding:12px 26px 12px 0;
  font-size:14px;font-weight:700;color:#00356A;text-transform:none;letter-spacing:0;cursor:pointer;
  display:flex;align-items:center;justify-content:space-between;}
.widget-area .widget .widget-title::after,
.widget-area .widget .widgettitle::after{content:"";position:absolute;right:4px;top:50%;
  width:8px;height:8px;margin-top:-6px;border-right:2px solid #8A97A4;border-bottom:2px solid #8A97A4;
  transform:rotate(45deg);transition:transform .2s;}
.widget-area .widget.onm-open .widget-title::after,
.widget-area .widget.onm-open .widgettitle::after{transform:rotate(-135deg);margin-top:-2px;}
.widget-area .widget .onm-body{display:none;padding:0 0 14px;}
.widget-area .widget.onm-open .onm-body{display:block;}
.widget-area .widget .onm-body>ul{margin:0;padding:0 8px 0 0;list-style:none;max-height:300px;overflow-y:auto;overflow-x:hidden;}
.widget-area .widget_product_categories .onm-body>ul{max-height:none;overflow:visible;}
.widget-area .widget .onm-body a{color:#3D4A57;text-decoration:none;}
.widget-area .widget .onm-body a:hover{color:#0871C1;}
.widget-area .widget .onm-body .chosen>a,
.widget-area .widget .onm-body li.current-cat>a{color:#0871C1;font-weight:700;}

/* --- Vieninga eilutė: [+] pavadinimas .......... (kiekis) --- */
.widget-area .widget .onm-body li{list-style:none;position:relative;
  margin:0;padding:5px 26px 5px 0;font-size:13.5px;line-height:1.4;}
.widget-area .widget .onm-body li>a{display:inline;}
.widget-area .widget.woocommerce .onm-body li>.count,
.widget-area .widget .onm-body li>.count{position:absolute;right:0;top:6px;
  margin:0;opacity:1;color:#98A4B0;font-size:12.5px;line-height:1.4;
  font-variant-numeric:tabular-nums;white-space:nowrap;}

/* Kategorijų medis – skleidimo mygtukas kairėje */
.widget-area .widget_product_categories .onm-body li{padding-left:22px;}
.widget-area .widget_product_categories li.cat-parent>.onm-toggle{position:absolute;left:0;top:4px;
  width:16px;height:16px;padding:0;border:0;background:none;cursor:pointer;
  color:#8A97A4;font:600 16px/15px inherit;text-align:left;}
.widget_product_categories li.cat-parent>.onm-toggle:hover{color:#0871C1;}
.widget_product_categories li.cat-parent.onm-expanded>.onm-toggle{color:#0871C1;}
.widget_product_categories li>ul.children{display:none;
  margin:3px -30px 2px 0;padding:0 0 0 6px;border-left:1px solid #E3E9EF;list-style:none;}
.widget_product_categories li.cat-parent.onm-expanded>ul.children{display:block;}

/* Filtrų reikšmės su žymimuoju langeliu – visa eilutė spaudžiama */
.widget-area .widget_layered_nav .onm-body li{padding:4px 30px 4px 0;}
.widget-area .widget_layered_nav .onm-body li>a{display:block;position:relative;padding:3px 0 3px 24px;}
.widget-area .widget_layered_nav .onm-body li>a::before{content:"";position:absolute;left:0;top:4px;
  width:16px;height:16px;box-sizing:border-box;border:1.5px solid #C2CDD8;border-radius:3px;background:#fff;
  transition:background .12s,border-color .12s;}
.widget-area .widget_layered_nav .onm-body li>a:hover::before{border-color:#0871C1;}
.widget-area .widget_layered_nav .onm-body li.chosen>a::before{background:#0871C1;border-color:#0871C1;}
.widget-area .widget_layered_nav .onm-body li.chosen>a::after{content:"";position:absolute;left:6px;top:7px;
  width:4px;height:8px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);}
#secondary.widget-area .widget_layered_nav .onm-body li.chosen>a,
#secondary.widget-area .widget_layered_nav .onm-body li.chosen>a:hover{color:#0871C1;font-weight:600;}
#secondary.widget-area .widget_product_categories .onm-body li.current-cat>a{color:#0871C1;font-weight:700;}

/* Gilesni lygiai – mažesnė įtrauka, kad tilptų pavadinimai */
.widget-area .widget_product_categories ul.children ul.children{padding-left:6px;}
.widget-area .widget_product_categories ul.children li{padding-left:22px;}
.widget-area .widget .onm-body li>a{overflow-wrap:break-word;word-break:normal;hyphens:none;}

/* Platesnė filtrų juosta – telpa trijų lygių kategorijų medis */
@media (min-width:993px){
  #secondary.widget-area{width:23%;}
  #primary.content-area{width:71%;}
}

/* --- Aktyvūs filtrai kaip ženkliukai (chips) --- */
.widget-area .widget_layered_nav_filters .onm-body>ul,
.widget-area .widget_layered_nav_filters ul{display:flex;flex-wrap:wrap;gap:8px;
  margin:0;padding:0;max-height:none;overflow:visible;list-style:none;}
.widget-area .widget_layered_nav_filters .onm-body li,
.widget-area .widget_layered_nav_filters li{position:static;display:block;margin:0;padding:0;border:0;}
.widget-area .widget_layered_nav_filters li>a{display:inline-flex;align-items:center;gap:7px;
  padding:5px 9px 5px 12px;border:1px solid #BFD9EC;border-radius:999px;background:#EAF4FB;
  color:#00356A;font-size:13px;font-weight:600;line-height:1.35;text-decoration:none;transition:background .12s,border-color .12s;}
.widget-area .widget_layered_nav_filters li>a:hover{background:#D8EBF8;border-color:#0871C1;color:#00356A;}
.widget-area .widget_layered_nav_filters li>a::after{content:"\00d7";font-size:17px;line-height:1;opacity:.65;}
.widget-area .widget_layered_nav_filters li>a:hover::after{opacity:1;}
.widget-area .widget_layered_nav_filters li>a::before{content:none;}
.widget-area .widget_layered_nav_filters .count{display:none;}
.widget-area .widget_layered_nav_filters .amount{font-weight:600;}
.widget-area .widget_layered_nav_filters .onm-body{padding-bottom:16px;}
/* temos priskirta akcento spalva ateina iš generuoto stiliaus – kitaip neperrašoma */
#secondary.widget-area .widget_layered_nav_filters li.chosen>a,
#secondary.widget-area .widget_layered_nav_filters li>a{color:#00356A !important;font-weight:600;}
#secondary.widget-area .widget_layered_nav_filters li.chosen>a:hover,
#secondary.widget-area .widget_layered_nav_filters li>a:hover{color:#00356A !important;}
#secondary.widget-area .widget_layered_nav_filters li.chosen::before,
#secondary.widget-area .widget_layered_nav_filters li.chosen::after{content:none;}

/* Tarpas nuo viršaus virš filtrų */
@media (min-width:993px){
  #secondary.widget-area{padding-top:22px;}
}
