theme-facets-form {
  display: contents;
}

.facets-wrapper {
  display: flex;
}

.facets-desktop {
  display: contents;
}

.facets-sorting-wrapper {
  display: flex;
  gap: 10px;
}

.facets-sorting__summary {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgb(var(--color-title));
}

span.label-with-icon {
  border: 1px solid rgb(var(--color-entry-line));
  padding: 9.21px 15px;
}

.facets-sorting__summary svg.icon-arrow-thin {
  transition: 0.2s;
}

.facets-count {
  display: flex;
  align-items: center;
}

.facets-sorting__content-header {
  padding-block-end: 10px;
  color: rgb(var(--color-title));
  border-block-end: 1px solid rgb(var(--color-entry-line));
}

.facets-sorting__content-body {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.facets-sorting__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 296px;
  padding: 20px;
  background-color: rgb(var(--color-background));
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 4px;
}

@media (min-width: 960px) {
  .facets-sorting__content {
    --modal-animation-name: animation-slide-in;

    position: absolute;
    inset: 0;
    inset: unset;
    gap: 20px;
    width: 100%;
    min-width: fit-content;
    max-width: 650px;
    padding: 15px;
    transform-origin: top;
  }
}

.facets-sorting__content svg {
  width: 16px;
  opacity: 0;
}

.facets-sorting__content input {
  display: none;
}

.facets-sorting__content input:checked~svg {
  opacity: 1;
}

@media (min-width: 960px) {
  .facets-sorting__content input:checked~span {
    border-block-end: 1px solid rgb(var(--color-text));
  }
}

.facets-sorting__content label {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  color: rgb(var(--color-title));
}

@media (min-width: 960px) {
  .facets-sorting__details[open]::before {
    display: none;
  }
}

.facets-sorting__details[open] .facets-sorting__summary span {
  border-block-end: 1px solid rgb(var(--color-text));
}

.facets-sorting__details[open] .facets-sorting__summary svg.icon-arrow-thin {
  transform: rotate(-180deg);
}

.facets-filtering {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: max-content;
}

.facets-filtering fieldset {
  padding: 0;
  margin: 0;
  border: 0;
}

.facets-filtering__filters {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0px;
}

.facets-filtering__summary {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-block: 8px;
  color: rgb(var(--color-title));
}

.facets-filtering__summary svg {
  flex-shrink: 0;
  width: 10px;
  transition: 0.2s;
}

/* 
.facets-filtering__details input[type="radio"],
.facets-filtering__details input[type="checkbox"] {
  display: none;
} */

.facets-filtering__details[open]::before {
  display: none;
}

.facets-filtering__details[open] .facets-filtering__summary {
  border-color: rgb(var(--color-text));
}

.facets-filtering__details[open] .facets-filtering__summary svg {
  transform: rotate(-180deg);
}

.facets-filtering__content-header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-block: 5px;
}

.facets-filtering__content-header~fieldset {
  padding-block-start: 12px;
  border-block-start: 1px solid rgb(221 221 221 / 100%);
}

.facets-filtering__content {
  --modal-animation-name: animation-slide-in;

  position: absolute;
  inset-block-start: 100%;
  z-index: var(--z-index-dropdown);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 296px;
  max-height: 480px;
  padding: 20px;
  overflow: auto;
  background-color: rgb(var(--color-background));
  border: 1px solid rgb(0 0 0 / 10%);
  transform-origin: top;
}

.facets-filtering__content.price-range {
  gap: 20px;
  width: 340px;
}

.facets-filtering__content.price-range .facets-filtering__content-header~fieldset {
  padding: 0;
  border-block-start: 0;
}

.facets-filtering__reset {
  height: 100%;
  color: rgba(var(--color-text), 1);
  border-block-end: 1px solid rgb(var(--color-text));
}

.facets-filtering__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  row-gap: 4px;
}

.facets-filtering__list>li {
  display: flex;
  gap: 5px;
  padding-block: 5px;
}

.facets-filtering__checkbox-wrapper {
  display: flex;
  gap: 8px;
  justify-content: space-around;
  width: 100%;
  cursor: pointer;
  color: rgb(var(--color-title));
}

