/* Filling Machine China responsive layout 1.0.2 */
/* Fluid content and footer layout shared by the existing page templates. */
html body {
  --fmc-layout17-width: 96rem;
  --fmc-layout17-gutter: clamp(1rem, 3vw, 3rem);
  --fmc-layout17-gap: clamp(.75rem, 1.4vw, 1.5rem);
  --fmc-layout17-prose: 76ch;
}

/* The Astra shell must leave room for the page's own content bands. */
html body.ast-no-sidebar #content > .ast-container {
  inline-size: 100%;
  max-inline-size: none !important;
  padding-inline: 0 !important;
}

html body.ast-no-sidebar #content > .ast-container > #primary {
  inline-size: 100%;
  max-inline-size: none !important;
  min-inline-size: 0;
}

/* Guides already provide their own hero padding. Remove the theme's extra top band. */
html body.ast-no-sidebar #content > .ast-container > #primary:has(> main#main > article > .entry-content > .fmc47:first-child) {
  padding-block-start: 0 !important;
}

html body.ast-no-sidebar #content main#main > article:has(.alc-page, .allot-site, .fmc47, .allot-v30-page) {
  padding-inline: 0 !important;
}

html body.ast-no-sidebar #content main#main > article:not(:has(.alc-page, .allot-site, .fmc47, .allot-v30-page)),
html body.ast-no-sidebar #content main#main > :is(.post-navigation, .comments-area),
html body.archive:not(.ast-left-sidebar, .ast-right-sidebar) #content > .ast-container {
  box-sizing: border-box;
  inline-size: min(100%, 86rem);
  margin-inline: auto;
  padding-inline: var(--fmc-layout17-gutter);
}

html body.ast-no-sidebar #content main#main > article:not(:has(.alc-page, .allot-site, .fmc47, .allot-v30-page)) .entry-content > :is(p, ul, ol, blockquote),
html body :is(.fmc47-body, .allot-v30-band, .allot-v35-band, .allot-rank14-inner, .allot-rank27-commercial-inner) > :is(p, ul, ol),
html body :is(.fmc47-body > section, .allot-v30-depth) > :is(p, ul, ol) {
  max-inline-size: var(--fmc-layout17-prose);
  overflow-wrap: anywhere;
}

/* Keep full-bleed section backgrounds and give each section one set of gutters. */
html body :is(.alc-page, .allot-site, .allot-v30-page) {
  inline-size: 100%;
  min-inline-size: 0;
}

html body :is(.alld-wrap, .allot-multilingual-inner, .allot-v76-inner, .allot-rank14-inner) {
  box-sizing: border-box;
  inline-size: min(calc(100% - 2 * var(--fmc-layout17-gutter)), var(--fmc-layout17-width));
  max-inline-size: 100%;
  margin-inline: auto;
}

/* Legacy inline styles set important widths on home and product templates. */
html body .alc-page :is(.alc-wrap, .alcx-wrap),
html body :is(.allot-site, .allot-page, .allot-article) .allot-wrap {
  box-sizing: border-box;
  inline-size: min(calc(100% - 2 * var(--fmc-layout17-gutter)), var(--fmc-layout17-width)) !important;
  max-inline-size: 100% !important;
  margin-inline: auto;
}

html body .allot-rank27-commercial-inner {
  box-sizing: border-box;
  inline-size: min(100%, var(--fmc-layout17-width));
  padding-inline: var(--fmc-layout17-gutter);
}

html body .allot-v30-page :is(.allot-v30-hero, .allot-v30-breadcrumb, .allot-v30-band) {
  box-sizing: border-box;
  padding-inline: max(var(--fmc-layout17-gutter), calc((100% - var(--fmc-layout17-width)) / 2 + var(--fmc-layout17-gutter)));
}

