.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 240;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.chat-fab__label {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(14, 26, 47, 0.92);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 16px 40px rgba(14, 26, 47, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.chat-fab__button {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b5bd3 0%, #2c7df2 100%);
  color: #fff;
  font-size: 24px;
  box-shadow: 0 18px 44px rgba(11, 91, 211, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.chat-fab__pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(11, 91, 211, 0.22);
  animation: chat-fab-pulse 2.2s ease-out infinite;
}

.chat-fab:hover .chat-fab__label,
.chat-fab:focus-visible .chat-fab__label {
  transform: translateY(-1px);
  background: rgba(11, 91, 211, 0.96);
}

.chat-fab:hover .chat-fab__button,
.chat-fab:focus-visible .chat-fab__button {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 22px 48px rgba(11, 91, 211, 0.38);
  filter: saturate(1.05);
}

.chat-fab:focus-visible {
  outline: none;
}

.chat-fab:focus-visible .chat-fab__button {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.96),
    0 0 0 8px rgba(11, 91, 211, 0.22),
    0 22px 48px rgba(11, 91, 211, 0.38);
}

@keyframes chat-fab-pulse {
  0% {
    transform: scale(0.94);
    opacity: 0.85;
  }

  70% {
    transform: scale(1.16);
    opacity: 0;
  }

  100% {
    transform: scale(1.16);
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .chat-fab {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .chat-fab__label {
    max-width: min(52vw, 210px);
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }

  .chat-fab__button {
    width: 56px;
    height: 56px;
    font-size: 22px;
  }
}

@media (max-width: 520px) {
  .chat-fab__label {
    display: none;
  }
}
