  .block-ifsa-program-finder {
  background: var(--wp--preset--color--background);
}

.program-finder__container {
  border: 1px solid var(--wp--preset--color--background-alt-two);
  border-top: 0;
}

.program-finder__header {
  align-items: stretch;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

@media only screen and (min-width: 1000px) {
  .program-finder__header {
    flex-direction: row;
  }
}

.program-finder__header-button {
  align-items: flex-start;
  background: var(--wp--preset--color--background);
  border: 2px solid var(--wp--preset--color--background-alt-two);
  border-bottom: 0;
  border-radius: 0 !important;
  display: flex;
  cursor: pointer;
  flex-grow: 1;
  flex-basis: 20%;
  font-size: 17px;
  font-weight: 500;
  justify-content: space-between;
  line-height: 1.3em;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 12px;
  padding-right: 12px;
}

.program-finder__header-button:last-child {
  border-bottom: 2px solid var(--wp--preset--color--background-alt-two);
}

@media only screen and (min-width: 1000px) {
  .program-finder__header-button {
    border: 2px solid var(--wp--preset--color--background-alt-two);
    min-width: 20%;
    max-width: 20%;
    border-bottom: 2px solid var(--wp--preset--color--background-alt-two);
    border-right: 0;
  }

  .program-finder__header-button:last-child {
    border-right: 2px solid var(--wp--preset--color--background-alt-two);
  }
}

.program-finder__header-button-icon {
  align-items: center;
  background: #f3efeb;
  background: var(--wp--preset--color--background-alt);
  display: flex;
  height: 20px;
  justify-content: center;
  transition: transform 300ms ease;
  width: 20px;
}

.program-finder__header-button-icon .icon-chev-down {
  fill: var(--wp--preset--color--foreground);
}

.program-finder__header-button--open {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text-alt) !important;
}

.program-finder__header-button--open .program-finder__header-button-icon {
  transform: rotate(180deg);
}

.program-finder__footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 24px 32px;
}

.program-finder__footer-title {
  margin: 0;
}

.program-finder__taxonomy {
  background: #f3efeb;
  box-sizing: border-box;
  background: var(--wp--preset--color--background-alt);
  display: none;
  overflow: hidden;
  transition: height 500ms ease;
}

.program-finder__taxonomy--open {
  display: block;
}

.program-finder__taxonomy-term-toggle--open {
  background: #fff;
}

.program-finder__taxonomy-content,
.program-finder__taxonomy-items-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-row-gap: 32px;
  grid-column-gap: 32px;
  padding: 18px;
}

@media only screen and (min-width: 650px) {
  .program-finder__taxonomy-content,
  .program-finder__taxonomy-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 900px) {
  .program-finder__taxonomy-content,
  .program-finder__taxonomy-items-grid {
    padding: 40px;
    grid-template-columns: repeat(4, 1fr);
  }
}

.program-finder__taxonomy--hierarchical .program-finder__taxonomy-content {
  grid-template-columns: 1fr;
  grid-row-gap: 4px;
}

.no--grid {
  display: block !important;
}

.no--grid .program-finder__taxonomy-items-grid {
  padding: 0;
}

.no--grid h2 {
  padding: 0;
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.5rem;
}

.program-finder__taxonomy-items {
  margin-bottom: 30px;
}

@media only screen and (min-width: 900px) {
  .no--grid h2 {
    padding: 0;
  }
}

.program-finder__checkbox-main-label {
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  margin-left: 10px;
  vertical-align: middle;
}

.program-finder__checkbox-main {
  cursor: pointer;
  border: 2px solid var(--wp--preset--color--primary);
  height: 20px;
  vertical-align: middle;
  width: 20px;
}

.program-finder__taxonomy--hierarchical .program-finder__taxonomy-term-toggle {
  border: 2px solid var(--wp--preset--color--background-alt-two);
  border-radius: 4px;
  padding: 12px;
}

.program-finder__taxonomy-term-toggle-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-grow: 1;
  justify-content: flex-end;
}

.program-finder__taxonomy-term-toggle-button .icon {
  align-items: center;
  fill: var(--wp--preset--color--primary);
  justify-content: center;
  height: 20px;
  width: 20px;
}

.program-finder__checkbox-child {
  cursor: pointer;
  height: 16px;
  margin-right: 9px;
  vertical-align: middle;
  width: 16px;
}

.program-finder__checkbox-child-label {
  cursor: pointer;
  line-height: 16px;
  vertical-align: middle;
}

.program-finder__taxonomy-term-toggle-button .icon-plus {
  display: flex;
}

.program-finder__taxonomy-term-toggle-button .icon-minus {
  display: none;
}

