/* One removable, scoped layer. Do not mask layout overflow on the body. */
.fgpf-start-request,
.fgpf-route-quote {
  margin-block-start: 1rem;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
body.route-contact #inquiry-form { scroll-margin-top: 9rem; }
html.fgpf-product-anchor-page #product-inquiry #request-type {
  scroll-margin-top: var(--fgpf-request-offset, 10rem);
}
@media (prefers-reduced-motion: reduce) {
  html.fgpf-product-anchor-page { scroll-behavior: auto !important; }
}

@media (min-width: 801px) {
  body.route-contact .contact-layout.fgpf-contact-layout {
    display: grid;
    grid-template-areas: "support form";
  }
  body.route-contact .fgpf-contact-layout > .contact-aside { grid-area: support; }
  body.route-contact .fgpf-contact-layout > .contact-form-panel { grid-area: form; }
}

@media (max-width: 800px) {
  body .site-header.v2-header .header-inner {
    display: flex !important;
    flex-wrap: wrap !important;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  body .site-header.v2-header .header-inner > .wordmark { flex: 0 0 auto; }
  body .site-header.v2-header #menu-toggle {
    margin-inline-start: auto;
    flex: 0 0 auto;
    order: 1 !important;
    position: relative;
    z-index: 2;
  }
  body .site-header.v2-header .header-inner > .fg-language-switch {
    display: flex !important;
    position: static !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100%;
    flex-wrap: wrap !important;
    justify-content: flex-start;
    gap: 2px 4px;
    margin: 4px 0 0;
    box-sizing: border-box;
    order: 3 !important;
  }
  body .site-header.v2-header .fg-language-switch > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 36px;
    flex: 0 0 auto;
    box-sizing: border-box;
  }
  body .site-header.v2-header #main-nav {
    min-width: 0;
    max-width: 100%;
    top: 100% !important;
    bottom: auto !important;
    z-index: 1;
  }
  body.route-contact .contact-layout.fgpf-contact-layout {
    display: flex;
    flex-direction: column;
  }
  body.route-contact .fgpf-contact-layout > .contact-aside,
  body.route-contact .fgpf-contact-layout > .contact-form-panel {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  #fgps-consent {
    left: 10px !important;
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important;
    max-width: none !important;
    max-height: 45dvh;
    overflow-y: auto;
    padding: 12px !important;
    box-sizing: border-box;
    font-size: 13px !important;
    line-height: 1.4 !important;
    z-index: 2147483000 !important;
    pointer-events: auto !important;
    isolation: isolate;
  }
  #fgps-consent p { margin: 0 0 6px !important; }
  #fgps-consent button {
    min-height: 40px;
    padding: 8px 10px !important;
    margin: 4px 6px 0 0 !important;
    font-size: 13px;
    pointer-events: auto !important;
  }
  #fgps-consent a { display: inline-block; margin: 6px 0 0 !important; }
}