.facets-filtering__checkbox-wrapper.disabled {
  cursor: not-allowed;
}

.facets-filtering__checkbox-wrapper>span:nth-of-type(1) {
  display: inline-flex;
  flex: 1;
  gap: 8px;
  align-items: center;
}

/* .facets-filtering__checkbox-wrapper>span:nth-of-type(1)::before {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  content: "";
  border: 1px solid #ddd;
} */

.facets-filtering__checkbox-wrapper>span:nth-of-type(2) {
  flex-shrink: 0;
  min-width: 10px;
  text-align: center;
  opacity: 0.6;
}

/* .facets-filtering__checkbox-wrapper input:checked~span:nth-of-type(1)::before {
  background: black;
  border-color: black;
  box-shadow: inset 0 0 0 2px #fff;
} */

.facets-filtering__checkbox-wrapper input {
  accent-color: black;
  border-color: black;
  height: 22px;
  width: 22px;
}

.facets-filtering__submenu-button-group {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border-block-start: 1px solid rgb(225 228 232 / 100%);
}

.facets-filtering__submenu-button-group a {
  width: 100%;
}

.facets-filtering__submenu-button-group>* {
  flex: 1;
}

.facets-filtering__modal-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-y: auto;
}

.facets-filtering__modal-body-inner {
  padding: 0 20px 30px;
  overflow-y: auto;
}

.facets-filtering__modal-summary {
  display: flex;
  gap: 10px;
  align-items: center;
}

.facets-confirm {
  width: 100%;
  color: rgb(var(--color-button-secondary-text));
  background-color: rgb(var(--color-button-secondary-background));
  box-shadow: inset 0 0 0 1px rgb(var(--color-button-secondary-border)) !important;
}

.facets-confirm:hover {
  color: rgb(var(--color-button-text));
  background-color: rgb(var(--color-button-background));
}

.facets-filtering__active {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.facets-filtering__active-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.facets-filtering__active-buttons:empty {
  width: 100px;
}

.facets-filtering__active-buttons:empty+theme-facets-remove {
  display: none;
}

.facets-filtering__active>theme-facets-remove:only-child {
  display: none;
}

.facets-filtering__active-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border: 1px solid rgb(var(--color-text));
  border-radius: 4px;
}

.facets-filtering__active-button-inner {
  display: flex;
  gap: 10px;
  align-items: center;
  color: rgb(var(--color-text));
}

.facets-filtering__active-button-inner svg {
  flex-shrink: 0;
}

