/**
 * Стили для поддержки изображений в чате поддержки TopBid
 * Версия: 1.0.0
 * Дата: 2025-07-10
 */

/* Стили для изображений в сообщениях */
.support-chat-message-image {
    margin-top: 8px;
    max-width: 200px;
    position: relative;
}

.support-chat-message-image img {
    max-width: 100%;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s ease;
}

.support-chat-message-image img:hover {
    transform: scale(1.05);
}

/* Стили для модального окна с полноразмерным изображением */
.support-chat-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-chat-image-modal.active {
    opacity: 1;
}

.support-chat-image-modal img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Стили для предпросмотра изображения перед отправкой */
.support-chat-image-preview {
    margin-top: 5px;
    margin-bottom: 10px;
    position: relative;
    display: none;
    max-width: 200px;
}

.support-chat-image-preview img {
    max-width: 100%;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.support-chat-image-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: #ff5252;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.support-chat-image-remove:hover {
    background-color: #ff1744;
}

/* Стили для кнопки загрузки изображения */
.support-chat-image-upload-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    transition: background-color 0.3s;
}

.support-chat-image-upload-label:hover {
    background-color: #e0e0e0;
}

.support-chat-image-icon {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* Стили для контейнера ввода сообщения */
.support-chat-input-container {
    display: flex;
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.support-chat-actions {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
    .support-chat-message-image {
        max-width: 150px;
    }
    
    .support-chat-image-preview {
        max-width: 150px;
    }
    
    .support-chat-image-modal img {
        max-width: 95%;
        max-height: 95%;
    }
}
