.coolsf {
  --coolsf-bg: #fff;
  --coolsf-text: #2f2f33;
  --coolsf-border: #e5e5e5;
  --coolsf-accent: #ff6600;
  --coolsf-active: #45bfab;
  --coolsf-ink: #46658d;
  --coolsf-shadow: 22px 0 48px rgba(0, 0, 0, .16);
  position: relative;
  z-index: 20;
  width: 100%;
  color: var(--coolsf-text);
  font-family: inherit;
  line-height: 1;
  pointer-events: none;
}

.coolsf *,
.coolsf *::before,
.coolsf *::after {
  box-sizing: border-box;
}

.coolsf-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #242428;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
}

.coolsf-toggle strong {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.coolsf-filter-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
}

.coolsf-filter-icon img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.coolsf-active-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 6px 0 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

.coolsf-active-tags::-webkit-scrollbar {
  height: 4px;
}

.coolsf-active-tags::-webkit-scrollbar-thumb {
  background: #d8d8d8;
  border-radius: 999px;
}

.coolsf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 135px;
  flex: 0 0 auto;
  min-height: 20px;
  padding: 2px 6px;
  border: 1px solid #dedede;
  border-radius: 999px;
  background: #fff;
  color: #202024;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .03);
}

.coolsf-tag:hover {
  border-color: #cfcfcf;
  color: #202024;
  text-decoration: none;
}

.coolsf-tag-all {
  max-width: none;
  border-color: #e55757;
  background: #fff7f7;
  color: #d94a4a;
  font-weight: 700 !important;
}

.coolsf-tag-all:hover {
  border-color: #d94a4a;
  color: #c83f3f;
}

.coolsf-tag span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.coolsf-tag i {
  position: relative;
  display: inline-flex;
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: var(--coolsf-active);
}

.coolsf-tag i::before,
.coolsf-tag i::after {
  content: "";
  position: absolute;
  top: 5.5px;
  left: 3px;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
}

.coolsf-tag i::before {
  transform: rotate(45deg);
}

.coolsf-tag i::after {
  transform: rotate(-45deg);
}

.coolsf-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  background: rgba(0, 0, 0, .58);
  pointer-events: auto;
}

.coolsf-drawer {
  --coolsf-bg: #fff;
  --coolsf-text: #2f2f33;
  --coolsf-border: #e5e5e5;
  --coolsf-accent: #ff6600;
  --coolsf-active: #45bfab;
  --coolsf-ink: #46658d;
  --coolsf-shadow: 22px 0 48px rgba(0, 0, 0, .16);
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 99999;
  display: none;
  width: min(92vw, 390px);
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 14px) 24px 28px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: var(--coolsf-bg);
  color: var(--coolsf-text);
  box-shadow: none;
  visibility: hidden;
  overflow: hidden;
  transform: translateX(0);
  transition: none;
  pointer-events: auto;
}

.coolsf.is-open {
  z-index: 99999;
}

.coolsf.is-open .coolsf-backdrop,
.coolsf-backdrop.is-open {
  display: block;
}

.coolsf.is-open .coolsf-drawer,
.coolsf-drawer.is-open {
  display: flex;
  box-shadow: var(--coolsf-shadow);
  visibility: visible;
  transform: translateX(0);
}

.coolsf-head {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 0 11px;
  border-bottom: 1px solid var(--coolsf-border);
}

.coolsf-head::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: var(--coolsf-accent);
}

