.facetwp-selections ul {
  padding: 0;
}
.facetwp-selections ul .facetwp-selection-label {
  font-size: var(--wp--preset--font-size--small);
}
.facetwp-selections ul .facetwp-selection-value {
  font-size: var(--wp--preset--font-size--small);
  background-color: #ccc;
  border: 1px solid #000;
  border-radius: 50px;
  padding: 0.25rem 0.5rem;
  min-width: min-content;
  padding-right: 1.25rem;
  background-position: calc(100% - 0.25rem) center;
}
.mobile-toggle-filters,
.close-filter,
.mobile-show-results,
.mobile-only-filter-footer {
  display: none;
}

.filter-plants .facetwp-facet {
  margin-bottom: 0;
}

.filters .facetwp-facet {
  display: grid;
  gap: 0.5rem;
}
.filters .facetwp-facet.facetwp-hidden {
  display: none;
}
.filters {
  visibility: hidden;
}
#filters.show {
  display: flex;
  z-index: 9;
  flex-direction: column;
  gap: 1rem;
  visibility: visible;
}
.filters h5 {
  margin: 0;
}
.filter-control .btn {
  color: #000;
}
.btn.btn-no-outline {
  background: transparent;
  border: none;
  text-align: left;
  padding: 0.5rem;
  border-radius: 0.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filters .filter-control {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 2px solid var(--wp--preset--color--gray-50);
  border-radius: 0.25rem;
}
.filter-control .facetwp-facet {
  display: none;
}
.filter-control .facetwp-facet.show {
  display: grid;
  padding: 0 1rem 1rem 1rem;
}
.results {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  background-color: #fff;
  padding: 2rem;
}
.results .facetwp-template {
  display: grid;
  column-gap: 2rem;
}
.btn,
button {
  cursor: pointer;
}

.filter-plants img {
  opacity: 1;
}
.plant-card-content * {
  margin: 0;
  display: block;
}
.plant-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.plant-card {
  display: flex;
  gap: 1.5rem;
  text-decoration: none;
  border-radius: 0.25rem;
  /* overflow: hidden; */
  padding: 1.5rem;
  transition: all 200ms;
  border: 1px solid var(--wp--preset--color--gray-50);
  /* align-items: center; */
  /* color: var(--wp--preset--color--gray-600); */
}
.plant-card .plant-title {
  /* color: var(--wp--preset--color--gray-600); */
  /* text-transform: capitalize; */
}
.plant-card-thumbnail {
  height: 100%;
  overflow: hidden;
  width: 100%;
  max-width: 25%;
}
.plant-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
}
.plant-short-description {
  line-height: 1.5;
}
.facetwp-template .plant-card:hover {
  text-decoration: none;
  background-color: #fff;
  box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.25);
  transition: all 200ms;
}

.plant-card button {
  background: transparent;
  display: flex;
  gap: 0.25rem;
  align-items: center;
  text-decoration: none;
  border-radius: 0.25rem;
  border: none;
  padding: 0;
  color: #000;
  /* color: var(--wp--preset--color--gray-600); */
  /* justify-content: space-between; */
}
.facetwp-template .plant-card:hover button {
  text-decoration: underline;
}
.facetwp-template .plant-card:hover * {
  color: var(--wp--preset--color--gray-800);
}
.facetwp-template .plant-card button svg {
  transition: all 200ms;
}
.facetwp-template .plant-card:hover button svg {
  transition: all 200ms;
  transform: translateX(4px);
}
.plant-card .plant-category {
  color: var(--wp--preset--color--gray-300);
}

.additional-filter.filters {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 1rem;
}

/* .additional-filter.filters div:nth-child(2),
.additional-filter.filters div:last-child {
  flex-grow: 1;
} */

.facetwp-facet-search_for_plants .facetwp-icon {
  background-color: var(--wp--preset--color--primary);
}

.facetwp-facet-search_for_plants .facetwp-icon:before {
  background: url("data:image/svg+xml,%3Csvg stroke='%23fff' fill='%23fff' stroke-width='0' viewBox='0 0 16 16' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M15.7 13.3l-3.81-3.83A5.93 5.93 0 0 0 13 6c0-3.31-2.69-6-6-6S1 2.69 1 6s2.69 6 6 6c1.3 0 2.48-.41 3.47-1.11l3.83 3.81c.19.2.45.3.7.3.25 0 .52-.09.7-.3a.996.996 0 0 0 0-1.41v.01zM7 10.7c-2.59 0-4.7-2.11-4.7-4.7 0-2.59 2.11-4.7 4.7-4.7 2.59 0 4.7 2.11 4.7 4.7 0 2.59-2.11 4.7-4.7 4.7z'%3E%3C/path%3E%3C/svg%3E")
    no-repeat;
  background-repeat: no-repeat;
  background-position: center;
  width: 40px;
}

.filters .facetwp-checkbox,
.facetwp-type-fselect .fs-option .fs-option-label {
  color: var(--wp--preset--color--gray-600);
  font-size: var(--wp--preset--font-size--small);
  line-height: 1;
  padding-left: 1.5rem;
  text-transform: capitalize;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Crect x='1' y='1' width='16' height='16' rx='1' stroke='%238D8D8D' stroke-width='2'/%3E%3C/svg%3E");
}
.facetwp-overflow {
  display: grid;
  gap: 0.5rem;
}
.facetwp-type-fselect .fs-option .fs-option-label {
  background-image: none;
  padding-left: 0;
}
.facetwp-facet input {
  border: 1px solid #000 !important;
  font-size: 1rem !important;
  line-height: 1;
}

