/* Hide mobile footer menu (deprecated) */
#block-footer-mobile,
main .block-menu.menu--footer {
  display: none;
}

/* Footer Navigation */
@media screen and (min-width: 61em) {
  .region-footer .block-menu.menu--main {
    display: none;
  }
}

.region-footer .menu--main {
  .menu {
    position: fixed;
    bottom: 0;
    left: 0;
    align-items: center;
    background: var(--colorGinAppBackground);
    box-shadow: 0 -.2rem .4rem 0 rgba(0, 0, 0, .2);
    display: flex;
    justify-content: space-evenly;
    padding: .5rem 0;
    width: 100%;
    z-index: 100;
    margin: 0;
  }

  .menu .menu {
    display: none;
  }

  .menu-item {
    list-style: none;

    a {
      display: block;
      min-width: 100px;
      height: 48px;
      text-align: center;
      color: var(--colorGinText);

      &:before {
        position: relative;
        text-align: center;
        display: block;
        content: "";
        width: 22px;
        height: 22px;
        margin: auto;
      }

      &.is-active {
        color: var(--colorGinPrimary);

        &:before {
          /* fixed color, should use mask */
          filter: invert(18%) sepia(82%) saturate(609%) hue-rotate(164deg) brightness(97%) contrast(91%);
        }

        &:after {
          width: 100%;
          -webkit-transition: width .4s;
          transition: width .4s;
        }
      }

      &:after {
          position: relative;
          display: block;
          content: "";
          height: 4px;
          background: var(--colorGinPrimary);
          width: 0;
          -webkit-transition: width .4s;
          transition: width .4s;
      }
    }
  }
}

/* Push footer menu to bottom */
.page-wrapper {
  min-height: calc(100vh - 7rem - var(--gin-toolbar-y-offset));
}

@media (min-width: 61em) {
  .page-wrapper {
    min-height: calc(100vh - 3rem - var(--gin-toolbar-y-offset));
  }
}

@media (min-width: 64em) {
  .page-wrapper {
    min-height: calc(100vh - 3rem - var(--gin-toolbar-y-offset) - 1px);
  }
}

/* Footer menu*/
.region-footer .block-menu.menu--footer {
  min-height: 3rem;
  background: var(--colorGinPrimary);
}

.region-footer .block-menu.menu--footer ul.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-right: 16px;
}

.block-menu.menu--footer ul.menu {
  margin: 0;
  padding-left: 2rem;
  background: var(--colorGinPrimary);
  color: white;
}

.region-footer .menu-item {
  padding: 0;
}

.region-footer .block-menu.menu--footer ul.menu li.menu-item {
  list-style: none;
  display: inline-block;
  margin-left: 2rem;
}

.block-menu.menu--footer ul.menu li.menu-item {
  list-style: none;
  display: block;
  line-height: 3rem;
}

.block-menu.menu--footer ul.menu li.menu-item a,
.block-menu.menu--footer ul.menu li.menu-item span {
  line-height: 2;
  font-size: 0.8125rem;
  text-decoration: none;
  color: white;
}

.block-menu.menu--footer ul.menu li.menu-item a:before,
.block-menu.menu--footer ul.menu li.menu-item span:before {
  position: relative;
  display: inline-block;
  color: white;
  content: "";
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
  top: 15px;
  left: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  background: none;
  background-color: white;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center center;
  mask-position: center center;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-arrow-right-circle'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 16 16 12 12 8'%3E%3C/polyline%3E%3Cline x1='8' y1='12' x2='16' y2='12'%3E%3C/line%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-arrow-right-circle'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12 16 16 12 12 8'%3E%3C/polyline%3E%3Cline x1='8' y1='12' x2='16' y2='12'%3E%3C/line%3E%3C/svg%3E");
}
@media (max-width: 768px) {
  .block-menu.menu--footer ul.menu {
    padding-left: 1rem;
  }
}
@media (min-width: 976px) {
  .region-footer .block-menu.menu--footer ul.menu {
    margin-right: 48px;
  }
}

/* eu-cookie-compliance */
#sliding-popup {
  max-height: 100vh;
  top: auto;
  bottom: 0;
  position: fixed;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--colorGinPrimary) !important;
  z-index: 1000;
}

@media print {
  #sliding-popup {
	  display:none !important;
  }
}
#sliding-popup .popup-content {
  padding: 1rem;
  color: white;
}
#sliding-popup .popup-content button.eu-cookie-compliance-more-button {
  color: white;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-font-smoothing: antialiased;
  text-decoration: underline;
  box-shadow: none;
  border: none;
  padding: 0;
}
#sliding-popup .popup-content button.agree-button,
#sliding-popup .eu-cookie-withdraw-tab,
#sliding-popup .eu-cookie-withdraw-button {
  background-color: transparent;
  padding: calc(1rem - 2px) calc(1.5rem - 2px);
  border: 2px solid white !important;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  -webkit-font-smoothing: antialiased;
  color: white;
  cursor: pointer;
}
#sliding-popup .eu-cookie-withdraw-tab {
  position: relative;
  top: 1rem;
  left: auto;
  float: right;
  transform: none;
  height: 24px;
  width: 24px;
  text-indent: -999999px;
  white-space: nowrap;
  overflow: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='feather feather-x-circle'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cline x1='15' y1='9' x2='9' y2='15'%3E%3C/line%3E%3Cline x1='9' y1='9' x2='15' y2='15'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  border: none !important;
}
.menu-item .eu-cookie-withdraw-tab,
.menu-form .eu-cookie-withdraw-tab {
  position: relative;
  top: 0;
  transform: unset;
  left: 0;
}
#sliding-popup .eu-cookie-compliance-message {
  float: none;
  max-width: 100%;
}
#sliding-popup #popup-text,
#sliding-popup .eu-cookie-compliance-category {
  display: block;
  margin-bottom: 1rem;
}
#sliding-popup #eu-cookie-compliance-categories {
  font-size: 12px;
  display: block;
}

@media screen and (max-width: 600px) {
  .eu-cookie-compliance-buttons.eu-cookie-compliance-has-categories {
    float: right;
    margin-top: 0;
  }
  #sliding-popup .eu-cookie-compliance-content {
    max-width: 90%;
  }
}
