/* Tablet uses the existing single-row header, without a duplicate phone row. */
@media (min-width: 768px) and (max-width: 1024px) {
  .elementor-location-header .elementor-element-bb886e8 {
    display: none !important;
  }
}

/* Keep the legacy review sliders inside their page columns.
   Do not clip the page itself: menus, forms, and other content remain intact. */
.e-con:has(.ti-widget),
.e-con-inner:has(.ti-widget) {
  min-width: 0;
}

.elementor-widget-shortcode:has(.ti-widget),
.elementor-widget-shortcode:has(.ti-widget) > .elementor-widget-container,
.elementor-shortcode:has(.ti-widget) {
  min-width: 0;
  max-width: 100%;
}

.elementor-shortcode .ti-widget.ti-goog {
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
}

.elementor-shortcode .ti-widget.ti-goog .ti-widget-container,
.elementor-shortcode .ti-widget.ti-goog .ti-reviews-container {
  min-width: 0;
  max-width: 100%;
}

.elementor-shortcode .ti-widget.ti-goog .ti-reviews-container-wrapper {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

/* Supply the narrow column layouts selected by the existing review loader. */
  .elementor-shortcode .ti-widget.ti-goog .ti-widget-container.ti-col-1 {
    flex-direction: column;
    align-items: stretch;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-col-1 > .ti-footer,
  .elementor-shortcode .ti-widget.ti-goog .ti-col-1 > .ti-reviews-container {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-col-1 > .ti-footer {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-col-1 .ti-reviews-container-wrapper {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-col-1 .ti-review-item,
  .elementor-shortcode .ti-widget.ti-goog .ti-col-2 .ti-review-item {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-col-2 > .ti-footer,
  .elementor-shortcode .ti-widget.ti-goog .ti-col-2 > .ti-reviews-container,
  .elementor-shortcode .ti-widget.ti-goog .ti-col-3 .ti-review-item {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-col-3 > .ti-footer {
    flex: 0 0 33.333333% !important;
    width: 33.333333% !important;
    max-width: 33.333333% !important;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-col-3 > .ti-reviews-container {
    flex: 0 0 66.666667% !important;
    width: 66.666667% !important;
    max-width: 66.666667% !important;
  }

@media (max-width: 767px) {
  .privacy-policy #content .elementor-widget-text-editor a {
    overflow-wrap: anywhere;
  }

  body:has(> header.planner-header) {
    min-width: 0;
  }

  .elementor-shortcode .ti-widget.ti-goog .ti-verified-by-row .ti-disclaimer {
    max-width: calc(100vw - 40px) !important;
  }

  /* The 44px close button must stay inside the gallery's 10px phone gutter. */
  .capstone-lightbox__close {
    transform: none;
  }
}
