/* Figma-aligned, CMS-driven footer. */
body .footer.fm-footer {
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: var(--fm-neutral-50);
  color: var(--fm-neutral-900);
  font-family: var(--fm-font);
}

body .footer.fm-footer .fm-container {
  width: 100%;
  max-width: var(--fm-container);
  padding-inline: 0;
  margin: 0 auto;
}

body .fm-footer,
body .fm-footer * {
  box-sizing: border-box;
}

body .fm-footer__partners {
  width: 100%;
  min-height: 58px;
  border-bottom: 2px solid var(--fm-neutral-0);
}

body .fm-footer__partner-list {
  display: flex;
  width: min(calc(100% - 10rem), 820px);
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-inline: auto;
}

body .fm-footer__partner-logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

body .fm-footer__partner-logo img {
  display: block;
  width: auto;
  max-width: 164px;
  height: 28px;
  object-fit: contain;
}

body .fm-footer__inner {
  width: min(calc(100% - 10rem), 1416px);
  margin-inline: auto;
}

body .fm-footer__main {
  display: grid;
  grid-template-columns: 270px 110px 200px 280px 220px;
  column-gap: clamp(32px, 4.4vw, 84px);
  padding: 42px 0 90px;
}

body .fm-footer__brand-column,
body .fm-footer__column {
  min-width: 0;
}

body .fm-footer__logo {
  display: inline-flex;
  width: fit-content;
}

body .fm-footer__logo img {
  display: block;
  width: 108px;
  height: auto;
}

body .fm-footer__socials {
  display: flex;
  gap: 12px;
  margin-top: 52px;
}

body .fm-footer__social-link {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--fm-neutral-0);
  color: var(--fm-neutral-500);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

body .fm-footer__social-link:hover,
body .fm-footer__social-link:focus-visible {
  background: var(--fm-primary-50);
  color: var(--fm-primary-500) !important;
}

