/* Embedded Agentic Chat Styles */
.agentic-chatbot-container {
  display: flex;
  flex-direction: column;
  height: 400px;
  max-height: 60vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
  padding: 0;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}
.agentic-chatbot-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 16px 8px 16px;
  background: #fafafa;
  font-size: 1.05em;
  line-height: 1.5;
}
.agentic-chatbot-message {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  max-width: 85%;
  word-break: break-word;
}
.agentic-chatbot-message.user {
  background: #e3f2fd;
  align-self: flex-end;
  color: #0d47a1;
}
.agentic-chatbot-message.bot {
  background: #fbe9e7;
  align-self: flex-start;
  color: #e65100;
}
.agentic-chatbot-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px 12px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.agentic-chatbot-mic-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.agentic-chatbot-mic-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #e74c3c;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(231,76,60,0.10);
  transition: box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  margin: 0 auto;
}
.agentic-chatbot-mic-btn:hover, .agentic-chatbot-mic-btn:focus {
  background: #ffeceb;
  box-shadow: 0 4px 16px rgba(231,76,60,0.18);
}
.agentic-chatbot-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.agentic-chatbot-cancel-row {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}
@media (max-width: 600px) {
  .agentic-chatbot-cancel-row {
    justify-content: center;
  }
  .agentic-chatbot-cancel-btn {
    width: 100%;
    max-width: 300px;
    font-size: 1.1em;
  }
  .agentic-panel-toggle {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 99999 !important;
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    touch-action: manipulation;
    pointer-events: auto;
    background: #fff;
    outline: none;
    border: none;
    transition: box-shadow 0.2s, background 0.2s;
  }
  .agentic-panel-toggle:hover, .agentic-panel-toggle:focus {
    box-shadow: 0 8px 24px rgba(231,76,60,0.18);
    background: #ffeceb;
  }
  body, html {
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
  #agentic-chatbot-container, .agentic-panel-content, .main-content, .container {
    overflow: visible !important;
  }
}


.agentic-chatbot-form input[type="text"] {
  flex: 1 1 auto;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
  margin-right: 10px;
  outline: none;
}
.agentic-chatbot-send {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: bold;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.agentic-chatbot-send:disabled {
  background: #ffcdd2;
  color: #fff;
  cursor: not-allowed;
}
.agentic-chatbot-mic-btn {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffe0b2;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
}
.agentic-chatbot-mic-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}
.agentic-chatbot-cancel-btn {
  background: #ffcdd2;
  color: #c62828;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.agentic-chatbot-cancel-btn:hover {
  background: #e57373;
  color: #fff;
}
@media (max-width: 600px) {
  .agentic-panel-toggle {
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    top: auto !important;
    transform: translateX(-50%) !important;
    z-index: 9999;
  }
}
.agentic-chatbot-mic-btn.recording {
  background: #e74c3c;
  color: #fff;
  border: 1px solid #e65100;
}