/* The old full-bleed band counted the vertical scrollbar in its 100vw width. */
html body .entry-content[data-ast-blocks-layout] > .allot-v39-search-demand,
html body .allot-v39-search-demand {
  inset-inline: auto !important;
  inline-size: 100% !important;
  max-inline-size: 100% !important;
  margin-inline: 0 !important;
}

html body :is(.allot-v35-intent, .allot-v66-output, .allot-v40-rfq) {
  box-sizing: border-box;
  max-inline-size: var(--fmc-layout17-width);
  min-inline-size: 0;
  margin-inline: auto;
}

/* These components also render in pages without the standard Astra wrapper. */
html body .fmc47 {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: var(--fmc-layout17-width);
  min-inline-size: 0;
  margin-inline: auto;
}

html body .fmc47 :is(.fmc47-hero, .fmc47-body) {
  box-sizing: border-box;
  min-inline-size: 0;
  padding-inline: var(--fmc-layout17-gutter);
}

html body .fmc47 .fmc47-body > section {
  min-inline-size: 0;
}

html body .fmc47 .fmc47-body :is(ul, ol) {
  padding-inline: 1.5em 0;
}

html body .fmc47 .fmc47-body > section + section {
  margin-block-start: clamp(1.75rem, 3vw, 3.25rem);
  padding-block-start: clamp(1.75rem, 3vw, 3.25rem);
  border-block-start: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

html body .fmc47 .fmc47-body > section > h2:first-child {
  margin-block: 0 .75em;
  text-wrap: balance;
}

html body .fmc47 .fmc73-jump > ul {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  padding-inline-start: 1.5em;
}

html body .fmc47 .fmc73-jump > ul > li {
  min-inline-size: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}

@media (min-width: 70rem) {
  /* A heading rail balances the long copy; rich content retains the whole row. */
  html body .fmc47 .fmc47-body > section:has(> h2:first-child + :is(p, ul, ol, h3, a, details, .fmc47-links)) {
    display: grid;
    grid-template-columns: minmax(15rem, .42fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
  }

  html body .fmc47 .fmc47-body > section:has(> h2:first-child + :is(p, ul, ol, h3, a, details, .fmc47-links)) > * {
    grid-column: 1 / -1;
    min-inline-size: 0;
  }

  html body .fmc47 .fmc47-body > section:has(> h2:first-child + :is(p, ul, ol, h3, a, details, .fmc47-links)) > h2:first-child {
    grid-column: 1;
    grid-row: 1;
    margin-block: 0;
  }

  html body .fmc47 .fmc47-body > section:has(> h2:first-child + :is(p, ul, ol, h3, a, details, .fmc47-links)) > :is(p, ul, ol, h3, a, details, .fmc47-links) {
    grid-column: 2;
    max-inline-size: 80ch;
  }
}

/* Card grids reflow according to the component width, including nested grids. */
html body :is(.alc-grid, .alcx-grid, .alld-solution-grid, .alld-industry-grid, .alld-route-grid, .alc-photo-grid, .allot-grid, .allot-native-grid, .allot-seo100-library-grid),
html body .alld-proof-strip > .alld-wrap,
html body .allot-v39-search-demand .allot-v39-scope-grid,
html body .fmc47 .fmc47-cards,
html body .allot-v30-product-group > div {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--fmc-layout17-gap);
}

html body .allot-guide-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important;
  gap: var(--fmc-layout17-gap);
}

html body :is(.alc-hero-grid, .alc-two, .alld-two, .allot-two, .allot-v35-gallery),
html body .fmc47 :is(.fmc47-fields, .fmc48-quote-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--fmc-layout17-gap);
}

html body.home .alc-page .alc-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: var(--fmc-layout17-gutter);
}

html body.home .alc-page .alc-hero .alc-hero-grid h1 {
  font-size: clamp(1.875rem, 4.3vw, 4.25rem) !important;
  line-height: 1.07 !important;
  text-transform: none !important;
  text-wrap: balance;
}

