/* FOOTER */

footer,
footer * {
  box-sizing: border-box;
}

footer {
  margin-top: 2rem;
}

footer ul {
  padding: 0 !important;
  margin: 0 !important;
}

footer li {
  list-style: none !important;
  margin-bottom: 0 !important;
  font-size: inherit !important;
}

footer a {
  font-size: inherit !important;
}

/* FOOTER TOP */

footer #footer-top {
  background-color: var(--dk-blue);
  color: white;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  padding-block: 0.6rem;
}

footer #footer-top a,
footer #footer-bottom a {
  text-transform: uppercase;
  font-weight: bold;
}

footer #footer-top .cpc-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer #footer-top ul {
  display: flex;
}

footer #footer-top ul.social li {
  margin-right: 0.8rem;
}

footer #footer-top ul:last-child {
  align-items: center;
}

footer #footer-top ul:last-child li {
  margin-left: 2rem;
}

footer ul.social img {
  width: 2rem;
}

footer #footer-top ul li {
  display: flex;
  align-items: center;
  line-height: 1.1rem;
}

footer #footer-top a {
  color: white !important;
  font-size: 1.1rem;
}

@media screen and (max-width: 1024px) {
  footer #footer-top {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  footer #footer-top .cpc-content {
    flex-direction: column;
  }
  footer #footer-top ul.social {
    margin-bottom: 1.4rem !important;
  }
  footer #footer-top ul:last-child li {
    margin-left: 1.4rem;
  }

  footer #footer-top a {
    font-size: 0.92rem !important;
    line-height: 1.1rem;
  }
}

@media screen and (max-width: 767px) {
  footer #footer-top {
    padding-top: 2rem;
    padding-bottom: 2rem;
    padding-block: 2rem;
  }

  footer #footer-top ul.social li {
    margin-left: 0.8rem;
  }

  footer #footer-top ul:last-child {
    justify-content: center;
    flex-direction: column;
  }

  footer #footer-top ul:last-child li {
    margin-left: 0rem;
    margin-bottom: 1rem !important;
  }

  footer #footer-top a {
    font-size: inherit;
    line-height: inherit;
  }
}

/* FOOTER MIDDLE */

#footer-middle .cpc-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "primary-menu primary-menu"
    "search secondary-menu";
  /* row-gap: 3rem; */
  /* gap: 2rem; */
  padding-top: 2rem;
  padding-bottom: 2rem;
  padding-block: 2rem 3rem;
}

#footer-middle #dnn_dnnFooterMenu_pnlMain ul {
  grid-area: primary-menu;
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  align-items: center;
  /* gap: 0.4rem 1.8rem; */
  color: var(--dk-blue);
  font-weight: bold;
  font-size: 1.1rem;
  padding-bottom: 2rem !important;
}

#footer-middle #dnn_dnnFooterMenu_pnlMain ul li {
  margin: 0 0.2rem 0.8rem;
}

#dnn_dnnFooterMenu_pnlMain {
  grid-area: primary-menu;
}

#footer-middle .search {
  grid-area: search;
  justify-self: stretch;
  border: 1px solid #d2d2d2;
  /* border-radius: 4px; */
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

#footer-middle .search > div {
  height: 100% !important;
  width: auto !important;
  float: none !important;
}

#footer-middle .search #dnn_dnnSEARCHFOOTER_txtFooterS {
  font-family: inherit !important;
  font-size: 1rem !important;
  height: 100% !important;
  margin-left: 0 !important;
  width: 100% !important;
  padding-left: 10px;
  margin-right: 1px;
  outline: none;
}

#footer-middle .search #dnn_dnnSEARCHFOOTER_ibtnSearchFooter {
  height: 100% !important;
  margin-top: 0 !important;
  padding: 10px;
  box-sizing: border-box;
}

#footer-middle .footerSearch {
  grid-area: search;
  justify-self: stretch;
  border: 1px solid #d2d2d2;
  /* border-radius: 4px; */
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

#footer-middle .footerSearch > div {
  height: 100% !important;
  width: auto !important;
  float: none !important;
}

#footer-middle .footerSearch #dnn_dnnSEARCHFOOTER_txtFooterS {
  font-family: inherit !important;
  font-size: 1rem !important;
  height: 100% !important;
  margin-left: 0 !important;
  width: 100% !important;
  padding-left: 10px;
  margin-right: 1px;
  outline: none;
}

#footer-middle .footerSearch #dnn_dnnSEARCHFOOTER_ibtnSearchFooter {
  height: 100% !important;
  margin-top: 0 !important;
  padding: 10px;
  box-sizing: border-box;
}

