/* Baquedano mobile page-shell adjustment (v1.2.4).
   Applied only to pages containing the campaign shortcode output, or its checkout.
   Avoid changing the general WoodMart website. */
@media (max-width: 767px) {
  /* WoodMart's page shell can retain reserved space after the visible content. */
  body:has(.pcb) .website-wrapper,
  body:has(.pcb) .main-page-wrapper,
  body:has(.pcb) .site-content,
  body:has(.pcb) .content-layout-wrapper,
  body.pcbw-checkout .website-wrapper,
  body.pcbw-checkout .main-page-wrapper,
  body.pcbw-checkout .site-content,
  body.pcbw-checkout .content-layout-wrapper {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  /* No leave a theme footer behind campaign-specific pages. */
  body:has(.pcb) .footer-container,
  body:has(.pcb) .site-footer,
  body:has(.pcb) #colophon,
  body:has(.pcb) .copyrights-wrapper,
  body:has(.pcb) .wd-prefooter,
  body:has(.pcb) .prefooter,
  body.pcbw-checkout .footer-container,
  body.pcbw-checkout .site-footer,
  body.pcbw-checkout #colophon,
  body.pcbw-checkout .copyrights-wrapper,
  body.pcbw-checkout .wd-prefooter,
  body.pcbw-checkout .prefooter {
    display: none !important;
  }

  /* Elementor's unused section/widget wrapping the shortcode must not expand
     beyond the actual campaign content. Only target the specific widget. */
  body:has(.pcb) .elementor-widget-shortcode:has(> .elementor-widget-container > .pcb),
  body:has(.pcb) .elementor-widget-shortcode:has(> .elementor-widget-container > .pcb) > .elementor-widget-container {
    min-height: 0 !important;
    height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}


/* v1.2.5: Elementor page canvas must size to its children on mobile.
   The shortcode output retains its natural height; no fixed 100vh shells. */
@media (max-width:767px) {
  body:has(.pcb) .elementor[data-elementor-type="wp-page"],
  body:has(.pcb) .elementor[data-elementor-type="wp-page"] > .e-con,
  body:has(.pcb) .elementor-widget-shortcode,
  body:has(.pcb) .elementor-widget-shortcode > .elementor-widget-container {
    min-height: 0 !important;
    --min-height: 0px;
    height: auto !important;
  }
  body:has(.pcb) .pcb-cielo { pointer-events: none !important; }
}
