/* Novaderma 1.11.59: compact mobile rhythm for BB Clinic Elementor modules.
   Scoped to the module's own wrapper and single-widget layout containers;
   never hides content, edits saved Elementor data, or changes desktop. */
@media (max-width: 1024px) {
  /* Elementor widgets should not inherit desktop minimum heights. */
  :is(.elementor-widget[class*="elementor-widget-bbcb_"],
      .elementor-widget[class*="elementor-widget-bb-clinic"],
      .elementor-widget[class*="elementor-widget-bb_clinic"]) {
    min-height: 0 !important;
    height: auto;
    align-self: auto;
  }
  :is(.elementor-widget[class*="elementor-widget-bbcb_"],
      .elementor-widget[class*="elementor-widget-bb-clinic"],
      .elementor-widget[class*="elementor-widget-bb_clinic"]) > .elementor-widget-container {
    min-height: 0 !important;
    height: auto;
  }
  .bbcb-elementor-render { min-height: 0; }
  /* JS marks only isolated, measured oversized section wrappers. */
  .bbcb-mobile-flow-shell {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    align-content: start !important;
    justify-content: flex-start !important;
  }
  .bbcb-mobile-flow-shell:not(.e-con-inner):not(.elementor-widget-wrap) {
    padding-bottom: clamp(14px, 3vw, 28px) !important;
  }
  .bbcb-mobile-flow-spacing {
    margin-bottom: 0 !important;
  }
}
@media (max-width: 767px) {
  /* Restrict these rules to BB Clinic's own generated content. */
  .bbcb-elementor-render :is(.section-pad, .bbcf-section) {
    padding-block: clamp(24px, 6vw, 38px);
    min-height: 0;
  }
  .bbcb-elementor-render :is(.content-block, .bbcb-true-derma, .bbcb-appointment-form-section) {
    min-height: 0;
  }
  .bbcb-elementor-render .bbcb-elementor-single-body { padding-block: 26px; }
  .bbcb-elementor-render .bbcb-team-final-cta { margin-top: 20px; }
  /* Single-widget containers that Elementor creates around a BB Clinic module. */
  .elementor .e-con:has(> .elementor-widget[class*="elementor-widget-bbcb_"]):not(:has(> .elementor-widget ~ .elementor-widget)) {
    min-height: 0;
  }
}
