.support-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.support-fab[data-position="left"] {
  right: auto;
  left: 24px;
}

.support-fab-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #E63946 0%, #DC2626 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
  cursor: pointer;
  animation: support-pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  outline: none;
}

.support-fab-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 14px 36px rgba(230, 57, 70, 0.7);
}

.support-fab-btn:focus {
  outline: 3px solid rgba(230, 57, 70, 0.5);
  outline-offset: 4px;
}

.support-fab-btn::before {
  content: "💬 Atendimento online";
  position: absolute;
  right: 84px;
  top: 50%;
  transform: translateY(-50%);
  background: #1F2937;
  color: white;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 1;
}

.support-fab-btn:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(-4px);
}

.support-fab--checkout .support-fab-btn {
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, #DC2626 0%, #991B1B 100%);
  box-shadow: 0 14px 40px rgba(220, 38, 38, 0.55);
  animation: support-pulse-aggressive 1.8s ease-in-out infinite;
}

.support-fab--checkout .support-fab-btn::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 3px solid rgba(220, 38, 38, 0.6);
  animation: support-pulse-ring 1.8s ease-out infinite;
  pointer-events: none;
}

.support-fab-helper {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  background: #DC2626;
  color: white;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  animation: helper-bounce 2s ease-in-out infinite;
}

.support-fab-helper::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 40px;
  width: 16px;
  height: 16px;
  background: #DC2626;
  transform: rotate(45deg);
  border-radius: 0 0 4px 0;
}

.support-fab-helper[hidden] {
  display: none !important;
}

.support-fab-proactive[hidden] {
  display: none !important;
}

@keyframes support-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(230, 57, 70, 0.6);
  }
}

@keyframes support-pulse-aggressive {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 14px 40px rgba(220, 38, 38, 0.55);
  }
  50% {
    transform: scale(1.12);
    box-shadow: 0 18px 48px rgba(220, 38, 38, 0.75);
  }
}

@keyframes support-pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}

@keyframes helper-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@media (max-width: 640px) {
  .support-fab {
    bottom: 16px;
    right: 16px;
  }
  .support-fab[data-position="left"] {
    left: 16px;
  }
  .support-fab-btn {
    width: 60px;
    height: 60px;
  }
  .support-fab-btn svg {
    width: 28px;
    height: 28px;
  }
  .support-fab--checkout .support-fab-btn {
    width: 84px;
    height: 84px;
  }
  .support-fab-helper {
    font-size: 12px;
    bottom: calc(100% + 10px);
    padding: 8px 14px;
  }
}