theme-facets-form {
  display: contents;
}

.facets-wrapper {
  display: flex;
}

.facets-desktop {
  display: contents;
}

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

.facets-sorting__summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-inline-end: 12px;
}

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

.facets-sorting__content-header {
  padding-block-end: 10px;
  border-block-end: 1px solid #ddd;
}

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

.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: 250px;
    max-width: 650px;
    padding-block-end: 30px;
    margin-block-start: 10px;
    transform-origin: top;
  }
}

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

.facets-sorting__content input,
.facets-filtering__details input[type="radio"],
.facets-filtering__details input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

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

.facets-sorting__content input:focus-visible ~ span {
  outline: 2px solid currentcolor;
  outline-offset: 3px;
}

@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;
  cursor: pointer;
}

@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: 24px;
}

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

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

.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;
  margin-block-start: 10px;
  overflow: auto;
  background-color: rgb(var(--color-background));
  border: 1px solid rgb(0 0 0 / 10%);
  border-radius: 4px;
  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;
}

.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;
}

.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: 14px;
  height: 14px;
  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:focus-visible
  ~ span:nth-of-type(1)::before {
  outline: 2px solid currentcolor;
  outline-offset: 3px;
}

.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 {
    gap: 0;
  }

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

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

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

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

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

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

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

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

  .facets-layout-vertical .facets-sorting-wrapper {
    flex-direction: row-reverse;
    justify-content: space-between;
    margin-block-end: 16px;
  }
  .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-block-end: 4px;
  margin-inline-start: calc(var(--page-padding) * -1);
}

.facets-mobile__modals {
  display: flex;
  align-items: center;
  padding: 15px 0;
  margin-block-end: 4px;
  border-block-end: 1px solid #ddd;
}

.facets-mobile__modals > * {
  flex: 1;
}

.facets-mobile__modals > *:first-child {
  border-inline-end: 1px solid #ddd;
}

.facets-mobile__modals summary {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
}

.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 {
  min-height: 44px;
  padding: 8px 0;
}

.facets-mobile .facets-filtering__modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  outline: 0;
}

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

.facets-mobile .facets-filtering__modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 10px;
}

.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: 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-mobile .facets-filtering__details[open] {
  padding-block-end: 10px;
}

.facets-mobile .facets-filtering__details:not(:last-child) {
  border-block-end: 1px solid #ddd;
}

.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 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: 0;
  width: 44px;
  height: 44px;
  color: rgb(221 221 221 / 100%);
  cursor: pointer;
}

.facets-mobile__multi-column-switcher-button svg {
  width: 20px;
  height: 20px;
}

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

.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;
  cursor: grab;
  touch-action: none;
  transform: translateY(-50%);
}

.price-range-slider .price-range-dot:active {
  cursor: grabbing;
}

@media (max-width: 959px) {
  .price-range-slider .price-range-dot {
    width: 24px;
    height: 24px;
  }
}

.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-status--error {
  width: min(calc(100% - var(--page-padding) - var(--page-padding)), 760px);
  padding: 12px 14px;
  margin: 10px auto;
  color: #efefeb;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.5;
  background: #111312;
  border: 1px solid #ed2533;
  box-shadow: inset 5px 0 0 #ed2533;
}

.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;
}

/* BWE archive classification controls */
.bwe-facets {
  font-family: "Courier New", Courier, monospace;
}

.bwe-facets .facets-filtering__filters {
  padding: 14px;
  color: #efefeb;
  background: #111312;
  border: 1px solid #5b5e5b;
}

.bwe-facets .facets-filtering__details,
.bwe-facets .facets-filtering__summary,
.bwe-facets .facets-filtering__item,
.bwe-facets .facets-filtering__content-header {
  color: #efefeb;
}

.bwe-facets .facets-filtering__details {
  background: transparent;
  border-color: rgba(239, 239, 235, 0.2);
}

