/* ============================================================
   MPPG Pharmacy Stabilizer – Boxed Layout + Safety
   Targets: pharmacy pages (body.mppg-pharmacy-page / .mppg-ps-page)
   ============================================================ */

/* Prevent horizontal scroll from any stretched wrappers */
body.mppg-pharmacy-page,
body.mppg-ps-page {
  overflow-x: hidden !important;
}

/* Hard-box Elementor sections (classic) */
body.mppg-pharmacy-page .elementor-location-single .elementor-section > .elementor-container,
body.mppg-pharmacy-page main .elementor-section > .elementor-container,
body.mppg-ps-page .elementor-location-single .elementor-section > .elementor-container,
body.mppg-ps-page main .elementor-section > .elementor-container {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}

/* Hard-box Elementor flexbox containers (new layout) */
body.mppg-pharmacy-page .elementor-location-single .e-con,
body.mppg-pharmacy-page main .e-con,
body.mppg-ps-page .elementor-location-single .e-con,
body.mppg-ps-page main .e-con {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  box-sizing: border-box !important;
}

/* If content isn't inside Elementor wrappers, box entry content */
body.mppg-pharmacy-page .entry-content,
body.mppg-pharmacy-page .page-content,
body.mppg-ps-page .entry-content,
body.mppg-ps-page .page-content {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Hard-box any MPPG/ MPC wrappers (covers plugin-generated sections) */
body.mppg-pharmacy-page .mppg-wrap,
body.mppg-pharmacy-page .mpc-wrap,
body.mppg-ps-page .mppg-wrap,
body.mppg-ps-page .mpc-wrap {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 16px !important;
  padding-right: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Some sections may not be inside wrappers: box known blocks */
body.mppg-pharmacy-page .mppg-hero,
body.mppg-pharmacy-page .mppg-section,
body.mppg-pharmacy-page .mppg-card,
body.mppg-pharmacy-page .mppg-table,
body.mppg-pharmacy-page .mppg-compare,
body.mppg-ps-page .mppg-hero,
body.mppg-ps-page .mppg-section,
body.mppg-ps-page .mppg-card,
body.mppg-ps-page .mppg-table,
body.mppg-ps-page .mppg-compare {
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Make sure wide elements don't overflow */
body.mppg-pharmacy-page img,
body.mppg-pharmacy-page table,
body.mppg-pharmacy-page iframe,
body.mppg-ps-page img,
body.mppg-ps-page table,
body.mppg-ps-page iframe {
  max-width: 100% !important;
}

/* Intro Read More – collapsed state (JS toggles .is-expanded) */
body.mppg-pharmacy-page .mppg-intro-content,
body.mppg-ps-page .mppg-intro-content {
  transition: max-height .25s ease;
  overflow: hidden;
}

body.mppg-pharmacy-page .mppg-intro-content.is-expanded,
body.mppg-ps-page .mppg-intro-content.is-expanded {
  overflow: visible;
}

/* FAQ accordion – ensure answers are hidden by default if markup is present */
body.mppg-pharmacy-page .mppg-faq-answer[hidden],
body.mppg-ps-page .mppg-faq-answer[hidden] {
  display: none !important;
}

/* Optional: prevent the extra non-button 'Copy & Visit' bar if it exists */
body.mppg-pharmacy-page .mppg-copy-visit-duplicate,
body.mppg-ps-page .mppg-copy-visit-duplicate {
  display: none !important;
}
