.facets {
  display: block;
  grid-column-start: span 2;
}
.mobile-facets__open-label {
  text-transform: uppercase;
}
.facets__wrapper {
  align-items: center;
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
}

.facets__form {
  display: grid;
  gap: 0 35px;
  grid-template-columns: 1fr max-content max-content;
}

.facets__summary > div {
  display: flex;
  align-items: center;
}

.facets__summary span {
  padding-right: 10px;
}

.facets__summary .icon-arrow {
  position: revert;
}

.facets__header {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding-bottom: 17px;
  border-bottom: 1px solid rgb(var(--color-entry-line));
}

.facets__header .facets__selected {
  font-size: 14px;
}

.facets__display {
  position: absolute;
  top: 46px;
  left: 0;
  width: 330px;
  max-height: 480px;
  overflow: auto;
  z-index: 10;
  background-color: rgb(var(--color-page-background));
  padding: 20px 20px;
}

.facets__display.auto-width {
  width: auto;
}

.facets__display fieldset {
  border: 0;
  padding: 0;
}

.facets__display-vertical {
  padding-bottom: 10px;
}

.mobile-facets__list {
  overflow-y: auto;
}

.facets__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.facets__item {
  padding: 5px 0;
}

.facets__disclosure {
  margin-right: 35px;
}

.facets__price-details .facets__price-content {
  width: 340px;
}

.facets__price-details .facets__price-content.facets__display-vertical {
  width: 100%;
}

.facets__price-details .facets__header {
  border-bottom: 0;
}

.facet-checkbox {
  width: 100%;
  display: inline-block;
  cursor: pointer;
}

.facet-checkbox > span {
  display: inline-flex;
  align-items: center;
}

.facet-checkbox > span::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--color-entry-line, rgba(0,0,0, 1));
  border-radius: 12px;
  margin-right: 8px;
  flex-shrink: 0;
}

.facet-checkbox > input[type="checkbox"] {
  /* display: none; */
  position: absolute;
  opacity: 0;
}

.facet-checkbox > input[type="checkbox"]:disabled ~ span {
  border-color: rgba(var(--color-text), 0.1);
  color: rgba(var(--color-text), 0.6);
  cursor: not-allowed;
}

.facet-checkbox > input[type="checkbox"]:checked ~ span::before {
  /*background: black;*/
  /*box-shadow: inset 0 0 0px 2px #ffffff;*/
}

details[data-filter-title="Color"] input[type="checkbox"]:checked + label span {
  font-weight: 500;
}
details[data-filter-title="Color"] input[type="checkbox"]:checked + label::before {
  border-color: #000000;
}
details[data-filter-title="Size"] input[type="checkbox"]:checked + label {
  background-color: #000000;
  color: #FFFFFF;
}
details[data-filter-title="Size"] label {
  padding: 5px 0;
}