.coolsf-head h2 {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #2e2e32;
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

.coolsf-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.coolsf-reset {
  flex: 0 0 auto;
  display: inline-flex;
  margin: 0;
  color: var(--coolsf-accent);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.coolsf-reset:hover {
  color: var(--coolsf-ink);
  text-decoration: none;
}

.coolsf-close {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #252525;
  cursor: pointer;
}

.coolsf-close::before,
.coolsf-close::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 6px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.coolsf-close::before {
  transform: rotate(45deg);
}

.coolsf-close::after {
  transform: rotate(-45deg);
}

.coolsf-sections {
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px 3px 12px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #bcbcbc #f6f6f6;
  scrollbar-width: thin;
}

.coolsf-sections::-webkit-scrollbar {
  width: 7px;
}

.coolsf-sections::-webkit-scrollbar-track {
  background: #f6f6f6;
  border-radius: 999px;
}

.coolsf-sections::-webkit-scrollbar-thumb {
  background: #bcbcbc;
  border-radius: 999px;
}

.coolsf-section + .coolsf-section {
  margin-top: 8px;
  border-top: 1px solid #ededed;
}

.coolsf-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 50px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #303034;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.coolsf-section-title span {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.18;
}

.coolsf-section-title i {
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  flex: 0 0 auto;
  transform: rotate(135deg);
}

.coolsf-section.is-open > .coolsf-section-title {
  padding: 0 14px;
  background: #f7f8f9;
  color: var(--coolsf-ink);
}

.coolsf-section.is-open > .coolsf-section-title i {
  transform: rotate(-45deg);
}

.coolsf-section-body {
  display: none;
  padding: 12px 10px 18px;
}

.coolsf-section.is-open > .coolsf-section-body {
  display: block;
}

.coolsf-checks {
  display: grid;
  gap: 6px;
}

.coolsf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  color: #3f3f43;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.coolsf-check:hover,
.coolsf-check.is-active {
  background: #f7fbfa;
  color: var(--coolsf-active);
}

.coolsf-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: var(--coolsf-active);
}

.coolsf-check span {
  min-width: 0;
}

.coolsf-check.is-level-1 {
  padding-left: 24px;
}

.coolsf-check.is-level-2 {
  padding-left: 38px;
}

.coolsf-check.is-level-3 {
  padding-left: 52px;
}

.coolsf-check.is-level-4,
.coolsf-check.is-level-5,
.coolsf-check.is-level-6,
.coolsf-check.is-level-7,
.coolsf-check.is-level-8 {
  padding-left: 66px;
}

.coolsf-check[class*="is-level-"]:not(.is-level-0) {
  min-height: 34px;
  color: #55565a;
  font-size: 15px;
}

.coolsf-check[class*="is-level-"]:not(.is-level-0) span {
  position: relative;
}

.coolsf-featured-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 14px 4px 0;
  border-top: 1px solid var(--coolsf-border);
  background: var(--coolsf-bg);
}

.coolsf-check.is-featured {
  justify-content: center;
  min-height: 44px;
  margin: 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: #e55757;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .04);
}

.coolsf-check.is-featured:hover,
.coolsf-check.is-featured.is-active {
  background: #d94a4a;
  color: #fff;
}

.coolsf-check.is-featured input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.coolsf-check.is-featured span {
  display: block;
  width: 100%;
}

.coolsf-brand-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  font-family: inherit;
}

.coolsf-brand-cluster-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f8d86f;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .04);
}

.coolsf-brand-cluster-link:nth-child(3n + 1) {
  background: #e79ab5;
}

.coolsf-brand-cluster-link:nth-child(3n + 2) {
  background: #45bfab;
}

.coolsf-brand-cluster-link:nth-child(3n + 3) {
  background: #46658d;
}

.coolsf-brand-cluster-link:hover {
  color: #fff;
  filter: brightness(.96);
  text-decoration: none;
}

html.coolsf-lock-scroll,
html.coolsf-lock-scroll body {
  overflow: hidden;
}

.coolsf-floating-discount-open {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 767px) {
  .products-sort-order .select-title,
  .products-sort-order .dropdown-menu,
  .products-sort-order .select-list,
  .js-product-list-top .products-sort-order,
  .js-product-list-top .products-sort-order button,
  .js-product-list-top .products-sort-order a {
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  .products-sort-order .select-title,
  .js-product-list-top .products-sort-order .select-title {
    min-height: 28px !important;
    padding: 5px 12px !important;
  }
}

@media (max-width: 480px) {
  .coolsf-drawer {
    width: min(94vw, 390px);
    padding-right: 18px;
    padding-left: 18px;
  }

  .coolsf-toggle strong {
    font-size: 15px !important;
  }

  .coolsf-head h2 {
    font-size: 15px !important;
  }

  .coolsf-section-title span,
  .coolsf-check {
    font-size: 15px;
  }

  .coolsf-reset {
    font-size: 9px;
  }

  .coolsf-tag {
    font-size: 9px !important;
  }

  .coolsf-brand-cluster {
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .coolsf-brand-cluster-link {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 7px 16px;
    font-size: 13px;
    white-space: nowrap;
  }
}
