/* GENERAL / LAYOUT */
.cb-downloadcenter {
  background-color: var(--light-light-grey);
}

.cb-block__inner {
  max-width: var(--width-content);
  margin: 0 auto;
}

.cb-downloadcenter__wrapper {
  display: flex;
  grid-column-gap: 1.875rem;
  justify-content: flex-start;
  padding: 3rem 0;
}

/* LOAD MORE BUTTON */
.cb-loadmore__buttonwrapper {
  text-align: center;
  margin-top: 2.5rem;
}
.cb-downloadcenter__loadmore {
  font-size: 1rem;
  font-weight: bold;
  background-color: transparent;
  padding: 1rem 2rem;
  border: 3px solid var(--black);
}
.cb-downloadcenter__loadmore svg {
  width: 1.25rem;
  margin-left: 1rem;
}
.cb-downloadcenter__loadmore:hover {
  cursor: pointer;
  color: var(--white);
  background-color: var(--black);
}
.cb-downloadcenter__loadmore:hover svg {
  fill: var(--white);
}
.cb-downloadcenter__loadmore.hide {
  display: none;
}

/* LOADING ANIMATION */
.loading {
  opacity: 0.6;
}
.loading-wrapper {
  display: none;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
}
.loading .loading-wrapper {
  display: flex;
}
.lds-roller {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-roller div {
  animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-origin: 40px 40px;
}
.lds-roller div:after {
  content: " ";
  display: block;
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--black);
  margin: -4px 0 0 -4px;
}
.lds-roller div:nth-child(1) {
  animation-delay: -0.036s;
}
.lds-roller div:nth-child(1):after {
  top: 63px;
  left: 63px;
}
.lds-roller div:nth-child(2) {
  animation-delay: -0.072s;
}
.lds-roller div:nth-child(2):after {
  top: 68px;
  left: 56px;
}
.lds-roller div:nth-child(3) {
  animation-delay: -0.108s;
}
.lds-roller div:nth-child(3):after {
  top: 71px;
  left: 48px;
}
.lds-roller div:nth-child(4) {
  animation-delay: -0.144s;
}
.lds-roller div:nth-child(4):after {
  top: 72px;
  left: 40px;
}
.lds-roller div:nth-child(5) {
  animation-delay: -0.18s;
}
.lds-roller div:nth-child(5):after {
  top: 71px;
  left: 32px;
}
.lds-roller div:nth-child(6) {
  animation-delay: -0.216s;
}
.lds-roller div:nth-child(6):after {
  top: 68px;
  left: 24px;
}
.lds-roller div:nth-child(7) {
  animation-delay: -0.252s;
}
.lds-roller div:nth-child(7):after {
  top: 63px;
  left: 17px;
}
.lds-roller div:nth-child(8) {
  animation-delay: -0.288s;
}
.lds-roller div:nth-child(8):after {
  top: 56px;
  left: 12px;
}
@keyframes lds-roller {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* DOWNLOAD ITEMS */
.cb-downloadcenter__results {
  position: relative;
  flex-basis: 80%;
}
.cb-downloadcenter__download {
  display: flex;
  justify-content: space-between;
  position: relative;
  color: var(--black);
  text-align: left;
  text-decoration: none;
  background-color: var(--white);
  padding: 0.75rem 1.125rem 0 0;
  border: none;
  margin-bottom: 1rem;
  box-shadow: 2px 2px 5px 0 rgba(180, 180, 180, 0.5);
  width: 100%;
}
.cb-downloadcenter__download:hover {
  cursor: pointer;
  box-shadow: inset 1px 1px 4px 0 rgba(68, 68, 68, 0.2);
}

.cb-downloadcenter__download:hover h3 {
  color: var(--grey);
}

.cb-downloadcenter__download:after {
  content: "";
  background-image: url("/wp-content/themes/cbra-child/assets/icons/download-icon.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
  position: absolute;
  left: 1.5rem;
  bottom: 1rem;
  width: 24px;
  height: 24px;
}

.cb-downloadcenter__desc {
  margin-left: 100px;
  max-width: 50%;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.cb-downloadcenter__desc h3 {
  margin: 0;
  font-size: 1.375rem;
  transition: all ease 0.3s;
}

.cb-downloadcenter__desc p {
  margin-bottom: 0;
}

/* Tags */
.cb-downloadcenter__filetype {
  position: absolute;
  display: block;
  font-weight: 900;
  font-size: 0.8rem;
  text-transform: uppercase;
  top: 0;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--light-yellow);
  line-height: 1;
}
.cb-downloadcenter__terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  max-width: 33%;
}
.cb-downloadcenter__terms span {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: bold;
  padding: 0 0.625rem;
  border: solid 1px var(--yellow);
  margin-left: 1rem;
  margin-bottom: 0.5rem;
}

/* Show more */
.cb-downloadcenter__filtergroup--minimized :nth-child(n + 5) {
  display: none;
}
.cb-filtergroup__show-more {
  display: none;
  background-color: transparent;
  background-image: url('data:image/svg+xml,<%3Fxml version="1.0" %3F><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg enable-background="new 0 0 50 50" height="50px" id="Layer_1" version="1.1" viewBox="0 0 50 50" width="50px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect fill="none" height="50" width="50"/><line fill="none" stroke="%23000000" stroke-miterlimit="10" stroke-width="4" x1="9" x2="41" y1="25" y2="25"/></svg>');
  background-repeat: no-repeat;
  background-size: 1em;
  background-position: center right;
  border: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 0 1.25em 0 0;
  margin-bottom: 1.5rem;
  font-family: var(--font-secondary);
  cursor: pointer;
  position: relative;
}
.cb-downloadcenter__filtergroup .cb-filtergroup__show-more {
  display: block;
  position: relative;
}
.cb-downloadcenter__filtergroup--minimized .cb-filtergroup__show-more {
  background-image: url('data:image/svg+xml,<%3Fxml version="1.0" %3F><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg enable-background="new 0 0 50 50" height="50px" id="Layer_1" version="1.1" viewBox="0 0 50 50" width="50px" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><rect fill="none" height="50" width="50"/><line fill="none" stroke="%23000000" stroke-miterlimit="10" stroke-width="4" x1="9" x2="41" y1="25" y2="25"/><line fill="none" stroke="%23000000" stroke-miterlimit="10" stroke-width="4" x1="25" x2="25" y1="9" y2="41"/></svg>');
}
.cb-downloadcenter__wrapper .cb-filtergroup__show-more svg {
  display: inline-block;
  margin-left: 0.5rem;
  width: 15px;
  height: 16px;
  position: absolute;
  top: 2px;
}

/* FILTER BAR */
.cb-downloadcenter__filter {
  background-color: var(--white);
  flex-basis: 20%;
  padding: 1.25rem 1rem 2.8rem 1.1rem;
  position: relative;
}

.cb-downloadcenter__filter:before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  height: 3px;
  width: 143px;
  background-color: var(--yellow);
}

