/* Victus Sales — Business Reviews Bundle compatibility (v2.0.3)
   Theme-only compatibility rules. Do not edit the plugin or its collection data.
   Scoped to Elementor's existing .cus_review_sec section.
   Preserve the original white cards, 2-column desktop arrangement,
   700px scroll viewport, and mobile single column. */

/* The previous plugin used .rplg as its scrolling viewport. */
body .cus_review_sec .elementor-shortcode .rpi {
  box-sizing: border-box;
  width: calc(100% + 70px);
  max-width: none;
  max-height: 700px;
  margin: -20px -35px;
  padding: 20px 35px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body .cus_review_sec .elementor-shortcode .rpi::-webkit-scrollbar {
  display: none;
  width: 0;
}

/* In "Template" mode the new plugin renders the reviews as direct
   children of .rpi > .rpi-content. Keep each original template/card intact. */
body .cus_review_sec .rpi > .rpi-content {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
body .cus_review_sec .rpi > .rpi-content > * {
  flex: 0 0 calc(50% - 30px) !important;
  width: calc(50% - 30px) !important;
  max-width: calc(50% - 30px) !important;
  min-width: 0;
  box-sizing: border-box;
  margin: 15px;
}

/* In "List / Grid" mode the plugin uses .rpi-cards as the direct list.
   Do not change sliders, badges, or review widgets elsewhere on the site. */
body .cus_review_sec .rpi-cnt.rpi-grid .rpi-content > .rpi-cards,
body .cus_review_sec .rpi-cnt.rpi-list .rpi-content > .rpi-cards {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch;
  min-width: 0;
}
body .cus_review_sec .rpi-cnt.rpi-grid .rpi-content > .rpi-cards > .rpi-card,
body .cus_review_sec .rpi-cnt.rpi-list .rpi-content > .rpi-cards > .rpi-card {
  box-sizing: border-box;
  flex: 0 0 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 0;
  padding: 15px;
}

/* The original review cards were white with 19px corners. Respect cards
   already styled with the existing .review_box class and the plugin design. */
body .cus_review_sec .rpi > .rpi-content > .rpi-review {
  background: #fff;
  border-radius: 19px;
  box-shadow: 0 4px 12px rgba(128,126,142,.18), 0 2px 30px rgba(121,119,133,.15);
  padding: 15px;
}
body .cus_review_sec .rpi > .rpi-content > .rpi-review .rpi-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

@media screen and (max-width: 767px) {
  body .cus_review_sec .elementor-shortcode .rpi {
    width: 100%;
    max-height: 500px;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: hidden; /* as in the previous mobile CSS */
  }
  body .cus_review_sec .rpi > .rpi-content > * {
    flex: 0 0 calc(100% - 10px) !important;
    width: calc(100% - 10px) !important;
    max-width: calc(100% - 10px) !important;
    margin: 8px 5px;
  }
  body .cus_review_sec .rpi-cnt.rpi-grid .rpi-content > .rpi-cards > .rpi-card,
  body .cus_review_sec .rpi-cnt.rpi-list .rpi-content > .rpi-cards > .rpi-card {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 5px;
  }
}

/* v2.0.4: avoid any second CSS smooth-scrolling layer over the controlled
   requestAnimationFrame scroll, which can cause visible stuttering. */
body .cus_review_sec_home.cus_review_sec .elementor-shortcode .rpi,
body .cus_review_sec_home.cus_review_sec .elementor-shortcode .rplg {
  scroll-behavior: auto !important;
}
