/* Floating contact buttons (desktop) and sticky CTA bar (phones). Markup: snippets/cta-float.liquid */
.rx-cta-float {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 900;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.rx-cta-float__btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .2s, box-shadow .2s;
}
.rx-cta-float__btn svg { width: 26px; height: 26px; }
.rx-cta-float__btn--tel { background: #e53935; animation: rx-cta-ring 2.4s ease-in-out infinite; }
.rx-cta-float__btn--zalo { background: #0068ff; }
.rx-cta-float__btn--ms { background: linear-gradient(135deg, #00b2ff 0%, #006aff 45%, #a033ff 100%); }
.rx-cta-float__btn--wa { background: #25d366; }
.rx-cta-float__btn--mail { background: var(--rx-dark, #0b0b0b); box-shadow: 0 8px 24px rgba(0, 0, 0, .28), inset 0 0 0 2px var(--rx-accent, #ffb400); color: var(--rx-accent, #ffb400) !important; }
.rx-cta-float__quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px 0 20px;
  border-radius: 28px;
  background: var(--rx-btn-bg, #ffb400);
  color: var(--rx-btn-txt, #0b0b0b) !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  transition: transform .2s, box-shadow .2s;
}
.rx-cta-float__quote svg { width: 22px; height: 22px; flex: 0 0 auto; }
.rx-cta-float__btn:hover,
.rx-cta-float__quote:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, .34); }

.rx-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: #0b0b0b;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}
.rx-cta-bar__icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 48px;
  border-radius: 8px;
  color: #fff !important;
}
.rx-cta-bar__icon svg { width: 26px; height: 26px; }
.rx-cta-bar__icon--tel { background: #e53935; }
.rx-cta-bar__icon--zalo { background: #0068ff; }
.rx-cta-bar__icon--ms { background: linear-gradient(135deg, #00b2ff 0%, #006aff 45%, #a033ff 100%); }
.rx-cta-bar__icon--wa { background: #25d366; }
/* phones: only the first 3 contact icons, so the quote button keeps a usable width */
.rx-cta-bar__icon:nth-child(n+4) { display: none; }
.rx-cta-bar__icon--mail { background: #1d1d1d; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.rx-cta-bar__quote {
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  height: 48px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--rx-btn-bg, #ffb400);
  color: var(--rx-btn-txt, #0b0b0b) !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .rx-cta-float { display: flex; }
  .rx-cta-bar { display: none; }
}
/* product & cart pages: icons only, every screen size, above the page's own sticky buy bar */
.rx-cta-float.rx-cta-float--compact { display: flex; right: 10px; bottom: 110px; gap: 6px; }
.rx-cta-float--compact .rx-cta-float__btn { width: 44px; height: 44px; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
.rx-cta-float--compact .rx-cta-float__btn svg { width: 22px; height: 22px; }
/* gentle pulse on the hotline button */
@keyframes rx-cta-ring { 0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 0 0 rgba(229, 57, 53, .45); } 50% { box-shadow: 0 8px 24px rgba(0, 0, 0, .28), 0 0 0 10px rgba(229, 57, 53, 0); } }
@media (prefers-reduced-motion: reduce) { .rx-cta-float__btn--tel { animation: none; } }
/* hide while a modal (Request Order, quick view...) is open */
body.modal-open .rx-cta-float,
body.modal-open .rx-cta-bar { display: none; }
@media print { .rx-cta-float, .rx-cta-bar { display: none; } }
