/* style.css */
/* Scoped styles for Websync99 Chatbot only */
.websync99-chatbot-wrapper {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

.websync99-chatbot-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Chatbot Toggle Button */
.websync99-chatbot-wrapper .chatbot-toggle-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 4rem;
  height: 4rem;
  background-color: #2563eb;
  color: white;
  border-radius: 50%;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  border: none;
  cursor: pointer;
}

.websync99-chatbot-wrapper .chatbot-toggle-button:hover {
  background-color: #1d4ed8;
  transform: scale(1.05);
}

.websync99-chatbot-wrapper .chatbot-toggle-icon {
  font-size: 1.5rem;
}

.websync99-chatbot-wrapper .chatbot-toggle-indicator {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
}

.websync99-chatbot-wrapper .chatbot-toggle-ping {
  position: absolute;
  animation: chatbotPing 1.5s infinite;
  background-color: #34d399;
  opacity: 0.75;
  border-radius: 50%;
  height: 100%;
  width: 100%;
}

.websync99-chatbot-wrapper .chatbot-toggle-dot {
  position: relative;
  background-color: #10b981;
  border-radius: 50%;
  height: 100%;
  width: 100%;
}

@keyframes chatbotPing {
  0% {
    transform: scale(1);
    opacity: 0.75;
  }
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Chatbot Container */
.websync99-chatbot-wrapper .chatbot-container {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 20rem;
  height: 24rem;
  background-color: white;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-radius: 1rem;
  display: none;
  flex-direction: column;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9998;
}

.websync99-chatbot-wrapper .chatbot-container.open {
  display: flex;
  transform: scale(1);
  opacity: 1;
}

/* Header */
.websync99-chatbot-wrapper .chatbot-header {
  background-color: #2563eb;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.websync99-chatbot-wrapper .chatbot-title {
  font-weight: 600;
  display: flex;
  align-items: center;
}

.websync99-chatbot-wrapper .chatbot-title-icon {
  margin-right: 0.5rem;
}

.websync99-chatbot-wrapper .chatbot-language-container {
  margin-left: 0.5rem;
  position: relative;
}

.websync99-chatbot-wrapper .chatbot-language-button {
  font-size: 0.75rem;
  background-color: #3b82f6;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.websync99-chatbot-wrapper .chatbot-language-button:hover {
  background-color: #60a5fa;
}

.websync99-chatbot-wrapper .chatbot-language-icon {
  margin-right: 0.25rem;
}

.websync99-chatbot-wrapper .chatbot-language-dropdown {
  position: absolute;
  margin-top: 0.25rem;
  width: 8rem;
  background-color: white;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 50;
}

.websync99-chatbot-wrapper .chatbot-language-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  background: none;
  border: none;
  cursor: pointer;
}

.websync99-chatbot-wrapper .chatbot-language-option:hover {
  background-color: #dbeafe !important;
  color: #374151 !important;
}

