@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Volkhov:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body {
    font-family: Jost, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f5f5f7;
    letter-spacing: normal;
    font-size: 15px;
    line-height: 1.5;
}

.chat-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin: 0 auto;
    max-width: 900px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-container--embed {
    max-width: 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    /*width: 100%;*/
    width: 435px;
    max-width: 435px;
}

.chat-container--embed .chat-messages {
    width: 100%;
    max-width: 100%;
}

.message {
    display: flex;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.bot {
    justify-content: flex-start;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 12px 20px;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.message.bot .message-content {
    background-color: #e0e0e0;
}

.message.bot .message-content a {
    color: #1a6eb5;
    text-decoration: underline;
}

.message.user .message-content {
    background-color: #F1AD6E;
    color: #fff;
}

.message.user .message-content a {
    color: #fff;
    text-decoration: underline;
}

.chat-input {
    display: grid;
    grid-gap: 8px;
    align-items: center;
    grid-template-columns: 1fr auto;
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

.chat-input textarea {
    grid-column: 1 / 1;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    background-color: #fff;
    font-family: Jost, sans-serif;
    resize: none;
    max-height: 120px;
    overflow-y: auto;
    box-sizing: border-box;
}

.chat-input button {
    background-color: #F1AD6E;
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    padding: 0;
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
    font-family: Jost, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    justify-self: center;
    box-sizing: border-box;
}

.chat-input button:hover {
    background-color: #F46F43;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
    margin-left: 8px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #666;
    border-radius: 50%;
    animation: typing 1.5s infinite ease-in-out;
}

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

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

@keyframes typing {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hidden {
    display: none;
}