/*
---------------------------------------------
Здесь содержатся дополнительные ситили чата, добавленные после 28.11.24
- Стили файлов в сообщениях
---------------------------------------------
*/
.chat-container .close-consultation-button{
    position: relative;
    display: block;
    width: auto;
    height: auto;
    padding: 1vh 2.5vw 1vh 2.5vw;
    margin-top: 1.3vw;
    border: 0px;
    border-radius: 25px;
    background-color: #35B828;
    font-size: 3.7vw;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: #fff;
    transition: background-color 0.3s;
    box-shadow: 0px 4.2px 10.6px 0px #35B72833;
}

.chat-log .file-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 120px;
    background-color: #FFFFFF;
    border-radius: 50%;
    color: #000000;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-log .fa-file{
    font-size: 60px;
    color: rgb(53, 183, 40);
    display: flex;
    justify-content: center;
    align-items: center;
}

.message-file-form{
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
}

.message-input .fa-paperclip{
    font-size: 60px;
    color: #999999;
}

.message-input .file-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:  1dvh 6dvw;
}

.message-input .file-span{
    font-size: 4.7vw;
    color: #333;
}

.message-input .fa-xmark{
    cursor: pointer;
    color: rgb(53, 183, 40);
    font-size: 4.7vw;
}

.message-container {
    display: flex;
    gap: 12px;
    flex-direction: column;
    padding: 25px 16px;
    margin-bottom: 2vh;
    border: 1px solid #ccc;
    word-wrap: break-word;
    width: fit-content;
}

.message-container img {
    max-width: 100%;
    border-radius: 10px;
    margin-top: 10px;
}

.message-container a {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
}

.message-container p {
    min-width:
}

.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}
.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.fullscreen-overlay .close-button {
    position: absolute;
    top: 35px;
    right: 35px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.fullscreen-overlay .close-button:hover {
    color: rgb(53, 183, 40);;
}


@media screen and (min-device-width: 480px) {
    .chat-container .close-consultation-button {
        width: auto;
        height: auto;
        padding: 5px 10px;
        margin-top: 0vh;
        border-radius: 15px;
        font-size: 18px;
    }

    .chat-container textarea{
        font-size: 14px;
        letter-spacing: -0.01rem;
        padding: 10px 20px;
        max-height: 100px;
    }

    .message-input .fa-paperclip{
        font-size: 18px;
        color: #999999;
    }

    .message-input .file-container{
        padding:  0px 40px;
    }

    .message-input .file-span{
        font-size: 18px;
    }

    .message-input .fa-xmark{
        font-size: 18px;
    }

    .chat-log .file-icon {
        width: 40px;
        height: 40px;
    }

    .chat-log .fa-file {
        font-size: 22px;
    }

    .message-container {
        gap: 0;
        padding: 10px 20px
    }
}

@media screen and (min-device-width: 992px){
    .fullscreen-overlay img {
        max-width: 60%;
        max-height: 60%;
    }
}

@media screen and (min-device-width: 1280px) {
    .chat-container .message-input {
        padding: 10px 20% 15px 20%;
    }

    .chat-container .chat-log {
        padding: 0 22%;
    }
}