.cb-downloadcenter__filter h3 {
  margin: 0;
}

.cb-downloadcenter__seperator {
  width: 100%;
  height: 1px;
  background-color: var(--black);
}

/* SEARCH */
.cb-downloadcenter__searchbar {
  background-color: var(--white);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#cb-downloadcenter__search {
  display: flex;
}
.cb-downloadcenter__input {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  border: 2px solid var(--grey);
  width: 470px;
  height: 50px;
  position: relative;
  background-color: transparent;
  padding-left: 3rem;
}

.cb-downloadcenter__input svg {
  display: none;
}
.cb-downloadcenter__input svg:hover {
  cursor: pointer;
}

#cb-downloadcenter__query {
  border: none;
  width: 90%;
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: bold;
}

#cb-downloadcenter__search {
  position: relative;
}

.cb-downloadcenter__label--query {
  visibility: hidden;
  width: 0;
}

#cb-downloadcenter__search:before {
  content: "";
  position: absolute;
  background-image: url("/wp-content/themes/cbra-child/assets/icons/search-downloads.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
  left: 1rem;
  width: 20px;
  height: 20px;
  top: 15px;
}

#cb-downloadcenter__search input[type="submit"] {
  height: 50px;
  min-width: 130px;
  margin-left: 2rem;
  border: none;
  background-color: var(--yellow);
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: bold;
  transition: all ease 0.3s;
}

#cb-downloadcenter__search input[type="submit"]:hover {
  cursor: pointer;
  background-color: var(--black);
  color: var(--white);
}

/* TOTAL RESULTS */
.cb-found-posts__text {
  display: block;
  color: var(--grey);
  margin-top: 2.125rem;
}