html body .allot-site .allot-hero-grid {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) !important;
  gap: var(--fmc-layout17-gap);
}

html body :is(.alc-grid, .alcx-grid, .alld-solution-grid, .alld-industry-grid, .alld-route-grid, .alc-photo-grid, .allot-grid, .allot-guide-grid, .allot-native-grid, .allot-seo100-library-grid, .alc-hero-grid, .alc-two, .alld-two, .allot-hero-grid, .allot-two, .allot-v35-gallery, .fmc47-cards, .fmc47-fields, .fmc48-quote-grid, .allot-v30-product-group > div) > * {
  min-inline-size: 0;
}

html body :is(.allot-v56-capacity, .fmc47) :is(fieldset, label) {
  min-inline-size: 0;
}

html body :is(.allot-v56-capacity, .fmc47) :is(input:not([type=radio], [type=checkbox], [type=submit]), select, textarea) {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
}

html body .allot-v56-capacity .allot-v56-row {
  grid-template-columns: minmax(0, .7fr) repeat(2, minmax(0, 1fr));
  min-inline-size: 0;
}

html body :is(.alc-page, .allot-site, .fmc47, .allot-v30-page) :is(figure, img, video, iframe) {
  max-inline-size: 100%;
}

/* Use existing native scroll wrappers and the wrapper added to plain data tables. */
html body :is(.fmc-layout17-table-scroll, .fmc47-table, .wp-block-table, .alc-table-wrap, .allot-v35-table, .allot-v39-table, .allot-rank14-table-wrap, .allot-rank27-table-wrap) {
  box-sizing: border-box;
  max-inline-size: 100%;
  min-inline-size: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

html body .fmc-layout17-table-scroll > table {
  margin-block: 0;
}

html body .fmc-layout17-table-scroll > table:has(tr > :nth-child(4)) {
  min-inline-size: 36rem;
}

html body .fmc-layout17-table-scroll:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

html body .fmc47 :is(th, td) {
  text-align: start;
}

/* Site directory and Astra footer retain their current content and order. */
html body #allot-global-footer-directory .allot-global-footer-directory__inner,
html body #colophon :is(.site-primary-footer-wrap, .site-below-footer-wrap) > .ast-builder-grid-row-container-inner {
  box-sizing: border-box;
  inline-size: min(calc(100% - 2 * var(--fmc-layout17-gutter)), var(--fmc-layout17-width));
  max-inline-size: 100%;
  margin-inline: auto;
}

html body #allot-global-footer-directory .allot-global-footer-directory__grid,
html body #colophon .site-primary-footer-wrap .ast-builder-grid-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--fmc-layout17-gap);
}

html body #allot-global-footer-directory .allot-global-footer-directory__grid > *,
html body #colophon .ast-builder-grid-row > * {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 62rem) {
  html body #allot-global-footer-directory .allot-global-footer-directory__grid,
  html body #colophon .site-primary-footer-wrap .ast-builder-grid-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  html body :is(.alc-hero-grid, .alc-two, .alld-two, .allot-two, .allot-v35-gallery),
  html body.home .alc-page .alc-hero-grid,
  html body .fmc47 :is(.fmc47-fields, .fmc48-quote-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  html body .allot-site .allot-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html body .allot-v56-capacity .allot-v56-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body .allot-v56-capacity .allot-v56-row > h4 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 32rem) {
  html body #allot-global-footer-directory .allot-global-footer-directory__grid,
  html body #colophon :is(.site-primary-footer-wrap, .site-below-footer-wrap) .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr);
  }

  html body .allot-v56-capacity .allot-v56-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

html body.fmc17-has-topbar {
    overflow-x: clip !important;
    overflow-y: visible;
}

html:has(> body.fmc17-has-topbar) {
    scroll-padding-block-start: var(--fmc17-topbar-height, 96px);
}

body.fmc17-has-topbar a.skip-link:focus {
    z-index: 100002 !important;
}

