/* AI Agent Chat Widget Styles */

.ai-agent-chat {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    border-radius: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ai-agent-chat-header {
    background: #82B735;
    color: white;
    padding: 15px 20px;
}

.ai-agent-chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.ai-agent-chat-messages {
    height: 175px;
    overflow-y: auto;
    padding: 15px;
    background: #f8f9fa;
}

.ai-agent-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
}

.ai-agent-message p {
    margin: 0;
    font-size: 14px;
}

.ai-agent-message a, 
.ai-agent-message a:hover {
    color: #83B735;
    text-decoration-line: underline;
}

.ai-agent-user {
    background: #82B735;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-agent-bot {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
    border-bottom-left-radius: 4px;
}

.ai-agent-typing {
    background: white;
    color: #888;
    border: 1px solid #e0e0e0;
    font-style: italic;
}

.ai-agent-typing::after {
    content: '';
    animation: ai-agent-typing 1.5s infinite;
}

@keyframes ai-agent-typing {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

.ai-agent-chat-input {
    display: flex;
    padding: 12px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.ai-agent-chat-input input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.ai-agent-chat-input input:focus {
    border-color: #7ed321;
}

.ai-agent-chat-input button:not(.button) {
    margin-left: 8px;
    padding: 10px 20px;
    background: #7ed321;
    color: white;
    border: none;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    text-transform: uppercase;
}

.ai-agent-chat-input button:not(.button):hover {
    background: #6bc01a;
}

.ai-agent-chat-input button:not(.button):disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ai-agent-error {
    color: #dc3545;
    background: #fff5f5;
    border: 1px solid #ffcccc;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 13px;
}
/* Force-match Siųsti button to add-to-cart styling */
#ai-agent-send-btn {
  background-color: #7ed321 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}
#ai-agent-send-btn:hover,
#ai-agent-send-btn:focus {
  background-color: #6bc01a !important;
  color: #ffffff !important;
}
#ai-agent-send-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
/* Force-match Siųsti button to add-to-cart styling */
#ai-agent-send-btn {
  background-color: #7ed321 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}
#ai-agent-send-btn:hover,
#ai-agent-send-btn:focus {
  background-color: #6bc01a !important;
  color: #ffffff !important;
}
#ai-agent-send-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
/* Force-match Siųsti button to add-to-cart styling */
#ai-agent-send-btn {
  background-color: #7ed321 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}
#ai-agent-send-btn:hover,
#ai-agent-send-btn:focus {
  background-color: #6bc01a !important;
  color: #ffffff !important;
}
#ai-agent-send-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
/* Force-match Siųsti final spec: #83B735, no hover, radius 0 */
#ai-agent-send-btn {
  background-color: #83B735 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 10px 20px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}
#ai-agent-send-btn:hover,
#ai-agent-send-btn:focus {
  background-color: #83B735 !important; /* no hover change */
  color: #ffffff !important;
}
