@font-face {
	font-family: "Comfortaa";
	src: url("/css/fonts/comfortaa/comfortaa.eot"); /* IE9 Compat Modes */
	src: url("/css/fonts/comfortaa/comfortaa.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
		url("/css/fonts/comfortaa/comfortaa.otf") format("opentype"), /* Open Type Font */
		url("/css/fonts/comfortaa/comfortaa.svg") format("svg"), /* Legacy iOS */
		url("/css/fonts/comfortaa/comfortaa.ttf") format("truetype"), /* Safari, Android, iOS */
		url("/css/fonts/comfortaa/comfortaa.woff") format("woff"), /* Modern Browsers */
		url("/css/fonts/comfortaa/comfortaa.woff2") format("woff2"); /* Modern Browsers */
	font-weight: normal;
	font-style: normal;
}

.material-icons {
    font-family: "Comfortaa";
    font-size: 18px;
}

    #chat-button {
font-family: 'Comfortaa';
        filter: drop-shadow(rgba(0, 0, 0, 0.56) 10px 10px 6px);
        position: fixed;
        z-index: 420;
        bottom: 20px;
        right: -80px;
    width: 42px;
    height: 42px;
        border-radius: 50%;
        background-color: #007bff;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        font-size: 24px;
        animation: slide-in-chat-button 0.3s forwards;
        animation-delay: 1s;
    }

    @keyframes slide-in-chat-button {
        to {
            right: 20px;
        }
    }

    #messenger {
    font-family: 'Comfortaa';
    min-width: 320px !important;
    min-height: 600px !important;
    max-width: 100% !important;
    z-index: 419;
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 300px;
        height: 400px;
        user-select: none;
        border-radius: 10px;
        border: 1px solid #ccc;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
        overflow: hidden;
    }

    #messenger.open {
        transform: translateY(0);
        opacity: 1;
    }

#messages {
    font-family: 'Comfortaa';
    display: flex;
    flex: 1;
    padding: 10px;
    overflow-y: scroll;
    user-select: text;
    flex-direction: column;
    align-content: stretch;
    align-items: center;
    flex-wrap: nowrap;
    border-bottom: 1px solid #ccc;
}

.message {
    font-family: 'Comfortaa';
    margin: 5px 0;
    padding: 10px;
    max-width: 80%;
    word-wrap: break-word;
    text-wrap: balance;
}

.message.user {
    background-color: #007bff;
    color: #fff;
    align-self: flex-end; /* Сообщения пользователя справа */
    border-radius: 10px 10px 0px 10px;
}

.message.assistant {
    background-color: #e0e0e0;
    align-self: flex-start; /* Ответы ассистента слева */
    border-radius: 10px 10px 10px 0px;
}

#message-input {
font-family: "Comfortaa";
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    background-color: #f1f1f1;
    margin-right: 10px;
    outline: none;
    resize: none;
    overflow-y: auto;
    min-height: 20px;
    max-height: 100px;
}

    #input-area {
        display: flex;
        padding: 10px;
    }

    #input-area input {
        flex: 1;
        padding: 10px;
        border: none;
        border-radius: 20px;
        background-color: #f1f1f1;
        margin-right: 10px;
        outline: none;
    }

    #input-area button {
    display: flex;
    max-width: 40px;
    max-height: 40px;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    outline: none;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: space-around;
    justify-content: center;
    align-items: center;
    }

    .typing-indicator {
        display: flex;
        align-items: center;
        margin: 5px 0;
        padding: 10px;
        border-radius: 10px;
        background-color: #e0e0e0;
        max-width: 80%;
        align-self: flex-start;
    }

    .typing-indicator span {
        width: 8px;
        height: 8px;
        background-color: #555;
        border-radius: 50%;
        display: inline-block;
        margin-right: 4px;
        animation: blink 1.4s infinite both;
    }

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

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

    @keyframes blink {
        0%, 80%, 100% {
            opacity: 0;
        }
        40% {
            opacity: 1;
        }
    }

    .resizable {
        position: absolute;
        width: 10px;
        height: 10px;
        background: transparent;
        cursor: se-resize;
        right: 0;
        bottom: 0;
    }
    
.resizer {
    width: 10px;
    height: 10px;
    background: transparent;
    position: absolute;
    right: 2.5px;
    bottom: 1px;
    cursor: se-resize;
}

.resizer::before,
.resizer::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 100%;
    background: #aaa;
    top: 0;
    right: 3px;
}

.resizer::before {
    transform: rotate(45deg) translateX(2px);
}

.resizer::after {
    transform: rotate(45deg) translateX(-2px) scale3d(1, .5, .5);
}

code {
text-wrap: balance;
}