.active-facets {
  width: 100%;
  /* grid-row: 2; */
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.filter_box_class {
  position: relative;
  width: 100%;
}

@media (min-width: 751px) {
  .render_active_tag_html {
    padding-bottom: 20px;
    border-bottom: 1px solid rgb(var(--color-entry-line));
  }
}

.active-facets .active-facets__button {
  display: inline-flex;
  --color-text: transparent;
  --body4-font-size: 13px;
}
@media screen and (max-width: 750px){
  .active-facets .active-facets__button {
    --body4-font-size: 12px;
  }
}

.active-facets .active-facets__button-wrapper {
  display: flex;
  align-items: center;
}

.active-facets__button-inner {
  padding: 3px 14px;
  border-radius: 4px;
  border: 1px solid rgb(var(--color-text));
  background: #F8F8F8;
}

@media (max-width: 750px) {
  .active-facets__button-inner {
    padding: 5px 12px;
    border-radius: 3px;
  }
}

.active-facets__button-inner .icon-close {
  margin-right: 10px;
  flex-shrink: 0;
}

.facets__form-vertical {
  display: grid;
}

.facets-vertical .product-list-container {
  width: 100%;
}

.facets-vertical-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.facets-vertical-sort {
  padding: 0;
}

.disclosure-has-popup {
  position: relative;
}

.disclosure-has-popup[open] > summary:before {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: block;
  cursor: default;
  content: " ";
  background: transparent;
}

.filter-plugin-con.left-position+.facets-vertical .facets-wrapper {
    display: none;
}

.facets__disclosure-vertical {
  border-bottom: 1px solid rgb(var(--color-entry-line));
}
.mobile-facets__details .mobile-facets__summary,
.facets__disclosure-vertical .facets__summary {
  --title-font: 16px;
  padding: 15px 0;
  font-size: var(--title-font);
  font-weight: 600;
}

@media (max-width: 750px) {
  .mobile-facets__details .mobile-facets__summary,
  .facets__disclosure-vertical .facets__summary {
    --title-font: 15px;
  }
}

.facets__disclosure-vertical .facets__summary > div {
  justify-content: space-between;
}

.facets__disclosure-vertical fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.mobile-facets {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background-color: rgba(var(--color-mask), 0);
  pointer-events: none;
  transition: all 0.2s ease;
}

.mobile-facets .select {
  width: 100%;
}

.mobile-facets__disclosure.menu-opening .mobile-facets {
  background-color: rgba(var(--color-mask), 0.5);
}

.mobile-facets__header {
  padding: 0 20px 0;
}

.mobile-facets__header-inner {
  padding: 30px 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 959px) {
  .mobile-facets__header-inner {
    padding: 20px 0 0;
  }
  .active-facets {
    padding: 10px 0 25px;
    border-bottom: 1px solid rgb(var(--color-entry-line));
  }
}

.mobile-facets__disclosure {
  display: flex;
}

.mobile-facets__inner {
  width: 400px;
  background: rgb(var(--color-page-background));
  height: 100%;
  display: flex;
  flex-direction: column;
  pointer-events: all;
  transition: transform 0.4s ease;
}

@media screen and (max-width: 959px) {
  .mobile-facets__inner {
    width: 340px;
  }
}

.menu-opening .mobile-facets__inner {
  transform: translateX(0);
}

.disclosure-has-popup:not(.menu-opening) .mobile-facets__inner {
  transform: translateX(-105vw);
}

.mobile-facets__summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-facets__main {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 20px;
}

.mobile-facets__main .mobile-facets__details {
  border-bottom: 1px solid rgb(var(--color-entry-line));
}

.mobile-facets__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 20px 20px;
  border-top: 1px solid rgb(var(--color-entry-line));
}

.mobile-facets__footer .mobile-facets__count {
  flex: 1;
  margin: 0;
}

.mobile-facets__footer .button {
  width: 100%;
  flex: 1;
}

.mobile-facets__wrapper {
  flex-grow: 1;
}

.mobile-facets__wrapper .disclosure-has-popup[open] > summary:before {
  z-index: 100;
}

.mobile-facets__submenu {
  display: flex;
  flex-direction: column;
}

.mobile-facets__sort .icon-arrow {
  transform: rotate(-90deg);
}

.facets-container {
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-rows: repeat(2, auto);
  margin-bottom: 18px;
  row-gap: 8px;
}

@media (min-width: 960px) {
  .facets-container {
    margin-bottom: 40px;
  }
}

details[open].menu-opening > .mobile-facets__submenu {
  transform: translate(0);
  visibility: visible;
}

.mobile-facets details[open] .icon-arrow,
.facets__form-vertical details[open] .icon-arrow {
  transform: rotate(180deg);
}

.facets__form details[open] .facets__summary span {
  text-decoration: underline;
}

.facets__form details[open] .icon-arrow {
  transform: rotate(180deg);
}

.mobile-facets__close {
  display: flex;
  padding: 8px;
  cursor: pointer;
}

.mobile-facets__close .icon-close {
  width: 12px;
  height: 12px;
}

.mobile-facets__open {
  display: flex;
  align-items: center;
  font-weight: 500;
}
.mobile-facets__open i {
  font-style: unset;
}

.mobile-facets__open .icon-filter {
  margin-right: 13px;
}

.facets-container-drawer .facets__form {
  margin-bottom: 0;
}

.facets-container-drawer .facets__form facet-remove:not(:only-child) {
  display: inline-block;
  margin-bottom: 42px;
}

.mobile-facets__sort .icon-arrow {
  width: 10px;
}

.select {
  position: relative;
}

.select .icon-arrow {
  position: absolute;
  top: calc(50% - 5px);
  pointer-events: none;
}