.program-finder__taxonomy-term-toggle-button.program-finder__taxonomy-term-toggle-button--open
  .icon-plus {
  display: none;
}

.program-finder__taxonomy-term-toggle-button.program-finder__taxonomy-term-toggle-button--open
  .icon-minus {
  display: flex;
}

.program-finder__taxonomy-term-toggle-content {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.program-finder__tax-child {
  display: flex;
  align-items: flex-start;
  height: 32px;
}

.program-finder__checkbox-child {
  flex-shrink: 0;
}

.program-finder__taxonomy-child-terms {
  display: none;
  overflow: hidden;
  transition: height 500ms ease;
}

.program-finder__taxonomy-child-terms--open {
  display: block;
}

.program-finder__taxonomy-child-terms-container {
  display: grid;
  grid-column-gap: 18px;
  grid-row-gap: 9px;
  grid-template-columns: repeat(1, 1fr);
  padding: 15px;
}

@media only screen and (min-width: 650px) {
  .program-finder__taxonomy-child-terms-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 900px) {
  .program-finder__taxonomy-child-terms-container {
    padding: 15px 60px 30px;
    grid-template-columns: repeat(4, 1fr);
  }
}

.programs-finder__program--hidden {
  display: none;
}

.programs-finder__program .wp-block-post-featured-image img {
  display: block;
  height: 225px;
  object-fit: cover;
  width: 100%;
}

.programs-finder__grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-column-gap: 40px;
  grid-row-gap: 40px;
  padding-top: 60px;
}

@media only screen and (min-width: 750px) {
  .programs-finder__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 1050px) {
  .programs-finder__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.programs-finder__program .wp-block-post-title {
  margin: 0;
}

.programs-finder__program .wp-block-post-title a {
  color: var(--wp--preset--color--foreground);
  display: block;
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.programs-finder__program .wp-block-ifsa-program-location {
  margin: 14px 0 0px;
  font-size: 15px;
}

.programs-finder__program .wp-block-column {
  flex-basis: 50%;
  max-width: 50%;
  min-width: 0;
}

.programs-finder__program .wp-block-columns {
  flex-wrap: nowrap;
}

.programs-finder__program .wp-block-read-more {
  color: var(--wp--preset--color--foreground);
  display: inline-block;
  margin-top: 24px;
  position: relative;
}

.programs-finder__program .wp-block-read-more::after {
  content: "→";
  content: url(/wp-content/themes/eri-block-theme/blocks/block-ifsa-program-finder/"data:image/svg+xml,%3Csvg xmlns='http:/www.w3.org/2000/svg' width='16px' height='16px' fill='none' stroke='rgb(51,0,114)' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' style='display:inline-block;vertical-align:middle' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E");
  color: var(--wp--preset--color--primary);
  position: absolute;
  top: 2px;
  right: -20px;
}

.programs-finder__filters {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 60px;
}

.programs-finder__filters-container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.programs-finder__filter-title {
  align-items: center;
  border: 0;
  border-bottom: 2px solid var(--wp--preset--color--background-alt-two);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  font-size: 16px;
  font-weight: 400;
  justify-content: space-between;
  padding: 8px;
  min-width: 150px;
  word-break: break-word;
}

.programs-finder__filter {
  margin-left: 20px;
  position: relative;
}

.programs-finder__filter-title--open {
  background: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--text-alt) !important;
}

#program-finder__pagination .wp-block-query-pagination {
  margin-top: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.page-numbers {
  cursor: pointer;
}

.page-numbers.dots,
.page-numbers.current {
  cursor: default;
}

.reset-filters {
  display: none;
}

.program-finder__footer-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.program-finder__footer-buttons .wp-block-button {
  margin-left: 20px;
}

.programs-finder__filter-icon {
  flex-shrink: 0;
  margin-left: 10px;
  width: 12px;
}

.programs-finder__filter-title--open .programs-finder__filter-icon {
  fill: #fff;
  transform: rotate(180deg);
}

.programs-finder__filter-list {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 1;
}

.programs-finder__filter-list--open {
  display: block;
}

.programs-finder__filter-item {
  align-items: center;
  background: var(--wp--preset--color--background-alt-two);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  font-weight: 400;
  justify-content: space-between;
  margin-top: 4px;
  min-width: 100%;
  padding: 8px;
  width: max-content;
}

.programs-finder__filter-item-icon {
  align-items: center;
  display: flex;
  justify-content: center;
  margin-left: 2px;
  stroke: #fff !important;
  width: 24px;
}

.programs-finder__sorting-filter {
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--wp--preset--color--background-alt-two);
  border-radius: 0;
  padding: 8px;
}