.facets-filtering__active-clear-all {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

@media (min-width: 960px) {
  .facets-layout-horizontal .facets-filtering__details {
    position: relative;
  }

  .facets-layout-horizontal .facets-sorting-wrapper {
    padding-block-end: 16px;
  }

  .facets-layout-vertical .facets-filtering,
  .facets-layout-toggle_vertical .facets-filtering {
    gap: 0;
  }

  .facets-layout-vertical .facets-filtering__active,
  .facets-layout-toggle_vertical .facets-filtering__active {
    display: none;
  }

  .facets-layout-vertical .facets-filtering__filters,
  .facets-layout-toggle_vertical .facets-filtering__filters {
    flex-direction: column;
    order: 1;
  }

  .facets-layout-vertical .facets-filtering__content,
  .facets-layout-toggle_vertical .facets-filtering__content {
    position: relative;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
  }

  .facets-layout-vertical .facets-filtering__summary,
  .facets-layout-toggle_vertical .facets-filtering__summary {
    justify-content: space-between;
    padding: 0 0 14px 0;
    border: 0;
  }

  .facets-layout-vertical .facets-filtering__details,
  .facets-layout-toggle_vertical .facets-filtering__details {
    border: 0;
    padding: 24px 0;
  }

  .facets-layout-vertical theme-collapse:first-child .facets-filtering__details,
  .facets-layout-toggle_vertical theme-collapse:first-child .facets-filtering__details {
    padding-block-start: 0;
  }

  .facets-layout-vertical .facets-filtering theme-collapse:not(:last-child),
  .facets-layout-toggle_vertical .facets-filtering theme-collapse:not(:last-child) {
    border-block-end: 1px solid #ddd;
  }

  .facets-layout-vertical .facets-filtering__content-header,
  .facets-layout-toggle_vertical .facets-filtering__content-header {
    display: none;
  }

  .facets-layout-vertical .facets-filtering__content-header~fieldset,
  .facets-layout-toggle_vertical .facets-filtering__content-header~fieldset {
    padding: 0;
    border: 0;
  }

  .facets-layout-vertical .facets-active,
  .facets-layout-toggle_vertical .facets-active {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .sorting-and-toggle-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
    margin-block-end: 32px;
  }

  .facets-layout-vertical .facets-sorting-wrapper,
  .facets-layout-toggle_vertical .facets-sorting-wrapper {
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-block-end: 0;
    flex: 1;
  }

  .facets-toggle-button {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    margin-block-end: 0;
    width: fit-content;
    background-color: transparent;
    color: rgb(var(--color-title));
    border: unset;
    font-weight: 700;
  }

  .facets-layout-drawer .facets-filtering__filters {
    padding-block: 8px;
  }

  .facets-layout-drawer .facets-filtering__modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: none;
    border: 0;
    outline: 0;
  }

  .facets-layout-drawer .facets-filtering__modal-close svg {
    width: 12px;
    height: 12px;
  }

  .facets-layout-drawer .facets-filtering__content-header {
    display: none;
  }

  .facets-layout-drawer .facets-filtering__content-header~fieldset {
    padding: 0;
    border: 0;
  }

  .facets-layout-drawer .facets-filtering__content {
    --modal-animation-name: animation-slide-in-right;

    position: static;
    width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
  }

  .facets-layout-drawer .facets-filtering__summary {
    justify-content: space-between;
    padding-block: 15px;
    padding-inline: 0;
    border: 0;
  }

  .facets-layout-drawer .facets-filtering__details {
    padding-block-end: 10px;
    border-block-end: 1px solid rgb(var(--color-entry-line));
  }

  .facets-layout-drawer .facets-filtering__modal-content {
    display: flex;
    flex-direction: column;
    width: 400px;
    padding: 0;
    border: 0;
  }

  .facets-layout-drawer .facets-filtering__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 30px 20px;
    margin-block-end: 10px;
    margin-inline: 30px;
    border-block-end: 1px solid rgb(221 221 221 / 100%);
  }

  .facets-layout-drawer .facets-filtering__modal-body {
    margin-inline: 30px;
  }

  .facets-layout-drawer .facets-filtering__modal-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 20px 20px;
    border-block-start: 1px solid rgb(var(--color-entry-line));
  }

  .facets-layout-drawer .facets-filtering__modal-footer .facets-count {
    flex: 1;
  }

  .facets-layout-drawer .facets-filtering__modal-footer .button {
    width: 100px;
    height: 40px;
  }

  .facets-layout-drawer .facets-filtering .price-range .facets-confirm {
    display: none;
  }

  .facets-sorting__details {
    position: relative;
  }

  .facets-sorting__content {
    position: absolute;
    inset-inline-end: 0;
    z-index: var(--z-index-dropdown);
  }
}

.facets-mobile {
  display: contents;
}

.facets-mobile-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: var(--body-container-width);
  padding-inline: var(--page-padding);
  padding-block-end: 4px;
  margin-inline-start: calc(var(--page-padding) * -1);
}

.facets-mobile__modals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  margin-block-end: 4px;
  border-block-end: 1px solid #ddd;
  gap: 12px 16px;
}

.facets-mobile__modals .facets-filtering {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.facets-mobile__modals .facets-filter-menu {
  flex: 1 1 auto;
  min-width: 222px;
}

.facets-mobile__modals theme-modal details,
.facets-mobile__modals theme-modal {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: fit-content;
}

@media (max-width: 480px) {
  .facets-mobile__modals {
    flex-wrap: wrap;
  }

  .facets-mobile__modals .facets-filter-menu {
    order: -1;
    width: 100%;
    flex: 1 1 100%;
  }

  .facets-mobile__modals theme-modal details,
  .facets-mobile__modals theme-modal {
    flex: 1;
    justify-content: flex-end;
  }
}

.facets-mobile__modals .facets-filtering theme-modal {
  align-self: baseline;
}

.facets-mobile__modals summary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: rgb(var(--color-title));
  white-space: nowrap;
}

