/* Custom checkbox */
.custom-checkbox {
  position: relative;
  margin-left: 15px;
}

.custom-checkbox:hover {
  cursor: pointer;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  border: 2px solid #979797;
  border-radius: 3px;
}

.custom-checkbox:hover input~.checkmark {
  background-color: #fff;
}

.custom-checkbox input:checked~.checkmark {
  background-color: #fff;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked~.checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 6px;
  top: 1px;
  width: 5px;
  height: 11px;
  border: solid #d46027;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* End custom checkbox */

/* Start Custom Radio */

[type="radio"]:checked,
[type="radio"]:not(:checked) {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.filter-content .option .custom-radio {
  margin-left: 0;
  position: relative;
  bottom: 11px;
}

.radio {
  cursor: pointer;
}

input[type="radio"].css-radio+span.radio {
  content: '';
  display: inline-block;
  position: absolute;
  width: 25px;
  height: 25px;
}

body.acsb-keynav input[type=radio].acsb-shown.css-radio,
body.acsb-keynav input[type=radio].acsb-shown.css-radio+.radio {
  position: absolute;
  top: 10px;
  margin-right: -30px;
  left: 0;
}

body.acsb-keynav input[type=radio].acsb-shown.css-radio {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  top: 14px;
  left: 3px;
  border-radius: 100%;
  border: white;
  width: 10px !important;
  height: 10px !important;
  min-width: 10px !important;
  min-height: 10px !important;
}

body.acsb-keynav input[type=radio].acsb-shown.css-radio:checked {
  /* background: #e45600; */
  /* border: 1px solid #e45600; */
}

[type="radio"]:checked+.radio:before,
[type="radio"]:not(:checked)+.radio:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 100%;
  border: 2px solid #aaa8a3;
}

label [type="radio"]:focus:before {
  border: solid #000 1px;
}

[type="radio"]:checked+.radio:after,
[type="radio"]:not(:checked)+.radio:after {
  content: '';
  width: 10px;
  height: 10px;
  background: #e45600;
  position: absolute;
  top: 8px;
  left: 8px;
  border-radius: 100%;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}

[type="radio"]:not(:checked)+.radio:after {
  opacity: 0;
  -webkit-transform: scale(0);
  transform: scale(0);
}

[type="radio"]:checked+.radio:after {
  opacity: 1;
  -webkit-transform: scale(1);
  transform: scale(1);
}

/* END Custom Radio*/

.filter-panel {
  background-color: #fff;
  width: 520px;
}

.filter-panel .filter-panel-headline {
  width: 77%;
  color: #101010;
  position: relative;
  font-size: 36px;
  padding: 25px 20px;
  font-weight: 600;
  border-radius: 10px;
  margin-top: 30px;
}

.filter-panel .filter-panel-headline .plus,
.filter-panel .filter-panel-headline .minus {
  position: absolute;
  right: 25px;
  top: 25px;
  display: none;
  color: #d46027;
  cursor: pointer;
}

.filter-panel .filter-panel-headline .plus.showing,
.filter-panel .filter-panel-headline .minus.showing {
  display: block;
}

.filter-content {
  transform: translateX(-100%);
  position: relative;
  border-right: 1px solid #E1E2E3;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transition: .5s all;
  background-color: #fff;
  display: none;
}

.filter-content-inner {
  overflow: auto;
  max-height: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.filter-content-inner::-webkit-scrollbar {
  display: none;
}

#home-grown-filtration-placeholder .filters {
    z-index: 10015;
}

.filters.active .filter-content {
  transform: translateX(0%);
  display: block;
}

.filter-content::-webkit-scrollbar {
  display: none;
}

.filter-content .expand-icon {
  cursor: pointer;
}

.filter-content .results-number {
  margin-left: 10px;
}


@media screen and (min-width: 992px) {
  .filter-content {
    height: 100vh;
    width: 415px;
  }
}

.filters {
  order: 3;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 10004;
}

.filter-label {
  left: 0;
  width: 440px;
  transform: rotate(0deg);
  top: 20px;
  border-radius: 0;
  background-color: #d46027;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  padding: 15px 30px;
  transition: .5s all;
}

.filters.active .filter-label {
  left: 0;
}


@media screen and (min-width: 993px) {
  .filter-label {
    left: -130px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    position: absolute;
    top: 48%;
    transform: rotate(270deg);
    width: 250px;
  }
}

.filter-label:hover {
  cursor: pointer;
}

.filters.active .arrow-white-bottom,
.filters.active .arrow-white-top {
  transform: rotate(270deg);
}

.filters.active .filter-label {
  left: 285px;
}

@media screen and (min-width: 993px) and (max-width: 1100px) {
  .filter-label {
    left: -135px;
    top: 65%;
    padding: 10px 30px;
  }

  .filters.active .filter-label {
    left: 280px;
  }
}

.filter-head {
  color: #101010;
  font-size: 19px;
  font-weight: 600;
  padding: 20px;
  border-top: 1px solid #E1E2E3;
  display: flex;
  flex-flow: row;
  align-items: center;
  justify-content: space-between;
}

@media screen and (max-width: 500px) {
  .filter-head {
    font-size: 14px;
  }
}

.filter-content .option {
  display: flex;
  align-items: center;
}

.filter-content .option p {
  margin-left: 35px;
}

.filter-content .option .custom-checkbox {
  margin-left: 0;
  position: relative;
  bottom: 11px;
}

.filter-body {
  display: none;
  padding: 0 20px 20px;
}

.filter-row.active .filter-body {
  display: block;
}

.filter-head p {
  margin: 0;
}

.filter-head .info {
  position: relative;
  top: 4px;
  left: 10px;
}

.filter-body .option {
  display: flex;
  align-items: center;
}

.filter-content .expand-icon {
  width: 20px;
  height: 20px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.filters .arrow-white-top {
  transition: .5s all;
  transform: rotate(90deg);
  margin-right: 20px;
}

.filters .arrow-white-bottom {
  transition: .5s all;
  transform: rotate(90deg);
  margin-left: 20px;
}

#sort-placeholder,
.filters .clear-filters-special {
  display: none;
}

@media screen and (max-width: 992px) {
  .filters {
    position: relative;
    margin-top: 20px;
    min-height: 50px;
  }

  .category-page .filters {
    margin-top: 0;
    z-index: 1;
  }

  .filters .sort-filter-container {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
  }

  .filters .sort-filter-container>div.btn {
    width: calc(50% - 10px);
    padding: 5px 0;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }

  .filters .sort-filter-container>div.btn.btn-white {
    color: #d46027;
    background-color: #fff;
    border: 1px solid #d46027;
  }

  .filters .sort-filter-container>div.btn.btn-orange {
    color: #fff;
    background-color: #d46027;
  }

  .filters .sort-filter-container>div.btn>.button-icon {
    padding-right: 10px;
  }

  .filters .sort-filter-container>div.btn.btn-white>.button-icon {
    filter: invert(47%) sepia(28%) saturate(2217%) hue-rotate(344deg) brightness(88%) contrast(87%);
  }

  .filters .sort-filter-container>div.btn.btn-orange>.button-icon {
    filter: invert(100%) sepia(0%) saturate(7500%) hue-rotate(5deg) brightness(122%) contrast(115%);
  }

  .filters.showing {
    display: block;
  }

  .filters .filter-content,
  .filters #sort-placeholder {
    margin: 15px 15px 0 15px;
    width: calc(100% - 30px);
  }

  .filters .filter-content {
    border: 1px solid #e1e2e3;
  }

  .filters .filter-content .filter-row:first-of-type .filter-head,
  .filters .filter-content #selectedFilters+.filter-row .filter-head {
    border-top: none;
  }

  .filters .filter-content,
  .filters .filter-content-inner {
    border-radius: 10px;
  }

  .filter-content .option .custom-checkbox {
    bottom: 0;
  }

  #sort-placeholder.active {
    display: block;
  }

  #sort-placeholder select {
    width: calc(100% - 20px);
  }

  .filters .clear-filters-special {
    width: calc(100% - 40px);
    margin-left: 20px;
    color: #532279;
  }

  .filters .clear-filters-special.active {
    display: block;
  }

  .filters .filter-content-inner .filter-close-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid #E1E2E3;
  }

  .filters .filter-content-inner .filter-close {
    box-sizing: border-box;
    width: calc(100% - 20px);
    max-width: 500px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
  }

  #selectedFilters {
    display: none;
  }

  .category-page .filter-content .option .custom-checkbox {
    margin-top: -20px;
  }

  /*The following 2 rules make the old style narrow your results on the category page. Remove them as needed to swap to the new style.*/
  .category-page #home-grown-filtration-placeholder .filter-label.desktop-only {
    display: flex !important;
    box-sizing: border-box;
    width: 100%;
    margin-top: 20px;
  }

  .category-page #home-grown-filtration-placeholder .sort-filter-container.mobile-only {
    display: none !important;
  }
}

