/* Whole-site gradient integration for Maldives Rating Elementor elements — v2.5.0. */
body.rmv-site-gradient-active .rme-widget,
body.rmv-site-gradient-active :is(.rmv-rating-summary,.rmv-rating-form-wrap,.rmv-user-reviews,.rmv-review-directory,.rmv-review-submission-form){
  --rme-primary:#1e5bb3;
  --rme-secondary:#1c7cb4;
  --rme-accent:#1fd3ed;
  --rme-teal:#1c7cb4;
  --rme-aqua:#1fd3ed;
  --rme-lime:#1fd3ed;
  --rmv-rating-accent:#1fd3ed;
  --rmv-rating-accent-2:#1e5bb3;
}

/* Buttons, active controls, icon chips, scores and progress bars inherit the selected site gradient. */
body.rmv-site-gradient-active :is(
  .rme-button,.rme-btn-primary,.rme-design-btn.rme-btn-primary,.rme-btn-deep,
  .rme-blog-search button,.rme-species-directory-pro__search button,
  .rme-category-chips button.is-active,.rme-client-pagination button.is-active,
  .rme-directory-controls button.is-active,.rme-directory-search button,
  .rme-faq-question[aria-expanded="true"],.rme-built-in-form button,
  .rmv-submit-review,.rmv-rating-cta,.rmv-compare-button,.rmv-rating-summary__rate-link
){
  color:#fff!important;
  background-color:#1e5bb3!important;
  background-image:var(--rmv-site-gradient)!important;
  border-color:transparent!important;
  box-shadow:0 12px 28px rgba(22,53,126,.2);
}
body.rmv-site-gradient-active :is(
  .rme-card-icon,.rme-stat-number,.rme-category-number,.rme-rank-number,
  .rmv-rating-badge,.rmv-rating-summary__badge,.rmv-top-rated-card__image>b
){
  color:#fff!important;
  background-color:#16357e!important;
  background-image:var(--rmv-site-gradient)!important;
  border-color:rgba(255,255,255,.42)!important;
}
body.rmv-site-gradient-active :is(
  .rmv-rating-criterion__bar span,.rme-directory-rating span,.rme-rank-card .track span,
  .rme-progress span,.rme-stat-progress span
){background-color:#1c7cb4!important;background-image:var(--rmv-site-gradient)!important}
body.rmv-site-gradient-active :is(
  .rme-category,.rme-card-tag,.rme-eyebrow,.rme-text-link,.rme-rank-card .type,
  .rmv-top-rated-card__type,.rmv-compare-score,.rmv-rating-form-wrap__intro span,.rmv-user-reviews header span
){color:#1d69b4!important}
body.rmv-site-gradient-active :is(.rme-post-image,.rme-image-fallback,.rme-card-image,.rme-species-directory-pro__fallback){background-image:var(--rmv-site-gradient)!important}
body.rmv-site-gradient-active :is(.rme-form-control input,.rme-form-control textarea,.rme-form-control select,.rme-blog-search input,.rme-species-directory-pro__search input,.rmv-form-grid input,.rmv-form-grid textarea):focus{
  border-color:#1fd3ed!important;box-shadow:0 0 0 4px rgba(31,211,237,.17)!important;outline:0!important
}

/* Balanced and Bold modes change the large Elementor template surfaces. */
body.rmv-site-gradient-mode-balanced :is(
  .rme-nature-hero,.rme-archive-hero,.rme-post-hero,.rme-cta,.rme-cta-shell,
  .rme-reviewly-hero,.rme-ranking-hero,.rme-legal-hero,.rme-contact-hero,
  .rme-reviewly-cta,.rme-cta-box
),
body.rmv-site-gradient-mode-bold :is(
  .rme-nature-hero,.rme-archive-hero,.rme-post-hero,.rme-cta,.rme-cta-shell,
  .rme-reviewly-hero,.rme-ranking-hero,.rme-legal-hero,.rme-contact-hero,
  .rme-reviewly-cta,.rme-cta-box
){
  color:#fff!important;
  background-color:#16357e!important;
  background-image:var(--rmv-site-gradient)!important;
}
body.rmv-site-gradient-mode-balanced :is(.rme-nature-hero,.rme-archive-hero,.rme-post-hero,.rme-cta,.rme-cta-shell,.rme-reviewly-hero,.rme-ranking-hero,.rme-legal-hero,.rme-contact-hero,.rme-reviewly-cta,.rme-cta-box) :is(h1,h2,h3,h4,h5,h6,p,li,strong,small,label,a,span),
body.rmv-site-gradient-mode-bold :is(.rme-nature-hero,.rme-archive-hero,.rme-post-hero,.rme-cta,.rme-cta-shell,.rme-reviewly-hero,.rme-ranking-hero,.rme-legal-hero,.rme-contact-hero,.rme-reviewly-cta,.rme-cta-box) :is(h1,h2,h3,h4,h5,h6,p,li,strong,small,label,a,span){color:#fff!important}

/* Bold mode also gives the principal Elementor cards a gradient surface. */
body.rmv-site-gradient-mode-bold :is(
  .rme-advanced-card,.rme-slide-inner,.rme-feature-card,.rme-info-card,.rme-method-card,
  .rme-price-card,.rme-rank-card,.rme-review-card,.rme-stat-card,.rme-faq-item,
  .rme-contact-form-shell,.rme-author-box,.rme-reading-card,.rme-reading-sidebar-card,
  .rme-species-directory-pro__card,.rmv-rating-summary,.rmv-rating-form-wrap,
  .rmv-user-review,.rmv-top-rated-card,.rmv-review-specifications
){
  color:#fff!important;
  background-color:#16357e!important;
  background-image:var(--rmv-site-gradient)!important;
  border-color:rgba(255,255,255,.22)!important;
}
body.rmv-site-gradient-mode-bold :is(
  .rme-advanced-card,.rme-slide-inner,.rme-feature-card,.rme-info-card,.rme-method-card,
  .rme-price-card,.rme-rank-card,.rme-review-card,.rme-stat-card,.rme-faq-item,
  .rme-contact-form-shell,.rme-author-box,.rme-reading-card,.rme-reading-sidebar-card,
  .rme-species-directory-pro__card,.rmv-rating-summary,.rmv-rating-form-wrap,
  .rmv-user-review,.rmv-top-rated-card,.rmv-review-specifications
) :is(h1,h2,h3,h4,h5,h6,p,li,strong,small,label,a,span,dt,dd){color:#fff!important}
body.rmv-site-gradient-mode-bold :is(.rme-card-body,.rme-post-content,.rme-category-content,.rmv-top-rated-card>div){background:transparent!important}
body.rmv-site-gradient-mode-bold :is(.rme-contact-form-shell,.rmv-rating-form-wrap,.rmv-review-specifications) :is(input,textarea,select){
  color:#0b1f33!important;background:#fff!important;border-color:rgba(255,255,255,.62)!important
}

/* A gradient chosen directly on one Elementor element remains the final override. */
.elementor-element[class*="rme-gradient-g"]{--rmv-site-gradient:var(--rme-selected-gradient)}
