/* CP421 — mobile comfort, image-free category cards, and banking disclosure. */
@media (max-width: 640px) {
  html body.pg-visual-system footer#pg-footer.pg-footer-v4 > .container {
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    padding: 28px 12px calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    box-sizing: border-box !important;
  }
  html body.pg-visual-system footer#pg-footer .pg-footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-areas: "brand brand" "contact contact" "discover support" !important;
    gap: 18px 12px !important;
  }
  html body.pg-visual-system footer#pg-footer .pg-footer-brand { grid-area: brand !important; min-width: 0 !important; }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact { grid-area: contact !important; min-width: 0 !important; width: 100% !important; }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact > h2 {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 12px !important;
    align-items: center !important;
    width: 100% !important;
  }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links > a {
    display: inline-flex !important;
    grid-column: auto !important;
    grid-row: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding-inline: 1px !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-size: clamp(10.8px, 3.3vw, 12.5px) !important;
    line-height: 1.2 !important;
    gap: 6px !important;
  }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links > a bdi { white-space: nowrap !important; }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links > a:nth-child(3) { grid-column: 1 / -1 !important; }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links > a:nth-child(3) .pg-mini-icon { flex: 0 0 auto; }
  html body.pg-visual-system footer#pg-footer .pg-footer-products { grid-area: discover !important; min-width: 0 !important; }
  html body.pg-visual-system footer#pg-footer .pg-footer-solutions { grid-area: support !important; min-width: 0 !important; }
}
@media (max-width: 359px) {
  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links { grid-template-columns: minmax(0, 1fr) !important; }
  html body.pg-visual-system footer#pg-footer .pg-footer-contact-links > a:nth-child(3) { grid-column: 1 !important; }
}

/* Categories without approved product photography remain clean text cards. */
html body.pg-visual-system .categories-grid[data-category-id="products-hub"] .pg-product-hub-card.category-text-only {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
}
html body.pg-visual-system .categories-grid[data-category-id="products-hub"] .pg-product-hub-card.category-text-only > .pg-category-card-copy {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
}
html body.pg-visual-system .categories-grid[data-category-id="products-hub"] .pg-product-hub-card.category-text-only > .card-actions {
  grid-column: 1 !important;
  grid-row: 2 !important;
  width: 100% !important;
}
html body.pg-visual-system main#main > section.product-page.pg-category-layout-no-image .product-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}
html body.pg-visual-system main#main > section.product-page.pg-category-layout-no-image .product-layout > div:first-child {
  width: 100% !important;
  max-width: 920px;
}
html body.pg-visual-system main#main > section.product-page[data-pg-product-id] > .container > .product-layout:not(:has(> .product-image-wrap)) {
  grid-template-columns: minmax(0, 1fr) !important;
}
html body.pg-visual-system main#main > section.product-page.pg-product-layout-no-photo .product-layout {
  grid-template-columns: minmax(0, 1fr) !important;
}