.facets-mobile__modals summary.facets-sorting__summary {
  justify-content: flex-end;
  justify-self: flex-end;
}

.facets-mobile__modals.enable-multi-column-switcher {
  gap: 12px;
  padding-inline: var(--page-padding);
  margin-block-end: 0;
  border: 0;
}

.facets-mobile__modals.enable-multi-column-switcher>* {
  flex: none;
}

.facets-mobile__modals.enable-multi-column-switcher>*:first-child {
  border: 0;
}

.facets-mobile__modals.enable-multi-column-switcher summary {
  justify-content: start;
}

.facets-mobile .facets-sorting__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.facets-mobile .facets-sorting__content label {
  padding: 5px 0;
}

.facets-mobile .facets-filtering__modal-close {
  width: 28px;
  height: 28px;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
}

.facets-mobile .facets-filtering__modal-close svg {
  width: 18px;
  height: 18px;
  color: rgb(var(--color-title));
}

.price-range-input {
  display: flex;
  gap: 16px;
  align-items: center;
}

.facets-mobile .facets-filtering__details fieldset {
  padding: 0;
  border: 0;
  margin: 0;
}

button.facets-filtering__modal-close svg path {
  stroke-width: 1.8;
}

.facets-mobile .facets-filtering__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  border-bottom: 1px solid rgb(var(--color-entry-line));
}

.facets-mobile .facets-filtering__modal-header>*:first-child {
  padding-block: 4.5px;
}

.facets-mobile .facets-filtering__content-header {
  display: none;
}

.facets-mobile .facets-filtering__content-header~fieldset {
  padding: 0;
  border: 0;
}

.facets-mobile .facets-filtering__filters {
  flex-direction: column;
}

.facets-mobile .facets-filtering__summary {
  justify-content: space-between;
  padding: 0px 0 12px 0;
  border: 0;
}

.facets-mobile .facets-filtering__modal-content {
  display: flex;
  flex-direction: column;
  width: 92%;
  overflow-y: auto;
}

.facets-mobile .facets-filtering__content {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
}


.facets-filtering__submenu-button-group button,
.facets-filtering__submenu-button-group theme-facets-remove a {
  padding: 7px 20px !important;
}

/* .facets-mobile .facets-filtering__details[open] {
  padding-block-end: 24px;
} */

.facets-filtering__modal-body theme-collapse .facets-filtering__details {
  padding: 24px 0px;
}

.facets-filtering__modal-body theme-collapse:not(:last-child) .facets-filtering__details {
  border-block-end: 1px solid rgb(var(--color-entry-line));
}


.facets-mobile .facets-filtering__modal-body {
  overflow-y: hidden;
}

.facets-mobile .facets-filtering__modal-body>*:first-child {
  flex: 1;
  padding: 0 20px;
  overflow: hidden auto;
}

.facets-mobile .facets-filtering__submenu-button-group {
  padding: 12px 20px 20px;
}

.facets-mobile .facets-filtering .price-range .facets-confirm {
  display: none;
}

.facets-mobile__multi-column-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-inline-start: auto;
}

.facets-mobile__multi-column-switcher-button {
  width: 20px;
  height: 20px;
  color: rgb(221 221 221 / 100%);
  cursor: pointer;
}

.facets-mobile__multi-column-switcher-button.active {
  color: black;
}

.facets-desktop__multi-column-switcher {
  display: flex;
  gap: 5px;
  align-items: center;
}

.facets-desktop__multi-column-switcher-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: rgb(var(--color-button-text));
  border: 1px solid rgb(var(--color-entry-line));
  border-radius: 2px;
  color: rgb(var(--color-button-background));
  cursor: pointer;
  transition: all 0.2s ease;
}

