/* ============================================================
   Globo flotante de chat (FAB) - Idéntico a checkout_2.php
   Posición: abajo izquierda + aro giratorio
   ============================================================ */
.nn-chat-fab {
  position: fixed;
  bottom: 85px;
  left: 24px;
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: #10b981;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Aro giratorio (360°) */
.nn-chat-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px dashed rgba(16, 185, 129, 0.6);
  animation: nnChatSpin 4s linear infinite;
  pointer-events: none;
}

/* Un segundo aro para dar efecto de "orbita" tipo checkout_2 */
.nn-chat-fab::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.2);
  pointer-events: none;
}

@keyframes nnChatSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.nn-chat-fab:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

.nn-chat-fab__face {
  font-size: 24px;
  position: relative;
  z-index: 2;
}

.nn-chat-fab__tip {
  position: absolute;
  left: 75px;
  background: #111827;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.nn-chat-fab:hover .nn-chat-fab__tip {
  opacity: 1;
}

.dark .nn-chat-fab__tip {
  background: #374151;
}