.filters .filter-label:hover {
  background-color: #F88146;
}

.filters .expand-icon {
  background-image: url('./../../images/icon/plus.svg');
}

.filters .filter-row.active .expand-icon {
  background-image: url('./../../images/icon/minus.svg');
}

.filters .filter-label:hover {
  background-color: #F88146;
}

#selectedFilters {
  flex-direction: row-reverse;
}

.filter-row>ul {
  margin-top: 5px;
}

.filter-row li {
  padding-top: 3px;
}

.filter-content {
  margin: 0 auto;
}

.filter-content .btn.btn-thin {
  font-size: 14px;
  padding: 0 30px;
}

.filter-content ul.spacer-for-button {
  margin-bottom: 30px;
}

.filterClrMsg {
  margin-left: 20px;
  margin-right: auto;
}

.filterReset {
  margin-top: 15px;
  display: block;
  text-decoration: underline;
  font-weight: 600;
}

.pad-same-as-title {
  padding-left: 20px;
  padding-bottom: 15px;
  font-size: 16px;
}

select:focus,
select:focus option,
input:focus,
input:focus~.checkmark {
  border: 1px solid #000000;
}

/*To make these show up on desktop as a sidebar instead of floating */
.filters .filter-content .filter-title {
  display: none;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 20px 10px 20px;
  margin-top: 0;
}