.facets-desktop__multi-column-switcher-button svg {
  height: 16px;
  width: 16px;
}

.facets-desktop__multi-column-switcher-button:hover {
  border-color: rgb(var(--color-button-background));
}

.facets-desktop__multi-column-switcher-button.active {
  background-color: rgb(var(--color-button-background));
  border-color: rgb(var(--color-button-background));
  color: rgb(var(--color-button-text));
}

.sorting-and-column-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.sorting-and-toggle-menu__left {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.facets-filter-menu {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding-block: 4px;
  -webkit-overflow-scrolling: touch;
}

.facets-filter-menu::-webkit-scrollbar {
  display: none;
}

.facets-filter-menu__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7.87px 17px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(var(--color-text, 0 0 0));
  background-color: rgb(var(--color-button-text, 255 255 255));
  border: 1px solid rgb(var(--color-entry-line, 220 220 220));
  border-radius: 50px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  cursor: pointer;
}


.facets-filter-menu__item.active,
.facets-filter-menu__item:hover {
  background-color: rgb(var(--color-button-background, 0 0 0));
  border-color: rgb(var(--color-button-background, 0 0 0));
  color: rgb(var(--color-button-text, 255 255 255)) !important;
}


.facets-mobile__modals .facets-filtering summary,
.facets-mobile__modals .facets-sorting__details summary {
  padding: 9px 24px;
  border: 1px solid rgb(var(--color-entry-line));
  max-width: fit-content
}

facets-sorting__details .price-range-input {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-block-end: 20px;
}

.price-range-input .field {
  padding: 8px 12px;
  margin: 0;
}

.price-range-input .field::after {
  border-color: #ddd;
}

.price-range-input .field:focus-within::after {
  border-color: black;
}

.price-range-input .field__input {
  padding: 0;
}

.price-range-input .line {
  flex-shrink: 0;
  width: 10px;
  height: 1px;
  background: #ddd;
}

.price-range-input .field-currency {
  flex-shrink: 0;
  padding-inline-end: 5px;
  opacity: 0.5;
}

.price-range-slider {
  position: relative;
  padding: 8px 0;
}

.price-range-slider .price-range-track {
  position: relative;
  height: 4px;
  background-color: rgba(var(--color-text), 0.1);
}

.price-range-slider .price-range-bar {
  position: absolute;
  inset-block-start: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(var(--color-text));
}

.price-range-slider .price-range-dot {
  position: absolute;
  inset-block-start: 50%;
  width: 16px;
  height: 16px;
  background-color: rgb(var(--color-background));
  border: 3px solid rgb(var(--color-text));
  border-radius: 16px;
  transform: translateY(-50%);
}

.price-range-slider .price-range-dot.price-range-dot--min {
  inset-inline-start: 0;
  transform: translate(0, -50%);
}

.price-range-slider .price-range-dot.price-range-dot--max {
  inset-inline-end: 0;
  transform: translate(0, -50%);
}

.facets-loading {
  position: fixed;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  width: 92px;
  height: 92px;
  background-color: rgb(var(--color-page-background));
  border-radius: 12px;
  box-shadow: 0 10px 50px 0 rgba(var(--color-text), 0.08);
  transform: translate(-50%, -50%);
}

.facets-loading>div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.facets-loading>div svg {
  width: 60%;
  height: 60%;
}

.facets-loading-wrapper {
  position: fixed;
  inset: 0;
  z-index: var(--z-index-toast);
  display: none;
  content: "";
}

.facets-loading-wrapper.loading {
  display: block;
}

.facets-position-sticky {
  position: sticky;
  inset-block-start: var(--theme-sticky-offset, 0);
  z-index: var(--z-index-sticky);
  background-color: rgb(var(--color-background));
  transition: inset-block-start 0.26s ease-out;
}

button.facets-toggle-button svg circle {
  transition: transform 300ms ease, color 300ms ease;
}

button.facets-toggle-button:not(.active) circle:first-of-type {
  transform: translateX(6px);
}

button.facets-toggle-button:not(.active) circle:last-of-type {
  transform: translateX(-6px);
}