/* Global chat button, icon only (every customer page). Moves up when a sticky buy bar is showing. */
.ns-chat{position:fixed;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:60;display:grid;place-items:center;width:58px;height:58px;border-radius:50%;color:#fff;text-decoration:none;box-shadow:0 10px 28px rgba(0,0,0,.22);transition:transform .2s,bottom .25s,box-shadow .2s}
.ns-chat:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(0,0,0,.28)}
.ns-chat:focus-visible{outline:3px solid #111;outline-offset:3px}
.ns-chat svg{width:30px;height:30px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ns-chat-wa{background:#25D366}
.ns-chat-fb{background:linear-gradient(135deg,#0099FF,#A033FF 70%,#FF5280)}
.ns-chat-tg{background:#229ED9}
.ns-chat-chat{background:#111}
@media (max-width:767px){
  .ns-chat{width:54px;height:54px}
  body:has(.buybar.on) .ns-chat,body:has(.sticky.on) .ns-chat{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
}
body:has(.shopbar) .ns-chat{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
@media (max-width:767px){body:has(.shopbar) .ns-chat{bottom:calc(140px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.ns-chat{transition:none}}
@media print{.ns-chat{display:none}}
/* The floating buy bar (Rayan, 10 Nov): the chat button sits above it, never on top of it. */
body:has(.buybar) .ns-chat{bottom:calc(96px + env(safe-area-inset-bottom,0px))}
@media (max-width:767px){body:has(.buybar) .ns-chat,body:has(.buybar.on) .ns-chat{bottom:calc(132px + env(safe-area-inset-bottom,0px))}}

/* Floating contact button wiggles every few seconds (Rayan, 11 Nov). Still on hover; off for reduced motion. */
@keyframes nsWiggle{0%,78%,100%{rotate:0deg}82%{rotate:-14deg}86%{rotate:12deg}90%{rotate:-9deg}94%{rotate:6deg}97%{rotate:-2deg}}
.ns-chat{animation:nsWiggle 4s ease-in-out infinite}
.ns-chat:hover,.ns-chat:focus-visible{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.ns-chat{animation:none}}

/* WhatsApp: the real logo, same green as the buy-bar button (Rayan, 11 Nov). */
.ns-chat-wa{background:#1FAF54}
.ns-chat-wa:hover{background:#18994A}
.ns-chat-wa svg{width:32px;height:32px}
/* Same nudge for the floating button: no turning, so the logo never looks tilted (Rayan, 11 Nov). */
@keyframes nsNudge{0%,76%,100%{translate:0 0;scale:1}80%{translate:-3px 0;scale:1.06}84%{translate:3px 0;scale:1.06}88%{translate:-2px 0;scale:1.04}92%{translate:2px 0;scale:1.02}96%{translate:0 0;scale:1}}
.ns-chat{animation:nsNudge 4s ease-in-out infinite;rotate:none}
@media (prefers-reduced-motion:reduce){.ns-chat{animation:none}}
/* Bold WhatsApp logo + round wiggle back (Rayan, 11 Nov). */
.ns-chat-wa svg{width:32px;height:32px}
.ns-chat-wa .wa-p{fill:#1FAF54}
.ns-chat-wa:hover .wa-p{fill:#18994A}
.ns-chat{animation:nsWiggle 4s ease-in-out infinite}
@media (prefers-reduced-motion:reduce){.ns-chat{animation:none}}
/* Messenger: bold logo (white bubble, purple lightning) like the WhatsApp one (Rayan, 11 Nov). */
.ns-chat-fb svg{width:34px;height:34px}
.ns-chat-fb .ms-z{fill:#7B3DFF}
/* Messenger = the real logo itself (gradient bubble, white bolt), no circle around it (Rayan, 11 Nov). */
.ns-chat-fb{background:none;box-shadow:none;filter:drop-shadow(0 6px 14px rgba(0,0,0,.25))}
.ns-chat-fb svg{width:64px;height:64px}
.ns-chat-fb:hover{box-shadow:none;filter:drop-shadow(0 8px 18px rgba(0,0,0,.3))}
/* Contact icon on every floating button (Rayan, 11 Nov, final): solid white bubble with three dots in the button colour. */
.ns-chat svg{width:32px;height:32px}
.ns-chat .ct-d{fill:#111}
.ns-chat-wa .ct-d{fill:#1FAF54}
.ns-chat-tg .ct-d{fill:#229ED9}
.ns-chat-fb{background:linear-gradient(135deg,#0099FF,#A033FF 70%,#FF5280);filter:none;box-shadow:0 10px 28px rgba(0,0,0,.22)}
.ns-chat-fb .ct-d{fill:#8A3BFF}
/* Option A (Rayan, 11 Nov, picked from the options sheet): green contact bubble on every page, whatever the link. */
.ns-chat-ct{background:#1FAF54;filter:none;box-shadow:0 10px 28px rgba(0,0,0,.22)}
.ns-chat-ct:hover{background:#18994A;box-shadow:0 14px 34px rgba(0,0,0,.28)}
.ns-chat-ct svg{width:32px;height:32px}
.ns-chat-ct .ct-d{fill:#1FAF54}
.ns-chat-ct:hover .ct-d{fill:#18994A}

/* Phone-only buy bar (course pages): on computers the chat button stays in its normal place (Rayan, 13 Nov) */
@media (min-width:768px){body:has(.buybar.ph-only) .ns-chat{bottom:calc(18px + env(safe-area-inset-bottom,0px))}}