/* The banking page stays concise on mobile; all detail is one tap away. */
.pg-enterprise-mobile-disclosure > summary { display: none; }
@media (max-width: 600px) {
  .pg-enterprise-mobile-disclosure { margin-top: 18px; }
  .pg-enterprise-mobile-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 52px;
    padding: 12px 15px;
    border: 1px solid rgba(72, 156, 211, .42);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(9, 29, 48, .98), rgba(4, 12, 21, .98));
    color: #eaf5ff;
    font-size: .92rem;
    font-weight: 750;
    line-height: 1.35;
    list-style: none;
    cursor: pointer;
  }
  .pg-enterprise-mobile-disclosure > summary::-webkit-details-marker { display: none; }
  .pg-enterprise-mobile-disclosure > summary::marker { content: ""; }
  .pg-enterprise-disclosure-arrow { flex: 0 0 auto; color: #80caff; font-size: 1.45rem; line-height: 1; }
  .pg-enterprise-mobile-disclosure[open] > summary .pg-enterprise-disclosure-arrow { transform: rotate(180deg); }
  .pg-enterprise-mobile-disclosure > summary:focus-visible { outline: 2px solid #d6efff; outline-offset: 3px; }
  .pg-enterprise-mobile-disclosure-content > :is(.pg-bank-section,.pg-bank-categories,.pg-bank-process,.pg-bank-calculator,.pg-bank-customisation,.pg-bank-funded-model,.pg-bank-product-gallery,.pg-enterprise-outcomes,.pg-enterprise-rfq) {
    margin-top: 24px !important;
  }
  .pg-enterprise-mobile-disclosure-content > .pg-bank-product-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pg-bank-product-photo { grid-template-columns: minmax(0, 1fr) !important; align-content: start; }
  .pg-bank-product-photo img { height: 145px !important; }
}
@media (min-width: 380px) and (max-width: 600px) {
  .pg-enterprise-mobile-disclosure-content > .pg-bank-product-gallery .pg-bank-product-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 379px) {
  .pg-enterprise-mobile-disclosure-content > .pg-bank-product-gallery .pg-bank-product-gallery-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .pg-bank-product-photo { grid-template-columns: minmax(100px, .56fr) minmax(0, 1fr) !important; }
  .pg-bank-product-photo img { height: 150px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-enterprise-disclosure-arrow { transform: none !important; }
}

/* Keep the mobile banking introduction concise enough to expose the disclosure early. */
.pg-enterprise-page .pg-enterprise-hero { position: relative !important; top: auto !important; }
@media (max-width: 600px) {
  html body.pg-visual-system .pg-enterprise-hero {
    gap: 12px !important;
    padding: 16px 14px !important;
  }
  html body.pg-visual-system .pg-enterprise-page h1 {
    max-width: none !important;
    margin: 6px 0 10px !important;
    font-size: clamp(1.8rem, 8vw, 2.25rem) !important;
    line-height: 1.06 !important;
  }
  html body.pg-visual-system .pg-enterprise-bank-tagline {
    max-width: none !important;
    margin: 0 0 8px !important;
    font-size: clamp(1.05rem, 4.6vw, 1.25rem) !important;
    line-height: 1.28 !important;
  }
  html body.pg-visual-system .pg-enterprise-lead,
  html body.pg-visual-system .pg-enterprise-bank-lead {
    font-size: .88rem !important;
    line-height: 1.4 !important;
  }
  html body.pg-visual-system .pg-enterprise-lead { margin-bottom: 6px !important; }
  html body.pg-visual-system .pg-enterprise-bank-lead { margin-bottom: 7px !important; }
  html body.pg-visual-system .pg-enterprise-clarifier {
    margin-top: 8px !important;
    padding-inline-start: 10px !important;
    font-size: .79rem !important;
    line-height: 1.35 !important;
  }
  html body.pg-visual-system .pg-enterprise-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }
  html body.pg-visual-system .pg-enterprise-actions > :is(.cta, .ghost) {
    width: auto !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 8px 9px !important;
    font-size: .78rem !important;
    line-height: 1.2 !important;
  }
  html body.pg-visual-system .pg-enterprise-scope {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 0 9px !important;
    padding: 10px 11px !important;
  }
  html body.pg-visual-system .pg-enterprise-scope-mark {
    grid-row: 1 / span 2 !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 !important;
  }
  html body.pg-visual-system .pg-enterprise-scope > strong { font-size: .88rem !important; line-height: 1.3 !important; }
  html body.pg-visual-system .pg-enterprise-scope ul {
    grid-column: 2 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px 8px !important;
    margin: 6px 0 0 !important;
  }
  html body.pg-visual-system .pg-enterprise-scope li { font-size: .69rem !important; line-height: 1.28 !important; padding-inline-start: 11px !important; }
}
@media (max-width: 359px) {
  html body.pg-visual-system .pg-enterprise-actions { grid-template-columns: minmax(0, 1fr) !important; }
  html body.pg-visual-system .pg-enterprise-scope ul { grid-template-columns: minmax(0, 1fr) !important; }
}