.facet-filters {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* custom sort select  */

.facets__sorting-details.drawer-pc-sorting {
  margin-right: 70px;
}

@media screen and (max-width: 959px) {
  .facets__sorting-details summary,
  .mobile-facets__open-wrapper
  {
    display: flex;
    width: 100%;
    height: 39px;
    border: 1px solid #000000;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.6;
    align-items: center;
    justify-content: center;
    --body-font-weight: 500;
    gap: 5px;
  }
  .facets__sorting-details summary > span {
    padding-right: 0;
  }

}

.facets__sorting-details .facets__sorting-content {
  width: 240px;
  padding: 0 15px 20px;
  left: initial;
  right: 0;
}

.facets__sorting-content {

}

.facets__content-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(var(--color-entry-line));
  line-height: 60px;
  height: 60px;
  --body1-font-size: 25px;
  --body-bold-font-weight: 600;
  text-transform: capitalize;
}

.facets__content-header .header-close {
  font-size: 16px;
  color: #404040;
  font-weight: 600;
}

.facets__sorting-details .facets__sorting-content .sort-option {
  position: relative;
  padding: 5px 0;
  display: flex;
  align-items: center;
  cursor: pointer;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 31px;
  gap: 5px;
}
.facets__sorting-details .facets__sorting-content .sort-option:first-child {
  margin-top: 20px;
}
.facets__sorting-details .facets__sorting-content .sort-option input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
}

.facets__sorting-details .sort-option .option-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.facets__sorting-details .sort-option .option-name svg,
.facets__sorting-details .sort-option svg
{
  opacity: 0;
}
.facets__sorting-details .sort-option input:checked + .option-name svg,
.facets__sorting-details .sort-option input:checked + svg
{
  opacity: 1;
}

  /* mobile drawer mode */

.facets__sorting-details .modal__content {
  top: initial;
  transform: translateY(100%);
  --modal-animation-name: modalSlideInBottom;
}

.facets__sorting-details .modal__content .facets__sorting-content {
  width: 100%;
}

.facets__sorting-details[open] .modal__content {
  transform: translateY(0);
}

.product-count.loading > span {
  display: none;
}

a.facets__reset,
a.facets__reset:hover {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 6px;
  white-space: nowrap;
}

@media screen and (max-width: 959px) {
  .facets-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr;
    column-gap: 10px;
    align-items: center;
  }

  .facets-container .product-count--align-right {
    text-align: right;
  }
  .mobile-facets__wrapper {

  }
  .facets-container .facets-drawer {

  }
  .mobile-facets-custom {
    text-align: center;
    text-transform: uppercase;


  }
}

@media screen and (min-width: 960px) {
  .facets-vertical {
    display: flex;
    align-items: start;
    gap: 30px;
  }
  .facets-vertical .facets-wrapper {
    position: sticky;
    top: 145px;
    left: 0;
    max-width: 290px;
    width: 100%;
    overflow-y: auto;
    padding-right: 15px;
  }
  .facets-vertical .facets-wrapper::-webkit-scrollbar {
    width: 6px;
  }
  .facets-vertical .facets-wrapper::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background-color: rgba(193,193,193,1);
  }

  .facets-vertical .facets-wrapper.facets-wrapper--no-filters {
    display: none;
  }

  .facets-container-drawer {
    display: flex;
    flex-flow: row wrap;
    column-gap: 0;
  }
}

.stock-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  width: max-content;
}

.price-range-container {
  width: 340px;
}

@media screen and (max-width: 959px) {
  .price-range-container {
    width: 280px;
  }
}

.price-range-container .price-range-input {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.price-range-container .price-range-input .field {
  margin: 0;
  padding: 0 12px;
  line-height: 1;
}

.price-range-container .price-range-input .field-currency {
  opacity: 0.5;
  margin-right: 5px;
}

.price-range-container .price-range-input .line {
  width: 10px;
  background: rgb(var(--color-entry-line));
  height: 1px;
  margin: 0 8px;
  flex-shrink: 0;
}

.price-range-container .price-range-input .field__input {
  height: 42px;
  padding: 0;
}

.price-range-container .price-range-slider {
  position: relative;
  padding: 8px 0px;
}

.price-range-container .price-range-slider .price-range-track {
  position: relative;
  height: 4px;
  background-color: rgba(var(--color-text), 0.1);
}

.price-range-container .price-range-slider .price-range-bar {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(var(--color-text));
}

.price-range-container .price-range-slider .price-range-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-color: rgb(var(--color-page-background));
  border: 3px solid rgb(var(--color-text));
  border-radius: 16px;
}

