#sephani-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000; /* Ensure it's above other elements */
    font-family: Arial, sans-serif;
}

#sephani-chatbot-toggle {
    background-color: #007bff; /* PrestaShop primary blue */
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

#sephani-chatbot-window {
    width: 350px;
    height: 450px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

#sephani-chatbot-header {
    background-color: #007bff;
    color: white;
    padding: 12px 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

#sephani-chatbot-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

#sephani-chatbot-messages {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.chatbot-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word; /* Ensures long words break and wrap */
}

.user-message {
    background-color: #e0f2f7; /* Light blue */
    align-self: flex-end;
    margin-left: auto;
    text-align: right;
}

.bot-message {
    background-color: #f0f0f0; /* Light grey */
    align-self: flex-start;
    margin-right: auto;
    text-align: left;
}

.chatbot-message a {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

.chatbot-message a:hover {
    text-decoration: underline;
}

.chatbot-message strong, .chatbot-message b {
    font-weight: bold;
}

#sephani-chatbot-input {
    display: flex;
    padding: 10px 15px;
    border-top: 1px solid #eee;
}

#sephani-chatbot-text {
    flex-grow: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#sephani-chatbot-send {
    background-color: #28a745; /* Green send button */
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

#sephani-chatbot-send:hover {
    background-color: #218838;
}

/* Material Icons for send button (ensure you have Material Icons loaded on your site) */
.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;  /* Preferred icon size */
  display: inline-block;
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  word-wrap: normal;
  white-space: nowrap;
  direction: ltr;
  /* Support for all WebKit browsers. */
  -webkit-font-smoothing: antialiased;
  /* Support for Safari and Chrome. */
  text-rendering: optimizeLegibility;
  /* Support for Firefox. */
  -moz-osx-font-smoothing: grayscale;
  /* Support for IE. */
  font-feature-settings: 'liga';
}

#sephani-chatbot-quick-replies {
    padding: 10px 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.quick-reply-btn {
    background-color: #e9ecef; /* Light grey for quick replies */
    border: 1px solid #ced4da;
    color: #343a40;
    padding: 6px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background-color: #d6dade;
    border-color: #c0c7ce;
}

/* Typing Indicator Animation */
.typing-indicator span {
    animation: typing 1s infinite;
    opacity: 0;
}

.typing-indicator span:nth-child(1) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.4s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.6s; }

@keyframes typing {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #sephani-chatbot-container {
        bottom: 10px;
        right: 10px;
    }
    #sephani-chatbot-window {
        width: calc(100vw - 40px); /* Adjust for smaller screens */
        height: 70vh; /* Make it take more vertical space */
    }
}