/* Enhanced AI Seller Button Styles */
.ai-seller-container {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  z-index: 1000 !important;
  animation: slideInUp 0.6s ease-out;
}

/* Main Button Styles */
.ai-seller-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #ffc000 0%, #ff8c00 100%);
  color: black;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255, 192, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-width: 200px;
  justify-content: center;
  white-space: nowrap;
}

.ai-seller-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 192, 0, 0.5);
  background: linear-gradient(135deg, #ffb300 0%, #ff7f00 100%);
}

.ai-seller-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 6px 24px rgba(255, 192, 0, 0.4);
}

.ai-seller-btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Button States */
.ai-seller-btn.connecting {
  background: linear-gradient(135deg, #ffc000 0%, #ff9500 100%);
  box-shadow: 0 8px 32px rgba(255, 192, 0, 0.4);
}

.ai-seller-btn.processing {
  min-width: 220px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
  animation: processing-glow 2s ease-in-out infinite;
}

.ai-seller-btn.listening {
  min-width: 220px;
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
  animation: listening-pulse 2s ease-in-out infinite;
}

.ai-seller-btn.error {
  background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
  box-shadow: 0 8px 32px rgba(255, 65, 108, 0.4);
}

.ai-seller-btn.connected {
  min-width: 280px;
  animation: connected-breathe 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4),
    0 0 20px rgba(102, 126, 234, 0.2);
}

.ai-seller-btn.connected::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(
    45deg,
    rgba(102, 126, 234, 0.3),
    rgba(118, 75, 162, 0.3)
  );
  border-radius: 54px;
  z-index: -1;
  animation: connected-glow 2s ease-in-out infinite;
}

.ai-seller-btn.conversation {
  min-width: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: visible;
}

.ai-seller-btn.conversation::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
  border-radius: 52px;
  z-index: -1;
  opacity: 0.6;
  animation: border-glow 2s ease-in-out infinite;
}

/* Icon Styles */
.btn-icon {
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.btn-icon.spinning {
  animation: spin 1s linear infinite;
}

.btn-text {
  transition: all 0.3s ease;
  opacity: 1;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-listening {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
  }
  50% {
    box-shadow: 0 8px 48px rgba(67, 233, 123, 0.6);
  }
}

@keyframes border-glow {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes processing-glow {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(79, 172, 254, 0.4);
  }
  50% {
    box-shadow: 0 8px 48px rgba(79, 172, 254, 0.6);
  }
}

@keyframes listening-pulse {
  0%,
  100% {
    box-shadow: 0 8px 32px rgba(67, 233, 123, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 48px rgba(67, 233, 123, 0.6);
    transform: scale(1.02);
  }
}

@keyframes connected-breathe {
  0%,
  100% {
    transform: scale(1.02);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes connected-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .ai-seller-btn {
    min-width: 180px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .ai-seller-btn.conversation,
  .ai-seller-btn.processing,
  .ai-seller-btn.listening {
    min-width: 240px;
  }

  .ai-seller-container {
    bottom: 15px !important;
    left: 15px !important;
  }
}

@media (max-width: 480px) {
  .ai-seller-btn {
    min-width: 160px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .ai-seller-btn.conversation,
  .ai-seller-btn.processing,
  .ai-seller-btn.listening {
    min-width: 200px;
  }

  .ai-seller-container {
    bottom: 10px !important;
    left: 10px !important;
  }
}


