.ile-cf-backdrop[hidden],
.ile-cf-drawer[hidden] {
  display: none !important;
}

body.archive.woocommerce .woocommerce-ordering {
  display: none !important;
}

body.archive.woocommerce .new-wrapper {
  justify-content: center !important;
  padding-bottom: 32px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.archive.woocommerce .woocommerce-result-count {
  float: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center !important;
  width: 100%;
}

.ile-cf-filter-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  color: #191919;
  cursor: pointer;
  display: inline-flex;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  left: 50%;
  min-height: 48px;
  min-width: 164px;
  padding: 12px 22px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 9997;
}

.ile-cf-filter-trigger__icon {
  height: 22px;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 22px;
}

.ile-cf-filter-trigger__count {
  color: #666;
}

.ile-cf-backdrop {
  background: rgba(0, 0, 0, 0.32);
  inset: 0;
  opacity: 0;
  position: fixed;
  transition: opacity 360ms ease-in-out;
  z-index: 99998;
}

.ile-cf-backdrop.is-open {
  opacity: 1;
}

.ile-cf-drawer {
  background: #fff;
  bottom: 0;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  font-family: "Montserrat", sans-serif;
  max-width: 100%;
  overflow: hidden;
  position: fixed;
  right: 0;
  top: 0;
  transform: translateY(100%);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  width: min(520px, 92vw);
  will-change: transform;
  z-index: 99999;
}

.ile-cf-drawer.is-open {
  transform: translateY(0);
}

.ile-cf-filter-open {
  overflow: hidden;
}

.ile-cf-drawer__header {
  align-items: center;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  min-height: 84px;
  padding: 20px 28px;
}

.ile-cf-drawer__header h2 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.ile-cf-close {
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  min-height: 44px;
  min-width: 44px;
}

.ile-cf-form {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.ile-cf-form__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.ile-cf-form details {
  border-bottom: 1px solid #e5e5e5;
  margin: 0 28px;
}

.ile-cf-form summary {
  cursor: pointer;
  font-size: 14px;
  list-style: none;
  padding: 24px 0;
}

.ile-cf-form summary::-webkit-details-marker {
  display: none;
}

.ile-cf-form summary::after {
  content: "+";
  float: right;
}

.ile-cf-form details[open] summary::after {
  content: "−";
}

.ile-cf-options {
  display: grid;
  gap: 4px;
  padding: 0 0 20px;
}

.ile-cf-options label {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 22px 1fr auto;
  min-height: 44px;
}

.ile-cf-options input {
  height: 20px;
  width: 20px;
}

.ile-cf-options small {
  color: #777;
}

.ile-cf-drawer__footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  bottom: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1.3fr;
  padding: 18px;
  flex: 0 0 auto;
  z-index: 1;
}

.ile-cf-drawer__footer button {
  border: 1px solid #292929;
  cursor: pointer;
  font: inherit;
  min-height: 52px;
  padding: 12px 18px;
}

.ile-cf-reset {
  background: #fff;
  color: #292929;
}

.ile-cf-apply {
  background: #292929;
  color: #fff;
}

.ile-cf-apply:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

@media (prefers-reduced-motion: reduce) {
  .ile-cf-backdrop,
  .ile-cf-drawer {
    transition: none;
  }
}

@media (min-width: 601px) {
  .ile-cf-drawer__header h2,
  .ile-cf-form summary {
    font-size: 18px;
  }
}

@media (max-width: 600px) {
  body.archive.woocommerce .new-wrapper {
    padding-bottom: 0 !important;
  }

  .ile-cf-filter-trigger {
    bottom: 16px;
    max-width: calc(100vw - 32px);
  }

  .ile-cf-drawer {
    width: 100vw;
  }

  .ile-cf-drawer__header {
    min-height: 70px;
    padding: 14px 18px;
  }

  .ile-cf-form details {
    margin: 0 18px;
  }

  .ile-cf-drawer__footer {
    grid-template-columns: 1fr;
  }
}
