/* Reduce contact buttons on home: only hero + location + final CTA + floating. */
body.home a[href*="wa.me"],
body.home a[href*="whatsapp"],
body.home a[href*="wechat"] {
	display: none !important;
}

body.home .sdrex-hero a[href*="wa.me"],
body.home .sdrex-hero a[href*="whatsapp"],
body.home .sdrex-hero a[href*="wechat"],
body.home #rx-location a[href*="wa.me"],
body.home #rx-location a[href*="whatsapp"],
body.home #rx-location a[href*="wechat"],
body.home .e-contact-buttons a[href*="wa.me"],
body.home .e-contact-buttons a[href*="whatsapp"],
body.home .e-contact-buttons a[href*="wechat"],
body.home .sdrex-cta a[href*="wa.me"],
body.home .sdrex-cta a[href*="whatsapp"],
body.home .sdrex-cta a[href*="wechat"],
body.home #sdrex-cta a[href*="wa.me"],
body.home #sdrex-cta a[href*="whatsapp"],
body.home #sdrex-cta a[href*="wechat"],
body.home .sdrex-final-cta a[href*="wa.me"],
body.home .sdrex-final-cta a[href*="whatsapp"],
body.home .sdrex-final-cta a[href*="wechat"] {
	display: inline-flex !important;
}

.home .sdrex-hero__btn {
	display: none !important;
}

.home .sdrex-hero .sdrex-hero__btn,
.home #sdrex-cta .sdrex-hero__btn,
.home .sdrex-cta .sdrex-hero__btn,
.home .sdrex-final-cta .sdrex-hero__btn,
.home #rx-cta .sdrex-hero__btn,
.home #rx-location .sdrex-hero__btn,
.home .e-contact-buttons .sdrex-hero__btn {
	display: inline-flex !important;
}

/* Elementor button widgets that are only contact links: hide on home except in allowed zones */
body.home .elementor-widget-button a[href*="wa.me"],
body.home .elementor-widget-button a[href*="whatsapp"],
body.home .elementor-widget-button a[href*="wechat"] {
	display: none !important;
}

body.home .sdrex-hero .elementor-widget-button a[href*="wa.me"],
body.home .sdrex-hero .elementor-widget-button a[href*="whatsapp"],
body.home .sdrex-hero .elementor-widget-button a[href*="wechat"],
body.home #rx-location .elementor-widget-button a[href*="wa.me"],
body.home #rx-location .elementor-widget-button a[href*="whatsapp"],
body.home #rx-location .elementor-widget-button a[href*="wechat"],
body.home .e-contact-buttons .elementor-widget-button a[href*="wa.me"],
body.home .e-contact-buttons .elementor-widget-button a[href*="whatsapp"],
body.home .e-contact-buttons .elementor-widget-button a[href*="wechat"],
body.home .sdrex-cta .elementor-widget-button a[href*="wa.me"],
body.home .sdrex-cta .elementor-widget-button a[href*="whatsapp"],
body.home .sdrex-cta .elementor-widget-button a[href*="wechat"],
body.home #sdrex-cta .elementor-widget-button a[href*="wa.me"],
body.home #sdrex-cta .elementor-widget-button a[href*="whatsapp"],
body.home #sdrex-cta .elementor-widget-button a[href*="wechat"] {
	display: inline-flex !important;
}

/* Hide entire button widget when it is only a contact link (avoids empty boxes) */
body.home .elementor-widget-button:has(a[href*="wa.me"]),
body.home .elementor-widget-button:has(a[href*="whatsapp"]),
body.home .elementor-widget-button:has(a[href*="wechat"]) {
	display: none !important;
}
body.home .sdrex-hero .elementor-widget-button:has(a[href*="wa.me"]),
body.home .sdrex-hero .elementor-widget-button:has(a[href*="whatsapp"]),
body.home .sdrex-hero .elementor-widget-button:has(a[href*="wechat"]),
body.home #rx-location .elementor-widget-button:has(a[href*="wa.me"]),
body.home #rx-location .elementor-widget-button:has(a[href*="whatsapp"]),
body.home #rx-location .elementor-widget-button:has(a[href*="wechat"]),
body.home .e-contact-buttons .elementor-widget-button:has(a[href*="wa.me"]),
body.home .e-contact-buttons .elementor-widget-button:has(a[href*="whatsapp"]),
body.home .e-contact-buttons .elementor-widget-button:has(a[href*="wechat"]),
body.home .sdrex-cta .elementor-widget-button:has(a[href*="wa.me"]),
body.home .sdrex-cta .elementor-widget-button:has(a[href*="whatsapp"]),
body.home .sdrex-cta .elementor-widget-button:has(a[href*="wechat"]),
body.home #sdrex-cta .elementor-widget-button:has(a[href*="wa.me"]),
body.home #sdrex-cta .elementor-widget-button:has(a[href*="whatsapp"]),
body.home #sdrex-cta .elementor-widget-button:has(a[href*="wechat"]) {
	display: block !important;
}

#cn-landing .cn-btn,
#cn-landing a[href*="wa.me"],
#cn-landing a[href*="whatsapp"],
#cn-landing a[href*="wechat"] {
	display: none !important;
}

/* #rx-about: max 3 WhatsApp+WeChat pairs: Hero, sticky dock, Footer */
body.home #rx-about #rx-story .rx-cta-row .rx-wa,
body.home #rx-about #rx-team .rx-cta-row .rx-wa,
body.home #rx-about #rx-team .rx-cta-row button#rx-team-wechat,
body.home #rx-about #rx-courses .rx-cta-row .rx-wa,
body.home #rx-about #rx-courses .rx-cta-row button#rx-courses-wechat,
body.home #rx-about #rx-faq .rx-cta-row .rx-wa,
body.home #rx-about #rx-faq .rx-cta-row button#rx-faq-wechat,
body.home #rx-about #rx-faq .rx-cta .rx-wa,
body.home #rx-about #rx-location .rx-cta-row .rx-wa,
body.home #rx-about #rx-location .rx-cta-row button#rx-location-wechat,
body.home #rx-about #rx-header .rx-dropdown .rx-row2:has(.rx-wa) {
	display: none !important;
}

/* Mobile: hero background more to the left so diver is visible */
@media (max-width: 980px) {
	#rx-about #rx-hero {
		background-position: 80% center !important;
	}
}

/* RX landing page: keep its own floating + hero WhatsApp visible */
body.home #rx-about a.rx-wa[href*="wa.me"],
body.home #rx-about a.rx-wa[href*="whatsapp"],
body.home #rx-about #rx-chat-dock a.rx-wa[href*="wa.me"],
body.home #rx-about #rx-chat-dock a.rx-wa[href*="whatsapp"] {
	display: inline-flex !important;
}
