.ccf-filter-block {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  color: #222;
  margin-bottom: 16px;
  padding: 10px 12px;
  --ccf-blue: #0077c8;
  --ccf-blue-soft: #e8f3fb;
}

.ccf-mobile-header,
.ccf-mobile-toggle,
.ccf-mobile-overlay {
  display: none;
}

#products.ccf-loading,
.products.ccf-loading {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity .2s ease;
}

.ccf-filter-block,
.ccf-filter-block * {
  box-sizing: border-box;
}

.ccf-title {
  color: var(--ccf-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
  text-transform: none;
}

.ccf-section {
  border-top: 1px solid #e3edf5;
}

.ccf-section:first-of-type {
  border-top: none;
}

.ccf-filter-block .ccf-section-header {
  align-items: center;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #12344d;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  line-height: 1.25;
  margin: 0;
  padding: 8px 0;
  text-align: left;
  text-transform: uppercase;
  width: 100%;
}

.ccf-filter-block .ccf-section-header:hover,
.ccf-filter-block .ccf-section-header:active,
.ccf-filter-block .ccf-section-header:focus {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #12344d;
}

.ccf-filter-block .ccf-section-header:focus {
  outline: 1px solid #bbb;
  outline-offset: 2px;
}

.ccf-toggle::before {
  content: "+";
  color: var(--ccf-blue);
  font-size: 15px;
  font-weight: 400;
}

.ccf-section.is-open .ccf-toggle::before {
  content: "-";
}

.ccf-section-content {
  display: block;
  padding: 0 0 7px;
}

.ccf-section:not(.is-open) .ccf-section-content {
  display: none;
}

.ccf-option {
  align-items: center;
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  line-height: 1.25;
  margin: 0;
  min-height: 24px;
  padding: 2px 0;
  width: 100%;
}

.ccf-option-main {
  align-items: center;
  display: flex;
  min-width: 0;
  padding-right: 8px;
}

.ccf-color-option .ccf-option-main {
  align-items: center;
  display: flex;
  gap: 6px;
}

.ccf-option-main input[type="checkbox"] {
  flex: 0 0 auto;
  height: 13px;
  margin: 0 7px 0 0;
  width: 13px;
}

.ccf-color-option .ccf-option-main input[type="checkbox"] {
  margin-right: 0;
}

.ccf-color-swatch {
  border: 1px solid #d1d5db;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 13px;
  height: 13px;
  width: 13px;
}

.ccf-option-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ccf-count {
  color: #2d73a5;
  flex: 0 0 auto;
  font-size: 11px;
  margin-left: 8px;
}

.ccf-empty {
  color: #777;
  font-size: 12px;
  line-height: 1.3;
  padding: 2px 0 5px;
}

.ccf-clear,
.ccf-clear-section {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--ccf-blue);
  display: inline-block;
  font-size: 11px;
  line-height: 1.2;
  margin-top: 6px;
  padding: 0;
  text-decoration: underline;
}

.ccf-clear {
  border-top: 1px solid #e3edf5;
  display: block;
  font-size: 12px;
  margin-top: 2px;
  padding-top: 9px;
}

.ccf-clear:hover,
.ccf-clear:focus,
.ccf-clear-section:hover,
.ccf-clear-section:focus {
  color: #004f86;
}

.ccf-clear-filters.is-hidden {
  display: none;
}

.ccf-price-range {
  padding: 7px 2px 5px;
}

.ccf-slider {
  position: relative;
  height: 24px;
  margin: 0 2px;
}

.ccf-slider-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  background: #cfdde8;
  border-radius: 999px;
  transform: translateY(-50%);
}

.ccf-slider-range {
  position: absolute;
  top: 50%;
  height: 3px;
  background: var(--ccf-blue);
  border-radius: 999px;
  transform: translateY(-50%);
}

.ccf-slider-handle {
  background: #111;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  cursor: pointer;
  height: 9px;
  margin-left: -4.5px;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 9px;
  z-index: 2;
}

.ccf-filter-block .ccf-slider input[type="range"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  height: 24px;
  left: 0;
  margin: 0 !important;
  outline: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 4;
}

.ccf-filter-block .ccf-slider input[type="range"]::-webkit-slider-runnable-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  height: 3px;
}

.ccf-filter-block .ccf-slider input[type="range"]::-moz-range-track {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  height: 3px;
}

.ccf-filter-block .ccf-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #111 !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  height: 9px;
  margin-top: -3px;
  pointer-events: all;
  border-radius: 50%;
  width: 9px;
}

.ccf-filter-block .ccf-slider input[type="range"]::-moz-range-thumb {
  background: #111 !important;
  border: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  height: 9px;
  pointer-events: all;
  border-radius: 50%;
  width: 9px;
}

.ccf-filter-block .ccf-slider input[type="range"]::-ms-track {
  background: transparent !important;
  border-color: transparent !important;
  color: transparent !important;
}

.ccf-filter-block .ccf-slider input[type="range"]::-ms-fill-lower,
.ccf-filter-block .ccf-slider input[type="range"]::-ms-fill-upper {
  background: transparent !important;
}

.ccf-filter-block .ccf-slider input[type="range"]::-ms-thumb {
  background: #111 !important;
  border: 0 !important;
  border-radius: 50%;
  height: 9px;
  pointer-events: all;
  width: 9px;
}