.bwe-facets .facets-filtering__summary,
.bwe-facets .facets-sorting__summary {
  min-height: 44px;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  letter-spacing: 0.025em;
}

.bwe-facets .facets-filtering__summary:hover,
.bwe-facets .facets-filtering__summary:focus-visible,
.bwe-facets .facets-sorting__summary:hover,
.bwe-facets .facets-sorting__summary:focus-visible {
  color: #ed2533;
}

.bwe-facets .facets-filtering__details[open] > .facets-filtering__summary,
.bwe-facets .facets-sorting__details[open] > .facets-sorting__summary {
  color: #efefeb;
  background: #111312;
  box-shadow: inset 5px 0 0 #ed2533;
}

.bwe-facets .facets-filtering__content,
.bwe-facets .facets-sorting__content {
  font-family: "Courier New", Courier, monospace;
  background-color: rgb(var(--color-background));
  border: 1px solid rgba(var(--color-text), 0.45);
  border-block-start: 5px solid #ed2533;
  border-radius: 0;
  box-shadow: 6px 6px 0 rgba(var(--color-text), 0.09);
}

.bwe-facets .facets-filtering__content-header,
.bwe-facets .facets-sorting__content-header {
  font-size: 14px;
  letter-spacing: 0.04em;
  border-color: rgba(var(--color-text), 0.3);
}

.bwe-facets .facets-filtering__list {
  gap: 4px;
}

.bwe-facets .facets-filtering__list > li {
  min-height: 44px;
  padding-block: 0;
  border-block-end: 1px solid rgba(var(--color-text), 0.16);
}

.bwe-facets .facets-filtering__checkbox-wrapper {
  align-items: center;
  min-height: 44px;
  padding-block: 7px;
  font-size: 14px;
}