.websync99-chatbot-wrapper .chatbot-language-option:first-child {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.websync99-chatbot-wrapper .chatbot-language-option:last-child {
  border-bottom-left-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.websync99-chatbot-wrapper .live-agent-indicator {
  background-color: #10b981;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  margin-left: 0.5rem;
  display: none;
}

.websync99-chatbot-wrapper .live-agent-indicator.hidden {
  display: none;
}

.websync99-chatbot-wrapper .chatbot-header-controls {
  display: flex;
  align-items: center;
}

.websync99-chatbot-wrapper .end-live-chat-button {
  margin-right: 0.5rem;
  font-size: 0.75rem;
  background-color: #ef4444;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
}

.websync99-chatbot-wrapper .end-live-chat-button:hover {
  background-color: #f87171;
}

.websync99-chatbot-wrapper .hidden {
  display: none !important;
}

.websync99-chatbot-wrapper .close-chat-button {
  color: white;
  background: #2563eb;
  border: none;
  cursor: pointer;
  padding: 0;
}

.websync99-chatbot-wrapper .close-chat-button:hover {
  color: #e5e7eb !important;
  background-color: #2563eb !important;
}

/* Chat Messages */
.websync99-chatbot-wrapper .chatbot-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #f9fafb;
}

.websync99-chatbot-wrapper .chatbot-message-container {
  display: flex;
  margin-bottom: 1rem;
  animation: messageFadeIn 0.3s ease;
}

.websync99-chatbot-wrapper .chatbot-user-message-container {
  justify-content: flex-end;
}

@keyframes messageFadeIn {
  from {
    opacity: 0;
    transform: translateY(0.625rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.websync99-chatbot-wrapper .chatbot-message {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  max-width: 80%;
}

.websync99-chatbot-wrapper .chatbot-bot-message {
  background-color: #dbeafe;
  color: #1f2937;
  border-top-left-radius: 0;
}

.websync99-chatbot-wrapper .chatbot-user-message {
  background-color: #2563eb;
  color: white;
  border-top-right-radius: 0;
}

.websync99-chatbot-wrapper .chatbot-quick-replies {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
}

.websync99-chatbot-wrapper .chatbot-quick-reply {
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #4266ad;
}

.websync99-chatbot-wrapper .chatbot-quick-reply:hover {
  background-color: #172032;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  margin: 0.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
}

.websync99-chatbot-wrapper .chatbot-quick-reply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Input Area */
.websync99-chatbot-wrapper .chatbot-input-container {
  border-top: 1px solid #e5e7eb;
  padding: 0.75rem;
  background-color: #f9fafb;
}

.websync99-chatbot-wrapper .chatbot-input-wrapper {
  display: flex;
  align-items: center;
}

.websync99-chatbot-wrapper .chatbot-input {
  flex: 1;
  border: 1px solid #d1d5db !important;
  background-color: white !important;
  border-radius: 0.75rem !important;
  padding: 0.5rem 1rem;
  outline: none;
  color: black !important;
}

.websync99-chatbot-wrapper .chatbot-input:focus {
  outline: 2px solid #93c5fd;
  outline-offset: -2px;
}

.websync99-chatbot-wrapper .chatbot-send-button {
  margin-left: 0.5rem;
  background-color: #2563eb;
  color: white;
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
}

.websync99-chatbot-wrapper .chatbot-send-button:hover {
  background-color: #1d4ed8;
}

.websync99-chatbot-wrapper .chatbot-char-count {
  font-size: 0.75rem;
  color: #6b7280;
  text-align: right;
  margin-top: 0.25rem;
}

.websync99-chatbot-wrapper .chatbot-char-count.warning {
  color: #ef4444;
}

/* Form Styling */
.websync99-chatbot-wrapper .chatbot-form-text {
  margin-bottom: 0.5rem;
}

.websync99-chatbot-wrapper .chatbot-form {
  display: flex;
  flex-direction: column;
}

.websync99-chatbot-wrapper .chatbot-form-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  background-color: white !important;
  color: black !important;
}

.websync99-chatbot-wrapper .chatbot-form-input.error {
  border-color: #ef4444;
}

.websync99-chatbot-wrapper .chatbot-form-error {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.websync99-chatbot-wrapper .chatbot-form-submit {
  background-color: #3b82f6;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
}

.websync99-chatbot-wrapper .chatbot-form-submit:hover {
  background-color: #2563eb;
}

/* Typing Indicator */
.websync99-chatbot-wrapper .chatbot-typing-indicator {
  display: inline-flex;
  align-items: center;
}

.websync99-chatbot-wrapper .chatbot-typing-dot {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 0.125rem;
  background-color: #9ca3af;
  border-radius: 50%;
  opacity: 0.6;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.websync99-chatbot-wrapper .chatbot-typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.websync99-chatbot-wrapper .chatbot-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.websync99-chatbot-wrapper .chatbot-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-0.625rem);
    opacity: 1;
  }
}

/* Custom Scrollbar */
.websync99-chatbot-wrapper .chatbot-messages::-webkit-scrollbar {
  width: 0.375rem;
}

.websync99-chatbot-wrapper .chatbot-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0.625rem;
}

.websync99-chatbot-wrapper .chatbot-messages::-webkit-scrollbar-thumb {
  background: #c5c5c5;
  border-radius: 0.625rem;
}

.websync99-chatbot-wrapper .chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive Design */
@media (min-width: 768px) {
  .websync99-chatbot-wrapper .chatbot-container {
    width: 24rem;
  }
}




/*  */
/* Appointment Form Styles */
.websync99-chatbot-wrapper .chatbot-form-group {
  margin-bottom: 15px;
  text-align: left;
}

.websync99-chatbot-wrapper .chatbot-form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.websync99-chatbot-wrapper .chatbot-form-input[type="date"],
.websync99-chatbot-wrapper .chatbot-form-input[type="time"],
.websync99-chatbot-wrapper .chatbot-form-input[type="email"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  box-sizing: border-box;
}

.websync99-chatbot-wrapper .chatbot-form-cancel {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 0.2rem;
}

.websync99-chatbot-wrapper .chatbot-form-cancel:hover {
  background-color: #5a6268;
}

/* Disabled state for chat input */
.websync99-chatbot-wrapper .chatbot-input:disabled {
  background-color: #f8f9fa;
  color: #6c757d;
  cursor: not-allowed;
}

.websync99-chatbot-wrapper .chatbot-send-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

