/* AILVBO item 54 mobile inquiry path — additive overlay, 2026-12-04
   Do not replace /assets/index-4ba35bf2.css.
   Do not replace or remove /assets/mobile-fix-20261202.css (live 12-02 fix;
   its hero-arrow, category-grid, checkbox, footer YouTube, and banner
   object-position rules stay in force).
   Scope: recorded item-54 issues only. Not a site-wide mobile restyle.
   Not item 51 and not a reopening of item 17.
*/

/* ------------------------------------------------------------------
   2. Homepage hero: two copy layers / two "Explore Products" buttons
      visible at once during the 700ms cross-fade.
      Copy text is unchanged. Background-image fade is unchanged.
      Live 12-02 arrow-to-dots rules are not overridden here.
   ------------------------------------------------------------------ */
#home .relative.z-10 .container.text-center {
  position: relative;
}

/* Do not animate opacity on the two copy stacks, so a style swap
   cannot leave both headlines and both CTAs mid-fade on top of
   each other. Transform may still apply. */
#home .relative.z-10 .container.text-center > div.max-w-4xl.transition-all {
  transition-property: transform;
}

/* The inactive stack is already marked pointer-events: none in the
   inline style. Hide it at once (no residual opacity). */
#home .relative.z-10 .container.text-center > div.max-w-4xl.transition-all[style*="pointer-events: none"] {
  opacity: 0 !important;
  visibility: hidden;
}

/* ------------------------------------------------------------------
   4. Homepage "Get In Touch" inquiry text links.
      Match the live /contact/ body size: font-size text-sm (0.875rem);
      WhatsApp padding py-2.5 (0.625rem) and a tappable min-height.
      Do not change the email address or the phone number.
      Do not restyle the footer mailto / wa.me links, and do not
      restyle the neighbouring WeChat button (not in the recorded item).
   ------------------------------------------------------------------ */
section.py-20.bg-gray-50:has(h2):has(a[href="mailto:fliany365@gmail.com"])
  a[href="mailto:fliany365@gmail.com"] {
  font-size: 0.875rem; /* text-sm, same as /contact/ body email */
  line-height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  box-sizing: border-box;
}

section.py-20.bg-gray-50:has(h2):has(a[href="https://wa.me/8615810953132"])
  a[href="https://wa.me/8615810953132"] {
  font-size: 0.875rem; /* text-sm, same as /contact/ WhatsApp */
  line-height: 1.25rem;
  padding-top: 0.625rem;    /* py-2.5 */
  padding-bottom: 0.625rem;
  padding-left: 1.25rem;    /* px-5, same as /contact/ */
  padding-right: 1.25rem;
  min-height: 44px;
  box-sizing: border-box;
}

/* ------------------------------------------------------------------
   3. Narrow-screen tables on the recorded sample pages only
      (this file is linked from those pages, not site-wide):
      /aluminum-foil-containers-guide/
      /blog/can-you-freeze-aluminum-foil-containers/
      /blog/3003-vs-8011-aluminum-foil-containers/
      /rfq/
      Goal: the table is not clipped, and the PAGE does not grow a
      horizontal scrollbar. Scroll stays inside the existing wrapper.
      Cell values / specification numbers are not edited.
      sm breakpoint on the live stylesheet is 640px.
   ------------------------------------------------------------------ */
@media (max-width: 639px) {
  /* Do not hide overflow on html/body — that would only conceal a
     page-level scrollbar instead of keeping scroll inside the table
     wrapper. All four recorded sample pages already wrap each table
     in overflow-x-auto in the 15:56 source, so no extra HTML wrapper
     was added. These rules make that existing wrapper the scroll
     container and let flex/grid ancestors shrink. */

  main,
  section,
  .container,
  .max-w-4xl,
  .max-w-5xl,
  .max-w-3xl {
    min-width: 0;
    max-width: 100%;
  }

  main .overflow-x-auto,
  section .overflow-x-auto {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  /* Let the table be as wide as its nowrap content; the wrapper
     scrolls. Do not force wrap that could split a spec value. */
  main .overflow-x-auto > table,
  section .overflow-x-auto > table {
    width: max-content;
    max-width: none;
  }
}