body.fmc17-has-topbar :is(
    #allot-global-contact-strip,
    .allot-0701-contact-bar,
    .allot-topline.allot-brand-banner,
    .allot-unified-language-switch,
    .allot-mobile-lang-holder,
    .allot-lsc-lang-menu,
    .allot-lsc-language-select,
    #allot-language-switcher,
    .fmc73-language.fmc73-in-document
) {
    display: none !important;
    visibility: hidden !important;
}

#fmc17-topbar {
    --fmc17-topbar-accent: #96d8ff;
    --fmc17-topbar-fg: #f4f8fc;
    --fmc17-topbar-bg: #0c2941;
    position: sticky;
    inset-block-start: 0;
    z-index: 100001;
    inline-size: 100%;
    border-block-end: 1px solid #2f506a;
    background: var(--fmc17-topbar-bg);
    color: var(--fmc17-topbar-fg);
    font-family: inherit;
    font-size: .875rem;
    line-height: 1.4;
}

body.admin-bar #fmc17-topbar {
    inset-block-start: var(--wp-admin--admin-bar--height, 32px);
    z-index: 99998;
}

#fmc17-topbar .fmc17-topbar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1.25rem;
    max-inline-size: 82rem;
    margin-inline: auto;
    padding: .25rem clamp(.625rem, 2vw, 1.75rem);
}

#fmc17-topbar .fmc17-topbar__contacts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem clamp(.75rem, 2vw, 1.75rem);
}

/* Older sitewide rules match the contact URLs and use !important. Keep this
   palette confined to the utility bar, including its interaction states. */
#fmc17-topbar [data-fmc17-contacts] > a {
    --fmc17-contact-fg: var(--fmc17-topbar-fg);
    display: inline-flex;
    align-items: center;
    min-block-size: 2rem;
    inline-size: max-content;
    max-inline-size: 100%;
    border: 0 !important;
    border-radius: .25rem !important;
    padding: 0 .125rem !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--fmc17-contact-fg) !important;
    -webkit-text-fill-color: currentColor !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: underline #92a9ba !important;
    text-underline-offset: .18em;
    white-space: nowrap;
}

#fmc17-topbar [data-fmc17-contacts] > .fmc17-contact--whatsapp {
    --fmc17-contact-fg: #b5e8d3;
}

#fmc17-topbar [data-fmc17-contacts] > a:is(:hover, :focus-visible, :active) {
    --fmc17-contact-fg: var(--fmc17-topbar-accent);
    text-decoration-color: currentColor !important;
}

#fmc17-topbar [data-fmc17-contacts] > a:focus-visible {
    outline: 2px solid var(--fmc17-topbar-accent) !important;
    outline-offset: 2px !important;
}

#fmc17-topbar .fmc17-topbar__language {
    margin: 0;
}

#fmc17-topbar [data-fmc17-language] > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-block-size: 2.5rem;
    gap: .55rem;
    border: 1px solid #55768e;
    border-radius: .375rem;
    padding: .25rem .65rem;
    background: #16384f !important;
    color: var(--fmc17-topbar-fg) !important;
    -webkit-text-fill-color: currentColor !important;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
}

#fmc17-topbar [data-fmc17-language] > summary:is(:hover, :focus-visible, :active),
#fmc17-topbar [data-fmc17-language][open] > summary {
    background: #22465f !important;
}

#fmc17-topbar [data-fmc17-language] > summary:focus-visible {
    outline: 2px solid var(--fmc17-topbar-accent) !important;
    outline-offset: 2px !important;
}

#fmc17-topbar summary::-webkit-details-marker {
    display: none;
}

#fmc17-topbar [data-fmc17-language] > summary::after {
    content: '';
    display: block;
    inline-size: .42rem;
    block-size: .42rem;
    border-right: 2px solid var(--fmc17-topbar-fg);
    border-bottom: 2px solid var(--fmc17-topbar-fg);
    transform: translateY(-.12rem) rotate(45deg);
}

