
.file\:preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    
    max-width: var(--max-chat-width);
    width: 100%;
}

.file\:preview:has(.file\:card) {
    margin-bottom: 12px;
}

.file\:card {
    display: flex;
    border-radius: 6px;
    padding: 8px;
    gap: 8px;
    background-color: var(--background-selected-color);
    align-items: center;
}

.file\:icon {
    position: relative;
    width: 64px;
    height: 64px;       
}


.file\:icon img {    
    object-fit: cover;
    border-radius: 3px;
    overflow: hidden;
    width: 100%;
    height: 100%;
}


.file\:info {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    width: 150px;
    font-size: 12px;    
}

.file\:card .remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 22px;
    cursor: pointer;
    font-weight: 300;
    margin-top: -2px;
}

.file\:loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;    
    position: absolute;
    top: 0;
    left: 0;        
}

.file\:loading svg {
    animation: loading 1s linear infinite;
    transform-origin: center center;
}

@keyframes loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}