footer {
  background: #f8f8f8;
  bottom: 0;
  position: unset;
  height: unset;
  width: 100%;
}

.footer-wrapper {
  background: #f8f8f8;
  padding: 9.6rem 13.5rem;
  max-width: 144rem;
  margin: 0 auto;
}
ul:after {
  clear: both;
}
ul.footer-menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  align-items: flex-start;
  margin-top: 64px;
  margin-left: 0;
  padding-left: 0;
}
li.hide-label {
  border-top: 1px solid #a2a2a2;
  padding-top: 32px;
}
li.hide-label > a {
  font-size: 0;
  height: 0;
  display: none;
}
ul.footer-menu > li:not(:nth-child(3)) ul {
  /*width: 188px;*/
}
ul.footer-menu li a,
ul.footer-menu li ul.sub-menu li a {
  text-decoration: none;
  color: #363636;
  position: relative;
  top: 0 !important;
}
ul.footer-menu li ul.sub-menu {
  padding: 0;
}
ul.footer-menu li ul.sub-menu li {
  display: block;
  padding-left: 0;
}
ul.footer-menu li ul.sub-menu li a,
ul.footer-menu li ul.sub-menu li a span {
  display: flex !important;
  align-items: center;
}
ul.footer-menu li ul.sub-menu li:first-child {
  margin-bottom: 16px;
}

ul.footer-menu li ul.sub-menu li a:first-child,
ul.footer-menu > li:nth-child(5) ul li#menu-item-93 a {
  font-size: 1.4rem;
  line-height: 1.8;
  text-align: justify;
}
ul.footer-menu li ul.sub-menu li:not(:first-child) a {
  font-size: 1.2rem;
  line-height: 1.8;
}
ul.footer-menu li ul.sub-menu li#menu-item-90 {
  display: flex;
}
ul.footer-menu li ul.sub-menu li#menu-item-90::after {
  margin: 0 16px;
  content: url("../../../../wp-content/uploads/2021/07/new-tab.svg");
  position: relative;
  top: 6px;
  height: 14px;
}
.footer-logo {
  width: 300px;
  left: 135px;
}
.footer-logo a {
  display: block;
  height: 100%;
}
.footer-brands {
  margin-top: 64px;
  width: 100%;
  height: 56px;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.footer-brand-title p {
  font-family: Montserrat;
  font-weight: 500;
  line-height: 1.8;
  font-size: 1.4rem;
  color: #363636;
  width: 91px;
  height: 17px;
  margin: 0;
}
.the-me-logo {
  margin: 0px 32px;
}
div.copyright {
  margin-top: 64px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0px;
}
p.copyright {
  font-family: Avenir Next;
  font-style: normal;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.8;
  float: left;
  margin: 0;
}
p.copyright-links {
  /*    width: 276px;
  height: 26px;
  float: right;*/
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 0px;
  margin: 0;
}
p.copyright-links a {
  font-style: normal;
  font-weight: normal;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #363636;
  text-decoration: none;
}
p.copyright-links a:nth-child(2) {
  margin: 0px 24px;
}

/*ENG*/
.footer-wrapper.en .footer-container {
  max-width: 950px;
  margin: auto;
}
.footer-wrapper.en .footer-logo-en {
  width: 300px;
}
.footer-wrapper.en .footer-logo-en a {
  display: block;
  height: 100%;
}
.footer-wrapper.en .footer-logo-en img {
  width: 100%;
}
ul.footer-menu.en > li ul {
  width: 188px;
}
ul.footer-menu.en li a {
  font-family: "Montserrat";
}

/* ZH */
.menu-footer-zh-wrapper {
  justify-content: space-between;
}
ul.footer-menu.zh {
  grid-gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

/* IE10 & up */
@media all and (-ms-high-contrast: none),
  (-ms-high-contrast: active) and (max-width: 1024px) {
  ul.footer-menu {
    display: flex !important;
    flex-wrap: wrap !important;
  }
}

/* media queries */
@media (max-width: 1024px) {
  .footer-wrapper {
    padding: 9.6rem 6rem;
  }
  ul.footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 25%);
    grid-column-gap: 32px;
  }
  ul.footer-menu > li:first-child {
    order: 1;
  }
  ul.footer-menu > li:nth-child(2) {
    order: 2;
  }
  ul.footer-menu > li:nth-child(3) {
    order: 4;
    margin-top: 32px;
    width: 300px;
  }
  ul.footer-menu > li:nth-child(4) {
    order: 3;
  }
  ul.footer-menu > li:nth-child(5) {
    order: 5;
    margin: 32px 0 0 32px;
  }
  div.copyright {
    display: block;
    position: relative;
  }
  p.copyright-links {
    position: absolute;
    bottom: 10px;
  }
  ul.footer-menu > li:nth-child(5) {
    margin-left: 119px;
    width: 188px;
  }
}