#fmc17-topbar [data-fmc17-language][open] > summary::after {
    transform: translateY(.12rem) rotate(225deg);
}

#fmc17-topbar details:not([open]) > .fmc17-topbar__language-panel {
    display: none;
}

#fmc17-topbar .fmc17-topbar__language-panel {
    position: absolute;
    inset-block-start: calc(100% + .25rem);
    inset-inline-end: clamp(.625rem, 2vw, 1.75rem);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .25rem;
    width: min(49rem, calc(100vw - 1.25rem));
    max-block-size: min(65vh, 25rem);
    max-block-size: min(65dvh, 25rem);
    overflow: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: .55rem;
    border: 1px solid #c8d9e6;
    border-radius: .5rem;
    background: #fff;
    box-shadow: 0 12px 30px #0c294144;
    color: #133751;
    list-style: none;
}

#fmc17-topbar .fmc17-topbar__language-panel li {
    min-inline-size: 0;
    margin: 0;
}

#fmc17-topbar .fmc17-topbar__language-panel a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-block-size: 2.75rem;
    block-size: 100%;
    border-radius: .375rem;
    padding: .4rem .65rem;
    color: inherit;
    font-weight: 600;
    text-align: start;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#fmc17-topbar .fmc17-topbar__language-panel a:is(:hover, [aria-current="page"]) {
    background: #e6f3fb;
    color: #103b58;
}

#fmc17-topbar .fmc17-language-home-label {
    color: #425d73;
    font-size: .75rem;
    font-weight: 500;
}

#fmc17-topbar :is(summary, a):focus-visible {
    outline: 2px solid var(--fmc17-topbar-accent);
    outline-offset: 2px;
}

#fmc17-topbar .fmc17-topbar__language-panel a:focus-visible {
    outline-color: #12628e;
    outline-offset: -2px;
}

@media (max-width: 1049px) {
    #fmc17-topbar .fmc17-topbar__language-panel { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    #fmc17-topbar .fmc17-topbar__language-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 601px) and (max-width: 782px) {
    body.admin-bar #fmc17-topbar { inset-block-start: var(--wp-admin--admin-bar--height, 46px); }
}

@media (max-width: 600px) {
    body.admin-bar #fmc17-topbar { inset-block-start: 0; }
}

@media (max-width: 640px) {
    #fmc17-topbar .fmc17-topbar__inner {
        display: grid;
        grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1fr) auto;
        grid-template-areas: "mail mail language" "us cn whatsapp";
        gap: 0 .5rem;
        padding-block: .2rem;
    }

    #fmc17-topbar .fmc17-topbar__contacts { display: contents; }
    #fmc17-topbar .fmc17-topbar__contacts a { min-block-size: 1.875rem; font-size: .8rem; }
    #fmc17-topbar .fmc17-contact--email { grid-area: mail; }
    #fmc17-topbar .fmc17-contact--us { grid-area: us; }
    #fmc17-topbar .fmc17-contact--cn { grid-area: cn; }
    #fmc17-topbar .fmc17-contact--whatsapp { grid-area: whatsapp; justify-self: end; }
    #fmc17-topbar .fmc17-topbar__language { grid-area: language; justify-self: end; }

    #fmc17-topbar .fmc17-topbar__language-panel {
        inset-inline: .625rem;
        inline-size: auto;
    }
}

@media (max-width: 479px) {
    #fmc17-topbar .fmc17-topbar__language-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 359px) {
    #fmc17-topbar .fmc17-topbar__inner {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "mail language" "us cn" "whatsapp whatsapp";
    }
    #fmc17-topbar .fmc17-contact--whatsapp { justify-self: start; }
    #fmc17-topbar [data-fmc17-language] > summary { padding-inline: .5rem; }
}
