.chatbot-container {
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: block; /* Измените с none на block */
    opacity: 1; /* Измените с 0 на 1 */
    transform: translateY(0); /* Измените с translateY(20px) на translateY(0) */
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    z-index: 10000;
}
/* .chatbot-container {
    width: 320px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    z-index: 10000;
} */

.chatbot-header {
    display: flex;
    background: #4a61dd;
    color: white;
    padding: 10px;
    align-items: center;
    font-size: 18px;
    gap: 10px;
    border-radius: 10px 10px 0 0;
}

.chatbot-box {
    height: 400px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    background: #f9f9f9;
}

.chatbot-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 8px;
    max-width: 80%;
    word-wrap: break-word;
    line-height: 1.4;
}

.chatbot-message-bot {
    background: #e0e0e0;
    align-self: flex-start;
}

.chatbot-message-user {
    background: #4a61dd;
    color: white;
    align-self: flex-end;
}

.chatbot-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 5px;
    align-items: flex-start;
}

.chatbot-option-btn {
    background: white;
    border: 1px solid #4a61dd;
    color: #4a61dd;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
    width: 100%;
}

.chatbot-option-btn:hover {
    background: #f0f0f0;
}

.chatbot-input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ddd;
    background: white;
}

.chatbot-input-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border 0.2s;
}

.chatbot-input-field:focus {
    border-color: #4a61dd;
}

.chatbot-send-btn {
    background: #4a61dd;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    margin-left: 5px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.chatbot-send-btn:hover {
    background: #3a51cd;
}

.chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4a61dd;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    z-index: 10001;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.chatbot-toggle svg {
    width: 30px;
    height: 30px;
}

.chatbot-hidden {
    display: none !important;
}

.chatbot-typing-indicator {
    display: inline-block;
    padding: 10px;
    background: #e0e0e0;
    border-radius: 8px;
}

.chatbot-typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #666;
    border-radius: 50%;
    margin: 0 2px;
    animation: chatbot-typing 1s infinite ease-in-out;
}

.chatbot-typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.chatbot-typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes chatbot-typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.chatbot-link {
    color: #4a61dd;
    text-decoration: underline;
}

.chatbot-link:hover {
    text-decoration: none;
}

.chatbot-char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 2px;
}

.chatbot-limit-reached {
    color: #ff4444;
    font-weight: bold;
}

.chatbot-session-info {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 5px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.chatbot-session-timeout {
    font-size: 12px;
    color: #666;
    text-align: center;
    padding: 5px;
    background: #fff8e1;
    border-radius: 5px;
    margin-bottom: 10px;
}

@keyframes chatbotFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}