.price-range-container
  .price-range-slider
  .price-range-dot.price-range-dot--min {
  left: 0;
  transform: translate(0, -50%);
}

.price-range-container
  .price-range-slider
  .price-range-dot.price-range-dot--max {
  right: 0;
  transform: translate(0, -50%);
}

/* The ipad end responds to the mobile end in vertical screen */

/* @custom-media --tablet (max-width: 959px); */

/* @custom-media --gt-mobile (min-width: 751px); */

/* detectingScreen need to consider the configuration of the tablet */



.custom_color_facets .facet-checkbox>span::before{
    content: none;
}
.custom_radio_color:after {
  width: 25px;
  height: 25px;
  border-radius: 15px;
  position: relative;
  background-color: var(--bg-color);
  content: '';
  display: inline-block;
  visibility: visible;
  z-index: 2;
  border: 2px solid white;
}

.custom_radio_color:before {
  content: '';
  display: inline-block;
  width: 27px;
  height: 27px;
  border-radius: 20px;
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.2);
  top: -1px;
  left: -1px;
}

.radio_custom {
  display: none;
}

.custom_size_flex_item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.custom_size_filters {
  flex: 0 0 calc(25% - 10px);
  max-width: calc(25% - 10px);
  text-align: center;
  border: 1px solid #E3E3E3;
  border-radius: 6px 6px 6px 6px;
  --body-line-height: 22px;
  --body-font-weight: 500;
  padding: 0;
  overflow: hidden;
}

li.facets__item.custom_size_filters.checked {
    background: #000;
    color: #fff;
}

/* .color_inner_swatches {
    flex: 0 0 50%;
    max-width: 50%;
} */

ul.facets__list.color_swatches {
  display: grid;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 10px;
  grid-template-columns: repeat(2, 1fr);
}
.facets__item.color_inner_swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 2px;
}
@media (max-width: 750px) {
  .facets__item.color_inner_swatches,
  .custom_size_filters {
    position: relative;
  }
  .custom_size_filters {
    flex: 0 0 calc(25% - 27px);
    max-width: calc(25% - 27px);
    border-radius: 4px;
  }

  details[data-filter-title="Color"] input[type="checkbox"],
  details[data-filter-title="Size"] input[type="checkbox"] {
    opacity: 0;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
  }
}
label.facet-checkbox.custom_radio_color {
  display: flex;
  width: auto;
  flex-direction: row-reverse;
  position: relative;
}

.color_inner_swatches span {
  font-size: 13px;
  line-height: 20px;
  margin-left: 10px;
}


/* .color_inner_swatches label.facet-checkbox {
    display: flex;
    align-items: center;
    gap: 11px;
} */


li.checked label.facet-checkbox.custom_radio_color {
    border-color: #000;
}
.custom_radio_color_inn {
    display: none;
}

li.facets__item.color_inner_swatches.checked_one {
    border: 2px solid;
    border-radius: 50%;
    /* height: 36px; */
    /* width: 29px; */
    display: flex;
    padding: 0;
}

.selected_size span {
    border: 1px solid #cdcfd6;
    padding: 5px 10px;
    line-height: 1;
    margin: 0 2px;
    font-size: .8125rem;
    font-weight: 300;
}

div#selected-checkbox-values p {
  font-size: 16px;
  border: 1px solid lightgray;
  line-height: 1;
  padding: 5px 14px;
}
div#selected-checkbox-values {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

a.trigger_tags {
    display: block;
    width: 100%;
}
a.trigger_tags span.active-facets__button-inner {
    display: block;
}
.facets-form-top {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.facets-form-top .facets-product-info {
  font-size: 14px;font-weight: 300;
  color: #000000;
  line-height: 1.2;
  margin: 6px 0;
}
.facets-form-top .facets-product-info * {
  font-size: inherit !important;
}
/* 筛选插件兼容样式 s */
@media (max-width: 750px) {
  .filter-m-trigger {
    flex: 1;
    margin: 0 !important;
    height: 100%;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    border: 1px solid #000000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    text-transform: uppercase;
  }
}
/* 筛选插件兼容样式 e */