@media (max-width: 575.98px) {
  footer {
    height: auto;
  }
  .footer-wrapper {
    padding: 13.5px 20px 80px 20px;
    height: auto;
    max-width: 100%;
  }
  body.zh .footer-wrapper {
    height: 640px;
  }
  ul.footer-menu {
    /*margin: 0 auto;*/
    margin-top: 32px;
  }
  ul.footer-menu,
  .footer-brands {
    display: block;
    width: 90%;
    height: auto;
  }
  .footer-logo,
  .footer-logo-en {
    margin-top: 48px;
  }
  .footer-logo img,
  .footer-logo-en img {
    max-width: 100%;
  }
  span.menu-en {
    font-size: 10px !important;
  }
  ul.footer-menu > li {
    display: block;
    width: 100% !important;
    margin: 0 0 16px 0;
  }
  ul.footer-menu li ul.sub-menu li:not(:first-child),
  ul.footer-menu li ul.sub-menu li#menu-item-90 {
    display: none;
  }
  ul.footer-menu > li:nth-child(5) ul li#menu-item-93 {
    display: block !important;
    margin-top: 16px !important;
  }
  ul.footer-menu li ul.sub-menu li:first-child {
    margin-bottom: 0;
  }
  ul.footer-menu > li:not(:first-child) {
    border: none;
    padding-top: 0;
    margin-top: 0;
  }
  ul.footer-menu > li:nth-child(5) {
    margin: 0;
  }
  .the-me-logo {
    margin: 16px 0;
  }
  div.copyright {
    display: block;
    position: relative;
    height: 104px;
    margin-top: 32px;
  }
  p.copyright {
    position: absolute;
    top: 95px;
    font-size: 9px;
  }
  p.copyright-links {
    display: block;
    position: absolute;
    bottom: 16px;
  }
  p.copyright-links a:nth-child(2) {
    margin: 0 0 8px 0;
  }
  p.copyright-links a {
    display: block;
    font-size: 10px;
    margin-bottom: 8px;
  }
  li.hide-label {
    border: none;
    padding-top: 0;
  }
  .menu-footer-menu-container {
    border-top: 1px solid #a2a2a2;
    margin-top: 32px;
  }

  ul.footer-menu li ul.sub-menu li a:first-child,
  ul.footer-menu > li:nth-child(5) ul li#menu-item-93 a {
    font-size: 14px;
  }

  .footer-brand-title p {
    font-size: 14px;
  }
}

.footer-menu .sub-menu span.icon-window {
  width: 1.4rem;
}

@media screen and (min-width: 992px) {
  .footer-menu > li {
    max-width: 290px;
  }
  .footer-menu > li:nth-of-type(3) .sub-menu li:first-child > a {
    letter-spacing: -0.01rem;
  }
  .footer-menu > li:nth-of-type(3) .sub-menu li span.line {
    margin: 0 10px;
  }
}
@media screen and (min-width: 1400px) {
  .footer-menu > li {
    min-width: 188px;
  }
}

@media screen and (max-width: 992px) {
  footer {
    /* margin-top: 80px;*/
  }
}
ul.footer-menu > li:nth-child(6) {
  margin-top: 16px;
  display: block;
}
@media screen and (min-width: 576px) {
  ul.footer-menu > li:nth-child(6) {
    display: none;
  }
}