/* FILTER */
.cb-downloadcenter__control {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  grid-column-gap: 0.5rem;
}

.cb-downloadcenter__filtergroup h4 {
  font-size: 1.125rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.cb-downloadcenter__hiddenfilter {
  display: none;
}
.cb-downloadcenter__showmore {
  position: relative;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  border: none;
  margin-bottom: 1.5rem;
}
.cb-downloadcenter__showmore:after {
  content: "+";
  position: absolute;
  right: -1rem;
  width: 0.875rem;
  height: 0.875rem;
}

.cb-downloadcenter__reset-filter {
  border: none;
  background-color: transparent;
  padding-left: 1.8rem;
  padding-right: 0;
  font-family: var(--font-primary);
  font-size: 1rem;
  margin-top: 1.5rem;
  position: relative;
}

.cb-downloadcenter__reset-filter:before {
  content: "";
  background-image: url("/wp-content/themes/cbra-child/assets/icons/filter-x.png");
  background-repeat: no-repeat;
  background-position: center;
  position: absolute;
  left: 0;
  top: 0;
  width: 25px;
  height: 25px;
  background-size: 25px;
}

.cb-downloadcenter__reset-filter:hover {
  cursor: pointer;
  font-weight: bold;
}

form .cb-downloadcenter__control input[type="checkbox"] {
  appearance: none;
  background-color: #fff;
  margin: 0;
  outline: 2px solid #000;
  font: inherit;
  border-radius: 0;
  transform: translateY(-0.075em);
  width: 19px;
  height: 19px;
  position: relative;
}

form .cb-downloadcenter__control input[type="checkbox"]:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--black);
  width: 19px;
  height: 19px;
  transform: scale(0);
  background-image: url("/wp-content/themes/cbra-child/assets/icons/arrow-check-white.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 19px;
}

form .cb-downloadcenter__control input[type="checkbox"]:checked:before {
  transform: scale(1);
}

.page-template-footer-reversed #page {
  background-color: var(--light-light-grey);
}

.page-template-footer-reversed .cb-footer__infos--bottom,
.page-template-footer-reversed .cb-footer__links,
.page-template-footer-reversed .cb-footer__subfooter {
  background-color: var(--white);
}

.cb-downloadcenter__wrapper form svg {
  display: none;
}

@media only screen and (max-width: 768px) {
  .cb-downloadcenter__wrapper {
    flex-direction: column-reverse;
  }
  .cb-downloadcenter__filter {
    margin-bottom: 2rem;
    padding: 0;
    background-color: unset;
  }
  .cb-downloadcenter__filter:before {
    display: none;
  }
  #cb-downloadcenter__query {
    width: 60%;
  }
  #cb-downloadcenter__search input[type="submit"] {
    margin-left: 0.5rem;
    min-width: 30%;
  }
  .cb-downloadcenter__desc {
    margin: 2rem 1rem 3rem 1rem;
    max-width: 100%;
  }
  .cb-downloadcenter__download {
    display: block;
  }
  .cb-downloadcenter__download:after {
    left: 1rem;
  }
  #cb-filter-details {
    display: none;
    background-color: var(--white);
    box-shadow: 2px 2px 5px 0 rgba(180, 180, 180, 0.5);
    border: solid 1px var(--light-grey);
    padding: 1rem 1rem 2rem 1rem;
    position: relative;
  }
  #cb-filter-details:before {
    content: " ";
    position: absolute;
    width: 0;
    height: 0;
    left: 8px;
    top: -17px;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-bottom: 17px solid #fff;
  }
  .cb-downloadcenter__filter h3 {
    font-size: 1rem;
    display: inline-block;
  }
  .cb-downloadcenter__wrapper form svg {
    display: inline-block;
  }

  #cb-filter-hide {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    grid-column-gap: 1rem;
  }
  .cb-downloadcenter__terms span {
    margin-left: 0.5rem;
  }
  .cb-downloadcenter__terms {
    max-width: 80%;
    margin-left: 20%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    grid-row-gap: 0.5rem;
  }
  .cb-loadmore__buttonwrapper {
    margin-top: 5rem;
    margin-bottom: 2rem;
  }
  .cb-downloadcenter__terms span.cb-downloadcenter__situation {
    display: none;
  }
}
