/* RTS Blog 2.1 polish (2026-11-23) - MU plugin CSS for Rack.
   Site: revivaltechsolutions.com. Enqueue after Elementor frontend CSS.
   Plain CSS only. No script. No backslashes.
   Interim copy lives in Custom CSS of templates 1001988 / 1001987 until this ships; remove it there after.

   1) Reusable RTS button classes (classic Elementor Button widget, Advanced > CSS Classes):
      rts-cta rts-cta1               yellow CTA1
      rts-cta rts-cta2               CTA2 on dark (white outline)
      rts-cta rts-cta2 rts-cta2-light CTA2 on light (black outline)
      Templates also carry the same values as native widget settings, so they look right before this file ships.
   2) Arrow icon slide on hover (no native control for this). */

.elementor-widget.rts-cta .elementor-button {
  white-space: nowrap;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.elementor-widget.rts-cta1 .elementor-button {
  background-color: var(--e-global-color-accent, #F5FD01);
  color: var(--e-global-color-text, #000000);
  border: 2px solid var(--e-global-color-text, #000000);
}
.elementor-widget.rts-cta2 .elementor-button {
  background-color: transparent;
  color: #FFFFFF;
  border: 1.5px solid #FFFFFF;
}
.elementor-widget.rts-cta2-light .elementor-button {
  color: var(--e-global-color-text, #000000);
  border-color: var(--e-global-color-text, #000000);
}
.elementor-widget.rts-cta .elementor-button:hover,
.elementor-widget.rts-cta .elementor-button:focus-visible {
  background-color: var(--e-global-color-primary, #0191FD);
  color: #FFFFFF;
  border-color: var(--e-global-color-accent, #F5FD01);
}
.elementor-widget.rts-cta .elementor-button:hover svg,
.elementor-widget.rts-cta .elementor-button:hover i {
  fill: #FFFFFF;
  color: #FFFFFF;
}

/* Arrow slide */
.elementor-widget.rts-cta .elementor-button-icon {
  transition: transform .2s ease;
}
.elementor-widget.rts-cta .elementor-button:hover .elementor-button-icon,
.elementor-widget.rts-cta .elementor-button:focus-visible .elementor-button-icon {
  transform: translateX(4px);
}
@media (prefers-reduced-motion: reduce) {
  .elementor-widget.rts-cta .elementor-button-icon { transition: none; }
}

/* 3) Guides template 1001986 only: tune-up CTA swap (moved from its page Custom CSS). */
/* ---- Tune-up CTA swap (Guides template only)
   Posts whose own body buttons use /checkin/?from=tuneup:
   1001889, 1001890, 1000556, 994352.
   They show START MY TUNE-UP → /checkin/?from=tuneup.
   994807 has no body checkin tag, so it uses the repair primary
   START MY REPAIR → /checkin/?from=computer.
   Uses both the widget class and the from= query in the href.
   Relies on WordPress body class postid-N. ---- */

/* Hide tune-up CTAs by default (class on container or widget, or href). */
.rts-blog21-cta-tuneup,
.rts-blog21-guides a.elementor-button[href*="from=tuneup"] {
  display: none !important;
}

/* Tune-up posts: hide the repair primary, show the tune-up primary. */
body.postid-1001889 .rts-blog21-cta-repair,
body.postid-1001890 .rts-blog21-cta-repair,
body.postid-1000556 .rts-blog21-cta-repair,
body.postid-994352 .rts-blog21-cta-repair,
body.postid-1001889 .rts-blog21-guides a.elementor-button[href*="from=blog"],
body.postid-1001890 .rts-blog21-guides a.elementor-button[href*="from=blog"],
body.postid-1000556 .rts-blog21-guides a.elementor-button[href*="from=blog"],
body.postid-994352 .rts-blog21-guides a.elementor-button[href*="from=blog"],
body.postid-1001889 .rts-blog21-guides a.elementor-button[href*="from=computer"],
body.postid-1001890 .rts-blog21-guides a.elementor-button[href*="from=computer"],
body.postid-1000556 .rts-blog21-guides a.elementor-button[href*="from=computer"],
body.postid-994352 .rts-blog21-guides a.elementor-button[href*="from=computer"] {
  display: none !important;
}

body.postid-1001889 .e-con.rts-blog21-cta-tuneup,
body.postid-1001890 .e-con.rts-blog21-cta-tuneup,
body.postid-1000556 .e-con.rts-blog21-cta-tuneup,
body.postid-994352 .e-con.rts-blog21-cta-tuneup {
  display: flex !important;
}

body.postid-1001889 .elementor-widget.rts-blog21-cta-tuneup,
body.postid-1001890 .elementor-widget.rts-blog21-cta-tuneup,
body.postid-1000556 .elementor-widget.rts-blog21-cta-tuneup,
body.postid-994352 .elementor-widget.rts-blog21-cta-tuneup,
body.postid-1001889 .rts-blog21-guides a.elementor-button[href*="from=tuneup"],
body.postid-1001890 .rts-blog21-guides a.elementor-button[href*="from=tuneup"],
body.postid-1000556 .rts-blog21-guides a.elementor-button[href*="from=tuneup"],
body.postid-994352 .rts-blog21-guides a.elementor-button[href*="from=tuneup"] {
  display: inline-flex !important;
}
