/* Cart File Display Styles */
.dfu-cart-files-container {
    margin: 8px 0;
}

.dfu-cart-header {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.dfu-cart-files-list {
    margin: 0;
    padding: 0;
}

.dfu-cart-file-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    margin: 4px 0;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.dfu-cart-file-item:hover {
    background: #f1f3f5;
    border-color: #dee2e6;
}

.dfu-file-preview {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.dfu-file-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dfu-file-icon-large {
    font-size: 24px;
    line-height: 1;
}

.dfu-file-info {
    flex: 1;
    min-width: 0;
}

.dfu-file-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #212529;
    word-break: break-word;
}

.dfu-file-meta {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
}

.dfu-remove-cart-file {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    padding: 0;
    background: none;
    border: none;
    color: #adb5bd;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dfu-remove-cart-file:hover {
    background: #f8d7da;
    color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .dfu-cart-file-item {
        padding: 6px 10px;
        flex-wrap: wrap;
    }
    
    .dfu-file-preview {
        width: 32px;
        height: 32px;
        margin-right: 8px;
    }
    
    .dfu-file-icon-large {
        font-size: 20px;
    }
    
    .dfu-file-name {
        font-size: 13px;
    }
    
    .dfu-file-meta {
        font-size: 11px;
    }
}
/* v1.0.4 – one predictable art icon, regardless of file format or OS. */
.dfu-file-preview .dfu-art-emoji {
    display: block !important;
    flex: 0 0 auto;
    width: 36px !important;
    height: 36px !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 768px) {
    .dfu-file-preview .dfu-art-emoji {
        width: 28px !important;
        height: 28px !important;
    }
}