.main-listing-area .filters .filter-content .filter-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.main-listing-area .filters {
  position: sticky;
  top: 25px;
}

.main-listing-area .filters .filter-content {
  display: block;
  transform: unset;
  height: unset;
  width: 100%;
  border-radius: 15px;
}

.main-listing-area .filters .filter-label {
  display: none;
}

@media screen and (max-height: 750px) {
  .main-listing-area .main-listing-area-left .filter-head {
    padding: 15px;
  }
}

@media screen and (max-height: 450px) {
  .main-listing-area .main-listing-area-left .filter-head {
    padding: 10px;
  }
}

.main-listing-area .main-listing-area-left {
  display: none;
}

@media screen and (min-width: 1201px) {

  .products-container:not(.dont-hide-filters)>.filters,
  .category-page__container>.filters {
    display: none;
  }

  .main-listing-area {
    display: flex;
    overflow: hidden;
  }

  .main-listing-area .main-listing-area-left {
    display: block;
    width: 21%;
    margin-top: 40px;
    flex-shrink: 0;
    margin-right: 30px;
    border-radius: 15px;
  }

  .category-page__container .main-listing-area .main-listing-area-left {
    margin-top: 10px;
  }

  .category-page__container .main-listing-area .main-listing-area-right {
    margin-top: 10px;
    width: 100%;
  }

  .category-page__container .main-listing-area .main-listing-area-right .main-products-list-container {
    padding-left: 0;
    padding-right: 0;
  }

  /*match padding right 0 on product-row and on both types of pages on left half the left margin*/
  .main-listing-area .main-listing-area-left .field-name {
    width: -moz-min-content;
    width: -webkit-min-content;
    width: min-content;
  }

  .main-listing-area .main-listing-area-left .filter-head {
    font-size: 14px;
    white-space: nowrap;
  }

  .main-listing-area .main-listing-area-right .product-row .text {
    font-size: 14px;
  }

  .main-listing-area .main-listing-area-right .product-row h2.title {
    font-size: 30px;
    line-height: 40px;
  }

  .main-listing-area .main-listing-area-right .product-row .subtitle {
    font-size: 16px;
  }

  .main-listing-area .main-listing-area-right .product-row .specifications,
  .main-listing-area .main-listing-area-right .product-row p.check {
    font-size: 14px;
  }

  .main-listing-area .main-listing-area-right .product-row .colors-pallete {
    margin-top: 35px;
  }

  .main-listing-area .main-listing-area-right .product-row .colors-pallete .circle {
    width: 30px;
    height: 30px;
  }

  .main-listing-area .main-listing-area-right .more-content {
    width: calc(100% - 100px);
    min-width: calc(100% - 100px);
    margin: 0 auto;
  }

  .main-listing-area .main-listing-area-right .more-content h5,
  .main-listing-area .main-listing-area-right .more-content p {
    font-size: 14px;
  }
}

/*End floating desktop sidebar madness*/