/**
 * MosaicFont - WooCommerce Custom Upload Styles
 * 商品页上传模块样式
 */

.mf-custom-upload-section {
    margin: 24px 0;
    padding: 20px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.mf-upload-title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
}

/* 上传区域 */
.mf-upload-area {
    position: relative;
    border: 2px dashed #d4d4d4;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.mf-upload-area:hover,
.mf-upload-area.drag-over {
    border-color: #8b7355;
    background: rgba(139, 115, 85, 0.03);
}

.mf-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.mf-upload-icon {
    color: #a3a3a3;
    margin-bottom: 12px;
}

.mf-upload-icon svg {
    width: 48px;
    height: 48px;
}

.mf-upload-hint {
    margin: 0 0 8px;
    font-size: 14px;
    color: #525252;
}

.mf-upload-requirements {
    margin: 0;
    font-size: 12px;
    color: #737373;
}

/* 文件列表 */
.mf-file-list {
    margin-top: 16px;
}

.mf-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mf-file-item:hover {
    border-color: #8b7355;
}

.mf-file-item.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.mf-file-item.too-big {
    border-color: #f59e0b;
    background: #fffbeb;
}

.mf-file-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.mf-file-icon {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mf-file-icon svg {
    width: 18px;
    height: 18px;
    color: #737373;
}

.mf-file-details {
    flex: 1;
    min-width: 0;
}

.mf-file-name {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mf-file-size {
    font-size: 11px;
    color: #737373;
}

.mf-file-error {
    font-size: 11px;
    color: #dc2626;
    margin-top: 2px;
}

.mf-file-delete {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    color: #737373;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mf-file-delete:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

/* 定制说明 */
.mf-instructions-wrapper {
    margin-top: 20px;
}

.mf-instructions-wrapper label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
}

.mf-instructions-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.mf-instructions-wrapper textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.mf-instructions-wrapper textarea::placeholder {
    color: #a3a3a3;
}

/* 响应式 */
@media (max-width: 768px) {
    .mf-custom-upload-section {
        padding: 16px;
    }
    
    .mf-upload-area {
        padding: 20px 16px;
    }
    
    .mf-file-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mf-file-delete {
        width: 100%;
        text-align: center;
    }
}