#footer-middle #autocomplete-container-footer {
  position: absolute;
  bottom: 100%;
  width: calc(100% + 2px) !important;
  height: auto !important;
  margin-left: -1px;
  background-color: white;
  display: block;
  border: 1px solid #d2d2d2;
  border-bottom: none;
}

#footer-middle #autocomplete-container-footer ul {
  display: flex;
  flex-direction: column-reverse;
  width: 100%;
  max-width: none;
  margin: 0;
  margin-inline: 0;
  /* gap: 0; */
}

#footer-middle #autocomplete-container-footer li {
  width: 100%;
  padding-left: 10px;
  padding-right: 10px;
  padding-inline: 10px;
}

#footer-middle #autocomplete-container-footer button {
  border-top: none;
  font-size: 0.95rem;
  font-family: inherit;
}

#footer-middle #autocomplete-container-footer li:hover {
  background-color: var(--lt-grey);
  border: none;
}

#footer-middle ul.grid {
  grid-area: secondary-menu;
  width: 100%;
  max-width: 400px;
  margin-inline: auto !important;
  margin-left: auto !important;
  padding-left: 2rem !important;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  grid-auto-flow: column;
  /* gap: 1rem; */
  font-size: 0.9rem;
}

#footer-middle ul.grid li {
  margin-right: 1rem;
  padding-bottom: 1rem;
}

#footer-middle ul:last-child li {
  line-height: 1.1rem;
}

#footer-middle ul:last-child a {
  color: var(--grey) !important;
  text-transform: uppercase;
}

#footer-middle ul:last-child a:hover,
#footer-middle ul:last-child a:focus {
  text-decoration: underline !important;
}

@media screen and (max-width: 1024px) {
  #footer-middle ul:first-child {
    max-width: 600px;
    margin: auto !important;
    margin-inline: auto !important;
  }
}

@media screen and (max-width: 767px) {
  #footer-middle .cpc-content {
    grid-template-areas:
      "search search"
      "primary-menu secondary-menu";
    /* gap: 1rem; */
  }

  #footer-middle ul:first-child {
    flex-direction: column;
    align-items: stretch;
    /* row-gap: 1rem; */
  }

  #footer-middle #dnn_dnnFooterMenu_pnlMain ul {
    align-items: start;
  }

  #footer-middle #dnn_dnnFooterMenu_pnlMain ul li {
    margin: 0 0 1.8rem !important;
    line-height: 2rem;
  }

  #footer-middle .search {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  #footer-middle .footerSearch {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  #footer-middle ul:last-child {
    display: flex;
    flex-direction: column;
  }

  #footer-middle ul:last-child li {
    text-align: right;
  }

  footer #footer-middle a {
    font-size: 1.3rem;
  }
}

/* FOOTER BOTTOM */

#footer-bottom hr {
  margin-top: 0;
  margin-bottom: 0;
  margin-block: 0;
  max-width: calc(1200px - 2rem);
  border-width: 1px;
}

#footer-bottom nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  /* gap: 2rem; */
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  padding-block: 1.4rem;
  color: var(--grey);
  font-weight: bold;
  text-transform: uppercase;
}

#footer-bottom ul {
  display: flex;
  /* gap: 1rem 2rem; */
  flex-wrap: wrap;
}

#footer-bottom li {
  line-height: 1.1rem;
  margin-right: 2rem;
  padding-bottom: 1rem;
}

#footer-bottom .legal {
  margin-left: 2rem;
  text-align: right;
}

#footer-bottom .legal label {
  display: block;
  padding-bottom: 1rem;
}

#footer-bottom .legal img {
    height: 1.4rem;
}

#footer-bottom a,
#footer-bottom label {
  color: var(--grey) !important;
  font-size: 0.9rem !important;
  text-transform: uppercase;
}

@media screen and (max-width: 1024px) {
  #footer-bottom nav {
    flex-direction: column;
    align-items: center;
  }

  #footer-bottom ul {
    justify-content: left;
    margin-bottom: 1.5rem;
  }

  #footer-bottom label {
    text-align: left;
  }

  #footer-bottom label span {
    display: inline-block;
  }

  #footer-bottom .legal {
    margin-left: 0;
    text-align: center;
    margin-top: 10px;
  }
}

@media screen and (max-width: 767px) {
  #footer-bottom nav {
    align-items: start;
  }

  #footer-bottom .legal {
    text-align: left;
  }
}
