/* Floating Chat Button */
.floating-chat-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: auto;
  min-width: 60px;
  height: 60px;
  padding: 0 24px;
  border-radius: 30px;
  background: #da4e29;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.floating-chat-button:hover {
  background: #b8401f;
  transform: translateY(-2px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.floating-chat-button:active {
  transform: translateY(0);
}

/* Button Content */
.floating-chat-button .button-content {
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.floating-chat-button .button-text {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* Icons */
.floating-chat-button .bot-icon-small {
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: #ffffff;
  border-radius: 50%;
  padding: 3px;
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.floating-chat-button .close-icon {
  display: none;
  transition: all 0.3s ease;
}

.floating-chat-button.open .button-content {
  display: none;
}

.floating-chat-button.open .close-icon {
  display: block;
}

.floating-chat-button.open {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
}

/* Pulse animation when closed */
.floating-chat-button:not(.open)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 30px;
  background: #da4e29;
  animation: buttonPulse 2s ease-in-out infinite;
  z-index: -1;
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .floating-chat-button {
    bottom: 20px;
    right: 20px;
    min-width: 56px;
    height: 56px;
    padding: 0 20px;
  }

  .floating-chat-button .button-text {
    font-size: 14px;
  }

  .floating-chat-button.open {
    width: 56px;
    height: 56px;
  }
}

/* Extra small screens - Stack text or use shorter version */
@media (max-width: 480px) {
  .floating-chat-button {
    padding: 0 16px;
    max-width: calc(100vw - 40px);
  }

  .floating-chat-button .button-text {
    font-size: 13px;
  }
}
