/* Voice SaaS Widget CSS v1.3.56 */

.voice-saas-widget-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #0077ff;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 9998;
  transition: all 0.3s ease;
}

.voice-saas-widget-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.voice-saas-widget-dialog {
  position: fixed;
  right: 24px;
  bottom: 80px;
  width: 380px;
  height: 600px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  background: #ffffff;
  display: none;
  z-index: 9999;
  overflow: hidden;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.voice-saas-widget-header {
  background: #0077ff;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-saas-widget-close-button {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
}

.voice-saas-widget-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  height: calc(100% - 100px);
}

.voice-saas-widget-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-saas-widget-message {
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 85%;
  word-wrap: break-word;
}

.voice-saas-widget-message.user {
  background: #0077ff;
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.voice-saas-widget-message.assistant {
  background: #f1f1f1;
  color: #333;
  align-self: flex-start;
}

.voice-saas-widget-footer {
  border-top: 1px solid #eee;
  padding: 12px 16px;
  display: flex;
  align-items: center;
}

.voice-saas-widget-status {
  font-size: 14px;
  color: #666;
  flex: 1;
}

.voice-saas-widget-thinking {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #f1f1f1;
  border-radius: 8px;
  align-self: flex-start;
  max-width: 85%;
}

.voice-saas-widget-thinking span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #999;
  margin: 0 2px;
  animation: thinking-pulse 1.4s infinite ease-in-out both;
}

.voice-saas-widget-thinking span:nth-child(1) { animation-delay: -0.32s; }
.voice-saas-widget-thinking span:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinking-pulse {
  0%, 80%, 100% {
    transform: scale(0);
  } 40% {
    transform: scale(1);
  }
}

.voice-saas-widget-retry-button {
  margin: 10px auto;
  display: block;
  padding: 8px 16px;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.unmute-button {
  position: absolute;
  bottom: 8px;
  right: 8px;
  z-index: 999;
  padding: 8px 12px;
  background: #0077ff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .voice-saas-widget-dialog {
    right: 10px;
    bottom: 70px;
    width: calc(100vw - 20px);
    max-width: 360px;
    height: 500px;
  }
  
  .voice-saas-widget-button {
    right: 10px;
    bottom: 10px;
  }
}
