@charset "UTF-8";
.messages_lk .msg{
    display: block;
    width: 90%;
    float: left;
    background:#ccc;
    padding: 10px;
    border-radius: 10px;
    margin: 5px 0;
}

.messages_lk .my_msg{
    background: #fff;
    float: right;
}
.messages_lk .msg_from_info{
    font-size: 12px;
    padding: 0;
    margin: 0;
    margin-bottom: -9px;
    text-align: right;
}

.messages_lk .my_msg .msg_from_info{
    color: #ccc;
}
.messages_lk .files_inner p{
    margin:0;
    padding: 0;
}
.messages_lk .files_inner p a{
    text-decoration: underline;
    color: #FE0000; 
}
.messages_lk .files_inner p a:hover{
    text-decoration: none;
}

/* Стили для изображений в сообщениях */
.messages_lk .files_inner .file {
    display: block;
    margin: 5px 0;
}

.messages_lk .files_inner .file a {
    display: inline-block;
    position: relative;
}

.messages_lk .files_inner .message-thumb {
    display: block;
    max-width: 200px;
    max-height: 200px;
    object-fit: contain;
    background-color: #f5f5f5;
    /* Плавная загрузка без дергания */
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.messages_lk .files_inner .message-thumb.loaded {
    opacity: 1;
}

/* Стили для прикрепленных файлов */
.attach-list {
    list-style: none;
    padding: 0;
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attach {
    display: flex;
    align-items: center;
    border: 1px solid #eee;
    padding: 5px;
    border-radius: 5px;
    background-color: #f9f9f9;
    position: relative;
}

.attach__thumb {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.attach__thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.attach__thumb_file {
    background-color: #e0e0e0;
}

.attach__file_icon {
    /* Placeholder for file icon */
    width: 24px;
    height: 24px;
    background-color: #999; /* Example color */
    border-radius: 3px;
}

.attach__name {
    font-size: 13px;
    color: #333;
    word-break: break-all;
    padding-right: 20px; /* Space for remove button */
}

.attach__remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #f00;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.attach__remove:hover {
    color: #c00;
}