/* Shop filters without reload (inc/shop-ajax.php)
   noUiSlider + widget-price + meta-filter-shop CSS copied from the Ecomus styles.css */

.noUi-target,
.noUi-target * {
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -ms-touch-action: none;
  touch-action: none;
  -ms-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.noUi-target {
  position: relative;
  direction: ltr;
}

.noUi-base,
.noUi-connects {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.noUi-connects {
  overflow: hidden;
  z-index: 0;
}

.noUi-connect,
.noUi-origin {
  will-change: transform;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  -ms-transform-origin: 0 0;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}

html:not([dir=rtl]) .noUi-horizontal .noUi-origin {
  left: auto;
  right: 0;
}

.noUi-vertical .noUi-origin {
  width: 0;
}

.noUi-horizontal .noUi-origin {
  height: 0;
}

.noUi-handle {
  position: absolute;
}

.noUi-state-tap .noUi-connect,
.noUi-state-tap .noUi-origin {
  -webkit-transition: transform 0.3s;
  transition: transform 0.3s;
}

.noUi-state-drag * {
  cursor: inherit !important;
}

.noUi-horizontal {
  height: 18px;
}

.noUi-horizontal .noUi-handle {
  width: 34px;
  height: 28px;
  left: -17px;
  top: -6px;
}

.noUi-vertical {
  width: 18px;
}

.noUi-vertical .noUi-handle {
  width: 28px;
  height: 34px;
  left: -6px;
  top: -17px;
}

html:not([dir=rtl]) .noUi-horizontal .noUi-handle {
  right: -17px;
  left: auto;
}

.noUi-draggable {
  cursor: ew-resize;
}

.noUi-vertical .noUi-draggable {
  cursor: ns-resize;
}

.noUi-handle:after {
  left: 17px;
}

.noUi-vertical .noUi-handle:after,
.noUi-vertical .noUi-handle:before {
  width: 14px;
  height: 1px;
  left: 6px;
  top: 14px;
}

.noUi-vertical .noUi-handle:after {
  top: 17px;
}

[disabled] .noUi-connect {
  background: #b8b8b8;
}

[disabled] .noUi-handle,
[disabled].noUi-handle,
[disabled].noUi-target {
  cursor: not-allowed;
}

.noUi-pips,
.noUi-pips * {
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.noUi-pips {
  position: absolute;
  color: #999;
}

.noUi-value {
  position: absolute;
  white-space: nowrap;
  text-align: center;
}

.noUi-value-sub {
  color: #ccc;
  font-size: 10px;
}

.noUi-marker {
  position: absolute;
  background: #ccc;
}

.noUi-marker-sub {
  background: #aaa;
}

.noUi-marker-large {
  background: #aaa;
}

.noUi-pips-horizontal {
  padding: 10px 0;
  height: 80px;
  top: 100%;
  left: 0;
  width: 100%;
}

.noUi-value-horizontal {
  -webkit-transform: translate(-50%, 50%);
  transform: translate(-50%, 50%);
}

.noUi-rtl .noUi-value-horizontal {
  -webkit-transform: translate(50%, 50%);
  transform: translate(50%, 50%);
}

.noUi-marker-horizontal.noUi-marker {
  margin-left: -1px;
  width: 2px;
  height: 5px;
}

.noUi-marker-horizontal.noUi-marker-sub {
  height: 10px;
}

.noUi-marker-horizontal.noUi-marker-large {
  height: 15px;
}

.noUi-pips-vertical {
  padding: 0 10px;
  height: 100%;
  top: 0;
  left: 100%;
}

.noUi-value-vertical {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%, 0);
  padding-left: 25px;
}

.noUi-rtl .noUi-value-vertical {
  -webkit-transform: translate(0, 50%);
  transform: translate(0, 50%);
}

.noUi-marker-vertical.noUi-marker {
  width: 5px;
  height: 2px;
  margin-top: -1px;
}

.noUi-marker-vertical.noUi-marker-sub {
  width: 10px;
}

.noUi-marker-vertical.noUi-marker-large {
  width: 15px;
}

.noUi-tooltip {
  display: block;
  position: absolute;
  border: 1px solid #d9d9d9;
  border-radius: 3px;
  background: #fff;
  color: #000;
  padding: 5px;
  text-align: center;
  white-space: nowrap;
}

.noUi-horizontal .noUi-tooltip {
  -webkit-transform: translate(-50%, 0);
  transform: translate(-50%, 0);
  left: 50%;
  bottom: 120%;
}

.noUi-vertical .noUi-tooltip {
  -webkit-transform: translate(0, -50%);
  transform: translate(0, -50%);
  top: 50%;
  right: 120%;
}

.noUi-horizontal {
  height: 3px;
}

.noUi-target {
  border: 0;
}

.noUi-base .noUi-connects {
  border-radius: 999px;
  background-color: var(--line);
}

.noUi-connect {
  background-color: var(--primary);
}

.noUi-horizontal .noUi-handle,
.noUi-vertical .noUi-handle {
  height: 14px;
  width: 14px;
  border-radius: 50px;
  border-color: var(--primary);
  background-color: var(--primary);
  box-shadow: unset;
  cursor: pointer;
}

.noUi-horizontal .noUi-handle::before,
.noUi-horizontal .noUi-handle::after,
.noUi-vertical .noUi-handle::before,
.noUi-vertical .noUi-handle::after {
  content: none;
}

html:not([dir=rtl]) .noUi-horizontal .noUi-handle {
  right: -8px;
}


.widget-price {
  margin-top: 24px;
  margin-bottom: 35px;
}

.widget-price .box-title-price {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-price .caption-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.widget-price .caption-price .price-val {
  width: 68px;
  display: flex;
  justify-content: flex-end;
  position: relative;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.widget-price .caption-price .price-val::after {
  content: attr(data-currency);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 10px;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
}

.widget-price .price-val-range {
  padding: 0px 10px;
}


.meta-filter-shop {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 30px;
}

.meta-filter-shop .count-text {
  font-size: 14px;
  line-height: 22px;
  color: var(--secondary);
  padding-right: 12px;
  position: relative;
}

.meta-filter-shop .count-text::after {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 0;
  width: 1px;
  display: block;
  content: "";
  background-color: var(--line);
}

.meta-filter-shop .count-text .count {
  color: var(--main);
  display: inline-block;
  margin-right: 2px;
}

.meta-filter-shop #applied-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-filter-shop .filter-tag {
  font-size: 14px;
  line-height: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 1000px;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

.meta-filter-shop .filter-tag .remove-tag {
  font-size: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meta-filter-shop .filter-tag:hover {
  border-color: var(--main);
}

.meta-filter-shop .color-tag {
  gap: 8px;
}

.meta-filter-shop .color-tag .color {
  width: 20px;
  height: 20px;
  display: block;
  border-radius: 1000px;
}

.meta-filter-shop .remove-all-filters {
  padding: 4px 12px;
  border: 1px solid var(--main);
  background-color: var(--main);
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
}

.meta-filter-shop .remove-all-filters .icon {
  font-size: 10px;
}

.meta-filter-shop .remove-all-filters:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}


/* ---------- Fabniva tweaks ---------- */
/* slider in the brand colour */
.ibf-price-widget {
  margin-top: 18px;
  margin-bottom: 36px;
}

.ibf-price-widget .noUi-connect {
  background-color: #F95C4B;
}

.ibf-price-widget .noUi-horizontal .noUi-handle {
  border: 0;
  background-color: #F95C4B;
  top: -6px;
}

.ibf-price-widget .caption-price .price-val {
  width: auto;
  min-width: 86px;
  padding-left: 24px;
  font-size: 14px;
}

.ibf-price-widget .box-title-price {
  flex-wrap: wrap;
  font-size: 14px;
}

/* with JS on, the slider replaces the number boxes */
.ibf-js .ibf-price-form .ibf-price-inputs {
  display: none;
}

.ibf-price-form {
  margin: 0;
}

html:not(.ibf-js) .ibf-price-widget {
  display: none;
}

/* applied filter chips */
.meta-filter-shop {
  min-height: 30px;
}

.meta-filter-shop .filter-tag {
  color: var(--main);
  text-decoration: none;
}

.meta-filter-shop .filter-tag:hover {
  border-color: #F95C4B;
  color: #F95C4B;
}

.meta-filter-shop .color-tag .color {
  border: 1px solid rgba(0, 0, 0, .12);
}

.meta-filter-shop .remove-all-filters {
  text-decoration: none;
  font-size: 14px;
  line-height: 22px;
}

.meta-filter-shop .remove-all-filters:hover {
  background-color: #F95C4B;
  border-color: #F95C4B;
  color: #fff;
}

/* loading state while new results come in */
.ibf-shop .tf-shop-content,
.ibf-shop .ibf-shop-sidebar,
#filterShop .canvas-body {
  transition: opacity .25s ease;
}

.ibf-shop.ibf-loading .tf-shop-content,
.ibf-shop.ibf-loading .ibf-shop-sidebar,
body.ibf-shop-loading #filterShop .canvas-body {
  opacity: .45;
  pointer-events: none;
}

.ibf-shop .tf-shop-content {
  position: relative;
}

.ibf-shop.ibf-loading .tf-shop-content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 120px;
  width: 36px;
  height: 36px;
  margin-left: -18px;
  border: 3px solid var(--line, #ebebeb);
  border-top-color: #F95C4B;
  border-radius: 50%;
  animation: ibf-shop-spin .7s linear infinite;
  z-index: 5;
}

@keyframes ibf-shop-spin {
  to {
    transform: rotate(360deg);
  }
}

.ibf-shop .wrapper-shop.ibf-fade {
  animation: ibf-fade-shop .45s ease-in-out;
}

@keyframes ibf-fade-shop {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Tablet + mobile: no sidebar, Filter button opens the popup ---------- */
@media (max-width: 1149px) {
  .ibf-shop .tf-row-flex {
    display: block;
  }

  .ibf-shop .tf-row-flex .ibf-shop-sidebar {
    display: none;
  }

  .ibf-shop .tf-row-flex .tf-shop-content {
    width: 100%;
  }

  .ibf-shop .wrapper-shop.tf-grid-layout.tf-col-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .ibf-shop .wrapper-shop.tf-grid-layout.tf-col-3 {
    gap: 30px;
  }

  @media only screen and (max-width: 575.5px) {
    .ibf-shop .wrapper-shop.tf-grid-layout.tf-col-3 {
      row-gap: 30px;
      grid-template-columns: repeat(1, 1fr);
    }
  }

  /* Filter | Sort on one line; "7 Products Found" below already shows the count */
  .ibf-shop .tf-shop-control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .ibf-shop .tf-shop-control .ibf-result-count {
    display: none;
  }

  .ibf-shop .meta-filter-shop {
    margin-bottom: 20px;
    gap: 8px;
  }
}

/* the popup itself */
#filterShop.canvas-filter {
  max-width: 90vw;
}

#filterShop .canvas-body {
  padding-bottom: 30px;
}

.meta-filter-shop .count-text:last-child {
  padding-right: 0;
}

.meta-filter-shop .count-text:last-child::after {
  display: none;
}