.ccf-filter-block .ccf-slider input[type="range"]::-moz-focus-outer {
  border: 0;
}

.ccf-price-label {
  align-items: center;
  color: #222;
  display: flex;
  font-size: 12px;
  justify-content: center;
  line-height: 1.2;
  margin-top: 1px;
  text-align: center;
  white-space: nowrap;
}

.ccf-price-input {
  background: #fff !important;
  border: 1px solid #cfdde8 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  color: #12344d !important;
  display: inline-block !important;
  font-size: 12px !important;
  height: 24px !important;
  line-height: 22px !important;
  margin: 0 4px !important;
  max-width: 58px;
  padding: 0 5px !important;
  text-align: center;
  width: 58px !important;
}

.ccf-price-input:focus {
  border-color: var(--ccf-blue) !important;
  outline: 0 !important;
}

.ccf-price-currency {
  color: #516a7c;
  font-size: 11px;
}

@media (max-width: 991px) {
  body.ccf-mobile-open {
    overflow: hidden;
    touch-action: none;
  }

  .ccf-mobile-toggle {
    align-items: center;
    background: #fff;
    border: 1px solid #cfdde8;
    border-radius: 4px;
    box-shadow: none;
    color: #12344d;
    cursor: pointer;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    white-space: nowrap;
  }

  .ccf-mobile-toggle::after {
    color: var(--ccf-blue, #0077c8);
    content: "⚙";
    font-size: 13px;
    line-height: 1;
  }

  .ccf-mobile-toggle:hover,
  .ccf-mobile-toggle:focus {
    background: #f4f9fd;
    border-color: var(--ccf-blue, #0077c8);
    color: #12344d;
    outline: 0;
  }

  .ccf-mobile-toggle-wrap {
    align-items: center;
    display: inline-flex;
    margin: 0 0 0 8px;
    vertical-align: middle;
    width: auto;
  }

  .ccf-mobile-toggle-wrap .ccf-mobile-toggle {
    justify-content: center;
    max-width: 180px;
  }

  .products-selection .ccf-mobile-toggle-wrap,
  .sort-by-row .ccf-mobile-toggle-wrap {
    margin-left: 10px;
  }

  .products-sort-order > .ccf-mobile-toggle-wrap,
  .sort-by-row > .ccf-mobile-toggle-wrap {
    margin: 0 8px 0 0;
  }

  .ccf-mobile-overlay {
    background: rgba(0, 0, 0, 0.45);
    bottom: 0;
    display: block;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity .22s ease;
    z-index: 10000;
  }

  body.ccf-mobile-open .ccf-mobile-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .ccf-filter-block {
    border: 0;
    border-radius: 0;
    bottom: 0;
    box-shadow: 8px 0 28px rgba(15, 35, 52, 0.22);
    left: 0;
    margin: 0;
    max-width: 340px;
    overflow-y: auto;
    padding: 0 14px 16px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform .24s ease;
    width: 82vw;
    z-index: 10001;
    -webkit-overflow-scrolling: touch;
  }

  body.ccf-mobile-open .ccf-filter-block {
    transform: translateX(0);
  }

  .ccf-mobile-header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e3edf5;
    display: flex;
    justify-content: space-between;
    margin: 0 -14px 10px;
    padding: 13px 14px;
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .ccf-mobile-header span {
    color: #12344d;
    font-size: 16px;
    font-weight: 800;
    margin: 0;
  }

  .ccf-mobile-close {
    align-items: center;
    background: #f3f7fb !important;
    border: 1px solid #dbe7f1 !important;
    border-radius: 50%;
    box-shadow: none !important;
    color: #12344d !important;
    cursor: pointer;
    display: inline-flex;
    font-size: 22px;
    height: 32px;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 0 0 2px;
    width: 32px;
  }

  .ccf-mobile-close:hover,
  .ccf-mobile-close:focus {
    background: var(--ccf-blue-soft, #e8f3fb) !important;
    border-color: var(--ccf-blue, #0077c8) !important;
    outline: 0;
  }

  .ccf-filter-block .ccf-desktop-title {
    display: none;
  }

  .ccf-filter-block .ccf-desktop-title + .ccf-section {
    border-top: 0;
  }

  .ccf-filter-block .ccf-option {
    font-size: 14px;
    min-height: 34px;
    padding: 6px 0;
  }

  .ccf-filter-block .ccf-option-main input[type="checkbox"] {
    height: 18px;
    width: 18px;
  }

  .ccf-filter-block .ccf-color-swatch {
    flex-basis: 17px;
    height: 17px;
    width: 17px;
  }

  .ccf-filter-block .ccf-count {
    font-size: 12px;
  }

  .ccf-filter-block .ccf-section-header {
    font-size: 14px;
    padding: 11px 0;
  }

  .ccf-price-input {
    height: 30px !important;
    max-width: 68px;
    width: 68px !important;
  }

  .ccf-filter-block .ccf-slider {
    height: 32px;
  }

  .ccf-filter-block .ccf-slider-handle {
    height: 13px;
    margin-left: -6.5px;
    width: 13px;
  }
}

@media (min-width: 992px) {
  .ccf-mobile-toggle,
  .ccf-mobile-toggle-wrap,
  .ccf-mobile-overlay,
  .ccf-mobile-header {
    display: none !important;
  }
}