body .fm-footer__social-icon {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body .fm-footer__partner-program {
  display: inline-flex;
  min-width: 270px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  background: var(--fm-neutral-0);
  color: var(--fm-primary-500) !important;
  font: var(--fm-type-interface-l);
  text-decoration: none;
  padding: 0 22px;
  border: 0;
  border-radius: 20px;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

body .fm-footer__partner-program:hover,
body .fm-footer__partner-program:focus-visible {
  background: var(--fm-primary-50);
  text-decoration: none;
}

body .fm-footer__column h2 {
  margin: 0 0 20px;
  color: var(--fm-neutral-300);
  font: var(--fm-type-interface-l);
}

body .fm-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .fm-footer ul.fm-footer__menu li {
  margin: 0;
  padding: 0;
}

body .fm-footer ul.fm-footer__menu li a {
  color: var(--fm-neutral-900);
  font: var(--fm-type-interface-nav);
  text-decoration: none;
  transition: color 160ms ease;
}

body .fm-footer ul.fm-footer__menu li a:hover,
body .fm-footer ul.fm-footer__menu li a:focus-visible {
  color: var(--fm-primary-500);
}

body .fm-footer__locations {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--fm-neutral-900);
  font: var(--fm-type-body-l-regular);
}

body .fm-footer__location-flag {
  display: inline-block;
  margin-right: 6px;
  font-family:
    'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
  font-variant-emoji: emoji;
  line-height: 1;
}
@media (min-width: 768px) {
  body .footer.fm-footer .fm-container {
    width: auto;
    min-height: 36px;
    align-self: flex-start;
  }
  body .fm-footer__location-flag {
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 12px;
    font-size: 0;
  }


}

body .fm-footer__schedule-line {
  display: block;
}
body .fm-footer__hours {
  color: var(--fm-neutral-900);
  font: var(--fm-type-interface-nav);
  white-space: normal;
}

body .fm-footer__hours br {
  content: '';
  display: block;
  margin-bottom: 14px;
}
body .fm-footer__locations span {
  white-space: nowrap;
  margin-bottom: 12px;
  font: var(--fm-type-interface-nav);
  letter-spacing: var(--fm-type-interface-nav-letter-spacing);
  height: 20px;
}

body .fm-footer__support {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

body .fm-footer__support a {
  margin-bottom: 12px;
  color: var(--fm-neutral-900);
  font: var(--fm-type-interface-nav);
  letter-spacing: var(--fm-type-body-m-regular-letter-spacing);
  text-decoration: none;
  transition: color 160ms ease;
}

body .fm-footer__column .fm-footer__support a:hover,
body .fm-footer__column .fm-footer__support a:focus-visible,
body .fm-footer__support a:hover,
body .fm-footer__support a:focus-visible {
  color: var(--fm-primary-500);
}

body .fm-footer__bottom {
  padding: 0 0 28px;
}

body .fm-footer__copyright {
  color: var(--fm-neutral-500);
  font: var(--fm-type-body-s-regular);
}

@media (max-width: 1500px) {
  body .fm-footer__main {
    grid-template-columns:
      minmax(220px, 1.25fr) minmax(100px, 0.7fr) minmax(160px, 1fr)
      minmax(240px, 1.3fr) minmax(180px, 1fr);
    column-gap: 36px;
  }
}

@media (max-width: 1000px) {
  body .fm-footer__partner-list {
    width: min(calc(100% - 3rem), 820px);
    gap: 18px;
  }

  body .fm-footer__inner {
    width: min(calc(100% - 3rem), 900px);
  }

  body .fm-footer__main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 32px;
  }

  body .fm-footer__brand-column {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  /* Keep the mobile presentation ordered like the design reference. */
  body .footer.fm-footer {
    --fm-footer-mobile-gutter: 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  body .fm-footer__inner,
  body .fm-footer__main,
  body .fm-footer__brand-column {
    display: contents;
  }

  body .fm-footer__logo,
  body .fm-footer__partner-program,
  body .fm-footer__socials,
  body .fm-footer__partners,
  body .fm-footer__column,
  body .fm-footer__bottom {
    width: calc(
      100% - var(--fm-footer-mobile-gutter) - var(--fm-footer-mobile-gutter)
    );
    align-self: center;
  }

  body .fm-footer__logo {
    order: 1;
    justify-content: center;
    margin-top: 28px;
  }

  body .fm-footer__logo img {
    width: 96px;
  }

  body .fm-footer__partner-program {
    order: 2;
    width: calc(
      100% - var(--fm-footer-mobile-gutter) - var(--fm-footer-mobile-gutter)
    );
    min-width: 0;
    margin-top: 42px;
  }

  body .fm-footer__socials {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
  }

  body .fm-footer__social-link {
    width: 100%;
    height: 60px;
  }

  body .fm-footer__partners {
    order: 4;
    min-height: 0;
    margin-top: 50px;
    margin-bottom: 32px;
    overflow: visible;
    border: 0;
  }

  body .fm-footer__partner-list {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    justify-content: initial;
    gap: 30px 2px;
    padding: 0;
  }

  body .fm-footer__partner-logo {
    justify-content: flex-start;
  }

  body .fm-footer__partner-logo img {
    height: 23px;
    max-width: 125px;
  }

  body .fm-footer__column {
    order: 5;
    padding-top: 0;
    border-top: 0;
    text-align: left;
    margin-bottom: 32px;
  }

  body .fm-footer__column.fm-footer__schedule {
    order: 7;
  }

  body .fm-footer__support {
    order: 8;
    text-align: left;
  }

  body .fm-footer__column h2 {
    margin-bottom: 12px;
    text-align: left;
    font: var(--fm-type-interface-xs);
    letter-spacing: var(--fm-type-interface-xs-letter-spacing);
  }

  body .fm-footer__menu {
    align-items: flex-start;
    text-align: left;
  }

  body .fm-footer ul.fm-footer__menu li,
  body .fm-footer ul.fm-footer__menu li a {
    text-align: left;
  }

  body .fm-footer__locations {
    text-align: left;
  }

  body .fm-footer__location-flag {
    display: inline-block;
    margin-right: 6px;
    font-family:
      'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    font-variant-emoji: emoji;
    line-height: 1;
  }

  body .fm-footer__schedule-line {
    display: block;
  }

  body .fm-footer__hours {
    color: var(--fm-neutral-900);
    font: var(--fm-type-interface-nav);
    letter-spacing: var(--fm-type-interface-nav-letter-spacing);
    text-align: left;
    white-space: normal;
  }

  body .fm-footer__locations span {
    white-space: normal;
  }

  body .fm-footer__support a {
    display: block;
    text-align: left;
  }

  body .fm-footer__bottom {
    order: 9;
    padding-bottom: 22px;
    text-align: left;
  }

  body .fm-footer__copyright {
    text-align: left;
  }
}
/* Footer location flags: use the supplied SVG assets at every viewport. */
body .fm-footer__location-flag {
  width: 15px;
  height: 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 15px 15px;
  font-size: 0;
  line-height: 1;
  vertical-align: middle;
  margin-bottom: 0px !important;
}

body .fm-footer__location-flag[aria-label='Russia'] {
  background-image: url('../images/flags/RU.svg');
}

body .fm-footer__location-flag[aria-label='United Arab Emirates'] {
  background-image: url('../images/flags/AE.svg');
}

body .fm-footer__location-flag[aria-label='Thailand'] {
  background-image: url('../images/flags/TH.svg');
}

body .fm-footer__location-flag[aria-label='United Kingdom'] {
  background-image: url('../images/flags/GB.svg');
}

body .fm-footer__location-flag[aria-label='United States'] {
  background-image: url('../images/flags/US.svg');
}

/* Footer location flag alignment and image rendering. */
body .fm-footer__schedule-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

body .fm-footer__location-flag {
  display: inline-flex;
  flex: 0 0 15px;
  align-items: center;
  justify-content: center;
  margin-right: 0;
  background-image: none !important;
}

body .fm-footer__location-flag-image {
  display: block;
  width: 15px;
  height: 15px;
  object-fit: contain;
}
/* Remove trailing spacing after the final footer schedule line. */
body .fm-footer__locations .fm-footer__schedule-line:last-child {
  margin-bottom: 0;
}