/**
 * FilmMerge r153.4 — Footer mobile responsiveness hard fix.
 * Footer-only rules. Intentionally loaded after global and page CSS.
 * Do not place broad card/form/table/portal rules here.
 */

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

.fm-footer {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.fm-footer__brand,
.fm-footer__col,
.fm-footer__newsletter,
.fm-footer__top > * {
  min-width: 0;
}

.fm-footer__brand p,
.fm-footer__newsletter-copy,
.fm-footer__col a,
.fm-footer__copy,
.fm-footer__legal a {
  overflow-wrap: anywhere;
}

.fm-footer__newsletter .fm-newsletter-form,
.fm-footer__newsletter .fm-newsletter-form__fields,
.fm-footer__newsletter .fm-newsletter-form label,
.fm-footer__newsletter .fm-newsletter-form input,
.fm-footer__newsletter .fm-newsletter-form button,
.fm-footer__newsletter .fm-newsletter-form__button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media screen and (min-width: 981px) and (max-width: 1180px) {
  body .fm-footer > .fm-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  body .fm-footer .fm-footer__top {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 30px 24px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .fm-footer .fm-footer__brand,
  body .fm-footer .fm-footer__newsletter {
    grid-column: 1 / -1 !important;
  }
}

@media screen and (max-width: 980px) {
  html,
  body {
    overflow-x: hidden;
  }

  body .fm-footer {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 42px 0 26px !important;
    overflow-x: hidden !important;
  }

  body .fm-footer > .fm-wrap {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body .fm-footer .fm-footer__top {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 30px !important;
    padding: 0 !important;
  }

  body .fm-footer .fm-footer__top > *,
  body .fm-footer .fm-footer__brand,
  body .fm-footer .fm-footer__col,
  body .fm-footer .fm-footer__newsletter {
    display: block;
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    margin: 0 !important;
  }

  body .fm-footer .fm-footer__top > * + * {
    margin-top: 24px !important;
  }

  body .fm-footer .fm-footer__brand-link {
    width: fit-content;
    max-width: 100%;
    margin-bottom: 8px !important;
  }

  body .fm-footer .fm-footer__brand p {
    width: 100%;
    max-width: 100% !important;
    margin: 10px 0 16px !important;
  }

  body .fm-footer .fm-footer__actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 16px !important;
  }

  body .fm-footer .fm-footer__actions .btn,
  body .fm-footer .fm-footer__brand .btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-content: center !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body .fm-footer .fm-footer__col h4 {
    margin: 0 0 10px !important;
    font-size: 0.72rem !important;
  }

  body .fm-footer .fm-footer__col ul,
  body .fm-footer .fm-footer__col nav > ul {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  body .fm-footer .fm-footer__col li,
  body .fm-footer .fm-footer__col a {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body .fm-footer .fm-footer__newsletter {
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    padding: 16px !important;
    overflow: hidden !important;
  }

  body .fm-footer .fm-footer__newsletter-copy {
    margin: 0 0 14px !important;
    font-size: 0.82rem !important;
    line-height: 1.65 !important;
  }

  body .fm-footer .fm-footer__newsletter .fm-newsletter-form,
  body .fm-footer .fm-footer__newsletter .fm-newsletter-form__fields {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .fm-footer .fm-footer__newsletter .fm-newsletter-form input[type="text"],
  body .fm-footer .fm-footer__newsletter .fm-newsletter-form input[type="email"],
  body .fm-footer .fm-footer__newsletter .fm-newsletter-form__button,
  body .fm-footer .fm-footer__newsletter button[type="submit"] {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body .fm-footer .fm-footer__newsletter .fm-newsletter-form__consent {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .fm-footer .fm-footer__newsletter .fm-newsletter-form__consent input {
    width: auto !important;
    max-width: none !important;
    min-width: 14px !important;
  }

  body .fm-footer .fm-footer__bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 14px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 18px !important;
  }

  body .fm-footer .fm-footer__copy {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 0.72rem !important;
    line-height: 1.55 !important;
  }

  body .fm-footer .fm-footer__separator {
    display: none !important;
  }

  body .fm-footer .fm-footer__legal,
  body .fm-footer .fm-footer__legal nav,
  body .fm-footer .fm-footer__legal nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media screen and (max-width: 380px) {
  body .fm-footer > .fm-wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body .fm-footer .fm-footer__newsletter {
    padding: 14px !important;
    border-radius: 18px !important;
  }
}


/* r153.4 — Mobile footer bottom row arrangement. */
@media screen and (max-width: 980px) {
  body .fm-footer .fm-footer__bottom {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    align-items: start !important;
  }
  body .fm-footer .fm-footer__identity-line,
  body .fm-footer .fm-footer__utility-line {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 6px 10px !important;
    font-size: .74rem !important;
    line-height: 1.55 !important;
    color: var(--muted) !important;
  }
  body .fm-footer .fm-footer__utility-line { gap: 8px 12px !important; }
  body .fm-footer .fm-footer__copyright,
  body .fm-footer .fm-footer__subsidiary,
  body .fm-footer .fm-footer__access {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
  }
  body .fm-footer .fm-footer__separator { display: inline-flex !important; opacity: .5 !important; }
  body .fm-footer .fm-footer__utility-line > .fm-footer__separator { display: none !important; }
  body .fm-footer .fm-footer__utility-line .fm-footer__legal,
  body .fm-footer .fm-footer__utility-line .fm-footer__legal nav,
  body .fm-footer .fm-footer__utility-line .fm-footer__legal nav ul {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 12px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    margin: 0 !important;
  }
}