.filters .facetwp-checkbox.checked {
  background-image: var(--wp--preset--gradient--custom-color-1);
  color: black;
}
.pagination {
  padding: 2rem 0;
  max-width: max-content;
  margin-left: auto;
}
.facetwp-page {
  padding: 0px 4px;
  margin-right: 6px;
  cursor: pointer;
  text-decoration: none;
}
.facetwp-page:not(.next):not(.prev):not(.dots) {
  display: inline-flex;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  text-align: center;
  border: 1px solid #e2e2e2;
  border-radius: 50%;
}
.wp-block-lazyblock-plant-filter {
  background: #fff;
}
.results .facetwp-template {
  display: grid;
  gap: 2rem;
}
.fs-dropdown .fs-options {
  max-height: 100% !important;
  display: grid;
  gap: 0.5rem;
}
.facetwp-facet-family_index .fs-wrap.single {
  width: 100%;
}
.facetwp-facet-family_index .fs-wrap.single .fs-label-wrap,
.fs-options .fs-option:first-child {
  display: none !important;
}
.facetwp-facet-family_index .fs-wrap.single .fs-dropdown {
  display: block !important;
  position: static;
  background-color: transparent;
  border: none;
}

.fs-search,
.fs-optgroup-label {
  padding: 0 !important;
}
.fs-wrap .fs-search input {
  padding: 0.5rem 1rem !important;
  margin-bottom: 0.5rem;
}
.facetwp-facet-count {
  font-size: var(--wp--preset--font-size--small);
}
.facetwp-reset {
  background-color: transparent;
  border-radius: 0.25rem;
  padding-right: 2rem;
  background-position: calc(100% - 0.5rem) center;
  transition: all 300ms;
  position: relative;
}
.facetwp-reset::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  background-position: center;
  background-repeat: no-repeat;
  /* right: calc(100% - 0.5rem); */
  width: 2rem;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg stroke='currentColor' fill='currentColor' stroke-width='0' viewBox='0 0 24 24' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke-width='2' d='M20,8 C18.5974037,5.04031171 15.536972,3 12,3 C7.02943725,3 3,7.02943725 3,12 C3,16.9705627 7.02943725,21 12,21 L12,21 C16.9705627,21 21,16.9705627 21,12 M21,3 L21,9 L15,9'%3E%3C/path%3E%3C/svg%3E");
  transition: all 300ms;
}
.facetwp-reset:hover {
  background-color: #000;
  color: #fff;
}
.facetwp-reset:hover::after {
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg stroke='%23fff' fill='currentColor' stroke-width='0' viewBox='0 0 24 24' height='1em' width='1em' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='none' stroke-width='2' d='M20,8 C18.5974037,5.04031171 15.536972,3 12,3 C7.02943725,3 3,7.02943725 3,12 C3,16.9705627 7.02943725,21 12,21 L12,21 C16.9705627,21 21,16.9705627 21,12 M21,3 L21,9 L15,9'%3E%3C/path%3E%3C/svg%3E");
  transform: rotate(360deg);
  transition: all 500ms;
}
@media screen and (min-width: 1024px) {
  .filter-plants {
    display: grid;
    grid-template-columns: 30ch 1fr;
    gap: 2rem;
  }

  .filters {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    visibility: visible;
  }

  .results .facetwp-template {
    grid-template-columns: repeat(auto-fit, minmax(23rem, 1fr));
  }
}

@media screen and (max-width: 1023px) {
  .results {
    padding-top: 0;
  }

  .mobile-only-filter-footer {
    display: flex;
    gap: 0.25rem;
  }

  .mobile-toggle-filters,
  .mobile-show-results {
    display: block;
  }

  .close-filter {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
  }

  .mobile-toggle-filters {
    grid-column-start: 1;
    grid-column-end: 3;
    display: flex;
    justify-content: space-between;
    background-color: #ccc;
    gap: 0.125rem;
    border-bottom: 0.125rem solid #ccc;
    width: 100%;
  }

  .mobile-toggle-filters button {
    display: flex;
    background: #fff;
    padding: 2rem 1rem;
    color: #000;
    width: 100%;
    align-items: center;
    border: none;
    justify-content: center;
  }

  .mobile-toggle-filters button:hover {
    background: #fff;
  }

  #filters {
    width: 100%;
    height: 100%;
    background: rgba(221, 221, 221, 1);
    position: fixed;
    left: 0;
    top: 0;
    overflow: auto;
    padding: 4rem 2rem;
    visibility: hidden;
    transform: translateX(-100%);
    opacity: 0.5;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  #filters.show {
    opacity: 1;
    transform: translateX(0);
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .additional-filter.filters {
    visibility: visible;
    display: flex;
    flex-direction: column;
    position: static;
    background-color: transparent;
    padding: unset;
    flex-wrap: wrap;
  }
  .filters .facetwp-facet {
    width: 100%;
    text-align: center;
  }
  .filters .facetwp-facet-search_for_plants input {
    min-width: min(240px, 100%) !important;
  }
}
