.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #000;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 9999;
}

.chat-container {
    display: none;
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 300px;
    max-width: 90%;
    margin-bottom: 30px;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    font-family: Arial;
    font-size: 14px;
    z-index: 9999;
}

.chat-header {
    text-align: center;
    padding: 14px 10px;
    background: #000;
    color: white;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.chat-box {
    height: 300px; /* Сделал выше */
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
}

.message {
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
}

.user {
    background: #F07427;
    color: white;
    /* text-align: right; */
    text-align: left;
    padding: 12px 10px;
}

.bot {
    background: #e9ecef;
    color: #333;
    text-align: left;
    padding: 12px 10px;
}

.chat-form {
    display: flex;
    gap: 5px;
    padding: 14px 10px;
}

.chat-form input {
    flex: 1;
    padding: 10px 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
}

.chat-form button {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

.loading-indicator {
    font-style: italic;
    color: #888;
    margin-top: 10px;
    font-size: 14px;
}

/* Дополнительный стиль для сообщений */
/* .chat-box {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
} */
/* .message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
} */
/* .message.user {
    background-color: #f1f1f1;
    text-align: right;
}
.message.bot {
    background-color: #e0e0e0;
    text-align: left;
}
.message.error {
    color: #000;
} */