#chat-btn {
    position: fixed;
    bottom: 75px;
    right: 20px;
    z-index: 9998;
    width: 56px;
    height: 56px;
    background-color: #18d26e;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 26px;
    line-height: 56px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

#chat-btn:hover {
    background-color: #0fa856;
}

.chat-widget {
    display: none;
    flex-direction: column;
    position: fixed;
    bottom: 145px;
    right: 20px;
    width: 320px;
    max-width: calc(100vw - 40px);
    height: 420px;
    max-height: calc(100vh - 120px);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25);
    font-family: Arial, sans-serif;
    z-index: 9999;
}

.chat-widget.open {
    display: flex;
}

.chat-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #18d26e;
    color: #fff;
    padding: 12px 15px;
    font-weight: bold;
}

.chat-widget-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-input-row {
    display: flex;
    border-top: 1px solid #eee;
    padding: 8px;
}

#user-input {
    flex: 1;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-right: 6px;
}

#send-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #18d26e;
    color: #fff;
    cursor: pointer;
}

#send-btn:hover {
    background-color: #0fa856;
}

#options-container {
    display: flex;
    flex-direction: column;
}

.user-message,
.bot-message {
    margin: 6px 0;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
}

.user-message {
    background: #18d26e;
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.bot-message {
    background: #f1f1f1;
    color: #333;
    margin-right: auto;
    border-bottom-left-radius: 2px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    min-width: 48px;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    background: #aaa;
    border-radius: 50%;
    display: inline-block;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

.option {
    background: #fff;
    border: 1px solid #18d26e;
    color: #18d26e;
    border-radius: 15px;
    padding: 6px 12px;
    margin: 4px 0;
    cursor: pointer;
    font-size: 13px;
    transition: 0.3s;
}

.option:hover {
    background: #18d26e;
    color: #fff;
}

@media (max-width: 480px) {
    .chat-widget {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    #chat-btn {
        right: 15px;
        bottom: 70px;
    }
}