.bwe-facets .facets-filtering__checkbox-wrapper > span:nth-of-type(1) {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bwe-facets .facets-filtering__checkbox-wrapper > span:nth-of-type(2) {
  flex: 0 0 auto;
}

.bwe-facets .facets-filtering__checkbox-wrapper > span:nth-of-type(1)::before {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(var(--color-text), 0.55);
  border-radius: 0;
}

.bwe-facets .facets-filtering__checkbox-wrapper input:checked ~ span:nth-of-type(1)::before {
  background: #111312;
  border-color: #ed2533;
  box-shadow: inset 0 0 0 3px #efefeb, inset 0 -7px 0 #ed2533;
}

.bwe-facets .facets-filtering__checkbox-wrapper input:focus-visible ~ span:nth-of-type(1)::before {
  outline: 2px solid #ed2533;
  outline-offset: 3px;
}

.bwe-facets .facets-filtering__active {
  gap: 10px;
  padding-block: 8px;
}

.bwe-facets .facets-filtering__active-button {
  min-height: 44px;
  padding: 8px 12px;
  font-family: "Courier New", Courier, monospace;
  border: 1px solid rgba(var(--color-text), 0.48);
  border-inline-start: 4px solid #ed2533;
  border-radius: 0;
}

.bwe-facets .facets-filtering__active-button-inner {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.bwe-facets .facets-filtering__active-button:hover,
.bwe-facets .facets-filtering__active-button:focus-visible {
  color: #efefeb;
  background: #111312;
}

.bwe-facets .facets-filtering__active-clear-all {
  min-height: 44px;
  text-decoration-color: #ed2533;
  text-underline-offset: 4px;
}

.bwe-facets .facets-sorting-wrapper {
  font-family: "Courier New", Courier, monospace;
  background: rgba(var(--color-background), 0.97);
  border: 1px solid rgba(var(--color-text), 0.32);
}

.bwe-facets .facets-sorting__content label {
  min-height: 44px;
  padding: 9px 6px;
  font-size: 14px;
  border-block-end: 1px solid rgba(var(--color-text), 0.16);
}

.bwe-facets .facets-sorting__content label:hover {
  background: rgba(var(--color-text), 0.055);
}

.bwe-facets .facets-sorting__content input:checked ~ span {
  color: #ed2533;
  font-weight: 700;
}

.bwe-facets .price-range-input .field {
  min-height: 48px;
  background: rgba(var(--color-background), 0.95);
  border: 1px solid rgba(var(--color-text), 0.4);
  border-radius: 0;
}

.bwe-facets .price-range-input .field__input {
  min-width: 0;
  font-size: 16px;
}

.bwe-facets .price-range-slider .price-range-track {
  height: 5px;
}

.bwe-facets .price-range-slider .price-range-bar {
  background-color: #ed2533;
}

.bwe-facets .price-range-slider .price-range-dot {
  width: 22px;
  height: 22px;
  border: 4px solid #111312;
  border-radius: 0;
}

.bwe-facets .facets-filtering__modal-content {
  color: rgb(var(--color-text));
  background-color: rgb(var(--color-background));
  border-radius: 0;
}

.bwe-facets .facets-filtering__modal-header {
  position: relative;
  font-family: "Courier New", Courier, monospace;
  border-block-end-color: rgba(var(--color-text), 0.35);
}

.bwe-facets .facets-filtering__modal-header::before {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 72px;
  height: 4px;
  content: "";
  background: #e0202e;
  color: #fff;
}

.bwe-facets .facets-filtering__modal-close {
  min-width: 44px;
  min-height: 44px;
  color: inherit;
  border: 1px solid rgba(var(--color-text), 0.38);
  border-radius: 0;
}

.bwe-facets .facets-filtering__modal-close:hover,
.bwe-facets .facets-filtering__modal-close:focus-visible {
  color: #fff;
  background: #e0202e;
  border-color: #ed2533;
}

.bwe-facets .facets-filtering__modal-footer,
.bwe-facets .facets-filtering__submenu-button-group {
  font-family: "Courier New", Courier, monospace;
  background: #111312;
  border-color: #5b5e5b;
}

.bwe-facets .facets-filtering__modal-footer .facets-count,
.bwe-facets .facets-filtering__submenu-button-group .facets-count {
  color: #b9bbb8;
}

.bwe-facets .facets-filtering__modal-footer .button,
.bwe-facets .facets-filtering__submenu-button-group .button {
  min-height: 48px;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  border-radius: 0;
}

.bwe-facets .facets-filtering__modal-footer button[name="confirm"],
.bwe-facets .facets-filtering__submenu-button-group button[name="confirm"] {
  color: #fff;
  background: #e0202e;
  border-color: #ed2533;
}

.bwe-facets .facets-loading {
  color: #efefeb;
  background: #111312;
  border: 1px solid #5b5e5b;
  border-block-end: 5px solid #ed2533;
  border-radius: 0;
  box-shadow: 6px 6px 0 rgba(237, 37, 51, 0.85);
}

@media (min-width: 960px) {
  .facets-layout-vertical .bwe-facets .facets-filtering__filters {
    padding: 16px;
    border-block-start: 5px solid #ed2533;
    box-shadow: 5px 5px 0 rgba(var(--color-text), 0.07);
  }

  .facets-layout-vertical .bwe-facets .facets-filtering__content {
    box-shadow: none;
  }

  .facets-layout-drawer .bwe-facets .facets-filtering__modal-content {
    border-inline-end: 1px solid #5b5e5b;
    box-shadow: 7px 0 0 rgba(237, 37, 51, 0.85);
  }
}

@media (max-width: 959px) {
  body.bwe-archive-ui:has(.bwe-facets details[data-mount-modal][open]) main {
    z-index: 1100;
  }

  .bwe-facets .facets-mobile-inner {
    width: 100%;
    padding-inline: var(--page-padding);
    margin-inline-start: 0;
  }

  .bwe-facets .facets-mobile__modals {
    gap: 6px;
    padding: 9px;
    margin-block-end: 6px;
    background: rgba(var(--color-background), 0.97);
    border: 1px solid rgba(var(--color-text), 0.35);
  }

  .bwe-facets .facets-mobile__modals.enable-multi-column-switcher {
    padding-inline: 9px;
  }

  .bwe-facets .facets-mobile__modals.enable-multi-column-switcher > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .bwe-facets .facets-mobile__modals.enable-multi-column-switcher > .facets-mobile__multi-column-switcher {
    flex: 0 0 auto;
  }

  .bwe-facets .facets-mobile__modals > *:first-child {
    border-inline-end: 0;
  }

  .bwe-facets .facets-mobile__modals summary {
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding-inline: 8px;
    overflow: hidden;
    font-size: 15px;
    background: rgba(var(--color-text), 0.045);
    border: 1px solid rgba(var(--color-text), 0.3);
  }

  .bwe-facets .facets-mobile__modals summary span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bwe-facets .bwe-facets__mobile-filter-label {
    flex: 0 0 auto;
  }

  .bwe-facets .facets-mobile__multi-column-switcher {
    gap: 4px;
    margin-inline-start: 0;
  }

  .bwe-facets .facets-mobile__multi-column-switcher-button {
    width: 46px;
    height: 48px;
    color: rgb(var(--color-light-text));
    border: 1px solid rgba(var(--color-text), 0.3);
  }

  .bwe-facets .facets-mobile__multi-column-switcher-button.active {
    color: #efefeb;
    background: #111312;
    border-color: #ed2533;
    box-shadow: inset 0 -4px 0 #ed2533;
  }

  .bwe-facets .facets-filtering__modal-content {
    width: calc(100% - 12px);
    max-width: 440px;
    border-inline-end: 1px solid #5b5e5b;
    box-shadow: 6px 0 0 rgba(237, 37, 51, 0.85);
  }

  .bwe-facets .facets-filtering__modal-header {
    padding: 18px 16px 12px;
  }

  .bwe-facets .facets-filtering__modal-body > *:first-child {
    padding-inline: 16px;
  }

  .bwe-facets .facets-filtering__modal-body :is(
    .facets-filtering__details,
    .facets-filtering__content,
    .facets-filtering__checkbox-wrapper,
    fieldset
  ) {
    color: rgb(var(--color-text));
  }

  .bwe-facets .facets-filtering__modal-body .facets-filtering__summary {
    color: rgb(var(--color-text));
    background: transparent;
  }

  .bwe-facets .facets-filtering__details:not([open]) > .facets-filtering__content {
    display: none;
  }

  .bwe-facets .facets-filtering__details[open] > .facets-filtering__summary {
    color: #efefeb;
    background: #111312;
  }

  .bwe-facets .facets-filtering__summary {
    min-height: 50px;
    padding-block: 12px;
    font-size: 15px;
  }

  .bwe-facets .facets-filtering__submenu-button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .bwe-facets .facets-filtering__submenu-button-group .facets-count {
    grid-column: 1 / -1;
  }

  .bwe-facets .facets-filtering__active {
    padding-inline: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: thin;
  }

  .bwe-facets .facets-filtering__active-buttons {
    flex-wrap: nowrap;
  }

  .bwe-facets .facets-filtering__active-button {
    white-space: nowrap;
  }

  .bwe-facets .facets-count.page-width {
    padding-inline: 0;
    font-size: 14px;
  }
}

@media (max-width: 350px) {
  .bwe-facets .facets-mobile__modals.enable-multi-column-switcher {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .bwe-facets .facets-mobile__modals.enable-multi-column-switcher > * {
    width: 100%;
  }

  .bwe-facets .facets-mobile__modals.enable-multi-column-switcher > .facets-mobile__multi-column-switcher {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bwe-facets .facets-sorting__summary svg,
  .bwe-facets .facets-filtering__summary svg {
    transition: none;
  }
}
